summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-u300/regulator.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-05-02 16:56:15 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-06-17 13:54:31 +0200
commit0004b017fe65eff60a9b403c52acc03521108c21 (patch)
tree23831006e3fc8c6621344065d8d9e5ad5ec22ab3 /arch/arm/mach-u300/regulator.c
parent22f718efe61edffe30f9dc97292e5bbe66123843 (diff)
downloadop-kernel-dev-0004b017fe65eff60a9b403c52acc03521108c21.zip
op-kernel-dev-0004b017fe65eff60a9b403c52acc03521108c21.tar.gz
ARM: u300: push down syscon registers
Get rid of the <mach/syscon.h> header as a prerequisite for multiplatform support. Do this by pushing the registers down to their respective drivers and deleting the unused remainder. Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-u300/regulator.c')
-rw-r--r--arch/arm/mach-u300/regulator.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-u300/regulator.c b/arch/arm/mach-u300/regulator.c
index bbda954..ab7d7a5 100644
--- a/arch/arm/mach-u300/regulator.c
+++ b/arch/arm/mach-u300/regulator.c
@@ -17,9 +17,12 @@
#include <linux/regulator/consumer.h>
/* Those are just for writing in syscon */
#include <linux/io.h>
-#include <asm/mach-types.h>
-#include <mach/hardware.h>
-#include <mach/syscon.h>
+#include <mach/u300-regs.h>
+
+/* Power Management Control 16bit (R/W) */
+#define U300_SYSCON_PMCR (0x50)
+#define U300_SYSCON_PMCR_DCON_ENABLE (0x0002)
+#define U300_SYSCON_PMCR_PWR_MGNT_ENABLE (0x0001)
/*
* Regulators that power the board and chip and which are
OpenPOWER on IntegriCloud