]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arch: mach-imx: imx8m: add pwm_regs struct in imx-regs
authorTommaso Merciai <tommaso.merciai@amarulasolutions.com>
Sat, 26 Mar 2022 11:19:03 +0000 (12:19 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 15:33:55 +0000 (17:33 +0200)
Add pwm_regs struct for i.MX8MM SOC

Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
arch/arm/include/asm/arch-imx8m/imx-regs.h

index 827a6725443f8a730f7de4d0b25bee2179dc6201..e173b9a88bb15bb845a4b7a98f3246af44285eb8 100644 (file)
@@ -336,6 +336,15 @@ struct src {
 #define PWMCR_CLKSRC_IPG       (1 << 16)
 #define PWMCR_EN               (1 << 0)
 
+struct pwm_regs {
+       u32     cr;
+       u32     sr;
+       u32     ir;
+       u32     sar;
+       u32     pr;
+       u32     cnr;
+};
+
 #define WDOG_WDT_MASK  BIT(3)
 #define WDOG_WDZST_MASK        BIT(0)
 struct wdog_regs {