Patrick Delaunay | 089d435 | 2018-03-20 11:45:14 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018, STMicroelectronics - All Rights Reserved |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <dm.h> |
| 9 | #include <syscon.h> |
| 10 | #include <asm/arch/stm32.h> |
| 11 | |
| 12 | static const struct udevice_id stm32mp_syscon_ids[] = { |
| 13 | { .compatible = "st,stm32-stgen", |
| 14 | .data = STM32MP_SYSCON_STGEN }, |
| 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 | }; |