summaryrefslogtreecommitdiff
path: root/lib/mbedtls/rsa_helper.c
diff options
context:
space:
mode:
authorStephan Gerhold <stephan.gerhold@linaro.org>2025-04-24 11:16:41 +0200
committerCasey Connolly <casey.connolly@linaro.org>2025-06-02 18:20:15 +0200
commit3d9e6d42ca1433c6dd478bf6c0f73e2b9484c94c (patch)
treebe4a30b80ba78b85b05fae5971f5778d5bcff6bf /lib/mbedtls/rsa_helper.c
parenteb2c63ddccb94b134846f890fcada84554ba2896 (diff)
clk: qcom: apq8016: Fix SDCC clock addresses
The SDCC_...(n) macros in clock-apq8016.c result in the wrong addresses: - SDCC1: SDCC_APPS_CBCR(0) = ((0 * 0x1000) + 0x41018) = 0x41018 Should be 0x42018, this is an invalid register close to the USB clocks. - SDCC2: SDCC_APPS_CBCR(1) = ((1 * 0x1000) + 0x41018) = 0x42018 Should be 0x43018, this is the SDCC1 clock. When we try to enable SDCC2, we actually end up enabling SDCC1. When we try to enable SDCC1, we just issue some broken register writes. This hasn't caused any trouble so far, because the boot firmware is keeping both SDCC clocks running. However, if these clocks are disabled when entering U-Boot, MMC initialization is failing. Fix this by using the proper offset for the macros. The SDCC_CMD_RCGR() was already correct, but change it the same way for consistency. Fixes: 085921368b7d ("arm: Add support for Qualcomm Snapdragon family") Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Reviewed-by: Casey Connolly <casey.connolly@linaro.org> Link: https://lore.kernel.org/r/20250424-apq8016-clock-fixes2-v2-1-fcc371c9e45f@linaro.org Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Diffstat (limited to 'lib/mbedtls/rsa_helper.c')
0 files changed, 0 insertions, 0 deletions