summaryrefslogtreecommitdiff
path: root/drivers/button/button-qcom-pmic.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2025-07-20 16:29:19 +0100
committerAndre Przywara <andre.przywara@arm.com>2025-08-12 10:44:01 +0100
commit4b8405b54780e824cae9893c6b9b42bae2b08f63 (patch)
tree69748172d2a2e504f9ffad621afd56990d1b8885 /drivers/button/button-qcom-pmic.c
parentb26eea99b1a61a9216efc56c40ba1e27ab2ea8c6 (diff)
sunxi: spl: initialise timer before clocks
Recent changes in the H6 clock code added delay() calls into the SPL clock setup routine, which requires the timers to work. When compiling for AArch64, we are always using the Arm Generic Timer (aka. arch timer), which does not require further setup, hence having an empty timer_init() routine. However for 32-bit SoCs we use the Allwinner timers, which require some setup routine, and hence we need timer_init() to be called before clock_init(). Swap the order of the two calls, to be more robust when compiling the H6 clock code for AArch32 or when using the Allwinner timers for whatever reason. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Diffstat (limited to 'drivers/button/button-qcom-pmic.c')
0 files changed, 0 insertions, 0 deletions