diff options
author | Bhupesh Sharma <bhupesh.sharma@linaro.org> | 2022-03-03 09:48:21 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-03-09 15:53:29 +0100 |
commit | d1a16e345578332c31aa4fb7b76e2e38249861ad (patch) | |
tree | dcac07d3f4a1b558f9ceab3a74de323d11f1fb48 /drivers/clk | |
parent | clk: qcom: gcc: sm8150: Fix some identation issues (diff) | |
download | linux-d1a16e345578332c31aa4fb7b76e2e38249861ad.tar.xz linux-d1a16e345578332c31aa4fb7b76e2e38249861ad.zip |
clk: qcom: gcc: Add emac GDSC support for SM8150
Add the EMAC GDSC defines and driver structures for SM8150.
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220303084824.284946-4-bhupesh.sharma@linaro.org
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/qcom/gcc-sm8150.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c index f510b8462509..09cf827addab 100644 --- a/drivers/clk/qcom/gcc-sm8150.c +++ b/drivers/clk/qcom/gcc-sm8150.c @@ -3484,6 +3484,15 @@ static struct gdsc ufs_phy_gdsc = { .flags = POLL_CFG_GDSCR, }; +static struct gdsc emac_gdsc = { + .gdscr = 0x6004, + .pd = { + .name = "emac_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = POLL_CFG_GDSCR, +}; + static struct gdsc usb30_prim_gdsc = { .gdscr = 0xf004, .pd = { @@ -3750,6 +3759,7 @@ static const struct qcom_reset_map gcc_sm8150_resets[] = { }; static struct gdsc *gcc_sm8150_gdscs[] = { + [EMAC_GDSC] = &emac_gdsc, [PCIE_0_GDSC] = &pcie_0_gdsc, [PCIE_1_GDSC] = &pcie_1_gdsc, [UFS_CARD_GDSC] = &ufs_card_gdsc, |