u-boot/board/freescale
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
..
common ppc: Remove MPC8569MDS board 2021-02-25 11:59:54 -05:00
corenet_ds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mm_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mn_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mp_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8mq_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx8qm_mek reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
imx8qxp_mek reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
imxrt1020-evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imxrt1050-evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1012afrdm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1012aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1012ardb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1021aiot common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1021aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1021atsn common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1021atwr dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1028a dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1043aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1043ardb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1046afrwy dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1046aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls1046ardb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ls1088a dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls2080aqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
ls2080ardb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
lx2160a dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
m547xevb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m548xevb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5208evbe common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5235evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5249evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5253demo common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5272c3 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5275evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5282evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5329evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m5373evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m52277evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m53017evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m54418twr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m54451evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
m54455evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc832xemds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc837xemds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc837xerdb mpc8379erdb: Convert to DM_MMC 2021-02-21 18:46:41 -05:00
mpc8308rdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8313erdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8315erdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8323erdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8349emds common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8349itx common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mpc8541cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8548cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8555cds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mpc8568mds treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mx6memcal reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
mx6qarm2 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sabreauto common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6slevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sllevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sxsabreauto common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6sxsabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6ul_14x14_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx6ullevk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx7dsabresd common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx7ulp_evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx23evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx28evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx51evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx53evk common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mx53loco common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
p1_p2_rdb_pc dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
p1010rdb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
p2041rdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qemu-ppce500 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
s32v234evb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
t4rdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
t102xrdb dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
t104xrdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
t208xqds dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
t208xrdb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
vf610twr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00