Skip to content

Commit 32c2f2a

Browse files
ahalaneyandersson
authored andcommitted
clk: qcom: gcc-sc8280xp: Add EMAC GDSCs
Add the EMAC GDSCs to allow the EMAC hardware to be enabled. Acked-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Tested-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Andrew Halaney <ahalaney@redhat.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230413191541.1073027-2-ahalaney@redhat.com
1 parent 68d1151 commit 32c2f2a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

drivers/clk/qcom/gcc-sc8280xp.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6873,6 +6873,22 @@ static struct gdsc usb30_sec_gdsc = {
68736873
.pwrsts = PWRSTS_RET_ON,
68746874
};
68756875

6876+
static struct gdsc emac_0_gdsc = {
6877+
.gdscr = 0xaa004,
6878+
.pd = {
6879+
.name = "emac_0_gdsc",
6880+
},
6881+
.pwrsts = PWRSTS_OFF_ON,
6882+
};
6883+
6884+
static struct gdsc emac_1_gdsc = {
6885+
.gdscr = 0xba004,
6886+
.pd = {
6887+
.name = "emac_1_gdsc",
6888+
},
6889+
.pwrsts = PWRSTS_OFF_ON,
6890+
};
6891+
68766892
static struct clk_regmap *gcc_sc8280xp_clocks[] = {
68776893
[GCC_AGGRE_NOC_PCIE0_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie0_tunnel_axi_clk.clkr,
68786894
[GCC_AGGRE_NOC_PCIE1_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie1_tunnel_axi_clk.clkr,
@@ -7351,6 +7367,8 @@ static struct gdsc *gcc_sc8280xp_gdscs[] = {
73517367
[USB30_MP_GDSC] = &usb30_mp_gdsc,
73527368
[USB30_PRIM_GDSC] = &usb30_prim_gdsc,
73537369
[USB30_SEC_GDSC] = &usb30_sec_gdsc,
7370+
[EMAC_0_GDSC] = &emac_0_gdsc,
7371+
[EMAC_1_GDSC] = &emac_1_gdsc,
73547372
};
73557373

73567374
static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = {

include/dt-bindings/clock/qcom,gcc-sc8280xp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,5 +492,7 @@
492492
#define USB30_MP_GDSC 9
493493
#define USB30_PRIM_GDSC 10
494494
#define USB30_SEC_GDSC 11
495+
#define EMAC_0_GDSC 12
496+
#define EMAC_1_GDSC 13
495497

496498
#endif

0 commit comments

Comments
 (0)