summaryrefslogtreecommitdiff
path: root/lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c
diff options
context:
space:
mode:
authorXiang W <[email protected]>2026-07-21 23:08:44 +0800
committerAnup Patel <[email protected]>2026-08-20 20:46:25 +0530
commit4e79fd7de59f1b2899092c1a84ce68c8ebc68f93 (patch)
tree8a5ffddd23059dc564a43fe56f9471d2aef1490c /lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c
parentf465413402c53fd022d54c3e56a26f96cdc32ffc (diff)
platform: generic: sophgo: Move SG2042 timer memregion workaroundHEADmaster
Commit 4813a2042096 ("lib: sbi_init: Call hart init and timer init before platform early init") reordered the cold/warm boot sequence so that sbi_timer_init() runs before sbi_platform_early_init(). The SG2042 platform workaround that merges the 16 separate timer regions into a single domain memregion was previously performed in early_init(). After the reordering the MTIMER driver therefore adds the individual regions first, defeating the purpose of the combined region (and wasting PMP entries). Move the addition of the combined memregion into extensions_init(), which is invoked from sbi_hart_init() and consequently still executes before sbi_timer_init(). Signed-off-by: Han Gao <[email protected]> Signed-off-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/reset/fdt_reset_sg2042_hwmon_mcu.c')
0 files changed, 0 insertions, 0 deletions