u-boot/board/xilinx/zynqmp
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
..
avnet-ultrazedev-cc-v1.0-ultrazedev-som-v1.0 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-a2197-revA arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-topic-miamimp-xilinx-xdp-v1r1 topic: zynqmp: Add support for zynqmp-xilinx-xdp platform 2020-06-24 13:11:08 +02:00
zynqmp-zc1232-revA arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zc1254-revA arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zc1751-xm015-dc1 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zc1751-xm016-dc2 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zc1751-xm017-dc3 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zc1751-xm018-dc4 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zc1751-xm019-dc5 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zcu100-revC arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zcu102-rev1.0 arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zcu102-rev1.1 arm64: zynqmp Add support for zcu102 rev1.1 2020-04-06 12:52:45 +02:00
zynqmp-zcu102-revA arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zcu104-revA xilinx: zynqmp: Fix MIO 18 configuration on zcu104 revC 2020-04-27 13:57:17 +02:00
zynqmp-zcu106-revA arm64: zynqmp: Remove low level UART setting 2020-01-14 09:05:53 +01:00
zynqmp-zcu111-revA arm64: zynqmp Add support for zcu111 revA 2020-04-06 12:52:45 +02:00
zynqmp-zcu1275-revB arm64: zynqmp: Rename zc1275/zcu1275 to be aligned with DT name 2021-02-23 14:56:59 +01:00
avnet-ultra96-rev1 arm64: zynqmp: Add support for Avnet Ultra96 2018-08-06 08:44:35 +02:00
cmds.c arm64: zynqmp: Add support for saving sha3 key to different address 2020-10-27 08:13:32 +01:00
Kconfig arm64: zynqmp: Add support for verifying secure images 2018-03-23 09:36:15 +01:00
MAINTAINERS Correct U-Boot upstream repository 2021-02-28 13:57:30 -05:00
Makefile xilinx: common: Add Makefile to common folder 2020-10-27 08:13:32 +01:00
pm_cfg_obj.h arm64: zynqmp: spl: install a PMU firmware config object at runtime 2019-07-30 10:20:06 +02:00
pm_cfg_obj.S arm64: zynqmp: spl: install a PMU firmware config object at runtime 2019-07-30 10:20:06 +02:00
sleep.h arm64: zynqmp: Add empty sleep.h file for psu_init* compilation 2017-06-20 16:40:58 +02:00
tap_delays.c mmc: zynq_sdhci: Add common function to set input/output tapdelays 2020-10-29 08:55:43 +01:00
xil_io.h common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
zynqmp-g-a2197-00-revA arm64: zynqmp: Fix symlinks to SC psu_init* files 2020-01-14 09:05:53 +01:00
zynqmp-m-a2197-01-revA arm64: zynqmp: Fix symlinks to SC psu_init* files 2020-01-14 09:05:53 +01:00
zynqmp-m-a2197-02-revA arm64: zynqmp: Fix symlinks to SC psu_init* files 2020-01-14 09:05:53 +01:00
zynqmp-m-a2197-03-revA arm64: zynqmp: Fix symlinks to SC psu_init* files 2020-01-14 09:05:53 +01:00
zynqmp-mini arm64: zynqmp: Add mini mtest configuration 2018-11-30 10:45:26 +01:00
zynqmp-mini-emmc0 arm64: zynqmp: Wire mini-emmc0 configuration with zcu100 2018-11-30 10:45:26 +01:00
zynqmp-mini-emmc1 arm64: zynqmp: Wire mini-emmc1 configuration with zcu102 2018-11-30 10:45:26 +01:00
zynqmp-mini-qspi arm64: zynqmp: Enable SPL for mini qspi configuration 2018-11-29 15:13:57 +01:00
zynqmp-p-a2197-00-revA arm64: zynqmp: Fix symlinks to SC psu_init* files 2020-01-14 09:05:53 +01:00
zynqmp-zcu104-revC arm64: zynqmp: Add support for zcu104 customer board 2018-04-09 12:14:52 +02:00
zynqmp-zcu1275-revA arm64: zynqmp: Rename zc1275/zcu1275 to be aligned with DT name 2021-02-23 14:56:59 +01:00
zynqmp.c reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00