* [PATCH] ARM: S3C64XX: Hook up GPIO initiated DVS on Cragganmore
@ 2011-07-25 20:52 Mark Brown
2011-08-12 9:19 ` Kukjin Kim
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2011-07-25 20:52 UTC (permalink / raw)
To: linux-arm-kernel
Allow us to ramp VDDARM quickly by using a GPIO to signal a voltage change
instead of doing a register write.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
arch/arm/mach-s3c64xx/mach-crag6410.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index d59afa1..2005d5f 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -376,6 +376,12 @@ static struct pca953x_platform_data crag6410_pca_data = {
.irq_base = 0,
};
+/* VDDARM is controlled by DVS1 connected to GPK(0) */
+static struct wm831x_buckv_pdata vddarm_pdata = {
+ .dvs_control_src = 1,
+ .dvs_gpio = S3C64XX_GPK(0),
+};
+
static struct regulator_consumer_supply vddarm_consumers[] __initdata = {
REGULATOR_SUPPLY("vddarm", NULL),
};
@@ -391,6 +397,7 @@ static struct regulator_init_data vddarm __initdata = {
.num_consumer_supplies = ARRAY_SIZE(vddarm_consumers),
.consumer_supplies = vddarm_consumers,
.supply_regulator = "WALLVDD",
+ .driver_data = &vddarm_pdata,
};
static struct regulator_init_data vddint __initdata = {
@@ -526,6 +533,8 @@ static struct wm831x_pdata crag_pmic_pdata __initdata = {
.backup = &banff_backup_pdata,
.gpio_defaults = {
+ /* GPIO5: DVS1_REQ - CMOS, DBVDD, active high */
+ [4] = WM831X_GPN_DIR | WM831X_GPN_POL | WM831X_GPN_ENA | 0x8,
/* GPIO11: Touchscreen data - CMOS, DBVDD, active high*/
[10] = WM831X_GPN_POL | WM831X_GPN_ENA | 0x6,
/* GPIO12: Touchscreen pen down - CMOS, DBVDD, active high*/
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: S3C64XX: Hook up GPIO initiated DVS on Cragganmore
2011-07-25 20:52 [PATCH] ARM: S3C64XX: Hook up GPIO initiated DVS on Cragganmore Mark Brown
@ 2011-08-12 9:19 ` Kukjin Kim
0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2011-08-12 9:19 UTC (permalink / raw)
To: linux-arm-kernel
Mark Brown wrote:
>
> Allow us to ramp VDDARM quickly by using a GPIO to signal a voltage change
> instead of doing a register write.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> arch/arm/mach-s3c64xx/mach-crag6410.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-
> s3c64xx/mach-crag6410.c
> index d59afa1..2005d5f 100644
> --- a/arch/arm/mach-s3c64xx/mach-crag6410.c
> +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
> @@ -376,6 +376,12 @@ static struct pca953x_platform_data crag6410_pca_data
> = {
> .irq_base = 0,
> };
>
> +/* VDDARM is controlled by DVS1 connected to GPK(0) */
> +static struct wm831x_buckv_pdata vddarm_pdata = {
> + .dvs_control_src = 1,
> + .dvs_gpio = S3C64XX_GPK(0),
> +};
> +
> static struct regulator_consumer_supply vddarm_consumers[] __initdata = {
> REGULATOR_SUPPLY("vddarm", NULL),
> };
> @@ -391,6 +397,7 @@ static struct regulator_init_data vddarm __initdata =
{
> .num_consumer_supplies = ARRAY_SIZE(vddarm_consumers),
> .consumer_supplies = vddarm_consumers,
> .supply_regulator = "WALLVDD",
> + .driver_data = &vddarm_pdata,
> };
>
> static struct regulator_init_data vddint __initdata = {
> @@ -526,6 +533,8 @@ static struct wm831x_pdata crag_pmic_pdata __initdata
=
> {
> .backup = &banff_backup_pdata,
>
> .gpio_defaults = {
> + /* GPIO5: DVS1_REQ - CMOS, DBVDD, active high */
> + [4] = WM831X_GPN_DIR | WM831X_GPN_POL |
> WM831X_GPN_ENA | 0x8,
> /* GPIO11: Touchscreen data - CMOS, DBVDD, active high*/
> [10] = WM831X_GPN_POL | WM831X_GPN_ENA | 0x6,
> /* GPIO12: Touchscreen pen down - CMOS, DBVDD, active
> high*/
> --
> 1.7.5.4
Applied, thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-12 9:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-25 20:52 [PATCH] ARM: S3C64XX: Hook up GPIO initiated DVS on Cragganmore Mark Brown
2011-08-12 9:19 ` Kukjin Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).