summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-11-08 16:12:47 +0530
committerTushar Behera <tushar.behera@linaro.org>2012-12-13 14:53:47 +0530
commit61a9e0c38c05f95a374d8a9ea8311939fee6fbc0 (patch)
tree98ef541accacd2e39dce5657133b995c9e7a76ff
parent7ae5afb457fedd0282417fbe25a0d0bccc0dbf16 (diff)
downloadlinux-topics-61a9e0c38c05f95a374d8a9ea8311939fee6fbc0.tar.gz
ARM: EXYNOS: Add fixed voltage regulators for Origen
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--arch/arm/mach-exynos/mach-origen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index 5aef1d9a8c6..e18aa407444 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -20,6 +20,7 @@
#include <linux/gpio_keys.h>
#include <linux/i2c.h>
#include <linux/regulator/machine.h>
+#include <linux/regulator/fixed.h>
#include <linux/mfd/max8997.h>
#include <linux/lcd.h>
#include <linux/rfkill-gpio.h>
@@ -68,6 +69,10 @@
S5PV210_UFCON_TXTRIG4 | \
S5PV210_UFCON_RXTRIG4)
+enum fixed_regulator_id {
+ FIXED_REG_5V = 0,
+};
+
static struct s3c2410_uartcfg origen_uartcfgs[] __initdata = {
[0] = {
.hwport = 0,
@@ -99,6 +104,10 @@ static struct s3c2410_uartcfg origen_uartcfgs[] __initdata = {
},
};
+static struct regulator_consumer_supply fixed_5v_regulators[] = {
+ REGULATOR_SUPPLY("hdmi-en", "exynos4-hdmi"),
+};
+
static struct regulator_consumer_supply __initdata ldo3_consumer[] = {
REGULATOR_SUPPLY("vddcore", "s5p-mipi-csis.0"), /* MIPI */
REGULATOR_SUPPLY("vdd", "exynos4-hdmi"), /* HDMI */
@@ -888,6 +897,9 @@ static void __init origen_power_init(void)
gpio_request(EXYNOS4_GPX0(4), "PMIC_IRQ");
s3c_gpio_cfgpin(EXYNOS4_GPX0(4), S3C_GPIO_SFN(0xf));
s3c_gpio_setpull(EXYNOS4_GPX0(4), S3C_GPIO_PULL_NONE);
+
+ regulator_register_always_on(FIXED_REG_5V, "Fixed 5V",
+ fixed_5v_regulators, ARRAY_SIZE(fixed_5v_regulators), 5000000);
}
static void __init origen_reserve(void)