summaryrefslogtreecommitdiff
path: root/arch/arm/mach-integrator/include/mach/cm.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-10-10 12:11:18 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2013-10-16 12:09:31 (GMT)
commitfb61f8622369aad275a4e3487b8aeec7a571fdde (patch)
tree0bd297dbd8b79f6918326782a40a86a55c5c3322 /arch/arm/mach-integrator/include/mach/cm.h
parentd0e639c9e06d44e713170031fe05fb60ebe680af (diff)
downloadlinux-fsl-qoriq-fb61f8622369aad275a4e3487b8aeec7a571fdde.tar.xz
ARM: integrator: get the CM control register by proxy
The CM_CTRL register was accessed directly from the LED driver, which does not work now that we get the base for the register from the device tree. Add an accessor function to do this and make the LED driver compile again. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-integrator/include/mach/cm.h')
-rw-r--r--arch/arm/mach-integrator/include/mach/cm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-integrator/include/mach/cm.h b/arch/arm/mach-integrator/include/mach/cm.h
index 202e6a5..ae6085f 100644
--- a/arch/arm/mach-integrator/include/mach/cm.h
+++ b/arch/arm/mach-integrator/include/mach/cm.h
@@ -1,6 +1,7 @@
/*
- * update the core module control register.
+ * access the core module control register.
*/
+u32 cm_get(void);
void cm_control(u32, u32);
#define CM_CTRL __io_address(INTEGRATOR_HDR_CTRL)