pinctrl: nomadik: Allow prcm_base to be extracted from Device Tree
authorLee Jones <lee.jones@linaro.org>
Fri, 11 Jan 2013 15:45:29 +0000 (15:45 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 18 Jan 2013 20:00:56 +0000 (21:00 +0100)
commit32e67eee670e1254ee5ab41e2f454680acb9c17c
treece84eeeb8458c86460c026537c5de521f1eab7de
parent8979cfef26a74f0df154d4e991bdafb4105af8f1
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>
drivers/pinctrl/pinctrl-nomadik.c
This page took 0.04037 seconds and 5 git commands to generate.