From 14610ec20ae086570434114fa262a9fb84dae6d9 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Wed, 3 Jun 2015 15:27:07 -0700 Subject: 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 Original-Commit-Id: eecfee4a5dd39073b5f966a25991a594b3c4b519 Original-Change-Id: Id86ae7f40687e843ffc4e7769309d4678ad54f49 Original-Signed-off-by: David Hendricks Original-Reviewed-on: https://chromium-review.googlesource.com/280853 Original-Reviewed-by: Julius Werner Reviewed-on: http://review.coreboot.org/10685 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/veyron_danger/board.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainboard/google/veyron_danger/board.h') diff --git a/src/mainboard/google/veyron_danger/board.h b/src/mainboard/google/veyron_danger/board.h index 8f620781f3..aa703c22b3 100644 --- a/src/mainboard/google/veyron_danger/board.h +++ b/src/mainboard/google/veyron_danger/board.h @@ -27,6 +27,8 @@ #define GPIO_RESET GPIO(0, B, 5) #define GPIO_LCDC_BL GPIO(7, A, 7) +void sdmmc_power_off(void); +void sdmmc_power_on(void); void setup_chromeos_gpios(void); #endif /* __MAINBOARD_GOOGLE_VEYRON_DANGER_BOARD_H */ -- cgit v1.2.3