diff options
| author | Tony Lindgren <tony@atomide.com> | 2013-10-03 00:39:40 -0400 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2013-10-10 18:30:47 -0400 |
| commit | dc7743aa3c49fabbc6dc9edbcf7df74d776ac32e (patch) | |
| tree | 1b1d6a7f26fd1d899c5ee043bc255fdb4e8f7ddb /include/linux/platform_data | |
| parent | 3e6cee1786a13cb2308609b5f8c020e1754e37cf (diff) | |
pinctrl: single: Add support for auxdata
For omaps, we still have dependencies to the legacy code
for handling the PRM (Power Reset Management) interrupts,
and also for reconfiguring the io wake-up chain after
changes.
Let's pass the PRM interrupt and the rearm functions via
auxdata. Then when at some point we have a proper PRM
driver, we can get the interrupt via device tree and
set up the rearm function as exported function in the
PRM driver.
By using auxdata we can remove a dependency to the
wake-up events for converting omap3 to be device
tree only.
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Prakash Manjunathappa <prakash.pm@ti.com>
Cc: Roger Quadros <rogerq@ti.com>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/pinctrl-single.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/platform_data/pinctrl-single.h b/include/linux/platform_data/pinctrl-single.h new file mode 100644 index 000000000000..72eacda9b360 --- /dev/null +++ b/include/linux/platform_data/pinctrl-single.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | /** | ||
| 2 | * irq: optional wake-up interrupt | ||
| 3 | * rearm: optional soc specific rearm function | ||
| 4 | * | ||
| 5 | * Note that the irq and rearm setup should come from device | ||
| 6 | * tree except for omap where there are still some dependencies | ||
| 7 | * to the legacy PRM code. | ||
| 8 | */ | ||
| 9 | struct pcs_pdata { | ||
| 10 | int irq; | ||
| 11 | void (*rearm)(void); | ||
| 12 | }; | ||
