diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2023-10-30 11:55:02 -0500 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2023-11-13 16:19:04 +0900 |
commit | 08cfa971a717ff6aedf52066efb9e227eaa7aac4 (patch) | |
tree | b022f772acc51807a78aad6bf1cdd0413076ee87 /arch/arm | |
parent | 11bd2787deff113634cb9f330d9287e6d3d76e9e (diff) | |
download | u-boot-08cfa971a717ff6aedf52066efb9e227eaa7aac4.tar.gz u-boot-08cfa971a717ff6aedf52066efb9e227eaa7aac4.tar.bz2 u-boot-08cfa971a717ff6aedf52066efb9e227eaa7aac4.zip |
exynos: Avoid duplicate reset_cpu with SYSRESET enabled
The sysreset uclass unconditionally provides a definition of the
reset_cpu() function. So does the exynos soc code. Fix the build with
SYSRESET enabled by omitting the function from the soc code in that
case. The code still needs to be kept around for use in SPL.
This commit was inspired by commit 6e19dc84c14b ("sunxi: Avoid duplicate
reset_cpu with SYSRESET enabled").
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-exynos/soc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/soc.c b/arch/arm/mach-exynos/soc.c index 6fe61cf928..aff2b5e1b6 100644 --- a/arch/arm/mach-exynos/soc.c +++ b/arch/arm/mach-exynos/soc.c @@ -21,12 +21,14 @@ extern void _main(void); void *secondary_boot_addr = (void *)_main; #endif /* CONFIG_TARGET_ESPRESSO7420 */ +#if !CONFIG_IS_ENABLED(SYSRESET) void reset_cpu(void) { #ifdef CONFIG_CPU_V7A writel(0x1, samsung_get_base_swreset()); #endif } +#endif #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) void enable_caches(void) |