board-dt.c 626 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) Maxime Coquelin 2015
  4. * Copyright (C) STMicroelectronics 2017
  5. * Author: Maxime Coquelin <mcoquelin.stm32@gmail.com>
  6. */
  7. #include <linux/kernel.h>
  8. #include <asm/mach/arch.h>
  9. #ifdef CONFIG_ARM_SINGLE_ARMV7M
  10. #include <asm/v7m.h>
  11. #endif
  12. static const char *const stm32_compat[] __initconst = {
  13. "st,stm32f429",
  14. "st,stm32f469",
  15. "st,stm32f746",
  16. "st,stm32f769",
  17. "st,stm32h743",
  18. "st,stm32mp157",
  19. NULL
  20. };
  21. DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)")
  22. .dt_compat = stm32_compat,
  23. #ifdef CONFIG_ARM_SINGLE_ARMV7M
  24. .restart = armv7m_restart,
  25. #endif
  26. MACHINE_END