u-boot/board/broadcom
Harald Seiler 10b86ef9b3 board: ns3: Remove superfluous reset logic
The current implementation of reset_cpu() in the ns3 board code does not
archieve what it is supposed to (according to the comments), due to
a number of reasons:

 1. The argument to reset_cpu() is _not_ actually passed from the
    `reset` command, but is set to 0 in all call-sites (in this
    specific case, see arch/arm/lib/reset.c).  Thus, performing
    different kinds of resets based on its value will not work as
    expected.

 2. Contrary to its documentation, the passed argument is not
    interpreted, but a static `L3_RESET` define is used.  The other
    comment properly notes that this will always perform a L3 reset,
    though.

 3. The "parsing" of the static `L3_RESET` value is not even using the
    upper and lower nibble as stated in the comment, but uses the last
    two decimal digits of the value.

This is currently one of the only implementations left in U-Boot, which
make "use" of the value passed to reset_cpu().  As this is done under
false assumption (the value does not have any meaning anymore), it makes
sense to bring it into line with the rest and start ignoring the
parameter.

This is a preparation for removal of the reset_cpu() parameter across
the entire tree in a later patch.

Fixes: b5a152e7ca ("board: ns3: default reset type to L3")
Cc: Bharat Gooty <bharat.gooty@broadcom.com>
Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Harald Seiler <hws@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-03-02 11:24:29 -05:00
..
bcm11130 maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm11130_nand maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm23550_w1d common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bcm28155_ap common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bcm28155_w1d maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm911360_entphn maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm911360_entphn-ns maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm911360k maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm958300k maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm958300k-ns maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm958305k maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm958622hr maintainers: new email address 2016-06-27 21:12:05 -04:00
bcm958712k board: ns2: Add support for Broadcom Northstar 2 2017-03-20 18:04:43 -04:00
bcm963158 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
bcm968360bg common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
bcm968380gerg bcm968380gerg: Add MAINTAINERS file 2018-08-09 11:48:39 -04:00
bcm968580xref common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
bcm_ep common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bcmcygnus ARM: bcm: Enable five Cygnus boards 2014-11-23 06:49:00 -05:00
bcmns2 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bcmns3 board: ns3: Remove superfluous reset logic 2021-03-02 11:24:29 -05:00
bcmnsp ARM: bcm: Enable five Cygnus boards 2014-11-23 06:49:00 -05:00
bcmstb common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00