diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2013-05-15 14:54:07 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-07-10 20:08:29 +0200 |
commit | dc006c1db4fa3606d657c78cc87dc13d056e970d (patch) | |
tree | 7479203a6e08b0b465a104f64316e687885305f5 /src/mainboard/google/snow/mainboard.c | |
parent | 08dc3571463d7226068d4a4c19d453859b148957 (diff) | |
download | coreboot-dc006c1db4fa3606d657c78cc87dc13d056e970d.tar.xz |
ARMv7: De-uboot-ify Exynos5250 GPIO code
The Exynos GPIO code has three different APIs that, unfortunately,
were widely used throughout the code base. This patch is cleaning
up the mess.
Change-Id: I09ccc7819fb892dbace9693c786dacc62f3f8eac
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3643
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/snow/mainboard.c')
-rw-r--r-- | src/mainboard/google/snow/mainboard.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mainboard/google/snow/mainboard.c b/src/mainboard/google/snow/mainboard.c index a62f62ca56..250b71fdee 100644 --- a/src/mainboard/google/snow/mainboard.c +++ b/src/mainboard/google/snow/mainboard.c @@ -59,12 +59,12 @@ static void exynos_dp_bridge_setup(void) exynos_pinmux_config(PERIPH_ID_DPHPD, 0); gpio_set_value(dp_pd_l, 1); - gpio_cfg_pin(dp_pd_l, EXYNOS_GPIO_OUTPUT); - gpio_set_pull(dp_pd_l, EXYNOS_GPIO_PULL_NONE); + gpio_cfg_pin(dp_pd_l, GPIO_OUTPUT); + gpio_set_pull(dp_pd_l, GPIO_PULL_NONE); gpio_set_value(dp_rst_l, 0); - gpio_cfg_pin(dp_rst_l, EXYNOS_GPIO_OUTPUT); - gpio_set_pull(dp_rst_l, EXYNOS_GPIO_PULL_NONE); + gpio_cfg_pin(dp_rst_l, GPIO_OUTPUT); + gpio_set_pull(dp_rst_l, GPIO_PULL_NONE); udelay(10); gpio_set_value(dp_rst_l, 1); } @@ -122,7 +122,7 @@ static void backlight_pwm(void) static void backlight_en(void) { - /* * Configure GPIO for LCD_BL_EN */ + /* Configure GPIO for LCD_BL_EN */ gpio_direction_output(GPIO_X30, 1); } @@ -227,6 +227,8 @@ static void mainboard_init(device_t dev) if (dp_tries > MAX_DP_TRIES) printk(BIOS_ERR, "%s: Failed to set up displayport\n", __func__); + + gpio_info(); } static void mainboard_enable(device_t dev) |