diff mbox series

clk: at91: sam9x60: remove the parsing of atmel, main-osc-bypass

Message ID 1606909173-22302-1-git-send-email-claudiu.beznea@microchip.com
State Accepted
Commit 8454cf0d236639f36f465b5b5cf4ef8b572698b6
Delegated to: Eugen Hristev
Headers show
Series clk: at91: sam9x60: remove the parsing of atmel, main-osc-bypass | expand

Commit Message

Claudiu Beznea Dec. 2, 2020, 11:39 a.m. UTC
Remove the parsing of atmel,main-osc-bypass DT property as the SAM9X60
have no support for crystal oscillator bypass. Setting this bit might
affect the device functionality.

Fixes: a64862284f65 ("clk: at91: sam9x60: add support compatible with CCF")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/clk/at91/sam9x60.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Eugen Hristev Dec. 7, 2020, 7:38 a.m. UTC | #1
On 02.12.2020 13:39, Claudiu Beznea wrote:
> Remove the parsing of atmel,main-osc-bypass DT property as the SAM9X60
> have no support for crystal oscillator bypass. Setting this bit might
> affect the device functionality.
> 
> Fixes: a64862284f65 ("clk: at91: sam9x60: add support compatible with CCF")
> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
> ---

Applied to u-boot-atmel/master, thanks !
diff mbox series

Patch

diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c
index c3235f565d7e..9e9a643d62d7 100644
--- a/drivers/clk/at91/sam9x60.c
+++ b/drivers/clk/at91/sam9x60.c
@@ -382,7 +382,6 @@  static int sam9x60_clk_probe(struct udevice *dev)
 	const char *p[10];
 	unsigned int cm[10], m[10], *tmpclkmux, *tmpmux;
 	struct clk clk, *c;
-	bool main_osc_bypass;
 	int ret, muxallocindex = 0, clkmuxallocindex = 0, i;
 	static const struct clk_range r = { 0, 0 };
 
@@ -440,8 +439,6 @@  static int sam9x60_clk_probe(struct udevice *dev)
 	if (ret)
 		goto fail;
 
-	main_osc_bypass = dev_read_bool(dev, "atmel,main-osc-bypass");
-
 	/* Register main rc oscillator. */
 	c = at91_clk_main_rc(base, clk_names[ID_MAIN_RC_OSC],
 			     clk_names[ID_MAIN_RC]);
@@ -453,7 +450,7 @@  static int sam9x60_clk_probe(struct udevice *dev)
 
 	/* Register main oscillator. */
 	c = at91_clk_main_osc(base, clk_names[ID_MAIN_OSC],
-			      clk_names[ID_MAIN_XTAL], main_osc_bypass);
+			      clk_names[ID_MAIN_XTAL], false);
 	if (IS_ERR(c)) {
 		ret = PTR_ERR(c);
 		goto fail;