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:
committed by
Andre Przywara
parent
6827aba348
commit
d39088ad9c
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user