1. 03 3月, 2021 3 次提交
    • H
      Revert "lpc32xx: cpu: add support for soft reset" · 3394f398
      Harald Seiler 提交于
      This reverts commit 576007ae.
      
      The parameter passed to reset_cpu() no longer holds a meaning as all
      call-sites now pass the value 0.  Thus, branching on it is essentially
      dead code and will just confuse future readers.
      
      Revert soft-reset support and just always perform a hard-reset for now.
      This is a preparation for removal of the reset_cpu() parameter across
      the entire tree in a later patch.
      
      Fixes: 576007ae ("lpc32xx: cpu: add support for soft reset")
      Cc: Sylvain Lemieux <slemieux@tycoint.com>
      Signed-off-by: NHarald Seiler <hws@denx.de>
      3394f398
    • H
      board: ns3: Remove superfluous reset logic · 10b86ef9
      Harald Seiler 提交于
      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: b5a152e7 ("board: ns3: default reset type to L3")
      Cc: Bharat Gooty <bharat.gooty@broadcom.com>
      Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
      Signed-off-by: NHarald Seiler <hws@denx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      10b86ef9
    • H
      nds32: Remove dead reset_cpu() implementation · 5075bf28
      Harald Seiler 提交于
      nds32 is one of the only architectures which still have a reset_cpu()
      implementation that makes use of the `addr` parameter.  The rest of
      U-Boot now ignores it and passes 0 everywhere.  It turns out that even
      here, reset_cpu() is no longer referenced anywhere; reset is either not
      implemented (e.g. ae3xx) or realized using a WDT (e.g. ag101).
      
      Remove this left-over implementation in preparation for the removal of
      the `addr` parameter in the entire tree.
      
      Cc: Rick Chen <rick@andestech.com>
      Signed-off-by: NHarald Seiler <hws@denx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NRick Chen <rick@andestech.com>
      5075bf28
  2. 02 3月, 2021 1 次提交
  3. 01 3月, 2021 4 次提交
  4. 27 2月, 2021 4 次提交
  5. 26 2月, 2021 28 次提交