ARM: SMDK6410: Update regulator names for debugfs compatiblity
Subsystems (3)
PATCH 1/3 ARM: SMDK6410: Update regulator names for debugfs compatiblity
The debugfs support added to the regulator API (which has been merged in during this merge window) creates directories for regulators named after the display names for the regulators so replace / as a separator for multiple supplies with + in the SMDK6410 machine.
Signed-off-by Mark Brown <[email protected]>
--- arch/arm/mach-s3c64xx/mach-smdk6410.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-s3c64xx/mach-smdk6410.c +6 -6
@@ -352,7 +352,7 @@ static struct regulator_init_data smdk6410_vddpll = {/* VDD_UH_MMC, LDO5 on J5 */ static struct regulator_init_data smdk6410_vdduh_mmc = { .constraints = { - .name ="PVDD_UH/PVDD_MMC" , + .name ="PVDD_UH+PVDD_MMC" , .always_on =1 , }, };
@@ -418,7 +418,7 @@ static struct regulator_init_data smdk6410_vddaudio = {/* S3C64xx internal logic & PLL */ static struct regulator_init_data wm8350_dcdc1_data = { .constraints = { - .name ="PVDD_INT/PVDD_PLL" , + .name ="PVDD_INT+PVDD_PLL" , .min_uV =1200000 , .max_uV =1200000 , .always_on =1 ,
@@ -453,7 +453,7 @@ static struct regulator_consumer_supply wm8350_dcdc4_consumers[] = {static struct regulator_init_data wm8350_dcdc4_data = { .constraints = { - .name ="PVDD_HI/PVDD_EXT/PVDD_SYS/PVCCM2MTV" , + .name ="PVDD_HI+PVDD_EXT+PVDD_SYS+PVCCM2MTV" , .min_uV =3000000 , .max_uV =3000000 , .always_on =1 ,
@@ -465,7 +465,7 @@ static struct regulator_init_data wm8350_dcdc4_data = {/* OTGi/1190-EV1 HPVDD & AVDD */ static struct regulator_init_data wm8350_ldo4_data = { .constraints = { - .name ="PVDD_OTGI/HPVDD/AVDD" , + .name ="PVDD_OTGI+HPVDD+AVDD" , .min_uV =1200000 , .max_uV =1200000 , .apply_uV =1 ,
@@ -556,7 +556,7 @@ static struct wm831x_backlight_pdata wm1192_backlight_pdata = {static struct regulator_init_data wm1192_dcdc3 = { .constraints = { - .name ="PVDD_MEM/PVDD_GPS" , + .name ="PVDD_MEM+PVDD_GPS" , .always_on =1 , }, };
@@ -567,7 +567,7 @@ static struct regulator_consumer_supply wm1192_ldo1_consumers[] = {static struct regulator_init_data wm1192_ldo1 = { .constraints = { - .name ="PVDD_LCD/PVDD_EXT" , + .name ="PVDD_LCD+PVDD_EXT" , .always_on =1 , }, .consumer_supplies = wm1192_ldo1_consumers,
Signature · 1 line
1.7.2.3
PATCH 2/3 ARM: SMDK6410: Fix build with WM1190 disabled and WM1192 enabled
Avoid relying on implicit inclusion of machine.h
Signed-off-by Mark Brown <[email protected]>
--- arch/arm/mach-s3c64xx/mach-smdk6410.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-s3c64xx/mach-smdk6410.c +1 -0
@@ -28,6 +28,7 @@#include <linux/delay.h> #include <linux/smsc911x.h> #include <linux/regulator/fixed.h> +#include <linux/regulator/machine.h> #ifdef CONFIG_SMDK6410_WM1190_EV1 #include <linux/mfd/wm8350/core.h>
Signature · 1 line
1.7.2.3
PATCH 3/3 ARM: SMDK6410: Mark regulator setup data __initdata
In reply to Mark BrownNow that the regulator API copies out the constraints we can discard the static data once we're done booting, meaning we don't need to carry copies of data for regulators not in the system.
Signed-off-by Mark Brown <[email protected]>
--- arch/arm/mach-s3c64xx/mach-smdk6410.c | 40 ++++++++++++++++---------------- 1 files changed, 20 insertions(+), 20 deletions(-)
arch/arm/mach-s3c64xx/mach-smdk6410.c +20 -20
@@ -224,7 +224,7 @@ static struct regulator_consumer_supply smdk6410_b_pwr_5v_consumers[] = { }, }; -static struct regulator_init_data smdk6410_b_pwr_5v_data = { +static struct regulator_init_data smdk6410_b_pwr_5v_data__initdata = { .constraints = { .always_on =1 , },
@@ -304,14 +304,14 @@ static struct platform_device *smdk6410_devices[] __initdata = { #ifdef CONFIG_REGULATOR /* ARM core */ -static struct regulator_consumer_supply smdk6410_vddarm_consumers[] = { +static struct regulator_consumer_supply smdk6410_vddarm_consumers[] __initdata = { { .supply = "vddarm", } }; /* VDDARM, BUCK1 on J5 */ -static struct regulator_init_data smdk6410_vddarm = { +static struct regulator_init_data smdk6410_vddarm __initdata = { .constraints = { .name = "PVDD_ARM", .min_uV = 1000000,
@@ -324,7 +324,7 @@ static struct regulator_init_data smdk6410_vddarm = { };/* VDD_INT, BUCK2 on J5 */ -static struct regulator_init_data smdk6410_vddint = { +static struct regulator_init_data smdk6410_vddint__initdata = { .constraints = { .name ="PVDD_INT" , .min_uV =1000000 ,
@@ -335,7 +335,7 @@ static struct regulator_init_data smdk6410_vddint = { };/* VDD_HI, LDO3 on J5 */ -static struct regulator_init_data smdk6410_vddhi = { +static struct regulator_init_data smdk6410_vddhi__initdata = { .constraints = { .name ="PVDD_HI" , .always_on =1 ,
@@ -343,7 +343,7 @@ static struct regulator_init_data smdk6410_vddhi = { };/* VDD_PLL, LDO2 on J5 */ -static struct regulator_init_data smdk6410_vddpll = { +static struct regulator_init_data smdk6410_vddpll__initdata = { .constraints = { .name ="PVDD_PLL" , .always_on =1 ,
@@ -351,7 +351,7 @@ static struct regulator_init_data smdk6410_vddpll = { };/* VDD_UH_MMC, LDO5 on J5 */ -static struct regulator_init_data smdk6410_vdduh_mmc = { +static struct regulator_init_data smdk6410_vdduh_mmc__initdata = { .constraints = { .name ="PVDD_UH+PVDD_MMC" , .always_on =1 ,
@@ -359,7 +359,7 @@ static struct regulator_init_data smdk6410_vdduh_mmc = { };/* VCCM3BT, LDO8 on J5 */ -static struct regulator_init_data smdk6410_vccmc3bt = { +static struct regulator_init_data smdk6410_vccmc3bt__initdata = { .constraints = { .name ="PVCCM3BT" , .always_on =1 ,
@@ -367,7 +367,7 @@ static struct regulator_init_data smdk6410_vccmc3bt = { };/* VCCM2MTV, LDO11 on J5 */ -static struct regulator_init_data smdk6410_vccm2mtv = { +static struct regulator_init_data smdk6410_vccm2mtv__initdata = { .constraints = { .name ="PVCCM2MTV" , .always_on =1 ,
@@ -375,7 +375,7 @@ static struct regulator_init_data smdk6410_vccm2mtv = { };/* VDD_LCD, LDO12 on J5 */ -static struct regulator_init_data smdk6410_vddlcd = { +static struct regulator_init_data smdk6410_vddlcd__initdata = { .constraints = { .name ="PVDD_LCD" , .always_on =1 ,
@@ -383,7 +383,7 @@ static struct regulator_init_data smdk6410_vddlcd = { };/* VDD_OTGI, LDO9 on J5 */ -static struct regulator_init_data smdk6410_vddotgi = { +static struct regulator_init_data smdk6410_vddotgi__initdata = { .constraints = { .name ="PVDD_OTGI" , .always_on =1 ,
@@ -391,7 +391,7 @@ static struct regulator_init_data smdk6410_vddotgi = { };/* VDD_OTG, LDO14 on J5 */ -static struct regulator_init_data smdk6410_vddotg = { +static struct regulator_init_data smdk6410_vddotg__initdata = { .constraints = { .name ="PVDD_OTG" , .always_on =1 ,
@@ -399,7 +399,7 @@ static struct regulator_init_data smdk6410_vddotg = { };/* VDD_ALIVE, LDO15 on J5 */ -static struct regulator_init_data smdk6410_vddalive = { +static struct regulator_init_data smdk6410_vddalive__initdata = { .constraints = { .name ="PVDD_ALIVE" , .always_on =1 ,
@@ -407,7 +407,7 @@ static struct regulator_init_data smdk6410_vddalive = { };/* VDD_AUDIO, VLDO_AUDIO on J5 */ -static struct regulator_init_data smdk6410_vddaudio = { +static struct regulator_init_data smdk6410_vddaudio__initdata = { .constraints = { .name ="PVDD_AUDIO" , .always_on =1 ,
@@ -417,7 +417,7 @@ static struct regulator_init_data smdk6410_vddaudio = { #ifdef CONFIG_SMDK6410_WM1190_EV1 /* S3C64xx internal logic & PLL */ -static struct regulator_init_data wm8350_dcdc1_data = { +static struct regulator_init_data wm8350_dcdc1_data __initdata = { .constraints = { .name = "PVDD_INT+PVDD_PLL", .min_uV = 1200000,
@@ -428,7 +428,7 @@ static struct regulator_init_data wm8350_dcdc1_data = { };/* Memory */ -static struct regulator_init_data wm8350_dcdc3_data = { +static struct regulator_init_data wm8350_dcdc3_data__initdata = { .constraints = { .name ="PVDD_MEM" , .min_uV =1800000 ,
@@ -444,7 +444,7 @@ static struct regulator_init_data wm8350_dcdc3_data = { };/* USB, EXT, PCM, ADC/DAC, USB, MMC */ -static struct regulator_consumer_supply wm8350_dcdc4_consumers[] = { +static struct regulator_consumer_supply wm8350_dcdc4_consumers[]__initdata = { {/* WM8580 */ .supply ="DVDD" ,
@@ -452,7 +452,7 @@ static struct regulator_consumer_supply wm8350_dcdc4_consumers[] = { }, }; -static struct regulator_init_data wm8350_dcdc4_data = { +static struct regulator_init_data wm8350_dcdc4_data__initdata = { .constraints = { .name ="PVDD_HI+PVDD_EXT+PVDD_SYS+PVCCM2MTV" , .min_uV =3000000 ,
@@ -464,7 +464,7 @@ static struct regulator_init_data wm8350_dcdc4_data = { };/* OTGi/1190-EV1 HPVDD & AVDD */ -static struct regulator_init_data wm8350_ldo4_data = { +static struct regulator_init_data wm8350_ldo4_data__initdata = { .constraints = { .name ="PVDD_OTGI+HPVDD+AVDD" , .min_uV =1200000 ,
@@ -477,7 +477,7 @@ static struct regulator_init_data wm8350_ldo4_data = {static struct {int regulator;struct regulator_init_data *initdata; -} wm1190_regulators[] = { +} wm1190_regulators[]__initdata = { {WM8350_DCDC_1 , &wm8350_dcdc1_data }, {WM8350_DCDC_3 , &wm8350_dcdc3_data }, {WM8350_DCDC_4 , &wm8350_dcdc4_data },
Signature · 1 line
1.7.2.3