diff options
author | Samuel Holland <samuel@sholland.org> | 2022-05-09 00:29:33 -0500 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2022-07-18 09:37:49 +0100 |
commit | d39088ad9c97fa612c480475b18759a3931c41fd (patch) | |
tree | 33e296d56ebb595a843dc4e803aa6902453c9d09 /drivers/clk/sunxi/clk_r40.c | |
parent | 6827aba3482d214afea3b3bc4cb2f5bddb606929 (diff) | |
download | u-boot-d39088ad9c97fa612c480475b18759a3931c41fd.zip u-boot-d39088ad9c97fa612c480475b18759a3931c41fd.tar.gz u-boot-d39088ad9c97fa612c480475b18759a3931c41fd.tar.bz2 |
reset: sunxi: Get the reset count from the CCU descriptor
This allows all of the clock drivers to use a common bind function.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
[Andre: add F1C100s support]
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/clk/sunxi/clk_r40.c')
-rw-r--r-- | drivers/clk/sunxi/clk_r40.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c index 81e4a02..daab6ad 100644 --- a/drivers/clk/sunxi/clk_r40.c +++ b/drivers/clk/sunxi/clk_r40.c @@ -106,11 +106,6 @@ static const struct ccu_desc r40_ccu_desc = { .num_resets = ARRAY_SIZE(r40_resets), }; -static int r40_clk_bind(struct udevice *dev) -{ - return sunxi_reset_bind(dev, ARRAY_SIZE(r40_resets)); -} - static const struct udevice_id r40_clk_ids[] = { { .compatible = "allwinner,sun8i-r40-ccu", .data = (ulong)&r40_ccu_desc }, @@ -124,5 +119,5 @@ U_BOOT_DRIVER(clk_sun8i_r40) = { .priv_auto = sizeof(struct ccu_priv), .ops = &sunxi_clk_ops, .probe = sunxi_clk_probe, - .bind = r40_clk_bind, + .bind = sunxi_clk_bind, }; |