diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-11 15:45:29 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-18 21:00:56 +0100 |
commit | 32e67eee670e1254ee5ab41e2f454680acb9c17c (patch) | |
tree | ce84eeeb8458c86460c026537c5de521f1eab7de /include/linux/irqdomain.h | |
parent | 8979cfef26a74f0df154d4e991bdafb4105af8f1 (diff) |
pinctrl: nomadik: Allow prcm_base to be extracted from Device Tree
The Nomadik Pinctrl driver requires access to some PRCMU registers
in order to run with full functionality. When Device Tree is
disabled the required PRCMU base address is passed in via platform
data, so in order for Device Tree booting to be as functional, we
need a similar mechanism to fetch it from Device Tree.
The new semantics goes like this: Parse the Device Tree and look
for the PRCMU node using a provided Phandle. Obtain the ioremaped
address from that node. If one was supplied via platform data
over-write it with anything found in Device Tree. Fail if either
the prcm_base can't be found if we're running on anything other
than an STN8815 ASIC.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/irqdomain.h')
0 files changed, 0 insertions, 0 deletions