clk: socfpga: stratix10: fix the parents of mpu_free_clk
Subsystems (2)
Dinh Nguyen
maintainerPATCH 1/2 clk: socfpga: stratix10: fix the parents of mpu_free_clk
Add a clock mux that is used as a parent for the mpu_free_clk.
Signed-off-by Dinh Nguyen <[email protected]>
--- drivers/clk/socfpga/clk-s10.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/clk/socfpga/clk-s10.c +6 -1
@@ -37,6 +37,11 @@ static const char * const s2f_usr0_mux[] = {"f2s_free_clk", "boot_clk"};static const char *const emac_mux[] = {"emaca_free_clk" ,"emacb_free_clk" };static const char *const noc_mux[] = {"noc_free_clk" ,"boot_clk" }; +static const char *const mpu_free_mux[] = {"main_mpu_base_clk" , +"peri_mpu_base_clk" , +"osc1" ,"cb_intosc_hs_div2_clk" , +"f2s_free_clk" }; +/* clocks in AO (always on) controller */ static const struct stratix10_pll_clock s10_pll_clks[] = { {STRATIX10_BOOT_CLK ,"boot_clk" , boot_mux,ARRAY_SIZE (boot_mux),0 ,
@@ -57,7 +62,7 @@ static const struct stratix10_perip_c_clock s10_main_perip_c_clks[] = { };static const struct stratix10_perip_cnt_clock s10_main_perip_cnt_clks[] = { - {STRATIX10_MPU_FREE_CLK ,"mpu_free_clk" ,NULL , cntr_mux,ARRAY_SIZE (cntr_mux), + {STRATIX10_MPU_FREE_CLK ,"mpu_free_clk" ,NULL , mpu_free_mux,ARRAY_SIZE (mpu_free_mux),0 ,0x48 ,0 ,0 ,0 }, {STRATIX10_NOC_FREE_CLK ,"noc_free_clk" ,NULL , noc_free_mux,ARRAY_SIZE (noc_free_mux),0 ,0x4C ,0 ,0 ,0 },
Signature · 1 line
2.7.4
Dinh Nguyen
maintainerPATCH 2/2 clk: socfpga: stratix10: fix the sdmmc_free_clk mux
The first parent of the sdmmc_free_clk should be the main_sdmmc_clk.
Signed-off-by Dinh Nguyen <[email protected]>
--- drivers/clk/socfpga/clk-s10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/socfpga/clk-s10.c +1 -1
@@ -28,7 +28,7 @@ static const char * const emaca_free_mux[] = {"peri_emaca_clk", "boot_clk"};static const char *const emacb_free_mux[] = {"peri_emacb_clk" ,"boot_clk" };static const char *const emac_ptp_free_mux[] = {"peri_emac_ptp_clk" ,"boot_clk" };static const char *const gpio_db_free_mux[] = {"peri_gpio_db_clk" ,"boot_clk" }; -static const char *const sdmmc_free_mux[] = {"peri_sdmmc_clk" ,"boot_clk" }; +static const char *const sdmmc_free_mux[] = {"main_sdmmc_clk" ,"boot_clk" };static const char *const s2f_usr1_free_mux[] = {"peri_s2f_usr1_clk" ,"boot_clk" };static const char *const psi_ref_free_mux[] = {"peri_psi_ref_clk" ,"boot_clk" };static const char *const mpu_mux[] = {"mpu_free_clk" ,"boot_clk" ,};
Signature · 1 line
2.7.4
Quoting Dinh Nguyen (2018-06-26 06:28:09)
Quoted 5 lines
Add a clock mux that is used as a parent for the
mpu_free_clk. =Signed-off-by Dinh Nguyen <[email protected]>---
Applied to clk-next
Re: [PATCH 2/2] clk: socfpga: stratix10: fix the sdmmc_free_clk mux
In reply to Dinh NguyenQuoting Dinh Nguyen (2018-06-26 06:28:10)
Quoted 5 lines
The first parent of the
sdmmc_free_clkshould be themain_sdmmc_clk. =Signed-off-by Dinh Nguyen <[email protected]>---
Applied to clk-next