From 903fd79564a2b8874fa2e09fd6a04b7cb99690da Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 20 Oct 2014 19:48:37 -0600 Subject: dm: exynos: Tidy up GPIO headers The wrong header is being included, thus requiring the code to re-declare the generic GPIO interface in each GPIO header. Fix this. Signed-off-by: Simon Glass --- board/samsung/arndale/arndale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/samsung/arndale/arndale.c') diff --git a/board/samsung/arndale/arndale.c b/board/samsung/arndale/arndale.c index 83fd3bd754..e39795dfdf 100644 --- a/board/samsung/arndale/arndale.c +++ b/board/samsung/arndale/arndale.c @@ -6,9 +6,9 @@ #include #include +#include #include #include -#include #include DECLARE_GLOBAL_DATA_PTR; -- cgit From 7f1961018cb494c029fcbb446e6562064735ec5e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 20 Oct 2014 19:48:39 -0600 Subject: 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 --- board/samsung/arndale/arndale.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/samsung/arndale/arndale.c') diff --git a/board/samsung/arndale/arndale.c b/board/samsung/arndale/arndale.c index e39795dfdf..881d080522 100644 --- a/board/samsung/arndale/arndale.c +++ b/board/samsung/arndale/arndale.c @@ -19,6 +19,8 @@ int board_usb_init(int index, enum usb_init_type init) /* Configure gpios for usb 3503 hub: * disconnect, toggle reset and connect */ + gpio_request(EXYNOS5_GPIO_D17, "usb_connect"); + gpio_request(EXYNOS5_GPIO_X35, "usb_reset"); gpio_direction_output(EXYNOS5_GPIO_D17, 0); gpio_direction_output(EXYNOS5_GPIO_X35, 0); -- cgit