blob: a766310d8dca41d6447af6c23898ca18500e9a3b [file] [log] [blame]
Benjamin Gaignard61ea2912017-11-30 09:49:00 +01001// SPDX-License-Identifier: GPL-2.0
Maxime Coquelin9b799b72015-05-09 09:53:54 +02002/*
3 * Copyright (C) Maxime Coquelin 2015
Benjamin Gaignard61ea2912017-11-30 09:49:00 +01004 * Copyright (C) STMicroelectronics 2017
Maxime Coquelin9b799b72015-05-09 09:53:54 +02005 * Author: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Maxime Coquelin9b799b72015-05-09 09:53:54 +02006 */
7
8#include <linux/kernel.h>
Maxime Coquelin9b799b72015-05-09 09:53:54 +02009#include <asm/mach/arch.h>
Benjamin Gaignard2092e3a2018-02-27 15:36:00 +010010#ifdef CONFIG_ARM_SINGLE_ARMV7M
11#include <asm/v7m.h>
12#endif
Maxime Coquelin9b799b72015-05-09 09:53:54 +020013
14static const char *const stm32_compat[] __initconst = {
15 "st,stm32f429",
Lee Jones63915032016-02-16 15:17:00 +010016 "st,stm32f469",
Alexandre TORGUEa77e3932016-11-15 12:02:33 +010017 "st,stm32f746",
Alexandre Torgue85beb772017-12-11 09:54:00 +010018 "st,stm32f769",
Alexandre TORGUEc6ed0f32017-01-30 17:46:23 +010019 "st,stm32h743",
dillon min40ddb532021-03-31 16:28:44 +080020 "st,stm32h750",
Ludovic Barref7dcb042018-01-16 15:56:00 +010021 "st,stm32mp157",
Maxime Coquelin9b799b72015-05-09 09:53:54 +020022 NULL
23};
24
25DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)")
26 .dt_compat = stm32_compat,
Benjamin Gaignard2092e3a2018-02-27 15:36:00 +010027#ifdef CONFIG_ARM_SINGLE_ARMV7M
28 .restart = armv7m_restart,
29#endif
Maxime Coquelin9b799b72015-05-09 09:53:54 +020030MACHINE_END