summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/core.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-11 15:45:29 +0000
committerLinus Walleij <linus.walleij@linaro.org>2013-01-18 21:00:56 +0100
commit32e67eee670e1254ee5ab41e2f454680acb9c17c (patch)
treece84eeeb8458c86460c026537c5de521f1eab7de /drivers/pinctrl/core.c
parent8979cfef26a74f0df154d4e991bdafb4105af8f1 (diff)
downloadlinux-32e67eee670e1254ee5ab41e2f454680acb9c17c.tar.gz
linux-32e67eee670e1254ee5ab41e2f454680acb9c17c.tar.bz2
linux-32e67eee670e1254ee5ab41e2f454680acb9c17c.zip
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 'drivers/pinctrl/core.c')
0 files changed, 0 insertions, 0 deletions