Skip to content

Commit 60e7209

Browse files
committed
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fixes from Stephen Boyd: "Another batch of clk driver fixes: - Make sure DRAM and ChipID region doesn't get disabled on Exynos - Fix a SATA failure on Tegra - Fix the emac_ptp clk divider on stratix10" * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: socfpga: stratix10: fix the divider for the emac_ptp_free_clk clk: samsung: exynos4: mark 'chipid' clock as CLK_IGNORE_UNUSED clk: tegra: Fix missing prototype for tegra210_clk_register_emc() clk: tegra: Always program PLL_E when enabled clk: tegra: Capitalization fixes clk: samsung: Keep top BPLL mux on Exynos542x enabled
2 parents 02de58b + b02cf0c commit 60e7209

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

drivers/clk/samsung/clk-exynos4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ static const struct samsung_gate_clock exynos4210_gate_clks[] __initconst = {
927927
GATE(CLK_PCIE, "pcie", "aclk133", GATE_IP_FSYS, 14, 0, 0),
928928
GATE(CLK_SMMU_PCIE, "smmu_pcie", "aclk133", GATE_IP_FSYS, 18, 0, 0),
929929
GATE(CLK_MODEMIF, "modemif", "aclk100", GATE_IP_PERIL, 28, 0, 0),
930-
GATE(CLK_CHIPID, "chipid", "aclk100", E4210_GATE_IP_PERIR, 0, 0, 0),
930+
GATE(CLK_CHIPID, "chipid", "aclk100", E4210_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0),
931931
GATE(CLK_SYSREG, "sysreg", "aclk100", E4210_GATE_IP_PERIR, 0,
932932
CLK_IGNORE_UNUSED, 0),
933933
GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk100", E4210_GATE_IP_PERIR, 11, 0,
@@ -969,7 +969,7 @@ static const struct samsung_gate_clock exynos4x12_gate_clks[] __initconst = {
969969
0),
970970
GATE(CLK_TSADC, "tsadc", "aclk133", E4X12_GATE_BUS_FSYS1, 16, 0, 0),
971971
GATE(CLK_MIPI_HSI, "mipi_hsi", "aclk133", GATE_IP_FSYS, 10, 0, 0),
972-
GATE(CLK_CHIPID, "chipid", "aclk100", E4X12_GATE_IP_PERIR, 0, 0, 0),
972+
GATE(CLK_CHIPID, "chipid", "aclk100", E4X12_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0),
973973
GATE(CLK_SYSREG, "sysreg", "aclk100", E4X12_GATE_IP_PERIR, 1,
974974
CLK_IGNORE_UNUSED, 0),
975975
GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk100", E4X12_GATE_IP_PERIR, 11, 0,

drivers/clk/samsung/clk-exynos5420.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,11 @@ static void __init exynos5x_clk_init(struct device_node *np,
16551655
* main G3D clock enablement status.
16561656
*/
16571657
clk_prepare_enable(__clk_lookup("mout_sw_aclk_g3d"));
1658+
/*
1659+
* Keep top BPLL mux enabled permanently to ensure that DRAM operates
1660+
* properly.
1661+
*/
1662+
clk_prepare_enable(__clk_lookup("mout_bpll"));
16581663

16591664
samsung_clk_of_add_provider(np, ctx);
16601665
}

drivers/clk/socfpga/clk-s10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static const struct stratix10_perip_cnt_clock s10_main_perip_cnt_clks[] = {
209209
{ STRATIX10_EMAC_B_FREE_CLK, "emacb_free_clk", NULL, emacb_free_mux, ARRAY_SIZE(emacb_free_mux),
210210
0, 0, 2, 0xB0, 1},
211211
{ STRATIX10_EMAC_PTP_FREE_CLK, "emac_ptp_free_clk", NULL, emac_ptp_free_mux,
212-
ARRAY_SIZE(emac_ptp_free_mux), 0, 0, 4, 0xB0, 2},
212+
ARRAY_SIZE(emac_ptp_free_mux), 0, 0, 2, 0xB0, 2},
213213
{ STRATIX10_GPIO_DB_FREE_CLK, "gpio_db_free_clk", NULL, gpio_db_free_mux,
214214
ARRAY_SIZE(gpio_db_free_mux), 0, 0, 0, 0xB0, 3},
215215
{ STRATIX10_SDMMC_FREE_CLK, "sdmmc_free_clk", NULL, sdmmc_free_mux,

drivers/clk/tegra/clk-pll.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,9 +1611,6 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)
16111611
unsigned long flags = 0;
16121612
unsigned long input_rate;
16131613

1614-
if (clk_pll_is_enabled(hw))
1615-
return 0;
1616-
16171614
input_rate = clk_hw_get_rate(clk_hw_get_parent(hw));
16181615

16191616
if (_get_table_rate(hw, &sel, pll->params->fixed_rate, input_rate))
@@ -1673,7 +1670,7 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)
16731670
pll_writel(val, PLLE_SS_CTRL, pll);
16741671
udelay(1);
16751672

1676-
/* Enable hw control of xusb brick pll */
1673+
/* Enable HW control of XUSB brick PLL */
16771674
val = pll_readl_misc(pll);
16781675
val &= ~PLLE_MISC_IDDQ_SW_CTRL;
16791676
pll_writel_misc(val, pll);
@@ -1696,7 +1693,7 @@ static int clk_plle_tegra114_enable(struct clk_hw *hw)
16961693
val |= XUSBIO_PLL_CFG0_SEQ_ENABLE;
16971694
pll_writel(val, XUSBIO_PLL_CFG0, pll);
16981695

1699-
/* Enable hw control of SATA pll */
1696+
/* Enable HW control of SATA PLL */
17001697
val = pll_readl(SATA_PLL_CFG0, pll);
17011698
val &= ~SATA_PLL_CFG0_PADPLL_RESET_SWCTL;
17021699
val |= SATA_PLL_CFG0_PADPLL_USE_LOCKDET;

drivers/clk/tegra/clk-tegra210-emc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include <linux/io.h>
1313
#include <linux/slab.h>
1414

15+
#include "clk.h"
16+
1517
#define CLK_SOURCE_EMC 0x19c
1618
#define CLK_SOURCE_EMC_2X_CLK_SRC GENMASK(31, 29)
1719
#define CLK_SOURCE_EMC_MC_EMC_SAME_FREQ BIT(16)

0 commit comments

Comments
 (0)