blob: 242f8340abb459d1ff492c9401a19d1b99fdd575 [file] [log] [blame]
Tom Rini4549e782018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunaye16750f2018-03-20 11:45:14 +01002/*
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
Patrick Delaunaye16750f2018-03-20 11:45:14 +01004 */
5
6#include <common.h>
7#include <dm.h>
8#include <syscon.h>
9#include <asm/arch/stm32.h>
10
11static const struct udevice_id stm32mp_syscon_ids[] = {
Patrick Delaunay6c09eb92019-02-27 17:01:23 +010012 { .compatible = "st,stm32mp1-etzpc", .data = STM32MP_SYSCON_ETZPC },
13 { .compatible = "st,stm32mp1-pwr", .data = STM32MP_SYSCON_PWR },
14 { .compatible = "st,stm32-stgen", .data = STM32MP_SYSCON_STGEN },
15 { .compatible = "st,stm32mp157-syscfg",
16 .data = STM32MP_SYSCON_SYSCFG },
Patrick Delaunaye16750f2018-03-20 11:45:14 +010017 { }
18};
19
20U_BOOT_DRIVER(syscon_stm32mp) = {
21 .name = "stmp32mp_syscon",
22 .id = UCLASS_SYSCON,
23 .of_match = stm32mp_syscon_ids,
24 .bind = dm_scan_fdt_dev,
25};