Skip to content

Commit

Permalink
clk: at91: sam9x60: remove atmel,osc-bypass support
Browse files Browse the repository at this point in the history
[ Upstream commit 01324f9 ]

The sam9x60 doesn't have the MOSCXTBY bit to enable the crystal oscillator
bypass.

Fixes: 01e2113 ("clk: at91: add sam9x60 pmc driver")
Reported-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201202125816.168618-1-alexandre.belloni@bootlin.com
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Tested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
alexandrebelloni authored and gregkh committed Dec 30, 2020
1 parent e01dfcc commit ef56621
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/clk/at91/sam9x60.c
Expand Up @@ -162,7 +162,6 @@ static void __init sam9x60_pmc_setup(struct device_node *np)
struct regmap *regmap;
struct clk_hw *hw;
int i;
bool bypass;

i = of_property_match_string(np, "clock-names", "td_slck");
if (i < 0)
Expand Down Expand Up @@ -197,10 +196,7 @@ static void __init sam9x60_pmc_setup(struct device_node *np)
if (IS_ERR(hw))
goto err_free;

bypass = of_property_read_bool(np, "atmel,osc-bypass");

hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name,
bypass);
hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name, 0);
if (IS_ERR(hw))
goto err_free;

Expand Down

0 comments on commit ef56621

Please sign in to comment.