diff options
author | Shengjiu Wang <shengjiu.wang@freescale.com> | 2014-09-04 05:48:58 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-09-15 22:06:47 -0400 |
commit | aec247d4ac578693ee75ac2bf10eac1c29299c45 (patch) | |
tree | 43ea4eacbe55e7f25ad6b5d8bce54f691e92f5a7 /arch/arm/mach-imx | |
parent | e37c1ad0327af0639f6358357f60f6209f8bbad6 (diff) |
ARM: clk-imx6q: refine clock tree for ASRC
ASRC has "asrc", "asrc_ipg", "asrc_mem" clocks, and they share
the same gate bits.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/clk-imx6q.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c index 2edcebf67cee..d5bf1e2940bf 100644 --- a/arch/arm/mach-imx/clk-imx6q.c +++ b/arch/arm/mach-imx/clk-imx6q.c | |||
@@ -107,6 +107,7 @@ static struct clk_div_table video_div_table[] = { | |||
107 | }; | 107 | }; |
108 | 108 | ||
109 | static unsigned int share_count_esai; | 109 | static unsigned int share_count_esai; |
110 | static unsigned int share_count_asrc; | ||
110 | 111 | ||
111 | static void __init imx6q_clocks_init(struct device_node *ccm_node) | 112 | static void __init imx6q_clocks_init(struct device_node *ccm_node) |
112 | { | 113 | { |
@@ -317,7 +318,9 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) | |||
317 | 318 | ||
318 | /* name parent_name reg shift */ | 319 | /* name parent_name reg shift */ |
319 | clk[IMX6QDL_CLK_APBH_DMA] = imx_clk_gate2("apbh_dma", "usdhc3", base + 0x68, 4); | 320 | clk[IMX6QDL_CLK_APBH_DMA] = imx_clk_gate2("apbh_dma", "usdhc3", base + 0x68, 4); |
320 | clk[IMX6QDL_CLK_ASRC] = imx_clk_gate2("asrc", "asrc_podf", base + 0x68, 6); | 321 | clk[IMX6QDL_CLK_ASRC] = imx_clk_gate2_shared("asrc", "asrc_podf", base + 0x68, 6, &share_count_asrc); |
322 | clk[IMX6QDL_CLK_ASRC_IPG] = imx_clk_gate2_shared("asrc_ipg", "ahb", base + 0x68, 6, &share_count_asrc); | ||
323 | clk[IMX6QDL_CLK_ASRC_MEM] = imx_clk_gate2_shared("asrc_mem", "ahb", base + 0x68, 6, &share_count_asrc); | ||
321 | clk[IMX6QDL_CLK_CAN1_IPG] = imx_clk_gate2("can1_ipg", "ipg", base + 0x68, 14); | 324 | clk[IMX6QDL_CLK_CAN1_IPG] = imx_clk_gate2("can1_ipg", "ipg", base + 0x68, 14); |
322 | clk[IMX6QDL_CLK_CAN1_SERIAL] = imx_clk_gate2("can1_serial", "can_root", base + 0x68, 16); | 325 | clk[IMX6QDL_CLK_CAN1_SERIAL] = imx_clk_gate2("can1_serial", "can_root", base + 0x68, 16); |
323 | clk[IMX6QDL_CLK_CAN2_IPG] = imx_clk_gate2("can2_ipg", "ipg", base + 0x68, 18); | 326 | clk[IMX6QDL_CLK_CAN2_IPG] = imx_clk_gate2("can2_ipg", "ipg", base + 0x68, 18); |