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>
This commit is contained in:
Samuel Holland
2022-05-09 00:29:33 -05:00
committed by Andre Przywara
parent 6827aba348
commit d39088ad9c
18 changed files with 29 additions and 101 deletions

View File

@@ -85,6 +85,12 @@ struct ccu_priv {
const struct ccu_desc *desc;
};
/**
* sunxi_clk_bind - common sunxi clock bind
* @dev: clock device
*/
int sunxi_clk_bind(struct udevice *dev);
/**
* sunxi_clk_probe - common sunxi clock probe
* @dev: clock device
@@ -97,9 +103,8 @@ extern struct clk_ops sunxi_clk_ops;
* sunxi_reset_bind() - reset binding
*
* @dev: reset device
* @count: reset count
* Return: 0 success, or error value
*/
int sunxi_reset_bind(struct udevice *dev, ulong count);
int sunxi_reset_bind(struct udevice *dev);
#endif /* _CLK_SUNXI_H */