mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
clk: meson: migrate meson-eeclk out of hw_onecell_data to drop NR_CLKS
The way hw_onecell_data is declared: struct clk_hw_onecell_data { unsigned int num; struct clk_hw *hws[]; }; makes it impossible to have the clk_hw table declared outside while using ARRAY_SIZE() to determine ".num" due to ".hws" being a flexible array member. Completely move out of hw_onecell_data and add a custom devm_of_clk_add_hw_provider() "get" callback to retrieve the clk_hw from the meson_eeclkc_data struct to finally get rid on the NR_CLKS define. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230607-topic-amlogic-upstream-clkid-public-migration-v2-2-38172d17c27a@linaro.org Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
This commit is contained in:
parent
230b6f3a76
commit
141fbc272b
@ -41,6 +41,7 @@ config COMMON_CLK_MESON_AO_CLKC
|
|||||||
config COMMON_CLK_MESON_EE_CLKC
|
config COMMON_CLK_MESON_EE_CLKC
|
||||||
tristate
|
tristate
|
||||||
select COMMON_CLK_MESON_REGMAP
|
select COMMON_CLK_MESON_REGMAP
|
||||||
|
select COMMON_CLK_MESON_CLKC_UTILS
|
||||||
|
|
||||||
config COMMON_CLK_MESON_CPU_DYNDIV
|
config COMMON_CLK_MESON_CPU_DYNDIV
|
||||||
tristate
|
tristate
|
||||||
|
@ -1890,147 +1890,143 @@ static MESON_GATE(axg_ao_i2c, HHI_GCLK_AO, 4);
|
|||||||
|
|
||||||
/* Array of all clocks provided by this provider */
|
/* Array of all clocks provided by this provider */
|
||||||
|
|
||||||
static struct clk_hw_onecell_data axg_hw_onecell_data = {
|
static struct clk_hw *axg_hw_clks[] = {
|
||||||
.hws = {
|
[CLKID_SYS_PLL] = &axg_sys_pll.hw,
|
||||||
[CLKID_SYS_PLL] = &axg_sys_pll.hw,
|
[CLKID_FIXED_PLL] = &axg_fixed_pll.hw,
|
||||||
[CLKID_FIXED_PLL] = &axg_fixed_pll.hw,
|
[CLKID_FCLK_DIV2] = &axg_fclk_div2.hw,
|
||||||
[CLKID_FCLK_DIV2] = &axg_fclk_div2.hw,
|
[CLKID_FCLK_DIV3] = &axg_fclk_div3.hw,
|
||||||
[CLKID_FCLK_DIV3] = &axg_fclk_div3.hw,
|
[CLKID_FCLK_DIV4] = &axg_fclk_div4.hw,
|
||||||
[CLKID_FCLK_DIV4] = &axg_fclk_div4.hw,
|
[CLKID_FCLK_DIV5] = &axg_fclk_div5.hw,
|
||||||
[CLKID_FCLK_DIV5] = &axg_fclk_div5.hw,
|
[CLKID_FCLK_DIV7] = &axg_fclk_div7.hw,
|
||||||
[CLKID_FCLK_DIV7] = &axg_fclk_div7.hw,
|
[CLKID_GP0_PLL] = &axg_gp0_pll.hw,
|
||||||
[CLKID_GP0_PLL] = &axg_gp0_pll.hw,
|
[CLKID_MPEG_SEL] = &axg_mpeg_clk_sel.hw,
|
||||||
[CLKID_MPEG_SEL] = &axg_mpeg_clk_sel.hw,
|
[CLKID_MPEG_DIV] = &axg_mpeg_clk_div.hw,
|
||||||
[CLKID_MPEG_DIV] = &axg_mpeg_clk_div.hw,
|
[CLKID_CLK81] = &axg_clk81.hw,
|
||||||
[CLKID_CLK81] = &axg_clk81.hw,
|
[CLKID_MPLL0] = &axg_mpll0.hw,
|
||||||
[CLKID_MPLL0] = &axg_mpll0.hw,
|
[CLKID_MPLL1] = &axg_mpll1.hw,
|
||||||
[CLKID_MPLL1] = &axg_mpll1.hw,
|
[CLKID_MPLL2] = &axg_mpll2.hw,
|
||||||
[CLKID_MPLL2] = &axg_mpll2.hw,
|
[CLKID_MPLL3] = &axg_mpll3.hw,
|
||||||
[CLKID_MPLL3] = &axg_mpll3.hw,
|
[CLKID_DDR] = &axg_ddr.hw,
|
||||||
[CLKID_DDR] = &axg_ddr.hw,
|
[CLKID_AUDIO_LOCKER] = &axg_audio_locker.hw,
|
||||||
[CLKID_AUDIO_LOCKER] = &axg_audio_locker.hw,
|
[CLKID_MIPI_DSI_HOST] = &axg_mipi_dsi_host.hw,
|
||||||
[CLKID_MIPI_DSI_HOST] = &axg_mipi_dsi_host.hw,
|
[CLKID_ISA] = &axg_isa.hw,
|
||||||
[CLKID_ISA] = &axg_isa.hw,
|
[CLKID_PL301] = &axg_pl301.hw,
|
||||||
[CLKID_PL301] = &axg_pl301.hw,
|
[CLKID_PERIPHS] = &axg_periphs.hw,
|
||||||
[CLKID_PERIPHS] = &axg_periphs.hw,
|
[CLKID_SPICC0] = &axg_spicc_0.hw,
|
||||||
[CLKID_SPICC0] = &axg_spicc_0.hw,
|
[CLKID_I2C] = &axg_i2c.hw,
|
||||||
[CLKID_I2C] = &axg_i2c.hw,
|
[CLKID_RNG0] = &axg_rng0.hw,
|
||||||
[CLKID_RNG0] = &axg_rng0.hw,
|
[CLKID_UART0] = &axg_uart0.hw,
|
||||||
[CLKID_UART0] = &axg_uart0.hw,
|
[CLKID_MIPI_DSI_PHY] = &axg_mipi_dsi_phy.hw,
|
||||||
[CLKID_MIPI_DSI_PHY] = &axg_mipi_dsi_phy.hw,
|
[CLKID_SPICC1] = &axg_spicc_1.hw,
|
||||||
[CLKID_SPICC1] = &axg_spicc_1.hw,
|
[CLKID_PCIE_A] = &axg_pcie_a.hw,
|
||||||
[CLKID_PCIE_A] = &axg_pcie_a.hw,
|
[CLKID_PCIE_B] = &axg_pcie_b.hw,
|
||||||
[CLKID_PCIE_B] = &axg_pcie_b.hw,
|
[CLKID_HIU_IFACE] = &axg_hiu_reg.hw,
|
||||||
[CLKID_HIU_IFACE] = &axg_hiu_reg.hw,
|
[CLKID_ASSIST_MISC] = &axg_assist_misc.hw,
|
||||||
[CLKID_ASSIST_MISC] = &axg_assist_misc.hw,
|
[CLKID_SD_EMMC_B] = &axg_emmc_b.hw,
|
||||||
[CLKID_SD_EMMC_B] = &axg_emmc_b.hw,
|
[CLKID_SD_EMMC_C] = &axg_emmc_c.hw,
|
||||||
[CLKID_SD_EMMC_C] = &axg_emmc_c.hw,
|
[CLKID_DMA] = &axg_dma.hw,
|
||||||
[CLKID_DMA] = &axg_dma.hw,
|
[CLKID_SPI] = &axg_spi.hw,
|
||||||
[CLKID_SPI] = &axg_spi.hw,
|
[CLKID_AUDIO] = &axg_audio.hw,
|
||||||
[CLKID_AUDIO] = &axg_audio.hw,
|
[CLKID_ETH] = &axg_eth_core.hw,
|
||||||
[CLKID_ETH] = &axg_eth_core.hw,
|
[CLKID_UART1] = &axg_uart1.hw,
|
||||||
[CLKID_UART1] = &axg_uart1.hw,
|
[CLKID_G2D] = &axg_g2d.hw,
|
||||||
[CLKID_G2D] = &axg_g2d.hw,
|
[CLKID_USB0] = &axg_usb0.hw,
|
||||||
[CLKID_USB0] = &axg_usb0.hw,
|
[CLKID_USB1] = &axg_usb1.hw,
|
||||||
[CLKID_USB1] = &axg_usb1.hw,
|
[CLKID_RESET] = &axg_reset.hw,
|
||||||
[CLKID_RESET] = &axg_reset.hw,
|
[CLKID_USB] = &axg_usb_general.hw,
|
||||||
[CLKID_USB] = &axg_usb_general.hw,
|
[CLKID_AHB_ARB0] = &axg_ahb_arb0.hw,
|
||||||
[CLKID_AHB_ARB0] = &axg_ahb_arb0.hw,
|
[CLKID_EFUSE] = &axg_efuse.hw,
|
||||||
[CLKID_EFUSE] = &axg_efuse.hw,
|
[CLKID_BOOT_ROM] = &axg_boot_rom.hw,
|
||||||
[CLKID_BOOT_ROM] = &axg_boot_rom.hw,
|
[CLKID_AHB_DATA_BUS] = &axg_ahb_data_bus.hw,
|
||||||
[CLKID_AHB_DATA_BUS] = &axg_ahb_data_bus.hw,
|
[CLKID_AHB_CTRL_BUS] = &axg_ahb_ctrl_bus.hw,
|
||||||
[CLKID_AHB_CTRL_BUS] = &axg_ahb_ctrl_bus.hw,
|
[CLKID_USB1_DDR_BRIDGE] = &axg_usb1_to_ddr.hw,
|
||||||
[CLKID_USB1_DDR_BRIDGE] = &axg_usb1_to_ddr.hw,
|
[CLKID_USB0_DDR_BRIDGE] = &axg_usb0_to_ddr.hw,
|
||||||
[CLKID_USB0_DDR_BRIDGE] = &axg_usb0_to_ddr.hw,
|
[CLKID_MMC_PCLK] = &axg_mmc_pclk.hw,
|
||||||
[CLKID_MMC_PCLK] = &axg_mmc_pclk.hw,
|
[CLKID_VPU_INTR] = &axg_vpu_intr.hw,
|
||||||
[CLKID_VPU_INTR] = &axg_vpu_intr.hw,
|
[CLKID_SEC_AHB_AHB3_BRIDGE] = &axg_sec_ahb_ahb3_bridge.hw,
|
||||||
[CLKID_SEC_AHB_AHB3_BRIDGE] = &axg_sec_ahb_ahb3_bridge.hw,
|
[CLKID_GIC] = &axg_gic.hw,
|
||||||
[CLKID_GIC] = &axg_gic.hw,
|
[CLKID_AO_MEDIA_CPU] = &axg_ao_media_cpu.hw,
|
||||||
[CLKID_AO_MEDIA_CPU] = &axg_ao_media_cpu.hw,
|
[CLKID_AO_AHB_SRAM] = &axg_ao_ahb_sram.hw,
|
||||||
[CLKID_AO_AHB_SRAM] = &axg_ao_ahb_sram.hw,
|
[CLKID_AO_AHB_BUS] = &axg_ao_ahb_bus.hw,
|
||||||
[CLKID_AO_AHB_BUS] = &axg_ao_ahb_bus.hw,
|
[CLKID_AO_IFACE] = &axg_ao_iface.hw,
|
||||||
[CLKID_AO_IFACE] = &axg_ao_iface.hw,
|
[CLKID_AO_I2C] = &axg_ao_i2c.hw,
|
||||||
[CLKID_AO_I2C] = &axg_ao_i2c.hw,
|
[CLKID_SD_EMMC_B_CLK0_SEL] = &axg_sd_emmc_b_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0_SEL] = &axg_sd_emmc_b_clk0_sel.hw,
|
[CLKID_SD_EMMC_B_CLK0_DIV] = &axg_sd_emmc_b_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0_DIV] = &axg_sd_emmc_b_clk0_div.hw,
|
[CLKID_SD_EMMC_B_CLK0] = &axg_sd_emmc_b_clk0.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0] = &axg_sd_emmc_b_clk0.hw,
|
[CLKID_SD_EMMC_C_CLK0_SEL] = &axg_sd_emmc_c_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0_SEL] = &axg_sd_emmc_c_clk0_sel.hw,
|
[CLKID_SD_EMMC_C_CLK0_DIV] = &axg_sd_emmc_c_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0_DIV] = &axg_sd_emmc_c_clk0_div.hw,
|
[CLKID_SD_EMMC_C_CLK0] = &axg_sd_emmc_c_clk0.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0] = &axg_sd_emmc_c_clk0.hw,
|
[CLKID_MPLL0_DIV] = &axg_mpll0_div.hw,
|
||||||
[CLKID_MPLL0_DIV] = &axg_mpll0_div.hw,
|
[CLKID_MPLL1_DIV] = &axg_mpll1_div.hw,
|
||||||
[CLKID_MPLL1_DIV] = &axg_mpll1_div.hw,
|
[CLKID_MPLL2_DIV] = &axg_mpll2_div.hw,
|
||||||
[CLKID_MPLL2_DIV] = &axg_mpll2_div.hw,
|
[CLKID_MPLL3_DIV] = &axg_mpll3_div.hw,
|
||||||
[CLKID_MPLL3_DIV] = &axg_mpll3_div.hw,
|
[CLKID_HIFI_PLL] = &axg_hifi_pll.hw,
|
||||||
[CLKID_HIFI_PLL] = &axg_hifi_pll.hw,
|
[CLKID_MPLL_PREDIV] = &axg_mpll_prediv.hw,
|
||||||
[CLKID_MPLL_PREDIV] = &axg_mpll_prediv.hw,
|
[CLKID_FCLK_DIV2_DIV] = &axg_fclk_div2_div.hw,
|
||||||
[CLKID_FCLK_DIV2_DIV] = &axg_fclk_div2_div.hw,
|
[CLKID_FCLK_DIV3_DIV] = &axg_fclk_div3_div.hw,
|
||||||
[CLKID_FCLK_DIV3_DIV] = &axg_fclk_div3_div.hw,
|
[CLKID_FCLK_DIV4_DIV] = &axg_fclk_div4_div.hw,
|
||||||
[CLKID_FCLK_DIV4_DIV] = &axg_fclk_div4_div.hw,
|
[CLKID_FCLK_DIV5_DIV] = &axg_fclk_div5_div.hw,
|
||||||
[CLKID_FCLK_DIV5_DIV] = &axg_fclk_div5_div.hw,
|
[CLKID_FCLK_DIV7_DIV] = &axg_fclk_div7_div.hw,
|
||||||
[CLKID_FCLK_DIV7_DIV] = &axg_fclk_div7_div.hw,
|
[CLKID_PCIE_PLL] = &axg_pcie_pll.hw,
|
||||||
[CLKID_PCIE_PLL] = &axg_pcie_pll.hw,
|
[CLKID_PCIE_MUX] = &axg_pcie_mux.hw,
|
||||||
[CLKID_PCIE_MUX] = &axg_pcie_mux.hw,
|
[CLKID_PCIE_REF] = &axg_pcie_ref.hw,
|
||||||
[CLKID_PCIE_REF] = &axg_pcie_ref.hw,
|
[CLKID_PCIE_CML_EN0] = &axg_pcie_cml_en0.hw,
|
||||||
[CLKID_PCIE_CML_EN0] = &axg_pcie_cml_en0.hw,
|
[CLKID_PCIE_CML_EN1] = &axg_pcie_cml_en1.hw,
|
||||||
[CLKID_PCIE_CML_EN1] = &axg_pcie_cml_en1.hw,
|
[CLKID_GEN_CLK_SEL] = &axg_gen_clk_sel.hw,
|
||||||
[CLKID_GEN_CLK_SEL] = &axg_gen_clk_sel.hw,
|
[CLKID_GEN_CLK_DIV] = &axg_gen_clk_div.hw,
|
||||||
[CLKID_GEN_CLK_DIV] = &axg_gen_clk_div.hw,
|
[CLKID_GEN_CLK] = &axg_gen_clk.hw,
|
||||||
[CLKID_GEN_CLK] = &axg_gen_clk.hw,
|
[CLKID_SYS_PLL_DCO] = &axg_sys_pll_dco.hw,
|
||||||
[CLKID_SYS_PLL_DCO] = &axg_sys_pll_dco.hw,
|
[CLKID_FIXED_PLL_DCO] = &axg_fixed_pll_dco.hw,
|
||||||
[CLKID_FIXED_PLL_DCO] = &axg_fixed_pll_dco.hw,
|
[CLKID_GP0_PLL_DCO] = &axg_gp0_pll_dco.hw,
|
||||||
[CLKID_GP0_PLL_DCO] = &axg_gp0_pll_dco.hw,
|
[CLKID_HIFI_PLL_DCO] = &axg_hifi_pll_dco.hw,
|
||||||
[CLKID_HIFI_PLL_DCO] = &axg_hifi_pll_dco.hw,
|
[CLKID_PCIE_PLL_DCO] = &axg_pcie_pll_dco.hw,
|
||||||
[CLKID_PCIE_PLL_DCO] = &axg_pcie_pll_dco.hw,
|
[CLKID_PCIE_PLL_OD] = &axg_pcie_pll_od.hw,
|
||||||
[CLKID_PCIE_PLL_OD] = &axg_pcie_pll_od.hw,
|
[CLKID_VPU_0_DIV] = &axg_vpu_0_div.hw,
|
||||||
[CLKID_VPU_0_DIV] = &axg_vpu_0_div.hw,
|
[CLKID_VPU_0_SEL] = &axg_vpu_0_sel.hw,
|
||||||
[CLKID_VPU_0_SEL] = &axg_vpu_0_sel.hw,
|
[CLKID_VPU_0] = &axg_vpu_0.hw,
|
||||||
[CLKID_VPU_0] = &axg_vpu_0.hw,
|
[CLKID_VPU_1_DIV] = &axg_vpu_1_div.hw,
|
||||||
[CLKID_VPU_1_DIV] = &axg_vpu_1_div.hw,
|
[CLKID_VPU_1_SEL] = &axg_vpu_1_sel.hw,
|
||||||
[CLKID_VPU_1_SEL] = &axg_vpu_1_sel.hw,
|
[CLKID_VPU_1] = &axg_vpu_1.hw,
|
||||||
[CLKID_VPU_1] = &axg_vpu_1.hw,
|
[CLKID_VPU] = &axg_vpu.hw,
|
||||||
[CLKID_VPU] = &axg_vpu.hw,
|
[CLKID_VAPB_0_DIV] = &axg_vapb_0_div.hw,
|
||||||
[CLKID_VAPB_0_DIV] = &axg_vapb_0_div.hw,
|
[CLKID_VAPB_0_SEL] = &axg_vapb_0_sel.hw,
|
||||||
[CLKID_VAPB_0_SEL] = &axg_vapb_0_sel.hw,
|
[CLKID_VAPB_0] = &axg_vapb_0.hw,
|
||||||
[CLKID_VAPB_0] = &axg_vapb_0.hw,
|
[CLKID_VAPB_1_DIV] = &axg_vapb_1_div.hw,
|
||||||
[CLKID_VAPB_1_DIV] = &axg_vapb_1_div.hw,
|
[CLKID_VAPB_1_SEL] = &axg_vapb_1_sel.hw,
|
||||||
[CLKID_VAPB_1_SEL] = &axg_vapb_1_sel.hw,
|
[CLKID_VAPB_1] = &axg_vapb_1.hw,
|
||||||
[CLKID_VAPB_1] = &axg_vapb_1.hw,
|
[CLKID_VAPB_SEL] = &axg_vapb_sel.hw,
|
||||||
[CLKID_VAPB_SEL] = &axg_vapb_sel.hw,
|
[CLKID_VAPB] = &axg_vapb.hw,
|
||||||
[CLKID_VAPB] = &axg_vapb.hw,
|
[CLKID_VCLK] = &axg_vclk.hw,
|
||||||
[CLKID_VCLK] = &axg_vclk.hw,
|
[CLKID_VCLK2] = &axg_vclk2.hw,
|
||||||
[CLKID_VCLK2] = &axg_vclk2.hw,
|
[CLKID_VCLK_SEL] = &axg_vclk_sel.hw,
|
||||||
[CLKID_VCLK_SEL] = &axg_vclk_sel.hw,
|
[CLKID_VCLK2_SEL] = &axg_vclk2_sel.hw,
|
||||||
[CLKID_VCLK2_SEL] = &axg_vclk2_sel.hw,
|
[CLKID_VCLK_INPUT] = &axg_vclk_input.hw,
|
||||||
[CLKID_VCLK_INPUT] = &axg_vclk_input.hw,
|
[CLKID_VCLK2_INPUT] = &axg_vclk2_input.hw,
|
||||||
[CLKID_VCLK2_INPUT] = &axg_vclk2_input.hw,
|
[CLKID_VCLK_DIV] = &axg_vclk_div.hw,
|
||||||
[CLKID_VCLK_DIV] = &axg_vclk_div.hw,
|
[CLKID_VCLK2_DIV] = &axg_vclk2_div.hw,
|
||||||
[CLKID_VCLK2_DIV] = &axg_vclk2_div.hw,
|
[CLKID_VCLK_DIV2_EN] = &axg_vclk_div2_en.hw,
|
||||||
[CLKID_VCLK_DIV2_EN] = &axg_vclk_div2_en.hw,
|
[CLKID_VCLK_DIV4_EN] = &axg_vclk_div4_en.hw,
|
||||||
[CLKID_VCLK_DIV4_EN] = &axg_vclk_div4_en.hw,
|
[CLKID_VCLK_DIV6_EN] = &axg_vclk_div6_en.hw,
|
||||||
[CLKID_VCLK_DIV6_EN] = &axg_vclk_div6_en.hw,
|
[CLKID_VCLK_DIV12_EN] = &axg_vclk_div12_en.hw,
|
||||||
[CLKID_VCLK_DIV12_EN] = &axg_vclk_div12_en.hw,
|
[CLKID_VCLK2_DIV2_EN] = &axg_vclk2_div2_en.hw,
|
||||||
[CLKID_VCLK2_DIV2_EN] = &axg_vclk2_div2_en.hw,
|
[CLKID_VCLK2_DIV4_EN] = &axg_vclk2_div4_en.hw,
|
||||||
[CLKID_VCLK2_DIV4_EN] = &axg_vclk2_div4_en.hw,
|
[CLKID_VCLK2_DIV6_EN] = &axg_vclk2_div6_en.hw,
|
||||||
[CLKID_VCLK2_DIV6_EN] = &axg_vclk2_div6_en.hw,
|
[CLKID_VCLK2_DIV12_EN] = &axg_vclk2_div12_en.hw,
|
||||||
[CLKID_VCLK2_DIV12_EN] = &axg_vclk2_div12_en.hw,
|
[CLKID_VCLK_DIV1] = &axg_vclk_div1.hw,
|
||||||
[CLKID_VCLK_DIV1] = &axg_vclk_div1.hw,
|
[CLKID_VCLK_DIV2] = &axg_vclk_div2.hw,
|
||||||
[CLKID_VCLK_DIV2] = &axg_vclk_div2.hw,
|
[CLKID_VCLK_DIV4] = &axg_vclk_div4.hw,
|
||||||
[CLKID_VCLK_DIV4] = &axg_vclk_div4.hw,
|
[CLKID_VCLK_DIV6] = &axg_vclk_div6.hw,
|
||||||
[CLKID_VCLK_DIV6] = &axg_vclk_div6.hw,
|
[CLKID_VCLK_DIV12] = &axg_vclk_div12.hw,
|
||||||
[CLKID_VCLK_DIV12] = &axg_vclk_div12.hw,
|
[CLKID_VCLK2_DIV1] = &axg_vclk2_div1.hw,
|
||||||
[CLKID_VCLK2_DIV1] = &axg_vclk2_div1.hw,
|
[CLKID_VCLK2_DIV2] = &axg_vclk2_div2.hw,
|
||||||
[CLKID_VCLK2_DIV2] = &axg_vclk2_div2.hw,
|
[CLKID_VCLK2_DIV4] = &axg_vclk2_div4.hw,
|
||||||
[CLKID_VCLK2_DIV4] = &axg_vclk2_div4.hw,
|
[CLKID_VCLK2_DIV6] = &axg_vclk2_div6.hw,
|
||||||
[CLKID_VCLK2_DIV6] = &axg_vclk2_div6.hw,
|
[CLKID_VCLK2_DIV12] = &axg_vclk2_div12.hw,
|
||||||
[CLKID_VCLK2_DIV12] = &axg_vclk2_div12.hw,
|
[CLKID_CTS_ENCL_SEL] = &axg_cts_encl_sel.hw,
|
||||||
[CLKID_CTS_ENCL_SEL] = &axg_cts_encl_sel.hw,
|
[CLKID_CTS_ENCL] = &axg_cts_encl.hw,
|
||||||
[CLKID_CTS_ENCL] = &axg_cts_encl.hw,
|
[CLKID_VDIN_MEAS_SEL] = &axg_vdin_meas_sel.hw,
|
||||||
[CLKID_VDIN_MEAS_SEL] = &axg_vdin_meas_sel.hw,
|
[CLKID_VDIN_MEAS_DIV] = &axg_vdin_meas_div.hw,
|
||||||
[CLKID_VDIN_MEAS_DIV] = &axg_vdin_meas_div.hw,
|
[CLKID_VDIN_MEAS] = &axg_vdin_meas.hw,
|
||||||
[CLKID_VDIN_MEAS] = &axg_vdin_meas.hw,
|
|
||||||
[NR_CLKS] = NULL,
|
|
||||||
},
|
|
||||||
.num = NR_CLKS,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Convenience table to populate regmap in .probe */
|
/* Convenience table to populate regmap in .probe */
|
||||||
@ -2163,7 +2159,10 @@ static struct clk_regmap *const axg_clk_regmaps[] = {
|
|||||||
static const struct meson_eeclkc_data axg_clkc_data = {
|
static const struct meson_eeclkc_data axg_clkc_data = {
|
||||||
.regmap_clks = axg_clk_regmaps,
|
.regmap_clks = axg_clk_regmaps,
|
||||||
.regmap_clk_num = ARRAY_SIZE(axg_clk_regmaps),
|
.regmap_clk_num = ARRAY_SIZE(axg_clk_regmaps),
|
||||||
.hw_onecell_data = &axg_hw_onecell_data,
|
.hw_clks = {
|
||||||
|
.hws = axg_hw_clks,
|
||||||
|
.num = ARRAY_SIZE(axg_hw_clks),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -160,8 +160,6 @@
|
|||||||
#define CLKID_VDIN_MEAS_SEL 134
|
#define CLKID_VDIN_MEAS_SEL 134
|
||||||
#define CLKID_VDIN_MEAS_DIV 135
|
#define CLKID_VDIN_MEAS_DIV 135
|
||||||
|
|
||||||
#define NR_CLKS 137
|
|
||||||
|
|
||||||
/* include the CLKIDs that have been made part of the DT binding */
|
/* include the CLKIDs that have been made part of the DT binding */
|
||||||
#include <dt-bindings/clock/axg-clkc.h>
|
#include <dt-bindings/clock/axg-clkc.h>
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -266,8 +266,6 @@
|
|||||||
#define CLKID_NNA_CORE_CLK_DIV 266
|
#define CLKID_NNA_CORE_CLK_DIV 266
|
||||||
#define CLKID_MIPI_DSI_PXCLK_DIV 268
|
#define CLKID_MIPI_DSI_PXCLK_DIV 268
|
||||||
|
|
||||||
#define NR_CLKS 271
|
|
||||||
|
|
||||||
/* include the CLKIDs that have been made part of the DT binding */
|
/* include the CLKIDs that have been made part of the DT binding */
|
||||||
#include <dt-bindings/clock/g12a-clkc.h>
|
#include <dt-bindings/clock/g12a-clkc.h>
|
||||||
|
|
||||||
|
@ -2728,428 +2728,420 @@ static MESON_PCLK(gxbb_adc, HHI_GCLK_MPEG1, 13, &gxbb_aiu_glue.hw);
|
|||||||
|
|
||||||
/* Array of all clocks provided by this provider */
|
/* Array of all clocks provided by this provider */
|
||||||
|
|
||||||
static struct clk_hw_onecell_data gxbb_hw_onecell_data = {
|
static struct clk_hw *gxbb_hw_clks[] = {
|
||||||
.hws = {
|
[CLKID_SYS_PLL] = &gxbb_sys_pll.hw,
|
||||||
[CLKID_SYS_PLL] = &gxbb_sys_pll.hw,
|
[CLKID_HDMI_PLL] = &gxbb_hdmi_pll.hw,
|
||||||
[CLKID_HDMI_PLL] = &gxbb_hdmi_pll.hw,
|
[CLKID_FIXED_PLL] = &gxbb_fixed_pll.hw,
|
||||||
[CLKID_FIXED_PLL] = &gxbb_fixed_pll.hw,
|
[CLKID_FCLK_DIV2] = &gxbb_fclk_div2.hw,
|
||||||
[CLKID_FCLK_DIV2] = &gxbb_fclk_div2.hw,
|
[CLKID_FCLK_DIV3] = &gxbb_fclk_div3.hw,
|
||||||
[CLKID_FCLK_DIV3] = &gxbb_fclk_div3.hw,
|
[CLKID_FCLK_DIV4] = &gxbb_fclk_div4.hw,
|
||||||
[CLKID_FCLK_DIV4] = &gxbb_fclk_div4.hw,
|
[CLKID_FCLK_DIV5] = &gxbb_fclk_div5.hw,
|
||||||
[CLKID_FCLK_DIV5] = &gxbb_fclk_div5.hw,
|
[CLKID_FCLK_DIV7] = &gxbb_fclk_div7.hw,
|
||||||
[CLKID_FCLK_DIV7] = &gxbb_fclk_div7.hw,
|
[CLKID_GP0_PLL] = &gxbb_gp0_pll.hw,
|
||||||
[CLKID_GP0_PLL] = &gxbb_gp0_pll.hw,
|
[CLKID_MPEG_SEL] = &gxbb_mpeg_clk_sel.hw,
|
||||||
[CLKID_MPEG_SEL] = &gxbb_mpeg_clk_sel.hw,
|
[CLKID_MPEG_DIV] = &gxbb_mpeg_clk_div.hw,
|
||||||
[CLKID_MPEG_DIV] = &gxbb_mpeg_clk_div.hw,
|
[CLKID_CLK81] = &gxbb_clk81.hw,
|
||||||
[CLKID_CLK81] = &gxbb_clk81.hw,
|
[CLKID_MPLL0] = &gxbb_mpll0.hw,
|
||||||
[CLKID_MPLL0] = &gxbb_mpll0.hw,
|
[CLKID_MPLL1] = &gxbb_mpll1.hw,
|
||||||
[CLKID_MPLL1] = &gxbb_mpll1.hw,
|
[CLKID_MPLL2] = &gxbb_mpll2.hw,
|
||||||
[CLKID_MPLL2] = &gxbb_mpll2.hw,
|
[CLKID_DDR] = &gxbb_ddr.hw,
|
||||||
[CLKID_DDR] = &gxbb_ddr.hw,
|
[CLKID_DOS] = &gxbb_dos.hw,
|
||||||
[CLKID_DOS] = &gxbb_dos.hw,
|
[CLKID_ISA] = &gxbb_isa.hw,
|
||||||
[CLKID_ISA] = &gxbb_isa.hw,
|
[CLKID_PL301] = &gxbb_pl301.hw,
|
||||||
[CLKID_PL301] = &gxbb_pl301.hw,
|
[CLKID_PERIPHS] = &gxbb_periphs.hw,
|
||||||
[CLKID_PERIPHS] = &gxbb_periphs.hw,
|
[CLKID_SPICC] = &gxbb_spicc.hw,
|
||||||
[CLKID_SPICC] = &gxbb_spicc.hw,
|
[CLKID_I2C] = &gxbb_i2c.hw,
|
||||||
[CLKID_I2C] = &gxbb_i2c.hw,
|
[CLKID_SAR_ADC] = &gxbb_sar_adc.hw,
|
||||||
[CLKID_SAR_ADC] = &gxbb_sar_adc.hw,
|
[CLKID_SMART_CARD] = &gxbb_smart_card.hw,
|
||||||
[CLKID_SMART_CARD] = &gxbb_smart_card.hw,
|
[CLKID_RNG0] = &gxbb_rng0.hw,
|
||||||
[CLKID_RNG0] = &gxbb_rng0.hw,
|
[CLKID_UART0] = &gxbb_uart0.hw,
|
||||||
[CLKID_UART0] = &gxbb_uart0.hw,
|
[CLKID_SDHC] = &gxbb_sdhc.hw,
|
||||||
[CLKID_SDHC] = &gxbb_sdhc.hw,
|
[CLKID_STREAM] = &gxbb_stream.hw,
|
||||||
[CLKID_STREAM] = &gxbb_stream.hw,
|
[CLKID_ASYNC_FIFO] = &gxbb_async_fifo.hw,
|
||||||
[CLKID_ASYNC_FIFO] = &gxbb_async_fifo.hw,
|
[CLKID_SDIO] = &gxbb_sdio.hw,
|
||||||
[CLKID_SDIO] = &gxbb_sdio.hw,
|
[CLKID_ABUF] = &gxbb_abuf.hw,
|
||||||
[CLKID_ABUF] = &gxbb_abuf.hw,
|
[CLKID_HIU_IFACE] = &gxbb_hiu_iface.hw,
|
||||||
[CLKID_HIU_IFACE] = &gxbb_hiu_iface.hw,
|
[CLKID_ASSIST_MISC] = &gxbb_assist_misc.hw,
|
||||||
[CLKID_ASSIST_MISC] = &gxbb_assist_misc.hw,
|
[CLKID_SPI] = &gxbb_spi.hw,
|
||||||
[CLKID_SPI] = &gxbb_spi.hw,
|
[CLKID_I2S_SPDIF] = &gxbb_i2s_spdif.hw,
|
||||||
[CLKID_I2S_SPDIF] = &gxbb_i2s_spdif.hw,
|
[CLKID_ETH] = &gxbb_eth.hw,
|
||||||
[CLKID_ETH] = &gxbb_eth.hw,
|
[CLKID_DEMUX] = &gxbb_demux.hw,
|
||||||
[CLKID_DEMUX] = &gxbb_demux.hw,
|
[CLKID_AIU_GLUE] = &gxbb_aiu_glue.hw,
|
||||||
[CLKID_AIU_GLUE] = &gxbb_aiu_glue.hw,
|
[CLKID_IEC958] = &gxbb_iec958.hw,
|
||||||
[CLKID_IEC958] = &gxbb_iec958.hw,
|
[CLKID_I2S_OUT] = &gxbb_i2s_out.hw,
|
||||||
[CLKID_I2S_OUT] = &gxbb_i2s_out.hw,
|
[CLKID_AMCLK] = &gxbb_amclk.hw,
|
||||||
[CLKID_AMCLK] = &gxbb_amclk.hw,
|
[CLKID_AIFIFO2] = &gxbb_aififo2.hw,
|
||||||
[CLKID_AIFIFO2] = &gxbb_aififo2.hw,
|
[CLKID_MIXER] = &gxbb_mixer.hw,
|
||||||
[CLKID_MIXER] = &gxbb_mixer.hw,
|
[CLKID_MIXER_IFACE] = &gxbb_mixer_iface.hw,
|
||||||
[CLKID_MIXER_IFACE] = &gxbb_mixer_iface.hw,
|
[CLKID_ADC] = &gxbb_adc.hw,
|
||||||
[CLKID_ADC] = &gxbb_adc.hw,
|
[CLKID_BLKMV] = &gxbb_blkmv.hw,
|
||||||
[CLKID_BLKMV] = &gxbb_blkmv.hw,
|
[CLKID_AIU] = &gxbb_aiu.hw,
|
||||||
[CLKID_AIU] = &gxbb_aiu.hw,
|
[CLKID_UART1] = &gxbb_uart1.hw,
|
||||||
[CLKID_UART1] = &gxbb_uart1.hw,
|
[CLKID_G2D] = &gxbb_g2d.hw,
|
||||||
[CLKID_G2D] = &gxbb_g2d.hw,
|
[CLKID_USB0] = &gxbb_usb0.hw,
|
||||||
[CLKID_USB0] = &gxbb_usb0.hw,
|
[CLKID_USB1] = &gxbb_usb1.hw,
|
||||||
[CLKID_USB1] = &gxbb_usb1.hw,
|
[CLKID_RESET] = &gxbb_reset.hw,
|
||||||
[CLKID_RESET] = &gxbb_reset.hw,
|
[CLKID_NAND] = &gxbb_nand.hw,
|
||||||
[CLKID_NAND] = &gxbb_nand.hw,
|
[CLKID_DOS_PARSER] = &gxbb_dos_parser.hw,
|
||||||
[CLKID_DOS_PARSER] = &gxbb_dos_parser.hw,
|
[CLKID_USB] = &gxbb_usb.hw,
|
||||||
[CLKID_USB] = &gxbb_usb.hw,
|
[CLKID_VDIN1] = &gxbb_vdin1.hw,
|
||||||
[CLKID_VDIN1] = &gxbb_vdin1.hw,
|
[CLKID_AHB_ARB0] = &gxbb_ahb_arb0.hw,
|
||||||
[CLKID_AHB_ARB0] = &gxbb_ahb_arb0.hw,
|
[CLKID_EFUSE] = &gxbb_efuse.hw,
|
||||||
[CLKID_EFUSE] = &gxbb_efuse.hw,
|
[CLKID_BOOT_ROM] = &gxbb_boot_rom.hw,
|
||||||
[CLKID_BOOT_ROM] = &gxbb_boot_rom.hw,
|
[CLKID_AHB_DATA_BUS] = &gxbb_ahb_data_bus.hw,
|
||||||
[CLKID_AHB_DATA_BUS] = &gxbb_ahb_data_bus.hw,
|
[CLKID_AHB_CTRL_BUS] = &gxbb_ahb_ctrl_bus.hw,
|
||||||
[CLKID_AHB_CTRL_BUS] = &gxbb_ahb_ctrl_bus.hw,
|
[CLKID_HDMI_INTR_SYNC] = &gxbb_hdmi_intr_sync.hw,
|
||||||
[CLKID_HDMI_INTR_SYNC] = &gxbb_hdmi_intr_sync.hw,
|
[CLKID_HDMI_PCLK] = &gxbb_hdmi_pclk.hw,
|
||||||
[CLKID_HDMI_PCLK] = &gxbb_hdmi_pclk.hw,
|
[CLKID_USB1_DDR_BRIDGE] = &gxbb_usb1_ddr_bridge.hw,
|
||||||
[CLKID_USB1_DDR_BRIDGE] = &gxbb_usb1_ddr_bridge.hw,
|
[CLKID_USB0_DDR_BRIDGE] = &gxbb_usb0_ddr_bridge.hw,
|
||||||
[CLKID_USB0_DDR_BRIDGE] = &gxbb_usb0_ddr_bridge.hw,
|
[CLKID_MMC_PCLK] = &gxbb_mmc_pclk.hw,
|
||||||
[CLKID_MMC_PCLK] = &gxbb_mmc_pclk.hw,
|
[CLKID_DVIN] = &gxbb_dvin.hw,
|
||||||
[CLKID_DVIN] = &gxbb_dvin.hw,
|
[CLKID_UART2] = &gxbb_uart2.hw,
|
||||||
[CLKID_UART2] = &gxbb_uart2.hw,
|
[CLKID_SANA] = &gxbb_sana.hw,
|
||||||
[CLKID_SANA] = &gxbb_sana.hw,
|
[CLKID_VPU_INTR] = &gxbb_vpu_intr.hw,
|
||||||
[CLKID_VPU_INTR] = &gxbb_vpu_intr.hw,
|
[CLKID_SEC_AHB_AHB3_BRIDGE] = &gxbb_sec_ahb_ahb3_bridge.hw,
|
||||||
[CLKID_SEC_AHB_AHB3_BRIDGE] = &gxbb_sec_ahb_ahb3_bridge.hw,
|
[CLKID_CLK81_A53] = &gxbb_clk81_a53.hw,
|
||||||
[CLKID_CLK81_A53] = &gxbb_clk81_a53.hw,
|
[CLKID_VCLK2_VENCI0] = &gxbb_vclk2_venci0.hw,
|
||||||
[CLKID_VCLK2_VENCI0] = &gxbb_vclk2_venci0.hw,
|
[CLKID_VCLK2_VENCI1] = &gxbb_vclk2_venci1.hw,
|
||||||
[CLKID_VCLK2_VENCI1] = &gxbb_vclk2_venci1.hw,
|
[CLKID_VCLK2_VENCP0] = &gxbb_vclk2_vencp0.hw,
|
||||||
[CLKID_VCLK2_VENCP0] = &gxbb_vclk2_vencp0.hw,
|
[CLKID_VCLK2_VENCP1] = &gxbb_vclk2_vencp1.hw,
|
||||||
[CLKID_VCLK2_VENCP1] = &gxbb_vclk2_vencp1.hw,
|
[CLKID_GCLK_VENCI_INT0] = &gxbb_gclk_venci_int0.hw,
|
||||||
[CLKID_GCLK_VENCI_INT0] = &gxbb_gclk_venci_int0.hw,
|
[CLKID_GCLK_VENCI_INT] = &gxbb_gclk_vencp_int.hw,
|
||||||
[CLKID_GCLK_VENCI_INT] = &gxbb_gclk_vencp_int.hw,
|
[CLKID_DAC_CLK] = &gxbb_dac_clk.hw,
|
||||||
[CLKID_DAC_CLK] = &gxbb_dac_clk.hw,
|
[CLKID_AOCLK_GATE] = &gxbb_aoclk_gate.hw,
|
||||||
[CLKID_AOCLK_GATE] = &gxbb_aoclk_gate.hw,
|
[CLKID_IEC958_GATE] = &gxbb_iec958_gate.hw,
|
||||||
[CLKID_IEC958_GATE] = &gxbb_iec958_gate.hw,
|
[CLKID_ENC480P] = &gxbb_enc480p.hw,
|
||||||
[CLKID_ENC480P] = &gxbb_enc480p.hw,
|
[CLKID_RNG1] = &gxbb_rng1.hw,
|
||||||
[CLKID_RNG1] = &gxbb_rng1.hw,
|
[CLKID_GCLK_VENCI_INT1] = &gxbb_gclk_venci_int1.hw,
|
||||||
[CLKID_GCLK_VENCI_INT1] = &gxbb_gclk_venci_int1.hw,
|
[CLKID_VCLK2_VENCLMCC] = &gxbb_vclk2_venclmcc.hw,
|
||||||
[CLKID_VCLK2_VENCLMCC] = &gxbb_vclk2_venclmcc.hw,
|
[CLKID_VCLK2_VENCL] = &gxbb_vclk2_vencl.hw,
|
||||||
[CLKID_VCLK2_VENCL] = &gxbb_vclk2_vencl.hw,
|
[CLKID_VCLK_OTHER] = &gxbb_vclk_other.hw,
|
||||||
[CLKID_VCLK_OTHER] = &gxbb_vclk_other.hw,
|
[CLKID_EDP] = &gxbb_edp.hw,
|
||||||
[CLKID_EDP] = &gxbb_edp.hw,
|
[CLKID_AO_MEDIA_CPU] = &gxbb_ao_media_cpu.hw,
|
||||||
[CLKID_AO_MEDIA_CPU] = &gxbb_ao_media_cpu.hw,
|
[CLKID_AO_AHB_SRAM] = &gxbb_ao_ahb_sram.hw,
|
||||||
[CLKID_AO_AHB_SRAM] = &gxbb_ao_ahb_sram.hw,
|
[CLKID_AO_AHB_BUS] = &gxbb_ao_ahb_bus.hw,
|
||||||
[CLKID_AO_AHB_BUS] = &gxbb_ao_ahb_bus.hw,
|
[CLKID_AO_IFACE] = &gxbb_ao_iface.hw,
|
||||||
[CLKID_AO_IFACE] = &gxbb_ao_iface.hw,
|
[CLKID_AO_I2C] = &gxbb_ao_i2c.hw,
|
||||||
[CLKID_AO_I2C] = &gxbb_ao_i2c.hw,
|
[CLKID_SD_EMMC_A] = &gxbb_emmc_a.hw,
|
||||||
[CLKID_SD_EMMC_A] = &gxbb_emmc_a.hw,
|
[CLKID_SD_EMMC_B] = &gxbb_emmc_b.hw,
|
||||||
[CLKID_SD_EMMC_B] = &gxbb_emmc_b.hw,
|
[CLKID_SD_EMMC_C] = &gxbb_emmc_c.hw,
|
||||||
[CLKID_SD_EMMC_C] = &gxbb_emmc_c.hw,
|
[CLKID_SAR_ADC_CLK] = &gxbb_sar_adc_clk.hw,
|
||||||
[CLKID_SAR_ADC_CLK] = &gxbb_sar_adc_clk.hw,
|
[CLKID_SAR_ADC_SEL] = &gxbb_sar_adc_clk_sel.hw,
|
||||||
[CLKID_SAR_ADC_SEL] = &gxbb_sar_adc_clk_sel.hw,
|
[CLKID_SAR_ADC_DIV] = &gxbb_sar_adc_clk_div.hw,
|
||||||
[CLKID_SAR_ADC_DIV] = &gxbb_sar_adc_clk_div.hw,
|
[CLKID_MALI_0_SEL] = &gxbb_mali_0_sel.hw,
|
||||||
[CLKID_MALI_0_SEL] = &gxbb_mali_0_sel.hw,
|
[CLKID_MALI_0_DIV] = &gxbb_mali_0_div.hw,
|
||||||
[CLKID_MALI_0_DIV] = &gxbb_mali_0_div.hw,
|
[CLKID_MALI_0] = &gxbb_mali_0.hw,
|
||||||
[CLKID_MALI_0] = &gxbb_mali_0.hw,
|
[CLKID_MALI_1_SEL] = &gxbb_mali_1_sel.hw,
|
||||||
[CLKID_MALI_1_SEL] = &gxbb_mali_1_sel.hw,
|
[CLKID_MALI_1_DIV] = &gxbb_mali_1_div.hw,
|
||||||
[CLKID_MALI_1_DIV] = &gxbb_mali_1_div.hw,
|
[CLKID_MALI_1] = &gxbb_mali_1.hw,
|
||||||
[CLKID_MALI_1] = &gxbb_mali_1.hw,
|
[CLKID_MALI] = &gxbb_mali.hw,
|
||||||
[CLKID_MALI] = &gxbb_mali.hw,
|
[CLKID_CTS_AMCLK] = &gxbb_cts_amclk.hw,
|
||||||
[CLKID_CTS_AMCLK] = &gxbb_cts_amclk.hw,
|
[CLKID_CTS_AMCLK_SEL] = &gxbb_cts_amclk_sel.hw,
|
||||||
[CLKID_CTS_AMCLK_SEL] = &gxbb_cts_amclk_sel.hw,
|
[CLKID_CTS_AMCLK_DIV] = &gxbb_cts_amclk_div.hw,
|
||||||
[CLKID_CTS_AMCLK_DIV] = &gxbb_cts_amclk_div.hw,
|
[CLKID_CTS_MCLK_I958] = &gxbb_cts_mclk_i958.hw,
|
||||||
[CLKID_CTS_MCLK_I958] = &gxbb_cts_mclk_i958.hw,
|
[CLKID_CTS_MCLK_I958_SEL] = &gxbb_cts_mclk_i958_sel.hw,
|
||||||
[CLKID_CTS_MCLK_I958_SEL] = &gxbb_cts_mclk_i958_sel.hw,
|
[CLKID_CTS_MCLK_I958_DIV] = &gxbb_cts_mclk_i958_div.hw,
|
||||||
[CLKID_CTS_MCLK_I958_DIV] = &gxbb_cts_mclk_i958_div.hw,
|
[CLKID_CTS_I958] = &gxbb_cts_i958.hw,
|
||||||
[CLKID_CTS_I958] = &gxbb_cts_i958.hw,
|
[CLKID_32K_CLK] = &gxbb_32k_clk.hw,
|
||||||
[CLKID_32K_CLK] = &gxbb_32k_clk.hw,
|
[CLKID_32K_CLK_SEL] = &gxbb_32k_clk_sel.hw,
|
||||||
[CLKID_32K_CLK_SEL] = &gxbb_32k_clk_sel.hw,
|
[CLKID_32K_CLK_DIV] = &gxbb_32k_clk_div.hw,
|
||||||
[CLKID_32K_CLK_DIV] = &gxbb_32k_clk_div.hw,
|
[CLKID_SD_EMMC_A_CLK0_SEL] = &gxbb_sd_emmc_a_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_A_CLK0_SEL] = &gxbb_sd_emmc_a_clk0_sel.hw,
|
[CLKID_SD_EMMC_A_CLK0_DIV] = &gxbb_sd_emmc_a_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_A_CLK0_DIV] = &gxbb_sd_emmc_a_clk0_div.hw,
|
[CLKID_SD_EMMC_A_CLK0] = &gxbb_sd_emmc_a_clk0.hw,
|
||||||
[CLKID_SD_EMMC_A_CLK0] = &gxbb_sd_emmc_a_clk0.hw,
|
[CLKID_SD_EMMC_B_CLK0_SEL] = &gxbb_sd_emmc_b_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0_SEL] = &gxbb_sd_emmc_b_clk0_sel.hw,
|
[CLKID_SD_EMMC_B_CLK0_DIV] = &gxbb_sd_emmc_b_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0_DIV] = &gxbb_sd_emmc_b_clk0_div.hw,
|
[CLKID_SD_EMMC_B_CLK0] = &gxbb_sd_emmc_b_clk0.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0] = &gxbb_sd_emmc_b_clk0.hw,
|
[CLKID_SD_EMMC_C_CLK0_SEL] = &gxbb_sd_emmc_c_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0_SEL] = &gxbb_sd_emmc_c_clk0_sel.hw,
|
[CLKID_SD_EMMC_C_CLK0_DIV] = &gxbb_sd_emmc_c_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0_DIV] = &gxbb_sd_emmc_c_clk0_div.hw,
|
[CLKID_SD_EMMC_C_CLK0] = &gxbb_sd_emmc_c_clk0.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0] = &gxbb_sd_emmc_c_clk0.hw,
|
[CLKID_VPU_0_SEL] = &gxbb_vpu_0_sel.hw,
|
||||||
[CLKID_VPU_0_SEL] = &gxbb_vpu_0_sel.hw,
|
[CLKID_VPU_0_DIV] = &gxbb_vpu_0_div.hw,
|
||||||
[CLKID_VPU_0_DIV] = &gxbb_vpu_0_div.hw,
|
[CLKID_VPU_0] = &gxbb_vpu_0.hw,
|
||||||
[CLKID_VPU_0] = &gxbb_vpu_0.hw,
|
[CLKID_VPU_1_SEL] = &gxbb_vpu_1_sel.hw,
|
||||||
[CLKID_VPU_1_SEL] = &gxbb_vpu_1_sel.hw,
|
[CLKID_VPU_1_DIV] = &gxbb_vpu_1_div.hw,
|
||||||
[CLKID_VPU_1_DIV] = &gxbb_vpu_1_div.hw,
|
[CLKID_VPU_1] = &gxbb_vpu_1.hw,
|
||||||
[CLKID_VPU_1] = &gxbb_vpu_1.hw,
|
[CLKID_VPU] = &gxbb_vpu.hw,
|
||||||
[CLKID_VPU] = &gxbb_vpu.hw,
|
[CLKID_VAPB_0_SEL] = &gxbb_vapb_0_sel.hw,
|
||||||
[CLKID_VAPB_0_SEL] = &gxbb_vapb_0_sel.hw,
|
[CLKID_VAPB_0_DIV] = &gxbb_vapb_0_div.hw,
|
||||||
[CLKID_VAPB_0_DIV] = &gxbb_vapb_0_div.hw,
|
[CLKID_VAPB_0] = &gxbb_vapb_0.hw,
|
||||||
[CLKID_VAPB_0] = &gxbb_vapb_0.hw,
|
[CLKID_VAPB_1_SEL] = &gxbb_vapb_1_sel.hw,
|
||||||
[CLKID_VAPB_1_SEL] = &gxbb_vapb_1_sel.hw,
|
[CLKID_VAPB_1_DIV] = &gxbb_vapb_1_div.hw,
|
||||||
[CLKID_VAPB_1_DIV] = &gxbb_vapb_1_div.hw,
|
[CLKID_VAPB_1] = &gxbb_vapb_1.hw,
|
||||||
[CLKID_VAPB_1] = &gxbb_vapb_1.hw,
|
[CLKID_VAPB_SEL] = &gxbb_vapb_sel.hw,
|
||||||
[CLKID_VAPB_SEL] = &gxbb_vapb_sel.hw,
|
[CLKID_VAPB] = &gxbb_vapb.hw,
|
||||||
[CLKID_VAPB] = &gxbb_vapb.hw,
|
[CLKID_HDMI_PLL_PRE_MULT] = &gxbb_hdmi_pll_pre_mult.hw,
|
||||||
[CLKID_HDMI_PLL_PRE_MULT] = &gxbb_hdmi_pll_pre_mult.hw,
|
[CLKID_MPLL0_DIV] = &gxbb_mpll0_div.hw,
|
||||||
[CLKID_MPLL0_DIV] = &gxbb_mpll0_div.hw,
|
[CLKID_MPLL1_DIV] = &gxbb_mpll1_div.hw,
|
||||||
[CLKID_MPLL1_DIV] = &gxbb_mpll1_div.hw,
|
[CLKID_MPLL2_DIV] = &gxbb_mpll2_div.hw,
|
||||||
[CLKID_MPLL2_DIV] = &gxbb_mpll2_div.hw,
|
[CLKID_MPLL_PREDIV] = &gxbb_mpll_prediv.hw,
|
||||||
[CLKID_MPLL_PREDIV] = &gxbb_mpll_prediv.hw,
|
[CLKID_FCLK_DIV2_DIV] = &gxbb_fclk_div2_div.hw,
|
||||||
[CLKID_FCLK_DIV2_DIV] = &gxbb_fclk_div2_div.hw,
|
[CLKID_FCLK_DIV3_DIV] = &gxbb_fclk_div3_div.hw,
|
||||||
[CLKID_FCLK_DIV3_DIV] = &gxbb_fclk_div3_div.hw,
|
[CLKID_FCLK_DIV4_DIV] = &gxbb_fclk_div4_div.hw,
|
||||||
[CLKID_FCLK_DIV4_DIV] = &gxbb_fclk_div4_div.hw,
|
[CLKID_FCLK_DIV5_DIV] = &gxbb_fclk_div5_div.hw,
|
||||||
[CLKID_FCLK_DIV5_DIV] = &gxbb_fclk_div5_div.hw,
|
[CLKID_FCLK_DIV7_DIV] = &gxbb_fclk_div7_div.hw,
|
||||||
[CLKID_FCLK_DIV7_DIV] = &gxbb_fclk_div7_div.hw,
|
[CLKID_VDEC_1_SEL] = &gxbb_vdec_1_sel.hw,
|
||||||
[CLKID_VDEC_1_SEL] = &gxbb_vdec_1_sel.hw,
|
[CLKID_VDEC_1_DIV] = &gxbb_vdec_1_div.hw,
|
||||||
[CLKID_VDEC_1_DIV] = &gxbb_vdec_1_div.hw,
|
[CLKID_VDEC_1] = &gxbb_vdec_1.hw,
|
||||||
[CLKID_VDEC_1] = &gxbb_vdec_1.hw,
|
[CLKID_VDEC_HEVC_SEL] = &gxbb_vdec_hevc_sel.hw,
|
||||||
[CLKID_VDEC_HEVC_SEL] = &gxbb_vdec_hevc_sel.hw,
|
[CLKID_VDEC_HEVC_DIV] = &gxbb_vdec_hevc_div.hw,
|
||||||
[CLKID_VDEC_HEVC_DIV] = &gxbb_vdec_hevc_div.hw,
|
[CLKID_VDEC_HEVC] = &gxbb_vdec_hevc.hw,
|
||||||
[CLKID_VDEC_HEVC] = &gxbb_vdec_hevc.hw,
|
[CLKID_GEN_CLK_SEL] = &gxbb_gen_clk_sel.hw,
|
||||||
[CLKID_GEN_CLK_SEL] = &gxbb_gen_clk_sel.hw,
|
[CLKID_GEN_CLK_DIV] = &gxbb_gen_clk_div.hw,
|
||||||
[CLKID_GEN_CLK_DIV] = &gxbb_gen_clk_div.hw,
|
[CLKID_GEN_CLK] = &gxbb_gen_clk.hw,
|
||||||
[CLKID_GEN_CLK] = &gxbb_gen_clk.hw,
|
[CLKID_FIXED_PLL_DCO] = &gxbb_fixed_pll_dco.hw,
|
||||||
[CLKID_FIXED_PLL_DCO] = &gxbb_fixed_pll_dco.hw,
|
[CLKID_HDMI_PLL_DCO] = &gxbb_hdmi_pll_dco.hw,
|
||||||
[CLKID_HDMI_PLL_DCO] = &gxbb_hdmi_pll_dco.hw,
|
[CLKID_HDMI_PLL_OD] = &gxbb_hdmi_pll_od.hw,
|
||||||
[CLKID_HDMI_PLL_OD] = &gxbb_hdmi_pll_od.hw,
|
[CLKID_HDMI_PLL_OD2] = &gxbb_hdmi_pll_od2.hw,
|
||||||
[CLKID_HDMI_PLL_OD2] = &gxbb_hdmi_pll_od2.hw,
|
[CLKID_SYS_PLL_DCO] = &gxbb_sys_pll_dco.hw,
|
||||||
[CLKID_SYS_PLL_DCO] = &gxbb_sys_pll_dco.hw,
|
[CLKID_GP0_PLL_DCO] = &gxbb_gp0_pll_dco.hw,
|
||||||
[CLKID_GP0_PLL_DCO] = &gxbb_gp0_pll_dco.hw,
|
[CLKID_VID_PLL_DIV] = &gxbb_vid_pll_div.hw,
|
||||||
[CLKID_VID_PLL_DIV] = &gxbb_vid_pll_div.hw,
|
[CLKID_VID_PLL_SEL] = &gxbb_vid_pll_sel.hw,
|
||||||
[CLKID_VID_PLL_SEL] = &gxbb_vid_pll_sel.hw,
|
[CLKID_VID_PLL] = &gxbb_vid_pll.hw,
|
||||||
[CLKID_VID_PLL] = &gxbb_vid_pll.hw,
|
[CLKID_VCLK_SEL] = &gxbb_vclk_sel.hw,
|
||||||
[CLKID_VCLK_SEL] = &gxbb_vclk_sel.hw,
|
[CLKID_VCLK2_SEL] = &gxbb_vclk2_sel.hw,
|
||||||
[CLKID_VCLK2_SEL] = &gxbb_vclk2_sel.hw,
|
[CLKID_VCLK_INPUT] = &gxbb_vclk_input.hw,
|
||||||
[CLKID_VCLK_INPUT] = &gxbb_vclk_input.hw,
|
[CLKID_VCLK2_INPUT] = &gxbb_vclk2_input.hw,
|
||||||
[CLKID_VCLK2_INPUT] = &gxbb_vclk2_input.hw,
|
[CLKID_VCLK_DIV] = &gxbb_vclk_div.hw,
|
||||||
[CLKID_VCLK_DIV] = &gxbb_vclk_div.hw,
|
[CLKID_VCLK2_DIV] = &gxbb_vclk2_div.hw,
|
||||||
[CLKID_VCLK2_DIV] = &gxbb_vclk2_div.hw,
|
[CLKID_VCLK] = &gxbb_vclk.hw,
|
||||||
[CLKID_VCLK] = &gxbb_vclk.hw,
|
[CLKID_VCLK2] = &gxbb_vclk2.hw,
|
||||||
[CLKID_VCLK2] = &gxbb_vclk2.hw,
|
[CLKID_VCLK_DIV1] = &gxbb_vclk_div1.hw,
|
||||||
[CLKID_VCLK_DIV1] = &gxbb_vclk_div1.hw,
|
[CLKID_VCLK_DIV2_EN] = &gxbb_vclk_div2_en.hw,
|
||||||
[CLKID_VCLK_DIV2_EN] = &gxbb_vclk_div2_en.hw,
|
[CLKID_VCLK_DIV2] = &gxbb_vclk_div2.hw,
|
||||||
[CLKID_VCLK_DIV2] = &gxbb_vclk_div2.hw,
|
[CLKID_VCLK_DIV4_EN] = &gxbb_vclk_div4_en.hw,
|
||||||
[CLKID_VCLK_DIV4_EN] = &gxbb_vclk_div4_en.hw,
|
[CLKID_VCLK_DIV4] = &gxbb_vclk_div4.hw,
|
||||||
[CLKID_VCLK_DIV4] = &gxbb_vclk_div4.hw,
|
[CLKID_VCLK_DIV6_EN] = &gxbb_vclk_div6_en.hw,
|
||||||
[CLKID_VCLK_DIV6_EN] = &gxbb_vclk_div6_en.hw,
|
[CLKID_VCLK_DIV6] = &gxbb_vclk_div6.hw,
|
||||||
[CLKID_VCLK_DIV6] = &gxbb_vclk_div6.hw,
|
[CLKID_VCLK_DIV12_EN] = &gxbb_vclk_div12_en.hw,
|
||||||
[CLKID_VCLK_DIV12_EN] = &gxbb_vclk_div12_en.hw,
|
[CLKID_VCLK_DIV12] = &gxbb_vclk_div12.hw,
|
||||||
[CLKID_VCLK_DIV12] = &gxbb_vclk_div12.hw,
|
[CLKID_VCLK2_DIV1] = &gxbb_vclk2_div1.hw,
|
||||||
[CLKID_VCLK2_DIV1] = &gxbb_vclk2_div1.hw,
|
[CLKID_VCLK2_DIV2_EN] = &gxbb_vclk2_div2_en.hw,
|
||||||
[CLKID_VCLK2_DIV2_EN] = &gxbb_vclk2_div2_en.hw,
|
[CLKID_VCLK2_DIV2] = &gxbb_vclk2_div2.hw,
|
||||||
[CLKID_VCLK2_DIV2] = &gxbb_vclk2_div2.hw,
|
[CLKID_VCLK2_DIV4_EN] = &gxbb_vclk2_div4_en.hw,
|
||||||
[CLKID_VCLK2_DIV4_EN] = &gxbb_vclk2_div4_en.hw,
|
[CLKID_VCLK2_DIV4] = &gxbb_vclk2_div4.hw,
|
||||||
[CLKID_VCLK2_DIV4] = &gxbb_vclk2_div4.hw,
|
[CLKID_VCLK2_DIV6_EN] = &gxbb_vclk2_div6_en.hw,
|
||||||
[CLKID_VCLK2_DIV6_EN] = &gxbb_vclk2_div6_en.hw,
|
[CLKID_VCLK2_DIV6] = &gxbb_vclk2_div6.hw,
|
||||||
[CLKID_VCLK2_DIV6] = &gxbb_vclk2_div6.hw,
|
[CLKID_VCLK2_DIV12_EN] = &gxbb_vclk2_div12_en.hw,
|
||||||
[CLKID_VCLK2_DIV12_EN] = &gxbb_vclk2_div12_en.hw,
|
[CLKID_VCLK2_DIV12] = &gxbb_vclk2_div12.hw,
|
||||||
[CLKID_VCLK2_DIV12] = &gxbb_vclk2_div12.hw,
|
[CLKID_CTS_ENCI_SEL] = &gxbb_cts_enci_sel.hw,
|
||||||
[CLKID_CTS_ENCI_SEL] = &gxbb_cts_enci_sel.hw,
|
[CLKID_CTS_ENCP_SEL] = &gxbb_cts_encp_sel.hw,
|
||||||
[CLKID_CTS_ENCP_SEL] = &gxbb_cts_encp_sel.hw,
|
[CLKID_CTS_VDAC_SEL] = &gxbb_cts_vdac_sel.hw,
|
||||||
[CLKID_CTS_VDAC_SEL] = &gxbb_cts_vdac_sel.hw,
|
[CLKID_HDMI_TX_SEL] = &gxbb_hdmi_tx_sel.hw,
|
||||||
[CLKID_HDMI_TX_SEL] = &gxbb_hdmi_tx_sel.hw,
|
[CLKID_CTS_ENCI] = &gxbb_cts_enci.hw,
|
||||||
[CLKID_CTS_ENCI] = &gxbb_cts_enci.hw,
|
[CLKID_CTS_ENCP] = &gxbb_cts_encp.hw,
|
||||||
[CLKID_CTS_ENCP] = &gxbb_cts_encp.hw,
|
[CLKID_CTS_VDAC] = &gxbb_cts_vdac.hw,
|
||||||
[CLKID_CTS_VDAC] = &gxbb_cts_vdac.hw,
|
[CLKID_HDMI_TX] = &gxbb_hdmi_tx.hw,
|
||||||
[CLKID_HDMI_TX] = &gxbb_hdmi_tx.hw,
|
[CLKID_HDMI_SEL] = &gxbb_hdmi_sel.hw,
|
||||||
[CLKID_HDMI_SEL] = &gxbb_hdmi_sel.hw,
|
[CLKID_HDMI_DIV] = &gxbb_hdmi_div.hw,
|
||||||
[CLKID_HDMI_DIV] = &gxbb_hdmi_div.hw,
|
[CLKID_HDMI] = &gxbb_hdmi.hw,
|
||||||
[CLKID_HDMI] = &gxbb_hdmi.hw,
|
|
||||||
[NR_CLKS] = NULL,
|
|
||||||
},
|
|
||||||
.num = NR_CLKS,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk_hw_onecell_data gxl_hw_onecell_data = {
|
static struct clk_hw *gxl_hw_clks[] = {
|
||||||
.hws = {
|
[CLKID_SYS_PLL] = &gxbb_sys_pll.hw,
|
||||||
[CLKID_SYS_PLL] = &gxbb_sys_pll.hw,
|
[CLKID_HDMI_PLL] = &gxl_hdmi_pll.hw,
|
||||||
[CLKID_HDMI_PLL] = &gxl_hdmi_pll.hw,
|
[CLKID_FIXED_PLL] = &gxbb_fixed_pll.hw,
|
||||||
[CLKID_FIXED_PLL] = &gxbb_fixed_pll.hw,
|
[CLKID_FCLK_DIV2] = &gxbb_fclk_div2.hw,
|
||||||
[CLKID_FCLK_DIV2] = &gxbb_fclk_div2.hw,
|
[CLKID_FCLK_DIV3] = &gxbb_fclk_div3.hw,
|
||||||
[CLKID_FCLK_DIV3] = &gxbb_fclk_div3.hw,
|
[CLKID_FCLK_DIV4] = &gxbb_fclk_div4.hw,
|
||||||
[CLKID_FCLK_DIV4] = &gxbb_fclk_div4.hw,
|
[CLKID_FCLK_DIV5] = &gxbb_fclk_div5.hw,
|
||||||
[CLKID_FCLK_DIV5] = &gxbb_fclk_div5.hw,
|
[CLKID_FCLK_DIV7] = &gxbb_fclk_div7.hw,
|
||||||
[CLKID_FCLK_DIV7] = &gxbb_fclk_div7.hw,
|
[CLKID_GP0_PLL] = &gxbb_gp0_pll.hw,
|
||||||
[CLKID_GP0_PLL] = &gxbb_gp0_pll.hw,
|
[CLKID_MPEG_SEL] = &gxbb_mpeg_clk_sel.hw,
|
||||||
[CLKID_MPEG_SEL] = &gxbb_mpeg_clk_sel.hw,
|
[CLKID_MPEG_DIV] = &gxbb_mpeg_clk_div.hw,
|
||||||
[CLKID_MPEG_DIV] = &gxbb_mpeg_clk_div.hw,
|
[CLKID_CLK81] = &gxbb_clk81.hw,
|
||||||
[CLKID_CLK81] = &gxbb_clk81.hw,
|
[CLKID_MPLL0] = &gxbb_mpll0.hw,
|
||||||
[CLKID_MPLL0] = &gxbb_mpll0.hw,
|
[CLKID_MPLL1] = &gxbb_mpll1.hw,
|
||||||
[CLKID_MPLL1] = &gxbb_mpll1.hw,
|
[CLKID_MPLL2] = &gxbb_mpll2.hw,
|
||||||
[CLKID_MPLL2] = &gxbb_mpll2.hw,
|
[CLKID_DDR] = &gxbb_ddr.hw,
|
||||||
[CLKID_DDR] = &gxbb_ddr.hw,
|
[CLKID_DOS] = &gxbb_dos.hw,
|
||||||
[CLKID_DOS] = &gxbb_dos.hw,
|
[CLKID_ISA] = &gxbb_isa.hw,
|
||||||
[CLKID_ISA] = &gxbb_isa.hw,
|
[CLKID_PL301] = &gxbb_pl301.hw,
|
||||||
[CLKID_PL301] = &gxbb_pl301.hw,
|
[CLKID_PERIPHS] = &gxbb_periphs.hw,
|
||||||
[CLKID_PERIPHS] = &gxbb_periphs.hw,
|
[CLKID_SPICC] = &gxbb_spicc.hw,
|
||||||
[CLKID_SPICC] = &gxbb_spicc.hw,
|
[CLKID_I2C] = &gxbb_i2c.hw,
|
||||||
[CLKID_I2C] = &gxbb_i2c.hw,
|
[CLKID_SAR_ADC] = &gxbb_sar_adc.hw,
|
||||||
[CLKID_SAR_ADC] = &gxbb_sar_adc.hw,
|
[CLKID_SMART_CARD] = &gxbb_smart_card.hw,
|
||||||
[CLKID_SMART_CARD] = &gxbb_smart_card.hw,
|
[CLKID_RNG0] = &gxbb_rng0.hw,
|
||||||
[CLKID_RNG0] = &gxbb_rng0.hw,
|
[CLKID_UART0] = &gxbb_uart0.hw,
|
||||||
[CLKID_UART0] = &gxbb_uart0.hw,
|
[CLKID_SDHC] = &gxbb_sdhc.hw,
|
||||||
[CLKID_SDHC] = &gxbb_sdhc.hw,
|
[CLKID_STREAM] = &gxbb_stream.hw,
|
||||||
[CLKID_STREAM] = &gxbb_stream.hw,
|
[CLKID_ASYNC_FIFO] = &gxbb_async_fifo.hw,
|
||||||
[CLKID_ASYNC_FIFO] = &gxbb_async_fifo.hw,
|
[CLKID_SDIO] = &gxbb_sdio.hw,
|
||||||
[CLKID_SDIO] = &gxbb_sdio.hw,
|
[CLKID_ABUF] = &gxbb_abuf.hw,
|
||||||
[CLKID_ABUF] = &gxbb_abuf.hw,
|
[CLKID_HIU_IFACE] = &gxbb_hiu_iface.hw,
|
||||||
[CLKID_HIU_IFACE] = &gxbb_hiu_iface.hw,
|
[CLKID_ASSIST_MISC] = &gxbb_assist_misc.hw,
|
||||||
[CLKID_ASSIST_MISC] = &gxbb_assist_misc.hw,
|
[CLKID_SPI] = &gxbb_spi.hw,
|
||||||
[CLKID_SPI] = &gxbb_spi.hw,
|
[CLKID_I2S_SPDIF] = &gxbb_i2s_spdif.hw,
|
||||||
[CLKID_I2S_SPDIF] = &gxbb_i2s_spdif.hw,
|
[CLKID_ETH] = &gxbb_eth.hw,
|
||||||
[CLKID_ETH] = &gxbb_eth.hw,
|
[CLKID_DEMUX] = &gxbb_demux.hw,
|
||||||
[CLKID_DEMUX] = &gxbb_demux.hw,
|
[CLKID_AIU_GLUE] = &gxbb_aiu_glue.hw,
|
||||||
[CLKID_AIU_GLUE] = &gxbb_aiu_glue.hw,
|
[CLKID_IEC958] = &gxbb_iec958.hw,
|
||||||
[CLKID_IEC958] = &gxbb_iec958.hw,
|
[CLKID_I2S_OUT] = &gxbb_i2s_out.hw,
|
||||||
[CLKID_I2S_OUT] = &gxbb_i2s_out.hw,
|
[CLKID_AMCLK] = &gxbb_amclk.hw,
|
||||||
[CLKID_AMCLK] = &gxbb_amclk.hw,
|
[CLKID_AIFIFO2] = &gxbb_aififo2.hw,
|
||||||
[CLKID_AIFIFO2] = &gxbb_aififo2.hw,
|
[CLKID_MIXER] = &gxbb_mixer.hw,
|
||||||
[CLKID_MIXER] = &gxbb_mixer.hw,
|
[CLKID_MIXER_IFACE] = &gxbb_mixer_iface.hw,
|
||||||
[CLKID_MIXER_IFACE] = &gxbb_mixer_iface.hw,
|
[CLKID_ADC] = &gxbb_adc.hw,
|
||||||
[CLKID_ADC] = &gxbb_adc.hw,
|
[CLKID_BLKMV] = &gxbb_blkmv.hw,
|
||||||
[CLKID_BLKMV] = &gxbb_blkmv.hw,
|
[CLKID_AIU] = &gxbb_aiu.hw,
|
||||||
[CLKID_AIU] = &gxbb_aiu.hw,
|
[CLKID_UART1] = &gxbb_uart1.hw,
|
||||||
[CLKID_UART1] = &gxbb_uart1.hw,
|
[CLKID_G2D] = &gxbb_g2d.hw,
|
||||||
[CLKID_G2D] = &gxbb_g2d.hw,
|
[CLKID_USB0] = &gxbb_usb0.hw,
|
||||||
[CLKID_USB0] = &gxbb_usb0.hw,
|
[CLKID_USB1] = &gxbb_usb1.hw,
|
||||||
[CLKID_USB1] = &gxbb_usb1.hw,
|
[CLKID_RESET] = &gxbb_reset.hw,
|
||||||
[CLKID_RESET] = &gxbb_reset.hw,
|
[CLKID_NAND] = &gxbb_nand.hw,
|
||||||
[CLKID_NAND] = &gxbb_nand.hw,
|
[CLKID_DOS_PARSER] = &gxbb_dos_parser.hw,
|
||||||
[CLKID_DOS_PARSER] = &gxbb_dos_parser.hw,
|
[CLKID_USB] = &gxbb_usb.hw,
|
||||||
[CLKID_USB] = &gxbb_usb.hw,
|
[CLKID_VDIN1] = &gxbb_vdin1.hw,
|
||||||
[CLKID_VDIN1] = &gxbb_vdin1.hw,
|
[CLKID_AHB_ARB0] = &gxbb_ahb_arb0.hw,
|
||||||
[CLKID_AHB_ARB0] = &gxbb_ahb_arb0.hw,
|
[CLKID_EFUSE] = &gxbb_efuse.hw,
|
||||||
[CLKID_EFUSE] = &gxbb_efuse.hw,
|
[CLKID_BOOT_ROM] = &gxbb_boot_rom.hw,
|
||||||
[CLKID_BOOT_ROM] = &gxbb_boot_rom.hw,
|
[CLKID_AHB_DATA_BUS] = &gxbb_ahb_data_bus.hw,
|
||||||
[CLKID_AHB_DATA_BUS] = &gxbb_ahb_data_bus.hw,
|
[CLKID_AHB_CTRL_BUS] = &gxbb_ahb_ctrl_bus.hw,
|
||||||
[CLKID_AHB_CTRL_BUS] = &gxbb_ahb_ctrl_bus.hw,
|
[CLKID_HDMI_INTR_SYNC] = &gxbb_hdmi_intr_sync.hw,
|
||||||
[CLKID_HDMI_INTR_SYNC] = &gxbb_hdmi_intr_sync.hw,
|
[CLKID_HDMI_PCLK] = &gxbb_hdmi_pclk.hw,
|
||||||
[CLKID_HDMI_PCLK] = &gxbb_hdmi_pclk.hw,
|
[CLKID_USB1_DDR_BRIDGE] = &gxbb_usb1_ddr_bridge.hw,
|
||||||
[CLKID_USB1_DDR_BRIDGE] = &gxbb_usb1_ddr_bridge.hw,
|
[CLKID_USB0_DDR_BRIDGE] = &gxbb_usb0_ddr_bridge.hw,
|
||||||
[CLKID_USB0_DDR_BRIDGE] = &gxbb_usb0_ddr_bridge.hw,
|
[CLKID_MMC_PCLK] = &gxbb_mmc_pclk.hw,
|
||||||
[CLKID_MMC_PCLK] = &gxbb_mmc_pclk.hw,
|
[CLKID_DVIN] = &gxbb_dvin.hw,
|
||||||
[CLKID_DVIN] = &gxbb_dvin.hw,
|
[CLKID_UART2] = &gxbb_uart2.hw,
|
||||||
[CLKID_UART2] = &gxbb_uart2.hw,
|
[CLKID_SANA] = &gxbb_sana.hw,
|
||||||
[CLKID_SANA] = &gxbb_sana.hw,
|
[CLKID_VPU_INTR] = &gxbb_vpu_intr.hw,
|
||||||
[CLKID_VPU_INTR] = &gxbb_vpu_intr.hw,
|
[CLKID_SEC_AHB_AHB3_BRIDGE] = &gxbb_sec_ahb_ahb3_bridge.hw,
|
||||||
[CLKID_SEC_AHB_AHB3_BRIDGE] = &gxbb_sec_ahb_ahb3_bridge.hw,
|
[CLKID_CLK81_A53] = &gxbb_clk81_a53.hw,
|
||||||
[CLKID_CLK81_A53] = &gxbb_clk81_a53.hw,
|
[CLKID_VCLK2_VENCI0] = &gxbb_vclk2_venci0.hw,
|
||||||
[CLKID_VCLK2_VENCI0] = &gxbb_vclk2_venci0.hw,
|
[CLKID_VCLK2_VENCI1] = &gxbb_vclk2_venci1.hw,
|
||||||
[CLKID_VCLK2_VENCI1] = &gxbb_vclk2_venci1.hw,
|
[CLKID_VCLK2_VENCP0] = &gxbb_vclk2_vencp0.hw,
|
||||||
[CLKID_VCLK2_VENCP0] = &gxbb_vclk2_vencp0.hw,
|
[CLKID_VCLK2_VENCP1] = &gxbb_vclk2_vencp1.hw,
|
||||||
[CLKID_VCLK2_VENCP1] = &gxbb_vclk2_vencp1.hw,
|
[CLKID_GCLK_VENCI_INT0] = &gxbb_gclk_venci_int0.hw,
|
||||||
[CLKID_GCLK_VENCI_INT0] = &gxbb_gclk_venci_int0.hw,
|
[CLKID_GCLK_VENCI_INT] = &gxbb_gclk_vencp_int.hw,
|
||||||
[CLKID_GCLK_VENCI_INT] = &gxbb_gclk_vencp_int.hw,
|
[CLKID_DAC_CLK] = &gxbb_dac_clk.hw,
|
||||||
[CLKID_DAC_CLK] = &gxbb_dac_clk.hw,
|
[CLKID_AOCLK_GATE] = &gxbb_aoclk_gate.hw,
|
||||||
[CLKID_AOCLK_GATE] = &gxbb_aoclk_gate.hw,
|
[CLKID_IEC958_GATE] = &gxbb_iec958_gate.hw,
|
||||||
[CLKID_IEC958_GATE] = &gxbb_iec958_gate.hw,
|
[CLKID_ENC480P] = &gxbb_enc480p.hw,
|
||||||
[CLKID_ENC480P] = &gxbb_enc480p.hw,
|
[CLKID_RNG1] = &gxbb_rng1.hw,
|
||||||
[CLKID_RNG1] = &gxbb_rng1.hw,
|
[CLKID_GCLK_VENCI_INT1] = &gxbb_gclk_venci_int1.hw,
|
||||||
[CLKID_GCLK_VENCI_INT1] = &gxbb_gclk_venci_int1.hw,
|
[CLKID_VCLK2_VENCLMCC] = &gxbb_vclk2_venclmcc.hw,
|
||||||
[CLKID_VCLK2_VENCLMCC] = &gxbb_vclk2_venclmcc.hw,
|
[CLKID_VCLK2_VENCL] = &gxbb_vclk2_vencl.hw,
|
||||||
[CLKID_VCLK2_VENCL] = &gxbb_vclk2_vencl.hw,
|
[CLKID_VCLK_OTHER] = &gxbb_vclk_other.hw,
|
||||||
[CLKID_VCLK_OTHER] = &gxbb_vclk_other.hw,
|
[CLKID_EDP] = &gxbb_edp.hw,
|
||||||
[CLKID_EDP] = &gxbb_edp.hw,
|
[CLKID_AO_MEDIA_CPU] = &gxbb_ao_media_cpu.hw,
|
||||||
[CLKID_AO_MEDIA_CPU] = &gxbb_ao_media_cpu.hw,
|
[CLKID_AO_AHB_SRAM] = &gxbb_ao_ahb_sram.hw,
|
||||||
[CLKID_AO_AHB_SRAM] = &gxbb_ao_ahb_sram.hw,
|
[CLKID_AO_AHB_BUS] = &gxbb_ao_ahb_bus.hw,
|
||||||
[CLKID_AO_AHB_BUS] = &gxbb_ao_ahb_bus.hw,
|
[CLKID_AO_IFACE] = &gxbb_ao_iface.hw,
|
||||||
[CLKID_AO_IFACE] = &gxbb_ao_iface.hw,
|
[CLKID_AO_I2C] = &gxbb_ao_i2c.hw,
|
||||||
[CLKID_AO_I2C] = &gxbb_ao_i2c.hw,
|
[CLKID_SD_EMMC_A] = &gxbb_emmc_a.hw,
|
||||||
[CLKID_SD_EMMC_A] = &gxbb_emmc_a.hw,
|
[CLKID_SD_EMMC_B] = &gxbb_emmc_b.hw,
|
||||||
[CLKID_SD_EMMC_B] = &gxbb_emmc_b.hw,
|
[CLKID_SD_EMMC_C] = &gxbb_emmc_c.hw,
|
||||||
[CLKID_SD_EMMC_C] = &gxbb_emmc_c.hw,
|
[CLKID_SAR_ADC_CLK] = &gxbb_sar_adc_clk.hw,
|
||||||
[CLKID_SAR_ADC_CLK] = &gxbb_sar_adc_clk.hw,
|
[CLKID_SAR_ADC_SEL] = &gxbb_sar_adc_clk_sel.hw,
|
||||||
[CLKID_SAR_ADC_SEL] = &gxbb_sar_adc_clk_sel.hw,
|
[CLKID_SAR_ADC_DIV] = &gxbb_sar_adc_clk_div.hw,
|
||||||
[CLKID_SAR_ADC_DIV] = &gxbb_sar_adc_clk_div.hw,
|
[CLKID_MALI_0_SEL] = &gxbb_mali_0_sel.hw,
|
||||||
[CLKID_MALI_0_SEL] = &gxbb_mali_0_sel.hw,
|
[CLKID_MALI_0_DIV] = &gxbb_mali_0_div.hw,
|
||||||
[CLKID_MALI_0_DIV] = &gxbb_mali_0_div.hw,
|
[CLKID_MALI_0] = &gxbb_mali_0.hw,
|
||||||
[CLKID_MALI_0] = &gxbb_mali_0.hw,
|
[CLKID_MALI_1_SEL] = &gxbb_mali_1_sel.hw,
|
||||||
[CLKID_MALI_1_SEL] = &gxbb_mali_1_sel.hw,
|
[CLKID_MALI_1_DIV] = &gxbb_mali_1_div.hw,
|
||||||
[CLKID_MALI_1_DIV] = &gxbb_mali_1_div.hw,
|
[CLKID_MALI_1] = &gxbb_mali_1.hw,
|
||||||
[CLKID_MALI_1] = &gxbb_mali_1.hw,
|
[CLKID_MALI] = &gxbb_mali.hw,
|
||||||
[CLKID_MALI] = &gxbb_mali.hw,
|
[CLKID_CTS_AMCLK] = &gxbb_cts_amclk.hw,
|
||||||
[CLKID_CTS_AMCLK] = &gxbb_cts_amclk.hw,
|
[CLKID_CTS_AMCLK_SEL] = &gxbb_cts_amclk_sel.hw,
|
||||||
[CLKID_CTS_AMCLK_SEL] = &gxbb_cts_amclk_sel.hw,
|
[CLKID_CTS_AMCLK_DIV] = &gxbb_cts_amclk_div.hw,
|
||||||
[CLKID_CTS_AMCLK_DIV] = &gxbb_cts_amclk_div.hw,
|
[CLKID_CTS_MCLK_I958] = &gxbb_cts_mclk_i958.hw,
|
||||||
[CLKID_CTS_MCLK_I958] = &gxbb_cts_mclk_i958.hw,
|
[CLKID_CTS_MCLK_I958_SEL] = &gxbb_cts_mclk_i958_sel.hw,
|
||||||
[CLKID_CTS_MCLK_I958_SEL] = &gxbb_cts_mclk_i958_sel.hw,
|
[CLKID_CTS_MCLK_I958_DIV] = &gxbb_cts_mclk_i958_div.hw,
|
||||||
[CLKID_CTS_MCLK_I958_DIV] = &gxbb_cts_mclk_i958_div.hw,
|
[CLKID_CTS_I958] = &gxbb_cts_i958.hw,
|
||||||
[CLKID_CTS_I958] = &gxbb_cts_i958.hw,
|
[CLKID_32K_CLK] = &gxbb_32k_clk.hw,
|
||||||
[CLKID_32K_CLK] = &gxbb_32k_clk.hw,
|
[CLKID_32K_CLK_SEL] = &gxbb_32k_clk_sel.hw,
|
||||||
[CLKID_32K_CLK_SEL] = &gxbb_32k_clk_sel.hw,
|
[CLKID_32K_CLK_DIV] = &gxbb_32k_clk_div.hw,
|
||||||
[CLKID_32K_CLK_DIV] = &gxbb_32k_clk_div.hw,
|
[CLKID_SD_EMMC_A_CLK0_SEL] = &gxbb_sd_emmc_a_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_A_CLK0_SEL] = &gxbb_sd_emmc_a_clk0_sel.hw,
|
[CLKID_SD_EMMC_A_CLK0_DIV] = &gxbb_sd_emmc_a_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_A_CLK0_DIV] = &gxbb_sd_emmc_a_clk0_div.hw,
|
[CLKID_SD_EMMC_A_CLK0] = &gxbb_sd_emmc_a_clk0.hw,
|
||||||
[CLKID_SD_EMMC_A_CLK0] = &gxbb_sd_emmc_a_clk0.hw,
|
[CLKID_SD_EMMC_B_CLK0_SEL] = &gxbb_sd_emmc_b_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0_SEL] = &gxbb_sd_emmc_b_clk0_sel.hw,
|
[CLKID_SD_EMMC_B_CLK0_DIV] = &gxbb_sd_emmc_b_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0_DIV] = &gxbb_sd_emmc_b_clk0_div.hw,
|
[CLKID_SD_EMMC_B_CLK0] = &gxbb_sd_emmc_b_clk0.hw,
|
||||||
[CLKID_SD_EMMC_B_CLK0] = &gxbb_sd_emmc_b_clk0.hw,
|
[CLKID_SD_EMMC_C_CLK0_SEL] = &gxbb_sd_emmc_c_clk0_sel.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0_SEL] = &gxbb_sd_emmc_c_clk0_sel.hw,
|
[CLKID_SD_EMMC_C_CLK0_DIV] = &gxbb_sd_emmc_c_clk0_div.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0_DIV] = &gxbb_sd_emmc_c_clk0_div.hw,
|
[CLKID_SD_EMMC_C_CLK0] = &gxbb_sd_emmc_c_clk0.hw,
|
||||||
[CLKID_SD_EMMC_C_CLK0] = &gxbb_sd_emmc_c_clk0.hw,
|
[CLKID_VPU_0_SEL] = &gxbb_vpu_0_sel.hw,
|
||||||
[CLKID_VPU_0_SEL] = &gxbb_vpu_0_sel.hw,
|
[CLKID_VPU_0_DIV] = &gxbb_vpu_0_div.hw,
|
||||||
[CLKID_VPU_0_DIV] = &gxbb_vpu_0_div.hw,
|
[CLKID_VPU_0] = &gxbb_vpu_0.hw,
|
||||||
[CLKID_VPU_0] = &gxbb_vpu_0.hw,
|
[CLKID_VPU_1_SEL] = &gxbb_vpu_1_sel.hw,
|
||||||
[CLKID_VPU_1_SEL] = &gxbb_vpu_1_sel.hw,
|
[CLKID_VPU_1_DIV] = &gxbb_vpu_1_div.hw,
|
||||||
[CLKID_VPU_1_DIV] = &gxbb_vpu_1_div.hw,
|
[CLKID_VPU_1] = &gxbb_vpu_1.hw,
|
||||||
[CLKID_VPU_1] = &gxbb_vpu_1.hw,
|
[CLKID_VPU] = &gxbb_vpu.hw,
|
||||||
[CLKID_VPU] = &gxbb_vpu.hw,
|
[CLKID_VAPB_0_SEL] = &gxbb_vapb_0_sel.hw,
|
||||||
[CLKID_VAPB_0_SEL] = &gxbb_vapb_0_sel.hw,
|
[CLKID_VAPB_0_DIV] = &gxbb_vapb_0_div.hw,
|
||||||
[CLKID_VAPB_0_DIV] = &gxbb_vapb_0_div.hw,
|
[CLKID_VAPB_0] = &gxbb_vapb_0.hw,
|
||||||
[CLKID_VAPB_0] = &gxbb_vapb_0.hw,
|
[CLKID_VAPB_1_SEL] = &gxbb_vapb_1_sel.hw,
|
||||||
[CLKID_VAPB_1_SEL] = &gxbb_vapb_1_sel.hw,
|
[CLKID_VAPB_1_DIV] = &gxbb_vapb_1_div.hw,
|
||||||
[CLKID_VAPB_1_DIV] = &gxbb_vapb_1_div.hw,
|
[CLKID_VAPB_1] = &gxbb_vapb_1.hw,
|
||||||
[CLKID_VAPB_1] = &gxbb_vapb_1.hw,
|
[CLKID_VAPB_SEL] = &gxbb_vapb_sel.hw,
|
||||||
[CLKID_VAPB_SEL] = &gxbb_vapb_sel.hw,
|
[CLKID_VAPB] = &gxbb_vapb.hw,
|
||||||
[CLKID_VAPB] = &gxbb_vapb.hw,
|
[CLKID_MPLL0_DIV] = &gxl_mpll0_div.hw,
|
||||||
[CLKID_MPLL0_DIV] = &gxl_mpll0_div.hw,
|
[CLKID_MPLL1_DIV] = &gxbb_mpll1_div.hw,
|
||||||
[CLKID_MPLL1_DIV] = &gxbb_mpll1_div.hw,
|
[CLKID_MPLL2_DIV] = &gxbb_mpll2_div.hw,
|
||||||
[CLKID_MPLL2_DIV] = &gxbb_mpll2_div.hw,
|
[CLKID_MPLL_PREDIV] = &gxbb_mpll_prediv.hw,
|
||||||
[CLKID_MPLL_PREDIV] = &gxbb_mpll_prediv.hw,
|
[CLKID_FCLK_DIV2_DIV] = &gxbb_fclk_div2_div.hw,
|
||||||
[CLKID_FCLK_DIV2_DIV] = &gxbb_fclk_div2_div.hw,
|
[CLKID_FCLK_DIV3_DIV] = &gxbb_fclk_div3_div.hw,
|
||||||
[CLKID_FCLK_DIV3_DIV] = &gxbb_fclk_div3_div.hw,
|
[CLKID_FCLK_DIV4_DIV] = &gxbb_fclk_div4_div.hw,
|
||||||
[CLKID_FCLK_DIV4_DIV] = &gxbb_fclk_div4_div.hw,
|
[CLKID_FCLK_DIV5_DIV] = &gxbb_fclk_div5_div.hw,
|
||||||
[CLKID_FCLK_DIV5_DIV] = &gxbb_fclk_div5_div.hw,
|
[CLKID_FCLK_DIV7_DIV] = &gxbb_fclk_div7_div.hw,
|
||||||
[CLKID_FCLK_DIV7_DIV] = &gxbb_fclk_div7_div.hw,
|
[CLKID_VDEC_1_SEL] = &gxbb_vdec_1_sel.hw,
|
||||||
[CLKID_VDEC_1_SEL] = &gxbb_vdec_1_sel.hw,
|
[CLKID_VDEC_1_DIV] = &gxbb_vdec_1_div.hw,
|
||||||
[CLKID_VDEC_1_DIV] = &gxbb_vdec_1_div.hw,
|
[CLKID_VDEC_1] = &gxbb_vdec_1.hw,
|
||||||
[CLKID_VDEC_1] = &gxbb_vdec_1.hw,
|
[CLKID_VDEC_HEVC_SEL] = &gxbb_vdec_hevc_sel.hw,
|
||||||
[CLKID_VDEC_HEVC_SEL] = &gxbb_vdec_hevc_sel.hw,
|
[CLKID_VDEC_HEVC_DIV] = &gxbb_vdec_hevc_div.hw,
|
||||||
[CLKID_VDEC_HEVC_DIV] = &gxbb_vdec_hevc_div.hw,
|
[CLKID_VDEC_HEVC] = &gxbb_vdec_hevc.hw,
|
||||||
[CLKID_VDEC_HEVC] = &gxbb_vdec_hevc.hw,
|
[CLKID_GEN_CLK_SEL] = &gxbb_gen_clk_sel.hw,
|
||||||
[CLKID_GEN_CLK_SEL] = &gxbb_gen_clk_sel.hw,
|
[CLKID_GEN_CLK_DIV] = &gxbb_gen_clk_div.hw,
|
||||||
[CLKID_GEN_CLK_DIV] = &gxbb_gen_clk_div.hw,
|
[CLKID_GEN_CLK] = &gxbb_gen_clk.hw,
|
||||||
[CLKID_GEN_CLK] = &gxbb_gen_clk.hw,
|
[CLKID_FIXED_PLL_DCO] = &gxbb_fixed_pll_dco.hw,
|
||||||
[CLKID_FIXED_PLL_DCO] = &gxbb_fixed_pll_dco.hw,
|
[CLKID_HDMI_PLL_DCO] = &gxl_hdmi_pll_dco.hw,
|
||||||
[CLKID_HDMI_PLL_DCO] = &gxl_hdmi_pll_dco.hw,
|
[CLKID_HDMI_PLL_OD] = &gxl_hdmi_pll_od.hw,
|
||||||
[CLKID_HDMI_PLL_OD] = &gxl_hdmi_pll_od.hw,
|
[CLKID_HDMI_PLL_OD2] = &gxl_hdmi_pll_od2.hw,
|
||||||
[CLKID_HDMI_PLL_OD2] = &gxl_hdmi_pll_od2.hw,
|
[CLKID_SYS_PLL_DCO] = &gxbb_sys_pll_dco.hw,
|
||||||
[CLKID_SYS_PLL_DCO] = &gxbb_sys_pll_dco.hw,
|
[CLKID_GP0_PLL_DCO] = &gxl_gp0_pll_dco.hw,
|
||||||
[CLKID_GP0_PLL_DCO] = &gxl_gp0_pll_dco.hw,
|
[CLKID_VID_PLL_DIV] = &gxbb_vid_pll_div.hw,
|
||||||
[CLKID_VID_PLL_DIV] = &gxbb_vid_pll_div.hw,
|
[CLKID_VID_PLL_SEL] = &gxbb_vid_pll_sel.hw,
|
||||||
[CLKID_VID_PLL_SEL] = &gxbb_vid_pll_sel.hw,
|
[CLKID_VID_PLL] = &gxbb_vid_pll.hw,
|
||||||
[CLKID_VID_PLL] = &gxbb_vid_pll.hw,
|
[CLKID_VCLK_SEL] = &gxbb_vclk_sel.hw,
|
||||||
[CLKID_VCLK_SEL] = &gxbb_vclk_sel.hw,
|
[CLKID_VCLK2_SEL] = &gxbb_vclk2_sel.hw,
|
||||||
[CLKID_VCLK2_SEL] = &gxbb_vclk2_sel.hw,
|
[CLKID_VCLK_INPUT] = &gxbb_vclk_input.hw,
|
||||||
[CLKID_VCLK_INPUT] = &gxbb_vclk_input.hw,
|
[CLKID_VCLK2_INPUT] = &gxbb_vclk2_input.hw,
|
||||||
[CLKID_VCLK2_INPUT] = &gxbb_vclk2_input.hw,
|
[CLKID_VCLK_DIV] = &gxbb_vclk_div.hw,
|
||||||
[CLKID_VCLK_DIV] = &gxbb_vclk_div.hw,
|
[CLKID_VCLK2_DIV] = &gxbb_vclk2_div.hw,
|
||||||
[CLKID_VCLK2_DIV] = &gxbb_vclk2_div.hw,
|
[CLKID_VCLK] = &gxbb_vclk.hw,
|
||||||
[CLKID_VCLK] = &gxbb_vclk.hw,
|
[CLKID_VCLK2] = &gxbb_vclk2.hw,
|
||||||
[CLKID_VCLK2] = &gxbb_vclk2.hw,
|
[CLKID_VCLK_DIV1] = &gxbb_vclk_div1.hw,
|
||||||
[CLKID_VCLK_DIV1] = &gxbb_vclk_div1.hw,
|
[CLKID_VCLK_DIV2_EN] = &gxbb_vclk_div2_en.hw,
|
||||||
[CLKID_VCLK_DIV2_EN] = &gxbb_vclk_div2_en.hw,
|
[CLKID_VCLK_DIV2] = &gxbb_vclk_div2.hw,
|
||||||
[CLKID_VCLK_DIV2] = &gxbb_vclk_div2.hw,
|
[CLKID_VCLK_DIV4_EN] = &gxbb_vclk_div4_en.hw,
|
||||||
[CLKID_VCLK_DIV4_EN] = &gxbb_vclk_div4_en.hw,
|
[CLKID_VCLK_DIV4] = &gxbb_vclk_div4.hw,
|
||||||
[CLKID_VCLK_DIV4] = &gxbb_vclk_div4.hw,
|
[CLKID_VCLK_DIV6_EN] = &gxbb_vclk_div6_en.hw,
|
||||||
[CLKID_VCLK_DIV6_EN] = &gxbb_vclk_div6_en.hw,
|
[CLKID_VCLK_DIV6] = &gxbb_vclk_div6.hw,
|
||||||
[CLKID_VCLK_DIV6] = &gxbb_vclk_div6.hw,
|
[CLKID_VCLK_DIV12_EN] = &gxbb_vclk_div12_en.hw,
|
||||||
[CLKID_VCLK_DIV12_EN] = &gxbb_vclk_div12_en.hw,
|
[CLKID_VCLK_DIV12] = &gxbb_vclk_div12.hw,
|
||||||
[CLKID_VCLK_DIV12] = &gxbb_vclk_div12.hw,
|
[CLKID_VCLK2_DIV1] = &gxbb_vclk2_div1.hw,
|
||||||
[CLKID_VCLK2_DIV1] = &gxbb_vclk2_div1.hw,
|
[CLKID_VCLK2_DIV2_EN] = &gxbb_vclk2_div2_en.hw,
|
||||||
[CLKID_VCLK2_DIV2_EN] = &gxbb_vclk2_div2_en.hw,
|
[CLKID_VCLK2_DIV2] = &gxbb_vclk2_div2.hw,
|
||||||
[CLKID_VCLK2_DIV2] = &gxbb_vclk2_div2.hw,
|
[CLKID_VCLK2_DIV4_EN] = &gxbb_vclk2_div4_en.hw,
|
||||||
[CLKID_VCLK2_DIV4_EN] = &gxbb_vclk2_div4_en.hw,
|
[CLKID_VCLK2_DIV4] = &gxbb_vclk2_div4.hw,
|
||||||
[CLKID_VCLK2_DIV4] = &gxbb_vclk2_div4.hw,
|
[CLKID_VCLK2_DIV6_EN] = &gxbb_vclk2_div6_en.hw,
|
||||||
[CLKID_VCLK2_DIV6_EN] = &gxbb_vclk2_div6_en.hw,
|
[CLKID_VCLK2_DIV6] = &gxbb_vclk2_div6.hw,
|
||||||
[CLKID_VCLK2_DIV6] = &gxbb_vclk2_div6.hw,
|
[CLKID_VCLK2_DIV12_EN] = &gxbb_vclk2_div12_en.hw,
|
||||||
[CLKID_VCLK2_DIV12_EN] = &gxbb_vclk2_div12_en.hw,
|
[CLKID_VCLK2_DIV12] = &gxbb_vclk2_div12.hw,
|
||||||
[CLKID_VCLK2_DIV12] = &gxbb_vclk2_div12.hw,
|
[CLKID_CTS_ENCI_SEL] = &gxbb_cts_enci_sel.hw,
|
||||||
[CLKID_CTS_ENCI_SEL] = &gxbb_cts_enci_sel.hw,
|
[CLKID_CTS_ENCP_SEL] = &gxbb_cts_encp_sel.hw,
|
||||||
[CLKID_CTS_ENCP_SEL] = &gxbb_cts_encp_sel.hw,
|
[CLKID_CTS_VDAC_SEL] = &gxbb_cts_vdac_sel.hw,
|
||||||
[CLKID_CTS_VDAC_SEL] = &gxbb_cts_vdac_sel.hw,
|
[CLKID_HDMI_TX_SEL] = &gxbb_hdmi_tx_sel.hw,
|
||||||
[CLKID_HDMI_TX_SEL] = &gxbb_hdmi_tx_sel.hw,
|
[CLKID_CTS_ENCI] = &gxbb_cts_enci.hw,
|
||||||
[CLKID_CTS_ENCI] = &gxbb_cts_enci.hw,
|
[CLKID_CTS_ENCP] = &gxbb_cts_encp.hw,
|
||||||
[CLKID_CTS_ENCP] = &gxbb_cts_encp.hw,
|
[CLKID_CTS_VDAC] = &gxbb_cts_vdac.hw,
|
||||||
[CLKID_CTS_VDAC] = &gxbb_cts_vdac.hw,
|
[CLKID_HDMI_TX] = &gxbb_hdmi_tx.hw,
|
||||||
[CLKID_HDMI_TX] = &gxbb_hdmi_tx.hw,
|
[CLKID_HDMI_SEL] = &gxbb_hdmi_sel.hw,
|
||||||
[CLKID_HDMI_SEL] = &gxbb_hdmi_sel.hw,
|
[CLKID_HDMI_DIV] = &gxbb_hdmi_div.hw,
|
||||||
[CLKID_HDMI_DIV] = &gxbb_hdmi_div.hw,
|
[CLKID_HDMI] = &gxbb_hdmi.hw,
|
||||||
[CLKID_HDMI] = &gxbb_hdmi.hw,
|
[CLKID_ACODEC] = &gxl_acodec.hw,
|
||||||
[CLKID_ACODEC] = &gxl_acodec.hw,
|
|
||||||
[NR_CLKS] = NULL,
|
|
||||||
},
|
|
||||||
.num = NR_CLKS,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct clk_regmap *const gxbb_clk_regmaps[] = {
|
static struct clk_regmap *const gxbb_clk_regmaps[] = {
|
||||||
@ -3544,13 +3536,19 @@ static struct clk_regmap *const gxl_clk_regmaps[] = {
|
|||||||
static const struct meson_eeclkc_data gxbb_clkc_data = {
|
static const struct meson_eeclkc_data gxbb_clkc_data = {
|
||||||
.regmap_clks = gxbb_clk_regmaps,
|
.regmap_clks = gxbb_clk_regmaps,
|
||||||
.regmap_clk_num = ARRAY_SIZE(gxbb_clk_regmaps),
|
.regmap_clk_num = ARRAY_SIZE(gxbb_clk_regmaps),
|
||||||
.hw_onecell_data = &gxbb_hw_onecell_data,
|
.hw_clks = {
|
||||||
|
.hws = gxbb_hw_clks,
|
||||||
|
.num = ARRAY_SIZE(gxbb_hw_clks),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct meson_eeclkc_data gxl_clkc_data = {
|
static const struct meson_eeclkc_data gxl_clkc_data = {
|
||||||
.regmap_clks = gxl_clk_regmaps,
|
.regmap_clks = gxl_clk_regmaps,
|
||||||
.regmap_clk_num = ARRAY_SIZE(gxl_clk_regmaps),
|
.regmap_clk_num = ARRAY_SIZE(gxl_clk_regmaps),
|
||||||
.hw_onecell_data = &gxl_hw_onecell_data,
|
.hw_clks = {
|
||||||
|
.hws = gxl_hw_clks,
|
||||||
|
.num = ARRAY_SIZE(gxl_hw_clks),
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct of_device_id clkc_match_table[] = {
|
static const struct of_device_id clkc_match_table[] = {
|
||||||
|
@ -188,8 +188,6 @@
|
|||||||
#define CLKID_HDMI_SEL 203
|
#define CLKID_HDMI_SEL 203
|
||||||
#define CLKID_HDMI_DIV 204
|
#define CLKID_HDMI_DIV 204
|
||||||
|
|
||||||
#define NR_CLKS 207
|
|
||||||
|
|
||||||
/* include the CLKIDs that have been made part of the DT binding */
|
/* include the CLKIDs that have been made part of the DT binding */
|
||||||
#include <dt-bindings/clock/gxbb-clkc.h>
|
#include <dt-bindings/clock/gxbb-clkc.h>
|
||||||
|
|
||||||
|
@ -43,20 +43,19 @@ int meson_eeclkc_probe(struct platform_device *pdev)
|
|||||||
for (i = 0; i < data->regmap_clk_num; i++)
|
for (i = 0; i < data->regmap_clk_num; i++)
|
||||||
data->regmap_clks[i]->map = map;
|
data->regmap_clks[i]->map = map;
|
||||||
|
|
||||||
for (i = 0; i < data->hw_onecell_data->num; i++) {
|
for (i = 0; i < data->hw_clks.num; i++) {
|
||||||
/* array might be sparse */
|
/* array might be sparse */
|
||||||
if (!data->hw_onecell_data->hws[i])
|
if (!data->hw_clks.hws[i])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ret = devm_clk_hw_register(dev, data->hw_onecell_data->hws[i]);
|
ret = devm_clk_hw_register(dev, data->hw_clks.hws[i]);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "Clock registration failed\n");
|
dev_err(dev, "Clock registration failed\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get,
|
return devm_of_clk_add_hw_provider(dev, meson_clk_hw_get, (void *)&data->hw_clks);
|
||||||
data->hw_onecell_data);
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(meson_eeclkc_probe);
|
EXPORT_SYMBOL_GPL(meson_eeclkc_probe);
|
||||||
MODULE_LICENSE("GPL v2");
|
MODULE_LICENSE("GPL v2");
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include <linux/clk-provider.h>
|
#include <linux/clk-provider.h>
|
||||||
#include "clk-regmap.h"
|
#include "clk-regmap.h"
|
||||||
|
#include "meson-clkc-utils.h"
|
||||||
|
|
||||||
struct platform_device;
|
struct platform_device;
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ struct meson_eeclkc_data {
|
|||||||
unsigned int regmap_clk_num;
|
unsigned int regmap_clk_num;
|
||||||
const struct reg_sequence *init_regs;
|
const struct reg_sequence *init_regs;
|
||||||
unsigned int init_count;
|
unsigned int init_count;
|
||||||
struct clk_hw_onecell_data *hw_onecell_data;
|
struct meson_clk_hw_data hw_clks;
|
||||||
};
|
};
|
||||||
|
|
||||||
int meson_eeclkc_probe(struct platform_device *pdev);
|
int meson_eeclkc_probe(struct platform_device *pdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user