Skip to contentSkip to conversation

mach-ux500: voltage domain regulators for DB8500

PATCH New Linus Walleij 2 participants 2 messages Apr 4, 2011 – Apr 5, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mach-ux500: voltage domain regulators for DB8500

From: Bengt Jonsson <[email protected]>

The DB8500 has ePOD:s (electronic power domains) which are possible to switch on/off to deactivate silicon blocks on the DB8500 SoC by cutting their power without retention. We model these as simple regulators with one bit on/off settings.

---
 arch/arm/mach-ux500/Kconfig            |    1 +
 arch/arm/mach-ux500/Makefile           |    3 +-
 arch/arm/mach-ux500/cpu-db8500.c       |  188 +++++++++++
 arch/arm/mach-ux500/regulator-db8500.c |  562 ++++++++++++++++++++++++++++++++
 arch/arm/mach-ux500/regulator-db8500.h |   45 +++
 5 files changed, 798 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/mach-ux500/regulator-db8500.c
 create mode 100644 arch/arm/mach-ux500/regulator-db8500.h
arch/arm/mach-ux500/Kconfig +1 -0
index 76c9275..c6b2375 100644
@@ -15,6 +15,7 @@ config UX500_SOC_DB5500
 
 config UX500_SOC_DB8500
 	bool "DB8500"
+	select REGULATOR
 
 endmenu
 
arch/arm/mach-ux500/Makefile +2 -1
index adab0c3..606baed 100644
@@ -7,7 +7,8 @@ obj-y				:= clock.o cpu.o devices.o devices-common.o \
 obj-y				+= pm/
 obj-$(CONFIG_UX500_SOC_DB5500)	+= cpu-db5500.o dma-db5500.o prcmu-db5500.o
 obj-$(CONFIG_UX500_SOC_DB8500)	+= cpu-db8500.o devices-db8500.o \
-				   prcmu-db8500.o clock-db8500.o
+				   prcmu-db8500.o clock-db8500.o \
+				   regulator-db8500.o
 obj-$(CONFIG_MACH_U8500)	+= board-mop500.o board-mop500-sdi.o \
 				board-mop500-regulators.o \
 				board-mop500-uib.o board-mop500-stuib.o \
arch/arm/mach-ux500/cpu-db8500.c +188 -0

209 lines not on this page · raw message

arch/arm/mach-ux500/regulator-db8500.c new file +562 -0

562 lines not on this page · raw message

arch/arm/mach-ux500/regulator-db8500.h new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/2 mach-ux500: voltage domain regulators for DB8500

Quoted 2 lines · Linus Walleij
 arch/arm/mach-ux500/regulator-db8500.c |  562 ++++++++++++++++++++++++++++++++
 arch/arm/mach-ux500/regulator-db8500.h |   45 +++

though I would prefer to see the regulator driver in drivers/regulator (though splitting the underlying integration with cpuidle isn't a problem) as this makes it easier to find all regulator drivers.