]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
misc: s4mu: Support iMX93 with Sentinel MU
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 Jul 2022 08:40:50 +0000 (16:40 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:00 +0000 (11:29 +0200)
Support iMX93 communicate with Sentinel

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx9/imx-regs.h
drivers/misc/sentinel/s4mu.c

index e4babed40fcafd009e80ab44e0a7b417c78f442c..7b84b970b757fbeeb01aef6ecb621134905db73e 100644 (file)
 #define WDG4_BASE_ADDR      0x424a0000UL
 #define WDG5_BASE_ADDR      0x424b0000UL
 
+#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
+#include <asm/types.h>
+#include <stdbool.h>
+
+struct mu_type {
+       u32 ver;
+       u32 par;
+       u32 cr;
+       u32 sr;
+       u32 reserved0[60];
+       u32 fcr;
+       u32 fsr;
+       u32 reserved1[2];
+       u32 gier;
+       u32 gcr;
+       u32 gsr;
+       u32 reserved2;
+       u32 tcr;
+       u32 tsr;
+       u32 rcr;
+       u32 rsr;
+       u32 reserved3[52];
+       u32 tr[16];
+       u32 reserved4[16];
+       u32 rr[16];
+       u32 reserved5[14];
+       u32 mu_attr;
+};
+#endif
+
 #endif
index 121a81060a6c3e147f9940f5921b60c038c66f03..18aea27105e4e3edb7728d7a0047090034252827 100644 (file)
@@ -219,6 +219,7 @@ static struct misc_ops imx8ulp_mu_ops = {
 
 static const struct udevice_id imx8ulp_mu_ids[] = {
        { .compatible = "fsl,imx8ulp-mu" },
+       { .compatible = "fsl,imx93-mu-s4" },
        { }
 };