clk: qcom: Fix MSM8998 resets
Subsystems (3)
PATCH 1/1 clk: qcom: Fix MSM8998 resets
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)
drivers/clk/qcom/gcc-msm8998.c +19 -19
@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 }, + [GCC_BLSP1_QUP4_BCR ] = {0x1f000 }, + [GCC_BLSP1_QUP5_BCR ] = {0x21000 }, + [GCC_BLSP1_QUP6_BCR ] = {0x23000 }, + [GCC_BLSP2_QUP1_BCR ] = {0x26000 }, + [GCC_BLSP2_QUP2_BCR ] = {0x28000 }, + [GCC_BLSP2_QUP3_BCR ] = {0x2a000 }, + [GCC_BLSP2_QUP4_BCR ] = {0x2c000 }, + [GCC_BLSP2_QUP5_BCR ] = {0x2e000 }, + [GCC_BLSP2_QUP6_BCR ] = {0x30000 }, + [GCC_PCIE_0_BCR ] = {0x6c01c }, + [GCC_PDM_BCR ] = {0x33000 }, + [GCC_SDCC2_BCR ] = {0x14000 }, + [GCC_SDCC4_BCR ] = {0x16000 }, + [GCC_TSIF_BCR ] = {0x36000 }, + [GCC_UFS_BCR ] = {0x75000 }, + [GCC_USB_30_BCR ] = {0xf000 }, };static const struct regmap_config gcc_msm8998_regmap_config = {
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 3 lines · Jeffrey Hugo
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
Sorry for not spotting this before.
Quoted 36 lines
Fixes b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver)Signed-off-by Jeffrey Hugo <[email protected]>--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)drivers/clk/qcom/gcc-msm8998.c +3
-19@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 },
drivers/clk/qcom/gcc-msm8998.c enum { · line 2757
Quoted 10 lines
drivers/clk/qcom/gcc-msm8998.c +10
-0+ [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6c01c },
I find GCC_PCIE_0_BCR at 0x6b000 and then GCC_PCIE_0_PHY_BCR at 0x6c01c.
drivers/clk/qcom/gcc-msm8998.c enum { · line 2764
Quoted 7 lines
drivers/clk/qcom/gcc-msm8998.c +6
-0+ [GCC_PDM_BCR] = { 0x33000 }, + [GCC_SDCC2_BCR] = { 0x14000 }, + [GCC_SDCC4_BCR] = { 0x16000 }, + [GCC_TSIF_BCR] = { 0x36000 }, + [GCC_UFS_BCR] = { 0x75000 }, + [GCC_USB_30_BCR] = { 0xf000 }, };
With this updated, you have my
Regards,
Bjorn
Quoted 48 lines · Bjorn Andersson
Quoted 3 lines · Jeffrey Hugo
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
Sorry for not spotting this before.
Quoted 40 lines
Fixes b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver)Signed-off-by Jeffrey Hugo <[email protected]>--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)drivers/clk/qcom/gcc-msm8998.c +7
-19@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 }, + [GCC_BLSP1_QUP4_BCR ] = {0x1f000 }, + [GCC_BLSP1_QUP5_BCR ] = {0x21000 }, + [GCC_BLSP1_QUP6_BCR ] = {0x23000 }, + [GCC_BLSP2_QUP1_BCR ] = {0x26000 },
Quoted 8 lines
drivers/clk/qcom/gcc-msm8998.c enum { · line 2757
Quoted 6 lines
drivers/clk/qcom/gcc-msm8998.c +6
-0+ [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6c01c },I find
GCC_PCIE_0_BCRat0x6b000and thenGCC_PCIE_0_PHY_BCRat0x6c01c.
Doh. Thanks for the double check. GCC_PCIE_0_PHY_BCR is not defined in include/dt-bindings/clock/qcom,gcc-msm8998.h so I plan to leave it out until later.
Expect a v2 shortly.
Quoted 16 lines
drivers/clk/qcom/gcc-msm8998.c enum { · line 2764
Quoted 8 lines
drivers/clk/qcom/gcc-msm8998.c +6
-0+ [GCC_PDM_BCR] = { 0x33000 }, + [GCC_SDCC2_BCR] = { 0x14000 }, + [GCC_SDCC4_BCR] = { 0x16000 }, + [GCC_TSIF_BCR] = { 0x36000 }, + [GCC_UFS_BCR] = { 0x75000 }, + [GCC_USB_30_BCR] = { 0xf000 }, };With this updated, you have my
Reviewed-by Bjorn Andersson <[email protected]>Regards,
Bjorn
Signature · 4 lines
Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Stephen Boyd
maintainerQuoting Jeffrey Hugo (2018-12-03 08:08:46)
Quoted 58 lines · Bjorn Andersson
Quoted 48 lines · Jeffrey Hugo
Quoted 4 lines
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
Sorry for not spotting this before.
Quoted 40 lines
Fixes b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver)Signed-off-by Jeffrey Hugo <[email protected]>--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)drivers/clk/qcom/gcc-msm8998.c +7
-19@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 }, + [GCC_BLSP1_QUP4_BCR ] = {0x1f000 }, + [GCC_BLSP1_QUP5_BCR ] = {0x21000 }, + [GCC_BLSP1_QUP6_BCR ] = {0x23000 }, + [GCC_BLSP2_QUP1_BCR ] = {0x26000 },Quoted 8 lines
drivers/clk/qcom/gcc-msm8998.c enum { · line 2757
Quoted 6 lines
drivers/clk/qcom/gcc-msm8998.c +6
-0+ [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6c01c },I find
GCC_PCIE_0_BCRat0x6b000and thenGCC_PCIE_0_PHY_BCRat0x6c01c.
Quoted 5 lines
Doh. Thanks for the double check.
GCC_PCIE_0_PHY_BCRis not defined ininclude/dt-bindings/clock/qcom,gcc-msm8998.hso I plan to leave it out until later.Expect a v2 shortly.
Will you add GCC_PCIE0_PHY_BCR shortly so we don't have to add it later on when it becomes critical?
Quoted 59 lines · Stephen Boyd
Quoting Jeffrey Hugo (2018-12-03 08:08:46)
Quoted 58 lines · Bjorn Andersson
Quoted 56 lines · Jeffrey Hugo
Quoted 4 lines
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
Sorry for not spotting this before.
Quoted 36 lines
Fixes b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver)Signed-off-by Jeffrey Hugo <[email protected]>--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)drivers/clk/qcom/gcc-msm8998.c +3
-19@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 },drivers/clk/qcom/gcc-msm8998.c enum { · line 2757
Quoted 10 lines
drivers/clk/qcom/gcc-msm8998.c +10
-0+ [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6c01c },I find
GCC_PCIE_0_BCRat0x6b000and thenGCC_PCIE_0_PHY_BCRat0x6c01c.
Quoted 9 lines
Quoted 5 lines
Doh. Thanks for the double check.
GCC_PCIE_0_PHY_BCRis not defined ininclude/dt-bindings/clock/qcom,gcc-msm8998.hso I plan to leave it out until later.Expect a v2 shortly.
Will you add
GCC_PCIE0_PHY_BCRshortly so we don't have to add it later on when it becomes critical?
My plan was to let it sit until it becomes necessary. I'm working on USB and found that GCC_QUSB2PHY_PRIM_BCR, GCC_USB3_PHY_BCR, and GCC_USB3PHY_PHY_BCR are also missing, so I suspect there are others.
Would you prefer I send a follow up that adds the PCIE phy and the USB resets?
Signature · 4 lines
Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Stephen Boyd
maintainerQuoting Jeffrey Hugo (2018-12-03 09:19:20)
Quoted 70 lines · Stephen Boyd
Quoted 59 lines
Quoting Jeffrey Hugo (2018-12-03 08:08:46)
Quoted 58 lines · Bjorn Andersson
Quoted 56 lines · Jeffrey Hugo
Quoted 4 lines
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
Sorry for not spotting this before.
Quoted 36 lines
Fixes b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver)Signed-off-by Jeffrey Hugo <[email protected]>--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)drivers/clk/qcom/gcc-msm8998.c +3
-19@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 },drivers/clk/qcom/gcc-msm8998.c enum { · line 2757
Quoted 10 lines
drivers/clk/qcom/gcc-msm8998.c +10
-0+ [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6c01c },I find
GCC_PCIE_0_BCRat0x6b000and thenGCC_PCIE_0_PHY_BCRat0x6c01c.Quoted 9 lines
Quoted 5 lines
Doh. Thanks for the double check.
GCC_PCIE_0_PHY_BCRis not defined ininclude/dt-bindings/clock/qcom,gcc-msm8998.hso I plan to leave it out until later.Expect a v2 shortly.
Will you add
GCC_PCIE0_PHY_BCRshortly so we don't have to add it later on when it becomes critical?
Quoted 6 lines
My plan was to let it sit until it becomes necessary. I'm working on USB and found that
GCC_QUSB2PHY_PRIM_BCR,GCC_USB3_PHY_BCR, andGCC_USB3PHY_PHY_BCRare also missing, so I suspect there are others.Would you prefer I send a follow up that adds the PCIE phy and the USB resets?
Yes please send a followup patch to add all the possible defines and implementations that you can find. It makes future cross-tree merges simpler.
Quoted 75 lines · Stephen Boyd
Quoting Jeffrey Hugo (2018-12-03 09:19:20)
Quoted 74 lines · Stephen Boyd
Quoted 59 lines
Quoting Jeffrey Hugo (2018-12-03 08:08:46)
Quoted 58 lines · Bjorn Andersson
Quoted 56 lines · Jeffrey Hugo
Quoted 4 lines
The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation.
Sorry for not spotting this before.
Quoted 36 lines
Fixes b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver)Signed-off-by Jeffrey Hugo <[email protected]>--- drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-)drivers/clk/qcom/gcc-msm8998.c +3
-19@@ -2742,25 +2742,25 @@ enum { };static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR ] = {0x102400 }, - [GCC_BLSP1_QUP2_BCR ] = {0x110592 }, - [GCC_BLSP1_QUP3_BCR ] = {0x118784 }, - [GCC_BLSP1_QUP4_BCR ] = {0x126976 }, - [GCC_BLSP1_QUP5_BCR ] = {0x135168 }, - [GCC_BLSP1_QUP6_BCR ] = {0x143360 }, - [GCC_BLSP2_QUP1_BCR ] = {0x155648 }, - [GCC_BLSP2_QUP2_BCR ] = {0x163840 }, - [GCC_BLSP2_QUP3_BCR ] = {0x172032 }, - [GCC_BLSP2_QUP4_BCR ] = {0x180224 }, - [GCC_BLSP2_QUP5_BCR ] = {0x188416 }, - [GCC_BLSP2_QUP6_BCR ] = {0x196608 }, - [GCC_PCIE_0_BCR ] = {0x438272 }, - [GCC_PDM_BCR ] = {0x208896 }, - [GCC_SDCC2_BCR ] = {0x81920 }, - [GCC_SDCC4_BCR ] = {0x90112 }, - [GCC_TSIF_BCR ] = {0x221184 }, - [GCC_UFS_BCR ] = {0x479232 }, - [GCC_USB_30_BCR ] = {0x61440 }, + [GCC_BLSP1_QUP1_BCR ] = {0x19000 }, + [GCC_BLSP1_QUP2_BCR ] = {0x1b000 }, + [GCC_BLSP1_QUP3_BCR ] = {0x1d000 },drivers/clk/qcom/gcc-msm8998.c enum { · line 2757
Quoted 10 lines
drivers/clk/qcom/gcc-msm8998.c +10
-0+ [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6c01c },I find
GCC_PCIE_0_BCRat0x6b000and thenGCC_PCIE_0_PHY_BCRat0x6c01c.Quoted 9 lines
Quoted 5 lines
Doh. Thanks for the double check.
GCC_PCIE_0_PHY_BCRis not defined ininclude/dt-bindings/clock/qcom,gcc-msm8998.hso I plan to leave it out until later.Expect a v2 shortly.
Will you add
GCC_PCIE0_PHY_BCRshortly so we don't have to add it later on when it becomes critical?My plan was to let it sit until it becomes necessary. I'm working on USB and found that
GCC_QUSB2PHY_PRIM_BCR,GCC_USB3_PHY_BCR, andGCC_USB3PHY_PHY_BCRare also missing, so I suspect there are others.
Quoted 7 lines
Quoted 2 lines
Would you prefer I send a follow up that adds the PCIE phy and the USB resets?
Yes please send a followup patch to add all the possible defines and implementations that you can find. It makes future cross-tree merges simpler.
Ok, will do. Will need a bit of time to review the hardware documentation to enumerate a comprehensive list. I'm thinking by the end of the week.
Signature · 4 lines
Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.