reset.c 535 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. *
  3. * Common layer for reset related functionality of OMAP based socs.
  4. *
  5. * (C) Copyright 2012
  6. * Texas Instruments, <www.ti.com>
  7. *
  8. * Sricharan R <r.sricharan@ti.com>
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #include <config.h>
  13. #include <asm/io.h>
  14. #include <asm/arch/cpu.h>
  15. #include <linux/compiler.h>
  16. void __weak reset_cpu(unsigned long ignored)
  17. {
  18. writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
  19. }
  20. u32 __weak warm_reset(void)
  21. {
  22. return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
  23. }
  24. void __weak setup_warmreset_time(void)
  25. {
  26. }