mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
rtc: pcf8563: make the 32k clock output to be always enabled
The WiFi needs a always-on 32.768k clock on rv1126-battery-v10 board. The original driver disables the clock whilst registering the *rtc_clk*, we have to avoid *disable* to make sure WiFi is available. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Change-Id: Ia612b17a3d9fdef2a3d37ca2862c46b81db9133d
This commit is contained in:
@@ -513,7 +513,7 @@ static const struct clk_ops pcf8563_clkout_ops = {
|
||||
.set_rate = pcf8563_clkout_set_rate,
|
||||
};
|
||||
|
||||
static struct clk *pcf8563_clkout_register_clk(struct pcf8563 *pcf8563)
|
||||
static __maybe_unused struct clk *pcf8563_clkout_register_clk(struct pcf8563 *pcf8563)
|
||||
{
|
||||
struct i2c_client *client = pcf8563->client;
|
||||
struct device_node *node = client->dev.of_node;
|
||||
@@ -614,7 +614,7 @@ static int pcf8563_probe(struct i2c_client *client,
|
||||
|
||||
}
|
||||
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
#if defined(CONFIG_COMMON_CLK) && !defined(CONFIG_ROCKCHIP_THUNDER_BOOT)
|
||||
/* register clk in common clk framework */
|
||||
pcf8563_clkout_register_clk(pcf8563);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user