]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: quark: Fix unused warnings
authorTom Rini <trini@konsulko.com>
Sat, 27 Jan 2018 20:13:47 +0000 (15:13 -0500)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 30 Jan 2018 14:34:38 +0000 (22:34 +0800)
The variable t_rfc is never used, so drop it.  The variables ddr_wctl
and ddr_wcmd are only used in certain manual instances, so guard their
declaration by the same check as their use.

Cc: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/quark/smc.c

index 3ffe92b67b20741908e72c5ca09cea8c2f5b8ddc..0195b56a52f6731952f052dcef716f46a62075d8 100644 (file)
 #include "hte.h"
 #include "smc.h"
 
-/* t_rfc values (in picoseconds) per density */
-static const uint32_t t_rfc[5] = {
-       90000,  /* 512Mb */
-       110000, /* 1Gb */
-       160000, /* 2Gb */
-       300000, /* 4Gb */
-       350000, /* 8Gb */
-};
-
 /* t_ck clock period in picoseconds per speed index 800, 1066, 1333 */
 static const uint32_t t_ck[3] = {
        2500,
@@ -35,8 +26,12 @@ static const uint32_t t_ck[3] = {
 
 /* Global variables */
 static const uint16_t ddr_wclk[] = {193, 158};
+#ifdef BACKUP_WCTL
 static const uint16_t ddr_wctl[] = {1, 217};
+#endif
+#ifdef BACKUP_WCMD
 static const uint16_t ddr_wcmd[] = {1, 220};
+#endif
 
 #ifdef BACKUP_RCVN
 static const uint16_t ddr_rcvn[] = {129, 498};