aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/hardware
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-26 08:25:47 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 10:34:50 -0500
commitae99ddbc976572194e8a68cb9ca1e27805ce30c7 (patch)
tree1c9beadf736c4038625a77cefd6f030cfba130ce /arch/arm/include/asm/hardware
parent6bd72f0562142ddae26a052cfc4e578ad6953d06 (diff)
ARM: sa1111: add platform enable/disable functions
Add platform hooks to be called when individual sa1111 devices are enabled and disabled. This will allow us to move some platform specifics out of the individual drivers. Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r--arch/arm/include/asm/hardware/sa1111.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h
index 29e320f6f85f..d54d781021c8 100644
--- a/arch/arm/include/asm/hardware/sa1111.h
+++ b/arch/arm/include/asm/hardware/sa1111.h
@@ -556,9 +556,10 @@ struct sa1111_driver {
556#define SA1111_DRIVER_NAME(_sadev) ((_sadev)->dev.driver->name) 556#define SA1111_DRIVER_NAME(_sadev) ((_sadev)->dev.driver->name)
557 557
558/* 558/*
559 * These frob the SKPCR register. 559 * These frob the SKPCR register, and call platform specific
560 * enable/disable functions.
560 */ 561 */
561void sa1111_enable_device(struct sa1111_dev *); 562int sa1111_enable_device(struct sa1111_dev *);
562void sa1111_disable_device(struct sa1111_dev *); 563void sa1111_disable_device(struct sa1111_dev *);
563 564
564unsigned int sa1111_pll_clock(struct sa1111_dev *); 565unsigned int sa1111_pll_clock(struct sa1111_dev *);
@@ -581,6 +582,9 @@ void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned i
581 582
582struct sa1111_platform_data { 583struct sa1111_platform_data {
583 int irq_base; /* base for cascaded on-chip IRQs */ 584 int irq_base; /* base for cascaded on-chip IRQs */
585 void *data;
586 int (*enable)(void *, unsigned);
587 void (*disable)(void *, unsigned);
584}; 588};
585 589
586#endif /* _ASM_ARCH_SA1111 */ 590#endif /* _ASM_ARCH_SA1111 */