OSDN Git Service

bus: ti-sysc: Add support for early quirks based on register address
authorTony Lindgren <tony@atomide.com>
Thu, 21 Mar 2019 18:00:21 +0000 (11:00 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 3 Apr 2019 16:32:35 +0000 (09:32 -0700)
commit42b9c5c99bfc26eb2c82fa2a2440cda82d0258e3
tree386e29bd427e2898aa6b4b1972a501e355733595
parentb11c1ea1f636438d4e69381714c73abd9006cdcc
bus: ti-sysc: Add support for early quirks based on register address

At least mcpdm needs an optional external clock enabled to function and
this clock typically comes from the PMIC. We can detect mcpdm based on
the interconnect target module address and set a quirk flag early.

To do this, let's initialize the clocks a bit later and add a new
function for sysc_init_early_quirks(). Note that we cannot yet enable
the early quirks for mcpdm until the optional external clocks are
handled in the in the following patch.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c