diff options
author | David Hendricks <dhendrix@chromium.org> | 2015-01-16 12:15:15 -0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-04-15 16:49:20 +0200 |
commit | 3be454e5ebeba8bdc82184ca12cb92c569cc908a (patch) | |
tree | 73320ab3e68175211d46c243c5b6006ada9c5b68 /src/mainboard/google/veyron_danger/sdram_configs.c | |
parent | 09ab856c85b59a04bb14146533d19edd4ccf1467 (diff) | |
download | coreboot-3be454e5ebeba8bdc82184ca12cb92c569cc908a.tar.xz |
Danger: Apply differences between Brain and Danger
This applies the differences between Brain and Danger:
- Danger has an SDMMC slot
- Danger has a USB hub (TODO)
- Danger has LVDS (TODO)
- Add workaround for incorrect RAM_ID strapping
BUG=none
BRANCH=none
TEST=emerge-veyron_danger coreboot works
Change-Id: Idec527744de2583613b290e3e88850b33ff1c23d
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Id: 89278c2eeae4bae989a3549da627c5bbd5dd0d5a
Original-Signed-off-by: David Hendricks <dhendrix@chromium.org>
Original-Change-Id: Iae3f85d4f41e04465a5046f2334c693337d006a4
Original-Reviewed-on: https://chromium-review.googlesource.com/241712
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/9647
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/mainboard/google/veyron_danger/sdram_configs.c')
-rw-r--r-- | src/mainboard/google/veyron_danger/sdram_configs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainboard/google/veyron_danger/sdram_configs.c b/src/mainboard/google/veyron_danger/sdram_configs.c index 359375830c..b8bd2db41a 100644 --- a/src/mainboard/google/veyron_danger/sdram_configs.c +++ b/src/mainboard/google/veyron_danger/sdram_configs.c @@ -45,8 +45,13 @@ static struct rk3288_sdram_params sdram_configs[] = { const struct rk3288_sdram_params *get_sdram_config() { - u32 ramcode = ram_code(); + u32 ramcode; + /* early boards had incorrect config */ + if (board_id() == 0) + return &sdram_configs[0]; + + ramcode = ram_code(); if (ramcode >= ARRAY_SIZE(sdram_configs) || sdram_configs[ramcode].dramtype == UNUSED) die("Invalid RAMCODE."); |