blob: eb7f435f10caefbdc9b7ee14952a9504c3da2ea8 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay089d4352018-03-20 11:45:14 +01002/*
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
Patrick Delaunay089d4352018-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[] = {
12 { .compatible = "st,stm32-stgen",
13 .data = STM32MP_SYSCON_STGEN },
Patrick Delaunayaa785312018-04-26 16:45:18 +020014 { .compatible = "st,stm32mp1-pwr",
15 .data = STM32MP_SYSCON_PWR },
Patrick Delaunay089d4352018-03-20 11:45:14 +010016 { }
17};
18
19U_BOOT_DRIVER(syscon_stm32mp) = {
20 .name = "stmp32mp_syscon",
21 .id = UCLASS_SYSCON,
22 .of_match = stm32mp_syscon_ids,
23 .bind = dm_scan_fdt_dev,
24};