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/universal_c210 | |
parent | 3a233dbfe9308943122cc2473064bb7e876577f0 (diff) | |
download | u-boot-imx-7f1961018cb494c029fcbb446e6562064735ec5e.zip u-boot-imx-7f1961018cb494c029fcbb446e6562064735ec5e.tar.gz u-boot-imx-7f1961018cb494c029fcbb446e6562064735ec5e.tar.bz2 |
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/universal_c210')
-rw-r--r-- | board/samsung/universal_c210/universal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c index f9d3325..c04f48c 100644 --- a/board/samsung/universal_c210/universal.c +++ b/board/samsung/universal_c210/universal.c @@ -330,6 +330,7 @@ void exynos_cfg_lcd_gpio(void) } /* gpio pad configuration for LCD reset. */ + gpio_request(EXYNOS4_GPIO_Y45, "lcd_reset"); gpio_cfg_pin(EXYNOS4_GPIO_Y45, S5P_GPIO_OUTPUT); spi_init(); @@ -386,6 +387,7 @@ int exynos_init(void) * you should set it HIGH since it removes the inverter */ /* MASSMEMORY_EN: XMDMDATA_6: GPE3[6] */ + gpio_request(EXYNOS4_GPIO_E36, "ldo_en"); gpio_direction_output(EXYNOS4_GPIO_E36, 0); break; default: @@ -394,6 +396,7 @@ int exynos_init(void) * But set it as HIGH to ensure */ /* MASSMEMORY_EN: XMDMADDR_3: GPE1[3] */ + gpio_request(EXYNOS4_GPIO_E13, "massmemory_en"); gpio_direction_output(EXYNOS4_GPIO_E13, 1); break; } |