reset.c 334 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright 2014 Broadcom Corporation.
  4. */
  5. #include <common.h>
  6. #include <asm/io.h>
  7. #define CRU_RESET_OFFSET 0x1803F184
  8. void reset_cpu(ulong ignored)
  9. {
  10. /* Reset the cpu by setting software reset request bit */
  11. writel(0x1, CRU_RESET_OFFSET);
  12. while (1)
  13. ; /* loop forever till reset */
  14. }