diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-11-29 10:40:24 -0800 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-11-29 10:45:29 -0800 |
commit | 3dc170879518f0ee00f827457e67dc5f02b3362b (patch) | |
tree | 80498022968f5323b715bccfc57f79541fef74df | |
parent | 4bfb39bdd76124c1cfdc41d1975c51553132d573 (diff) |
ARM: imx7d: clk: add root clock for keypad port
The keypad port (KPP) module is clocked by the IPG root clock
through clock gate CCM_CCGR170.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r-- | arch/arm/mach-imx/clk-imx7d.c | 1 | ||||
-rw-r--r-- | include/dt-bindings/clock/imx7d-clock.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-imx7d.c b/arch/arm/mach-imx/clk-imx7d.c index da67ba4ce958..4b0abd18d74f 100644 --- a/arch/arm/mach-imx/clk-imx7d.c +++ b/arch/arm/mach-imx/clk-imx7d.c @@ -867,6 +867,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_ADC_ROOT_CLK] = imx_clk_gate4("adc_root_clk", "ipg_root_clk", base + 0x4200, 0); clks[IMX7D_PXP_IPG_CLK] = imx_clk_gate2_shared2("pxp_ipg_clk", "ipg_root_clk", base + 0x44c0, 0, &share_count_pxp); clks[IMX7D_PXP_AXI_CLK] = imx_clk_gate2_shared2("pxp_axi_clk", "main_axi_root_clk", base + 0x44c0, 0, &share_count_pxp); + clks[IMX7D_KPP_ROOT_CLK] = imx_clk_gate4("kpp_root_clk", "ipg_root_clk", base + 0x4aa0, 0); clks[IMX7D_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc", 1, 8); diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h index c48ef189cded..20d493f5aa6f 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h @@ -451,5 +451,6 @@ #define IMX7D_ADC_ROOT_CLK 438 #define IMX7D_PXP_IPG_CLK 439 #define IMX7D_PXP_AXI_CLK 440 -#define IMX7D_END_CLK 441 +#define IMX7D_KPP_ROOT_CLK 441 +#define IMX7D_END_CLK 442 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */ |