Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8a5b426 authored by Sujit Reddy Thumma's avatar Sujit Reddy Thumma Committed by Subhash Jadavani
Browse files

msm: clock-8084: Add UFS host phy reference clock support



Reference clock is propogated in a daisy-chained manner from source
to UFS phy with mutliple clock buffers buffering the clock output
at each stage. These buffers are powered by integrated LDO's which
are enabled by writing into *_LDO_EN registers.

The client drivers are expected to follow the dependency chain and
enable all of clocks to make sure the source ref clock reaches the
destination phy.

Change-Id: Ifb03a769c99011298741a664242e83d7a0b26677
Signed-off-by: default avatarSujit Reddy Thumma <sthumma@codeaurora.org>
parent c99f9b85
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5989,6 +5989,10 @@ static struct clk_lookup apq_clocks_8084[] = {
							"fc594000.ufshc"),
	CLK_LOOKUP("tx_lane1_sync_clk", gcc_ufs_tx_symbol_1_clk.c,
							"fc594000.ufshc"),
	/* UFS PHY clocks */
	CLK_LOOKUP("ref_clk_src", rf_clk3.c,             "fc597000.ufsphy"),
	CLK_LOOKUP("ref_clk_parent", pcie_1_phy_ldo.c,   "fc597000.ufsphy"),
	CLK_LOOKUP("ref_clk", sata_phy_ldo.c,            "fc597000.ufsphy"),
	CLK_LOOKUP("tx_iface_clk", gcc_ufs_tx_cfg_clk.c, "fc597000.ufsphy"),
	CLK_LOOKUP("rx_iface_clk", gcc_ufs_rx_cfg_clk.c, "fc597000.ufsphy"),

@@ -6337,7 +6341,6 @@ static struct clk_lookup apq_clocks_8084[] = {
	/* LDO */
	CLK_LOOKUP("",		pcie_0_phy_ldo.c,               ""),
	CLK_LOOKUP("",		pcie_1_phy_ldo.c,               ""),
	CLK_LOOKUP("",		sata_phy_ldo.c,               ""),
};

static struct pll_config_regs gpll4_regs __initdata = {