mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
35b65dd8ef
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> |
||
---|---|---|
.. | ||
avnet-ultrazedev-cc-v1.0-ultrazedev-som-v1.0 | ||
zynqmp-a2197-revA | ||
zynqmp-topic-miamimp-xilinx-xdp-v1r1 | ||
zynqmp-zc1232-revA | ||
zynqmp-zc1254-revA | ||
zynqmp-zc1751-xm015-dc1 | ||
zynqmp-zc1751-xm016-dc2 | ||
zynqmp-zc1751-xm017-dc3 | ||
zynqmp-zc1751-xm018-dc4 | ||
zynqmp-zc1751-xm019-dc5 | ||
zynqmp-zcu100-revC | ||
zynqmp-zcu102-rev1.0 | ||
zynqmp-zcu102-rev1.1 | ||
zynqmp-zcu102-revA | ||
zynqmp-zcu104-revA | ||
zynqmp-zcu106-revA | ||
zynqmp-zcu111-revA | ||
zynqmp-zcu1275-revB | ||
avnet-ultra96-rev1 | ||
cmds.c | ||
Kconfig | ||
MAINTAINERS | ||
Makefile | ||
pm_cfg_obj.h | ||
pm_cfg_obj.S | ||
sleep.h | ||
tap_delays.c | ||
xil_io.h | ||
zynqmp-g-a2197-00-revA | ||
zynqmp-m-a2197-01-revA | ||
zynqmp-m-a2197-02-revA | ||
zynqmp-m-a2197-03-revA | ||
zynqmp-mini | ||
zynqmp-mini-emmc0 | ||
zynqmp-mini-emmc1 | ||
zynqmp-mini-qspi | ||
zynqmp-p-a2197-00-revA | ||
zynqmp-zcu104-revC | ||
zynqmp-zcu1275-revA | ||
zynqmp.c |