161ea291cSBenjamin Gaignard // SPDX-License-Identifier: GPL-2.0 29b799b78SMaxime Coquelin /* 39b799b78SMaxime Coquelin * Copyright (C) Maxime Coquelin 2015 461ea291cSBenjamin Gaignard * Copyright (C) STMicroelectronics 2017 59b799b78SMaxime Coquelin * Author: Maxime Coquelin <mcoquelin.stm32@gmail.com> 69b799b78SMaxime Coquelin */ 79b799b78SMaxime Coquelin 89b799b78SMaxime Coquelin #include <linux/kernel.h> 99b799b78SMaxime Coquelin #include <asm/mach/arch.h> 102092e3adSBenjamin Gaignard #ifdef CONFIG_ARM_SINGLE_ARMV7M 112092e3adSBenjamin Gaignard #include <asm/v7m.h> 122092e3adSBenjamin Gaignard #endif 139b799b78SMaxime Coquelin 149b799b78SMaxime Coquelin static const char *const stm32_compat[] __initconst = { 159b799b78SMaxime Coquelin "st,stm32f429", 166391503bSLee Jones "st,stm32f469", 17a77e393cSAlexandre TORGUE "st,stm32f746", 1885beb77fSAlexandre Torgue "st,stm32f769", 19c6ed0f31SAlexandre TORGUE "st,stm32h743", 2040ddb537Sdillon min "st,stm32h750", 21e0302638SAlexandre Torgue "st,stm32mp131", 22e0302638SAlexandre Torgue "st,stm32mp133", 23e0302638SAlexandre Torgue "st,stm32mp135", 24*76afff43SRoan van Dijk "st,stm32mp151", 25f7dcb044SLudovic Barre "st,stm32mp157", 269b799b78SMaxime Coquelin NULL 279b799b78SMaxime Coquelin }; 289b799b78SMaxime Coquelin 299b799b78SMaxime Coquelin DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)") 309b799b78SMaxime Coquelin .dt_compat = stm32_compat, 312092e3adSBenjamin Gaignard #ifdef CONFIG_ARM_SINGLE_ARMV7M 322092e3adSBenjamin Gaignard .restart = armv7m_restart, 332092e3adSBenjamin Gaignard #endif 349b799b78SMaxime Coquelin MACHINE_END 35