reset.c 382 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
  4. */
  5. #include <command.h>
  6. #include <common.h>
  7. __weak void reset_cpu(ulong addr)
  8. {
  9. /* Stop debug session here */
  10. __builtin_arc_brk();
  11. }
  12. int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
  13. {
  14. printf("Resetting the board...\n");
  15. reset_cpu(0);
  16. return 0;
  17. }