diff options
| author | Caleb Connolly <[email protected]> | 2025-03-14 15:31:20 +0000 |
|---|---|---|
| committer | Caleb Connolly <[email protected]> | 2025-03-17 15:12:20 +0000 |
| commit | f305f33fad687d670c5be8debf6605489cb17aac (patch) | |
| tree | a29e7c7c9c2538b3594466bb85fddceea29729d8 | |
| parent | 7c5460afec3fd71c940a5e1a977655a267795f75 (diff) | |
clk/qcom: sc7280: add some debug data
Dump a few PCIe and USB clocks
Reviewed-by: Neil Armstrong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Caleb Connolly <[email protected]>
| -rw-r--r-- | drivers/clk/qcom/clock-sc7280.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clock-sc7280.c b/drivers/clk/qcom/clock-sc7280.c index 8ffd1f43f23..2cbc01b6e0a 100644 --- a/drivers/clk/qcom/clock-sc7280.c +++ b/drivers/clk/qcom/clock-sc7280.c @@ -100,6 +100,18 @@ static const struct qcom_power_map sc7280_gdscs[] = { [GCC_USB30_PRIM_GDSC] = { 0xf004 }, }; +static const phys_addr_t sc7280_rcg_addrs[] = { + 0x10f020, // USB30_PRIM_MASTER_CLK_CMD_RCGR + 0x10f038, // USB30_PRIM_MOCK_UTMI_CLK_CMD_RCGR + 0x18d058, // PCIE_1_AUX_CLK_CMD_RCGR +}; + +static const char *const sc7280_rcg_names[] = { + "USB30_PRIM_MASTER_CLK_SRC", + "USB30_PRIM_MOCK_UTMI_CLK_SRC", + "GCC_PCIE_1_AUX_CLK_SRC", +}; + static struct msm_clk_data qcs404_gcc_data = { .resets = sc7280_gcc_resets, .num_resets = ARRAY_SIZE(sc7280_gcc_resets), @@ -111,6 +123,10 @@ static struct msm_clk_data qcs404_gcc_data = { .enable = sc7280_enable, .set_rate = sc7280_set_rate, + + .dbg_rcg_addrs = sc7280_rcg_addrs, + .num_rcgs = ARRAY_SIZE(sc7280_rcg_addrs), + .dbg_rcg_names = sc7280_rcg_names, }; static const struct udevice_id gcc_sc7280_of_match[] = { |
