Tom Rini | 4549e78 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
Patrick Delaunay | e16750f | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2018, STMicroelectronics - All Rights Reserved |
Patrick Delaunay | e16750f | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <dm.h> |
| 8 | #include <syscon.h> |
| 9 | #include <asm/arch/stm32.h> |
| 10 | |
| 11 | static const struct udevice_id stm32mp_syscon_ids[] = { |
Patrick Delaunay | 6c09eb9 | 2019-02-27 17:01:23 +0100 | [diff] [blame] | 12 | { .compatible = "st,stm32mp1-pwr", .data = STM32MP_SYSCON_PWR }, |
Patrick Delaunay | 6c09eb9 | 2019-02-27 17:01:23 +0100 | [diff] [blame] | 13 | { .compatible = "st,stm32mp157-syscfg", |
| 14 | .data = STM32MP_SYSCON_SYSCFG }, |
Patrick Delaunay | e16750f | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 15 | { } |
| 16 | }; |
| 17 | |
| 18 | U_BOOT_DRIVER(syscon_stm32mp) = { |
| 19 | .name = "stmp32mp_syscon", |
| 20 | .id = UCLASS_SYSCON, |
| 21 | .of_match = stm32mp_syscon_ids, |
| 22 | .bind = dm_scan_fdt_dev, |
| 23 | }; |