HDMI driver requires hdmi-en regulator for enabling power to HDMI
connector. A fixed 5V line is used on Origen board for this purpose.

Signed-off-by: Tushar Behera <[email protected]>
---
 arch/arm/mach-exynos/mach-origen.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-exynos/mach-origen.c 
b/arch/arm/mach-exynos/mach-origen.c
index 4d290e8..12429f9 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -68,6 +68,7 @@
 
 enum fixed_regulator_id {
        FIXED_REG_ID_MMC = 0,
+       FIXED_REG_ID_5V,
 };
 
 static struct s3c2410_uartcfg origen_uartcfgs[] __initdata = {
@@ -101,6 +102,10 @@ static struct s3c2410_uartcfg origen_uartcfgs[] __initdata 
= {
        },
 };
 
+static struct regulator_consumer_supply __initdata fixed_5v_supply[] = {
+       REGULATOR_SUPPLY("hdmi-en", "exynos4-hdmi"), /* HDMI */
+};
+
 static struct regulator_consumer_supply __initdata ldo3_consumer[] = {
        REGULATOR_SUPPLY("vddcore", "s5p-mipi-csis.0"), /* MIPI */
        REGULATOR_SUPPLY("vdd", "exynos4-hdmi"), /* HDMI */
@@ -836,6 +841,9 @@ static void __init origen_machine_init(void)
        s5p_fimd0_set_platdata(&origen_lcd_pdata);
 #endif
 
+       regulator_register_always_on(FIXED_REG_ID_5V, "Fixed 5V",
+               fixed_5v_supply, ARRAY_SIZE(fixed_5v_supply), 5000000);
+
        platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices));
 
        pwm_add_table(origen_pwm_lookup, ARRAY_SIZE(origen_pwm_lookup));
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to