diff options
author | David Hendricks <dhendrix@chromium.org> | 2015-06-03 15:27:07 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-06-30 08:09:13 +0200 |
commit | 14610ec20ae086570434114fa262a9fb84dae6d9 (patch) | |
tree | da14c3fcd114bfeb0ed19a0697e73f12b338c5c0 /src/mainboard/google/veyron_danger/mainboard.c | |
parent | 4039822dc43fdcc301f416ea589c0c43d1e09244 (diff) |
veyron_danger: Update SDMMC power on/off code for v2
This re-factors SDMMC power on/off to make corrections and take
differences between board versions into account. To avoid similar-
but-different case switch statements in romstage.c and mainboard.c,
power on/off functions for SDMMC are split into their own .c file.
BUG=none
BRANCH=none
TEST=built and booted of micro-SD card on Danger v2
Change-Id: Ib3069c35ceff1ff98b49579a6298681c1390beee
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: eecfee4a5dd39073b5f966a25991a594b3c4b519
Original-Change-Id: Id86ae7f40687e843ffc4e7769309d4678ad54f49
Original-Signed-off-by: David Hendricks <dhendrix@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/280853
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/10685
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/veyron_danger/mainboard.c')
-rw-r--r-- | src/mainboard/google/veyron_danger/mainboard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mainboard/google/veyron_danger/mainboard.c b/src/mainboard/google/veyron_danger/mainboard.c index 621d347e1f..7b06742cfc 100644 --- a/src/mainboard/google/veyron_danger/mainboard.c +++ b/src/mainboard/google/veyron_danger/mainboard.c @@ -55,9 +55,7 @@ static void configure_sdmmc(void) /* use sdmmc0 io, disable JTAG function */ write32(&rk3288_grf->soc_con0, RK_CLRBITS(1 << 12)); - /* Note: these power rail definitions are copied in romstage.c */ - rk808_configure_ldo(4, 3300); /* VCCIO_SD */ - rk808_configure_ldo(5, 3300); /* VCC33_SD */ + sdmmc_power_on(); gpio_input(GPIO(7, A, 5)); /* SDMMC_DET_L */ } |