summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/exynos
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-02 18:16:13 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 21:06:14 -0600
commita507454b137e870cd418be326b5bc2e96f580efa (patch)
tree92b930bee0044f0aa3c409db95fd095f6e6c0547 /arch/arm/cpu/armv7/exynos
parentc95ed7d9e76e81c3728438ccbd3bbd119cf46886 (diff)
downloadblackbird-obmc-uboot-a507454b137e870cd418be326b5bc2e96f580efa.tar.gz
blackbird-obmc-uboot-a507454b137e870cd418be326b5bc2e96f580efa.zip
exynos: Add support for the DisplayPort hotplug detect
Allow this function to be selected using the pinmux API. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/cpu/armv7/exynos')
-rw-r--r--arch/arm/cpu/armv7/exynos/pinmux.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu/armv7/exynos/pinmux.c
index be43e224fa..e97cb376ff 100644
--- a/arch/arm/cpu/armv7/exynos/pinmux.c
+++ b/arch/arm/cpu/armv7/exynos/pinmux.c
@@ -496,6 +496,16 @@ static int exynos5_pinmux_config(int peripheral, int flags)
case PERIPH_ID_SPI4:
exynos5_spi_config(peripheral);
break;
+ case PERIPH_ID_DPHPD:
+ /* Set Hotplug detect for DP */
+ gpio_cfg_pin(EXYNOS5_GPIO_X07, S5P_GPIO_FUNC(0x3));
+
+ /*
+ * Hotplug detect should have an external pullup; disable the
+ * internal pulldown so they don't fight.
+ */
+ gpio_set_pull(EXYNOS5_GPIO_X07, S5P_GPIO_PULL_NONE);
+ break;
default:
debug("%s: invalid peripheral %d", __func__, peripheral);
return -1;
OpenPOWER on IntegriCloud