]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: rockchip: allow specifying the regmap location for pin-routes
authorHeiko Stuebner <heiko.stuebner@bq.com>
Sun, 11 Nov 2018 21:00:46 +0000 (22:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Nov 2018 12:17:32 +0000 (13:17 +0100)
commit51ff47aa4c933f17839cd31d7f349841df0a6f38
tree62151a48e1b419e6ceed2b52ef37c7a98ce564d2
parent7ed07855773814337b9814f1c3e866df52ebce68
pinctrl: rockchip: allow specifying the regmap location for pin-routes

Right now we expect the pin-rounting settings to be in the same area
as the iomux setting itself. And while that seems to be true for all
newer Rockchip socs, back in the wild west days of old this wasn't true.

Nowadays pin settings in the GRF normally stay in the GRF and the same
is true for pins configured from PMU registers. But old socs like the
rk3188 really sprinkle pin settings somewhat randomly through both
for its bank0.

Therefore add the option to specify a location for the route setting,
so that we can map older socs correctly. We'll keep "same" as the
default, so that we only need to specify a location in the corner-cases
described above.

Signed-off-by: Heiko Stuebner <heiko.stuebner@bq.com>
Reviewed-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c