diff options
author | Tom Rini <trini@konsulko.com> | 2018-01-27 15:13:47 -0500 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-01-30 22:34:38 +0800 |
commit | d0c0752addcb82fbc74c43842a58cca34d22de00 (patch) | |
tree | 1a9e67f18b24c6cba6d3ebb8a59b057838ea47c0 /arch | |
parent | ca92ad4f6899cf37e69661f91dd49711b2ec09c7 (diff) | |
download | u-boot-d0c0752addcb82fbc74c43842a58cca34d22de00.tar.gz u-boot-d0c0752addcb82fbc74c43842a58cca34d22de00.tar.bz2 u-boot-d0c0752addcb82fbc74c43842a58cca34d22de00.zip |
x86: quark: Fix unused warnings
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/cpu/quark/smc.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/x86/cpu/quark/smc.c b/arch/x86/cpu/quark/smc.c index 3ffe92b67b..0195b56a52 100644 --- a/arch/x86/cpu/quark/smc.c +++ b/arch/x86/cpu/quark/smc.c @@ -17,15 +17,6 @@ #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}; |