board.c 610 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2006-2024 RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-3-08 GuEe-GUI the first version
  9. */
  10. #include <setup.h>
  11. #include <board.h>
  12. #include <psci.h>
  13. #include <drivers/core/power.h>
  14. static void rk3568_machine_shutdown(void)
  15. {
  16. psci_system_off();
  17. }
  18. void rt_hw_board_init(void)
  19. {
  20. rt_hw_common_setup();
  21. rt_dm_machine_shutdown = rk3568_machine_shutdown;
  22. rt_dm_machine_reset = psci_system_reboot;
  23. }
  24. void reboot(void)
  25. {
  26. psci_system_reboot();
  27. }
  28. MSH_CMD_EXPORT(reboot, reboot...);