Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge "clk: qcom: Change gcc_usb3_phy_pipe_clk to gate_clk"
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux Build Service Account authored and Gerrit - the friendly Code Review server committed Oct 8, 2014
2 parents 25972f4 + c32533e commit cb152d6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/qcom/msm8994.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1403,9 +1403,10 @@
<&clock_gcc clk_gcc_usb3_phy_pipe_clk>,
<&clock_gcc clk_gcc_usb_phy_cfg_ahb2phy_clk>,
<&clock_gcc clk_gcc_usb3_phy_reset>,
<&clock_gcc clk_gcc_usb3phy_phy_reset>,
<&clock_gcc clk_usb_ss_phy_ldo>;
clock-names = "aux_clk", "pipe_clk", "cfg_ahb_clk", "phy_reset",
"ldo_clk";
"phy_phy_reset", "ldo_clk";
};

dbm_1p5: dbm@f92f8000 {
Expand Down
21 changes: 16 additions & 5 deletions drivers/clk/qcom/clock-gcc-8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -2484,18 +2484,28 @@ static struct branch_clk gcc_usb3_phy_aux_clk = {
},
};

static struct branch_clk gcc_usb3_phy_pipe_clk = {
.cbcr_reg = USB3_PHY_PIPE_CBCR,
.bcr_reg = USB3PHY_PHY_BCR,
.has_sibling = 1,
static struct gate_clk gcc_usb3_phy_pipe_clk = {
.en_reg = USB3_PHY_PIPE_CBCR,
.en_mask = BIT(0),
.delay_us = 50,
.base = &virt_base,
.c = {
.dbg_name = "gcc_usb3_phy_pipe_clk",
.ops = &clk_ops_branch,
.ops = &clk_ops_gate,
CLK_INIT(gcc_usb3_phy_pipe_clk.c),
},
};

static struct reset_clk gcc_usb3phy_phy_reset = {
.reset_reg = USB3PHY_PHY_BCR,
.base = &virt_base,
.c = {
.dbg_name = "gcc_usb3phy_phy_reset",
.ops = &clk_ops_rst,
CLK_INIT(gcc_usb3phy_phy_reset.c),
},
};

static struct branch_clk gcc_usb_hs_ahb_clk = {
.cbcr_reg = USB_HS_AHB_CBCR,
.has_sibling = 1,
Expand Down Expand Up @@ -2832,6 +2842,7 @@ static struct clk_lookup gcc_clocks_8994_common[] = {
CLK_LIST(gcc_usb30_sleep_clk),
CLK_LIST(gcc_usb3_phy_aux_clk),
CLK_LIST(gcc_usb3_phy_pipe_clk),
CLK_LIST(gcc_usb3phy_phy_reset),
CLK_LIST(gcc_usb_hs_ahb_clk),
CLK_LIST(gcc_usb_hs_system_clk),
CLK_LIST(gcc_usb_phy_cfg_ahb2phy_clk),
Expand Down
1 change: 1 addition & 0 deletions include/dt-bindings/clock/msm-clocks-8994.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
#define clk_gcc_usb30_sleep_clk 0xd0b65c92
#define clk_gcc_usb3_phy_aux_clk 0x0d9a36e0
#define clk_gcc_usb3_phy_pipe_clk 0xf279aff2
#define clk_gcc_usb3phy_phy_reset 0xb1a4f885
#define clk_gcc_usb_hs_ahb_clk 0x72ce8032
#define clk_gcc_usb_hs_system_clk 0xa11972e5
#define clk_gcc_usb_phy_cfg_ahb2phy_clk 0xd1231a0e
Expand Down

0 comments on commit cb152d6

Please sign in to comment.