diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2011-04-21 08:32:08 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:14:51 +0200 |
commit | 67eb1c3a643927bf7570856edab470de991142a9 (patch) | |
tree | 00282e8b1472e075a9d29e5c92cea1c17611f5b9 /arch/arm/mach-ux500/board-mop500-regulators.c | |
parent | 6b69e35de331fdee04db0eec587d01164f8b2f72 (diff) |
ux500: Add Virtual regulator debug from 2.6.35
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/board-mop500-regulators.c')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-regulators.c | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-regulators.c b/arch/arm/mach-ux500/board-mop500-regulators.c index 60ab102f201..57da377022e 100644 --- a/arch/arm/mach-ux500/board-mop500-regulators.c +++ b/arch/arm/mach-ux500/board-mop500-regulators.c @@ -13,6 +13,11 @@ #include <linux/regulator/ab8500.h> #include "board-mop500-regulators.h" +#ifdef CONFIG_U8500_REGULATOR_DEBUG +#define REGULATOR_SUPPLY_DEBUG REGULATOR_SUPPLY +#else +#define REGULATOR_SUPPLY_DEBUG(_name, _dev_name) +#endif /* * TPS61052 regulator */ @@ -55,6 +60,7 @@ static struct regulator_consumer_supply ab8500_vaux1_consumers[] = { REGULATOR_SUPPLY("vdd", "3-004b"), /* L3G4200D Gyroscope device */ REGULATOR_SUPPLY("vdd", "l3g4200d"), + REGULATOR_SUPPLY_DEBUG("aux1", "reg-virt-consumer.0") }; static struct regulator_consumer_supply ab8500_vaux2_consumers[] = { @@ -62,18 +68,13 @@ static struct regulator_consumer_supply ab8500_vaux2_consumers[] = { REGULATOR_SUPPLY("vmmc", "sdi4"), /* AB8500 audio codec */ REGULATOR_SUPPLY("vcc-N2158", "ab8500-codec.0"), + REGULATOR_SUPPLY_DEBUG("aux2", "reg-virt-consumer.1") }; static struct regulator_consumer_supply ab8500_vaux3_consumers[] = { /* External MMC slot power */ REGULATOR_SUPPLY("vmmc", "sdi0"), -}; - -static struct regulator_consumer_supply ab8500_vtvout_consumers[] = { - /* TV-out DENC supply */ - REGULATOR_SUPPLY("vtvout", "ab8500-denc.0"), - /* Internal general-purpose ADC */ - REGULATOR_SUPPLY("vddadc", "ab8500-gpadc.0"), + REGULATOR_SUPPLY_DEBUG("aux3", "reg-virt-consumer.2") }; static struct regulator_consumer_supply ab8500_vintcore_consumers[] = { @@ -81,35 +82,49 @@ static struct regulator_consumer_supply ab8500_vintcore_consumers[] = { REGULATOR_SUPPLY("v-intcore", NULL), /* USB Transciever */ REGULATOR_SUPPLY("vddulpivio18", "ab8500-usb.0"), + REGULATOR_SUPPLY_DEBUG("intcore", "reg-virt-consumer.3") }; -static struct regulator_consumer_supply ab8500_vana_consumers[] = { - /* External displays, connector on board, 1v8 power supply */ - REGULATOR_SUPPLY("vsmps2", "mcde.0"), - /* for analogue part of displays */ - REGULATOR_SUPPLY("v-ana", "mcde"), - /* camera supply */ - REGULATOR_SUPPLY("v-ana", "mmio_camera"), +static struct regulator_consumer_supply ab8500_vtvout_consumers[] = { + /* TV-out DENC supply */ + REGULATOR_SUPPLY("vtvout", "ab8500-denc.0"), + /* Internal general-purpose ADC */ + REGULATOR_SUPPLY("vddadc", "ab8500-gpadc.0"), + REGULATOR_SUPPLY_DEBUG("tvout", "reg-virt-consumer.4") }; static struct regulator_consumer_supply ab8500_vaudio_consumers[] = { /* vaudio regulator, supply for ab8500-vaudio */ REGULATOR_SUPPLY("v-audio", NULL), + REGULATOR_SUPPLY_DEBUG("audio", "reg-virt-consumer.6") }; static struct regulator_consumer_supply ab8500_vamic1_consumers[] = { /* vamic1 regulator */ REGULATOR_SUPPLY("v-amic1", NULL), + REGULATOR_SUPPLY_DEBUG("anamic1", "reg-virt-consumer.7") }; static struct regulator_consumer_supply ab8500_vamic2_consumers[] = { /* vamic2 regulator */ REGULATOR_SUPPLY("v-amic2", NULL), + REGULATOR_SUPPLY_DEBUG("anamic2", "reg-virt-consumer.8") }; static struct regulator_consumer_supply ab8500_vdmic_consumers[] = { /* supply for v-dmic, VDMIC LDO */ REGULATOR_SUPPLY("v-dmic", NULL), + REGULATOR_SUPPLY_DEBUG("dmic", "reg-virt-consumer.9") +}; + +static struct regulator_consumer_supply ab8500_vana_consumers[] = { + /* External displays, connector on board, 1v8 power supply */ + REGULATOR_SUPPLY("vsmps2", "mcde.0"), + /* for analogue part of displays */ + REGULATOR_SUPPLY("v-ana", "mcde"), + /* camera supply */ + REGULATOR_SUPPLY("v-ana", "mmio_camera"), + REGULATOR_SUPPLY_DEBUG("ana", "reg-virt-consumer.10") }; /* ab8500 regulator register initialization */ |