Benjamin Gaignard | 61ea291 | 2017-11-30 09:49:00 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) Maxime Coquelin 2015 |
Benjamin Gaignard | 61ea291 | 2017-11-30 09:49:00 +0100 | [diff] [blame] | 4 | * Copyright (C) STMicroelectronics 2017 |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 5 | * Author: Maxime Coquelin <mcoquelin.stm32@gmail.com> |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <linux/kernel.h> |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 9 | #include <asm/mach/arch.h> |
Benjamin Gaignard | 2092e3a | 2018-02-27 15:36:00 +0100 | [diff] [blame] | 10 | #ifdef CONFIG_ARM_SINGLE_ARMV7M |
| 11 | #include <asm/v7m.h> |
| 12 | #endif |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 13 | |
| 14 | static const char *const stm32_compat[] __initconst = { |
| 15 | "st,stm32f429", |
Lee Jones | 6391503 | 2016-02-16 15:17:00 +0100 | [diff] [blame] | 16 | "st,stm32f469", |
Alexandre TORGUE | a77e393 | 2016-11-15 12:02:33 +0100 | [diff] [blame] | 17 | "st,stm32f746", |
Alexandre Torgue | 85beb77 | 2017-12-11 09:54:00 +0100 | [diff] [blame] | 18 | "st,stm32f769", |
Alexandre TORGUE | c6ed0f3 | 2017-01-30 17:46:23 +0100 | [diff] [blame] | 19 | "st,stm32h743", |
dillon min | 40ddb53 | 2021-03-31 16:28:44 +0800 | [diff] [blame] | 20 | "st,stm32h750", |
Ludovic Barre | f7dcb04 | 2018-01-16 15:56:00 +0100 | [diff] [blame] | 21 | "st,stm32mp157", |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 22 | NULL |
| 23 | }; |
| 24 | |
| 25 | DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)") |
| 26 | .dt_compat = stm32_compat, |
Benjamin Gaignard | 2092e3a | 2018-02-27 15:36:00 +0100 | [diff] [blame] | 27 | #ifdef CONFIG_ARM_SINGLE_ARMV7M |
| 28 | .restart = armv7m_restart, |
| 29 | #endif |
Maxime Coquelin | 9b799b7 | 2015-05-09 09:53:54 +0200 | [diff] [blame] | 30 | MACHINE_END |