You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
rtc: hym8563: Add CLK_IS_CRITICAL for output clock
The 32k clock is used for hp timer on RK3588, and it should be always on. Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ie28a16308521fadc33ae91c25215f30bd2265f33
This commit is contained in:
@@ -412,16 +412,10 @@ static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563)
|
||||
struct device_node *node = client->dev.of_node;
|
||||
struct clk *clk;
|
||||
struct clk_init_data init;
|
||||
int ret;
|
||||
|
||||
ret = i2c_smbus_write_byte_data(client, HYM8563_CLKOUT,
|
||||
0);
|
||||
if (ret < 0)
|
||||
return ERR_PTR(ret);
|
||||
|
||||
init.name = "hym8563-clkout";
|
||||
init.ops = &hym8563_clkout_ops;
|
||||
init.flags = 0;
|
||||
init.flags = CLK_IS_CRITICAL;
|
||||
init.parent_names = NULL;
|
||||
init.num_parents = 0;
|
||||
hym8563->clkout_hw.init = &init;
|
||||
|
||||
Reference in New Issue
Block a user