]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
stm32mp1: add some syscon drivers for syscfg and etpzc
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 27 Feb 2019 16:01:23 +0000 (17:01 +0100)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Apr 2019 14:09:13 +0000 (16:09 +0200)
Add SYSCON driver for syscfg and etpzc and reorder in alphabetics order

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/dts/stm32mp157c.dtsi
arch/arm/mach-stm32mp/include/mach/stm32.h
arch/arm/mach-stm32mp/syscon.c

index 37cadfa30c90ff6d11875e06b549ced37855a81a..d1d0f90b2a18d4dd5e4a7ea40e8bc3d20370e030 100644 (file)
                };
 
                syscfg: system-config@50020000 {
-                       compatible = "st,stm32-syscfg", "syscon";
+                       compatible = "st,stm32mp157-syscfg", "syscon";
                        reg = <0x50020000 0x400>;
                };
 
index da23af0a64e5b48dc077c6c42bacca8bd1eb3ed7..d153ac8203fbf0677d245596fe4b55a68e09a37a 100644 (file)
 /* enumerated used to identify the SYSCON driver instance */
 enum {
        STM32MP_SYSCON_UNKNOWN,
-       STM32MP_SYSCON_STGEN,
+       STM32MP_SYSCON_ETZPC,
        STM32MP_SYSCON_PWR,
+       STM32MP_SYSCON_STGEN,
+       STM32MP_SYSCON_SYSCFG,
 };
 
 /*
index eb7f435f10caefbdc9b7ee14952a9504c3da2ea8..242f8340abb459d1ff492c9401a19d1b99fdd575 100644 (file)
@@ -9,10 +9,11 @@
 #include <asm/arch/stm32.h>
 
 static const struct udevice_id stm32mp_syscon_ids[] = {
-       { .compatible = "st,stm32-stgen",
-         .data = STM32MP_SYSCON_STGEN },
-       { .compatible = "st,stm32mp1-pwr",
-         .data = STM32MP_SYSCON_PWR },
+       { .compatible = "st,stm32mp1-etzpc", .data = STM32MP_SYSCON_ETZPC },
+       { .compatible = "st,stm32mp1-pwr", .data = STM32MP_SYSCON_PWR },
+       { .compatible = "st,stm32-stgen", .data = STM32MP_SYSCON_STGEN },
+       { .compatible = "st,stm32mp157-syscfg",
+         .data = STM32MP_SYSCON_SYSCFG },
        { }
 };