u-boot/arch/arm/mach-socfpga
Harald Seiler 35b65dd8ef reset: Remove addr parameter from reset_cpu()
Historically, the reset_cpu() function had an `addr` parameter which was
meant to pass in an address of the reset vector location, where the CPU
should reset to.  This feature is no longer used anywhere in U-Boot as
all reset_cpu() implementations now ignore the passed value.  Generic
code has been added which always calls reset_cpu() with `0` which means
this feature can no longer be used easily anyway.

Over time, many implementations seem to have "misunderstood" the
existence of this parameter as a way to customize/parameterize the reset
(e.g.  COLD vs WARM resets).  As this is not properly supported, the
code will almost always not do what it is intended to (because all
call-sites just call reset_cpu() with 0).

To avoid confusion and to clean up the codebase from unused left-overs
of the past, remove the `addr` parameter entirely.  Code which intends
to support different kinds of resets should be rewritten as a sysreset
driver instead.

This transformation was done with the following coccinelle patch:

    @@
    expression argvalue;
    @@
    - reset_cpu(argvalue)
    + reset_cpu()

    @@
    identifier argname;
    type argtype;
    @@
    - reset_cpu(argtype argname)
    + reset_cpu(void)
    { ... }

Signed-off-by: Harald Seiler <hws@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-03-02 14:03:02 -05:00
..
include/mach reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
board.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clock_manager.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clock_manager_agilex.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clock_manager_arria10.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
clock_manager_gen5.c arm: socfpga: Convert clock manager from struct to defines 2020-01-07 14:38:33 +01:00
clock_manager_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
firewall.c arm: socfpga: Move Stratix10 and Agilex system manager common code 2020-01-07 14:38:33 +01:00
fpga_manager.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
freeze_controller.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Kconfig arm: socfpga: soc64: Enable FIT image generation using binman 2021-01-15 17:48:38 +08:00
lowlevel_init_soc64.S arm: socfpga: soc64: Override 'lowlevel_init' to support ATF 2021-01-15 17:48:35 +08:00
mailbox_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Makefile arm: socfpga: Add secure register access helper functions for SoC 64bits 2021-01-15 17:48:36 +08:00
misc.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
misc_arria10.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
misc_gen5.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
misc_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mmu-arm64_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pinmux_arria10.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
qts-filter-a10.sh arm: socfpga: arria10: Add qts-filter for Arria10 socfpga 2020-10-09 17:53:14 +08:00
qts-filter.sh ddr: altera: Add DDR2 support to Gen5 driver 2020-02-05 03:01:57 +01:00
reset_manager_arria10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
reset_manager_gen5.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
reset_manager_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
scan_manager.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
secure_reg_helper.c arm: socfpga: Add secure register access helper functions for SoC 64bits 2021-01-15 17:48:36 +08:00
smc_api.c arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits) 2021-01-15 17:48:36 +08:00
spl_a10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl_agilex.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl_gen5.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
system_manager_gen5.c arm: socfpga: Convert system manager from struct to defines 2020-01-07 14:38:33 +01:00
system_manager_s10.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
timer.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
timer_s10.c arm: socfpga: soc64: Initialize timer in SPL only 2020-10-09 17:53:11 +08:00
wrap_iocsr_config.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
wrap_pinmux_config.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
wrap_pinmux_config_s10.c arm: socfpga: stratix10: Add pinmux support for Stratix10 SoC 2018-05-18 10:30:48 +02:00
wrap_pll_config.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
wrap_pll_config_s10.c arm: socfpga: soc64: Skip handoff data access in SSBL 2021-01-15 17:48:38 +08:00
wrap_sdram_config.c ddr: altera: Add DDR2 support to Gen5 driver 2020-02-05 03:01:57 +01:00