diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-20 19:48:39 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-22 10:36:33 -0600 |
commit | 7f1961018cb494c029fcbb446e6562064735ec5e (patch) | |
tree | 10089a45751339df4ed17fd12ed1838ed60c0ca5 /board/samsung/goni | |
parent | 3a233dbfe9308943122cc2473064bb7e876577f0 (diff) |
dm: exynos: Make sure that GPIOs are requested
With driver model GPIOs must be requested before use. Make sure this is
done correctly.
(Note that the soft SPI part of universal is omitted, since this driver
is about to be replaced with a driver-model-aware version)
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/samsung/goni')
-rw-r--r-- | board/samsung/goni/goni.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c index 4cee78bab2b..58cf96eaa84 100644 --- a/board/samsung/goni/goni.c +++ b/board/samsung/goni/goni.c @@ -90,6 +90,7 @@ int board_mmc_init(bd_t *bis) int i, ret, ret_sd = 0; /* MASSMEMORY_EN: XMSMDATA7: GPJ2[7] output high */ + gpio_request(S5PC110_GPIO_J27, "massmemory_en"); gpio_direction_output(S5PC110_GPIO_J27, 1); /* @@ -118,6 +119,7 @@ int board_mmc_init(bd_t *bis) * SD card (T_FLASH) detect and init * T_FLASH_DETECT: EINT28: GPH3[4] input mode */ + gpio_request(S5PC110_GPIO_H34, "t_flash_detect"); gpio_cfg_pin(S5PC110_GPIO_H34, S5P_GPIO_INPUT); gpio_set_pull(S5PC110_GPIO_H34, S5P_GPIO_PULL_UP); |