diff options
author | Martin Roth <martinroth@google.com> | 2016-11-11 10:31:48 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-11-17 17:57:09 +0100 |
commit | b9e8ad8f681042bae5f3da420719f64b2fd75141 (patch) | |
tree | 9b1de338f251fd8b049d99c45ff8df4f1d35238c /src/soc/broadcom/cygnus/ddr_init_table.c | |
parent | 1cf5b87f48668055e531a13c143abf697934dc80 (diff) |
soc/broadcom/cygnus: Update DDR Kconfig
The DDR speed Kconfig symbols needed to either be added to the Kconfig
tree, or have the code associated with them removed. I chose to add
the symbols.
- Add symbols for DDR333 - DDR667 to cygnus Kconfig. These should be
selected by the mainboard.
- Rename symbols from DDRXXX to CYGNUS_DDRXXX to match the existing
CYGNUS_DDR800 symbol.
- Rename the non Kconfig #define CONFIG_DRAM_FREQ to CYGNUS_DRAM_FREQ
because having other #defines look like Kconfig symbols is confusing.
- Change #ifdef CONFIG_DDRXXX to use IS_ENABLED
Change-Id: I3f5957a595072434c21af0002d57ac49b48b1e43
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/17386
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'src/soc/broadcom/cygnus/ddr_init_table.c')
-rw-r--r-- | src/soc/broadcom/cygnus/ddr_init_table.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/broadcom/cygnus/ddr_init_table.c b/src/soc/broadcom/cygnus/ddr_init_table.c index 7c8a89f3bc..20eb5e6550 100644 --- a/src/soc/broadcom/cygnus/ddr_init_table.c +++ b/src/soc/broadcom/cygnus/ddr_init_table.c @@ -292,7 +292,7 @@ const unsigned int ddr2_init_tab_400[] = { }; #endif -#ifdef CONFIG_DDR333 +#if IS_ENABLED(CONFIG_CYGNUS_DDR333) const unsigned int ddr3_init_tab_667[] = { 0, 0x00000600, 1, 0x00000000, @@ -552,7 +552,7 @@ const unsigned int ddr3_init_tab_667[] = { }; #endif -#ifdef CONFIG_DDR400 +#if IS_ENABLED(CONFIG_CYGNUS_DDR400) const unsigned int ddr3_init_tab_800[] = { 14, 0x01000000, 36, 0x0a140a0a, @@ -864,7 +864,7 @@ const unsigned int ddr3_init_tab_800[] = { }; #endif -#ifdef CONFIG_DDR533 +#if IS_ENABLED(CONFIG_CYGNUS_DDR533) const unsigned int ddr3_init_tab_1066[] = { 14, 0x01000000, 36, 0x0a140a0a, @@ -1176,7 +1176,7 @@ const unsigned int ddr3_init_tab_1066[] = { }; #endif -#ifdef CONFIG_DDR667 +#if IS_ENABLED(CONFIG_CYGNUS_DDR667) const unsigned int ddr3_init_tab_1333[] = { 14, 0x01000000, 36, 0x0a140a0a, |