Loading drivers/clk/qcom/gcc-sdmshrike.c +25 −4 Original line number Diff line number Diff line /* * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1877,6 +1877,26 @@ static struct clk_branch gcc_aggre_noc_pcie_tbu_clk = { }, }; static struct clk_branch gcc_aggre_ufs_card_2_axi_clk = { .halt_reg = 0xa20c0, .halt_check = BRANCH_HALT, .hwcg_reg = 0xa20c0, .hwcg_bit = 1, .clkr = { .enable_reg = 0xa20c0, .enable_mask = BIT(0), .hw.init = &(struct clk_init_data){ .name = "gcc_aggre_ufs_card_2_axi_clk", .parent_names = (const char *[]){ "gcc_ufs_card_2_axi_clk_src", }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, .ops = &clk_branch2_ops, }, }, }; static struct clk_branch gcc_aggre_ufs_card_axi_clk = { .halt_reg = 0x750c0, .halt_check = BRANCH_HALT, Loading Loading @@ -3921,7 +3941,7 @@ static struct clk_branch gcc_ufs_card_2_phy_aux_clk = { static struct clk_branch gcc_ufs_card_2_rx_symbol_0_clk = { .halt_reg = 0xa201c, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0xa201c, .enable_mask = BIT(0), Loading @@ -3934,7 +3954,7 @@ static struct clk_branch gcc_ufs_card_2_rx_symbol_0_clk = { static struct clk_branch gcc_ufs_card_2_rx_symbol_1_clk = { .halt_reg = 0xa20ac, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0xa20ac, .enable_mask = BIT(0), Loading @@ -3947,7 +3967,7 @@ static struct clk_branch gcc_ufs_card_2_rx_symbol_1_clk = { static struct clk_branch gcc_ufs_card_2_tx_symbol_0_clk = { .halt_reg = 0xa2018, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0xa2018, .enable_mask = BIT(0), Loading Loading @@ -5079,6 +5099,7 @@ static struct clk_regmap *gcc_sdmshrike_clocks[] = { [GPLL1] = &gpll1.clkr, [GPLL4] = &gpll4.clkr, [GPLL7] = &gpll7.clkr, [GCC_AGGRE_UFS_CARD_2_AXI_CLK] = &gcc_aggre_ufs_card_2_axi_clk.clkr, }; static const struct qcom_reset_map gcc_sdmshrike_resets[] = { Loading include/dt-bindings/clock/qcom,gcc-sdmshrike.h +2 −1 Original line number Diff line number Diff line /* * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -263,6 +263,7 @@ #define GCC_PCIE_3_CLKREF_CLK 246 #define GCC_USB3_PRIM_CLKREF_CLK 247 #define GCC_USB3_SEC_CLKREF_CLK 248 #define GCC_AGGRE_UFS_CARD_2_AXI_CLK 249 #define GCC_EMAC_BCR 0 #define GCC_GPU_BCR 1 Loading Loading
drivers/clk/qcom/gcc-sdmshrike.c +25 −4 Original line number Diff line number Diff line /* * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -1877,6 +1877,26 @@ static struct clk_branch gcc_aggre_noc_pcie_tbu_clk = { }, }; static struct clk_branch gcc_aggre_ufs_card_2_axi_clk = { .halt_reg = 0xa20c0, .halt_check = BRANCH_HALT, .hwcg_reg = 0xa20c0, .hwcg_bit = 1, .clkr = { .enable_reg = 0xa20c0, .enable_mask = BIT(0), .hw.init = &(struct clk_init_data){ .name = "gcc_aggre_ufs_card_2_axi_clk", .parent_names = (const char *[]){ "gcc_ufs_card_2_axi_clk_src", }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, .ops = &clk_branch2_ops, }, }, }; static struct clk_branch gcc_aggre_ufs_card_axi_clk = { .halt_reg = 0x750c0, .halt_check = BRANCH_HALT, Loading Loading @@ -3921,7 +3941,7 @@ static struct clk_branch gcc_ufs_card_2_phy_aux_clk = { static struct clk_branch gcc_ufs_card_2_rx_symbol_0_clk = { .halt_reg = 0xa201c, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0xa201c, .enable_mask = BIT(0), Loading @@ -3934,7 +3954,7 @@ static struct clk_branch gcc_ufs_card_2_rx_symbol_0_clk = { static struct clk_branch gcc_ufs_card_2_rx_symbol_1_clk = { .halt_reg = 0xa20ac, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0xa20ac, .enable_mask = BIT(0), Loading @@ -3947,7 +3967,7 @@ static struct clk_branch gcc_ufs_card_2_rx_symbol_1_clk = { static struct clk_branch gcc_ufs_card_2_tx_symbol_0_clk = { .halt_reg = 0xa2018, .halt_check = BRANCH_HALT, .halt_check = BRANCH_HALT_DELAY, .clkr = { .enable_reg = 0xa2018, .enable_mask = BIT(0), Loading Loading @@ -5079,6 +5099,7 @@ static struct clk_regmap *gcc_sdmshrike_clocks[] = { [GPLL1] = &gpll1.clkr, [GPLL4] = &gpll4.clkr, [GPLL7] = &gpll7.clkr, [GCC_AGGRE_UFS_CARD_2_AXI_CLK] = &gcc_aggre_ufs_card_2_axi_clk.clkr, }; static const struct qcom_reset_map gcc_sdmshrike_resets[] = { Loading
include/dt-bindings/clock/qcom,gcc-sdmshrike.h +2 −1 Original line number Diff line number Diff line /* * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -263,6 +263,7 @@ #define GCC_PCIE_3_CLKREF_CLK 246 #define GCC_USB3_PRIM_CLKREF_CLK 247 #define GCC_USB3_SEC_CLKREF_CLK 248 #define GCC_AGGRE_UFS_CARD_2_AXI_CLK 249 #define GCC_EMAC_BCR 0 #define GCC_GPU_BCR 1 Loading