clk: meson: use hhi syscon if available
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 12 Feb 2018 14:58:46 +0000 (15:58 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 13 Mar 2018 09:04:04 +0000 (10:04 +0100)
commit4162dd5b3a17f2bf20abbaa7229028e7bc021523
tree806b81bd6f262caa2828750c45c0063ca18278bf
parent03a6519e9cd4d04f1ec2b0cb77d4ebbf7680c3a5
clk: meson: use hhi syscon if available

On gxbb and axg, try to get the hhi regmap from the parent DT node, which
should be the HHI system controller once the necessary changes have been
made in amlogic's DTs

Until then, if getting regmap through the system controller fails, the
clock controller will fall back to the old way, requesting memory region
directly and then registering the regmap itself.

This should allow a smooth transition to syscon

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/clk/meson/Kconfig
drivers/clk/meson/axg.c
drivers/clk/meson/gxbb.c