reset.c 409 B

1234567891011121314151617181920212223
  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. #include <cpu_func.h>
  8. __weak void reset_cpu(ulong addr)
  9. {
  10. /* Stop debug session here */
  11. __builtin_arc_brk();
  12. }
  13. int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
  14. {
  15. printf("Resetting the board...\n");
  16. reset_cpu(0);
  17. return 0;
  18. }