Skip to contentSkip to conversation

ux500: add ab8500-regulators machine specific data

PATCH Superseded Sundar Iyer 2 participants 2 messages Sep 13, 2010 – Sep 14, 2010

Subsystems (3)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ux500: add ab8500-regulators machine specific data

From: Sundar R Iyer <[email protected]>

---
v4:
- make all structs as static
- remove NULL initialization

v3:
- Empty the consumer supply definitions themselves
- Change regulator permissions REGULATOR_CHANGE_VOLTAGE for fixed supplies

v2:
- Empty the regulator_consumer_supply since there is no actual device to supply

v1:
- Removed NULL device reference

 arch/arm/mach-ux500/Makefile                  |    1 +
 arch/arm/mach-ux500/board-mop500-regulators.c |  104 +++++++++++++++++++++++++
 2 files changed, 105 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-ux500/board-mop500-regulators.c
arch/arm/mach-ux500/Makefile +1 -0
index bb3e74e..46dbaf6 100644
@@ -10,3 +10,4 @@ obj-$(CONFIG_MACH_U5500)	+= board-u5500.o
 obj-$(CONFIG_SMP)		+= platsmp.o headsmp.o
 obj-$(CONFIG_HOTPLUG_CPU)	+= hotplug.o
 obj-$(CONFIG_LOCAL_TIMERS)	+= localtimer.o
+obj-$(CONFIG_REGULATOR_AB8500)	+= board-mop500-regulators.o
arch/arm/mach-ux500/board-mop500-regulators.c new file +104 -0

104 lines not on this page · raw message

Signature · 1 line
1.7.2.dirty
#1 lore raw

PATCH v4 1/1 ux500: add ab8500-regulators machine specific data

arch/arm/mach-ux500/board-mop500-regulators.c line 23

Quoted 6 lines · Sundar Iyer
arch/arm/mach-ux500/board-mop500-regulators.c new file +6 -0
+	.constraints = {
+		.name = "ab8500-vaux1",
+		.min_uV = AB8500_VAUXN_LDO_MIN_VOLTAGE,
+		.max_uV = AB8500_VAUXN_LDO_MAX_VOLTAGE,
+		.valid_ops_mask = REGULATOR_CHANGE_VOLTAGE|
+					REGULATOR_CHANGE_STATUS,

As I keep pointing out this looks a bit odd since there are no consumers set up on the regulator and you've got a large number of regulators with this same set of constraints. However, this won't cause a problem without any consumers so this should be OK.