summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-tegra.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-11 19:45:29 +0400
committerLinus Walleij <linus.walleij@linaro.org>2013-01-19 00:00:56 +0400
commit32e67eee670e1254ee5ab41e2f454680acb9c17c (patch)
treece84eeeb8458c86460c026537c5de521f1eab7de /drivers/pinctrl/pinctrl-tegra.c
parent8979cfef26a74f0df154d4e991bdafb4105af8f1 (diff)
downloadlinux-32e67eee670e1254ee5ab41e2f454680acb9c17c.tar.xz
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/pinctrl-tegra.c')
0 files changed, 0 insertions, 0 deletions