Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: mdm9615: Add EBI2 clock

Add definition of EBI2 clock used by MDM9615 NAND controller.

Cc: Andy Gross <andy.gross@linaro.org>
Cc: David Brown <david.brown@linaro.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-soc@vger.kernel.org
Cc: linux-clk@vger.kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: Zoran Markovic <zmarkovic@sierrawireless.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
[sboyd@codeaurora.org: ebi2_clk halt bit is 24 not 23]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Zoran Markovic and committed by
Stephen Boyd
8e18d065 5c48ea1e

+32
+30
drivers/clk/qcom/gcc-mdm9615.c
··· 1563 1563 }, 1564 1564 }; 1565 1565 1566 + static struct clk_branch ebi2_clk = { 1567 + .hwcg_reg = 0x2664, 1568 + .hwcg_bit = 6, 1569 + .halt_reg = 0x2fcc, 1570 + .halt_bit = 24, 1571 + .clkr = { 1572 + .enable_reg = 0x2664, 1573 + .enable_mask = BIT(6) | BIT(4), 1574 + .hw.init = &(struct clk_init_data){ 1575 + .name = "ebi2_clk", 1576 + .ops = &clk_branch_ops, 1577 + }, 1578 + }, 1579 + }; 1580 + 1581 + static struct clk_branch ebi2_aon_clk = { 1582 + .halt_reg = 0x2fcc, 1583 + .halt_bit = 23, 1584 + .clkr = { 1585 + .enable_reg = 0x2664, 1586 + .enable_mask = BIT(8), 1587 + .hw.init = &(struct clk_init_data){ 1588 + .name = "ebi2_aon_clk", 1589 + .ops = &clk_branch_ops, 1590 + }, 1591 + }, 1592 + }; 1593 + 1566 1594 static struct clk_hw *gcc_mdm9615_hws[] = { 1567 1595 &cxo.hw, 1568 1596 }; ··· 1665 1637 [PMIC_ARB1_H_CLK] = &pmic_arb1_h_clk.clkr, 1666 1638 [PMIC_SSBI2_CLK] = &pmic_ssbi2_clk.clkr, 1667 1639 [RPM_MSG_RAM_H_CLK] = &rpm_msg_ram_h_clk.clkr, 1640 + [EBI2_CLK] = &ebi2_clk.clkr, 1641 + [EBI2_AON_CLK] = &ebi2_aon_clk.clkr, 1668 1642 }; 1669 1643 1670 1644 static const struct qcom_reset_map gcc_mdm9615_resets[] = {
+2
include/dt-bindings/clock/qcom,gcc-mdm9615.h
··· 323 323 #define CE3_H_CLK 305 324 324 #define USB_HS1_SYSTEM_CLK_SRC 306 325 325 #define USB_HS1_SYSTEM_CLK 307 326 + #define EBI2_CLK 308 327 + #define EBI2_AON_CLK 309 326 328 327 329 #endif