clk: at91: sam9x60: remove atmel,osc-bypass support
Subsystems (2)
Alexandre Belloni
maintainerPATCH 1/1 clk: at91: sam9x60: remove atmel,osc-bypass support
The sam9x60 doesn't have the MOSCXTBY bit to enable the crystal oscillator bypass.
Fixes 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
Reported-by Claudiu Beznea <[email protected]>
Signed-off-by Alexandre Belloni <[email protected]>
--- drivers/clk/at91/sam9x60.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/clk/at91/sam9x60.c +1 -5
@@ -174,7 +174,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 )
@@ -209,10 +208,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; main_osc_hw = hw;
Signature · 1 line
2.28.0
Quoted 8 lines · Alexandre Belloni
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
The sam9x60 doesn't have the MOSCXTBY bit to enable the crystal oscillator bypass.
Fixes 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")Reported-by Claudiu Beznea <[email protected]>Signed-off-by Alexandre Belloni <[email protected]>
Reviewed-by Claudiu Beznea <[email protected]>
Tested-by Claudiu Beznea <[email protected]>
Quoted 29 lines
--- drivers/clk/at91/sam9x60.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)drivers/clk/at91/sam9x60.c +1
-6@@ -174,7 +174,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 )@@ -209,10 +208,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; main_osc_hw = hw; --
Quoted 2 lines
2.28.0
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoting Alexandre Belloni (2020-12-02 04:58:15)
Quoted 7 lines
The sam9x60 doesn't have the MOSCXTBY bit to enable the crystal oscillator bypass.
Fixes 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")Reported-by Claudiu Beznea <[email protected]>Signed-off-by Alexandre Belloni <[email protected]>---
Applied to clk-next