• Stephen Boyd's avatar
    clk: Add of_clk_hw_register() API for early clk drivers · 89a5ddcc
    Stephen Boyd authored
    In some circumstances drivers register clks early and don't have access
    to a struct device because the device model isn't initialized yet. Add
    an API to let drivers register clks associated with a struct device_node
    so that these drivers can participate in getting parent clks through DT.
    
    Cc: Miquel Raynal <miquel.raynal@bootlin.com>
    Cc: Jerome Brunet <jbrunet@baylibre.com>
    Cc: Russell King <linux@armlinux.org.uk>
    Cc: Michael Turquette <mturquette@baylibre.com>
    Cc: Jeffrey Hugo <jhugo@codeaurora.org>
    Cc: Chen-Yu Tsai <wens@csie.org>
    Cc: Rob Herring <robh@kernel.org>
    Tested-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
    Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
    89a5ddcc
clk.c 110 KB