diff options
| author | Davide Ciminaghi <ciminaghi@gnudd.com> | 2012-11-09 09:19:54 -0500 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-20 06:21:14 -0500 |
| commit | 29f5b5a326b44c55e81b15308255ba695fecb323 (patch) | |
| tree | d99b8093108c626e15ee7e6b7a2241bb5615fa50 /include/linux/mfd | |
| parent | d94e25535a7979a6c81922496f475a5dd0e006b4 (diff) | |
mfd: sta2x11-mfd: Add sta2x11_mfd_get_regs_data() function
A couple of predefined clocks (mux and gated) need to be
initialized with the virtual address of the clock's controlling
register and the address of a spinlock used to protect against
races.
This function exports such data for all the mfd cells.
Signed-off-by: Davide Ciminaghi <ciminaghi@gnudd.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/sta2x11-mfd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/sta2x11-mfd.h b/include/linux/mfd/sta2x11-mfd.h index 83344304f2cf..e813e5efbe4e 100644 --- a/include/linux/mfd/sta2x11-mfd.h +++ b/include/linux/mfd/sta2x11-mfd.h | |||
| @@ -474,4 +474,9 @@ u32 sta2x11_apb_soc_regs_mask(struct pci_dev *pdev, u32 reg, u32 mask, u32 val) | |||
| 474 | #define COMPENSATION_REG3 0x3cc | 474 | #define COMPENSATION_REG3 0x3cc |
| 475 | #define TEST_CTL_REG 0x3d0 | 475 | #define TEST_CTL_REG 0x3d0 |
| 476 | 476 | ||
| 477 | extern int sta2x11_mfd_get_regs_data(struct platform_device *pdev, | ||
| 478 | enum sta2x11_mfd_plat_dev index, | ||
| 479 | void __iomem **regs, | ||
| 480 | spinlock_t **lock); | ||
| 481 | |||
| 477 | #endif /* __STA2X11_MFD_H */ | 482 | #endif /* __STA2X11_MFD_H */ |
