From: Tommaso Merciai Date: Sat, 26 Mar 2022 11:19:03 +0000 (+0100) Subject: arch: mach-imx: imx8m: add pwm_regs struct in imx-regs X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=625a3fe90cbd67d478fd9d1b150954689625b88e;p=u-boot.git arch: mach-imx: imx8m: add pwm_regs struct in imx-regs Add pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 827a672544..e173b9a88b 100644 --- a/arch/arm/include/asm/arch-imx8m/imx-regs.h +++ b/arch/arm/include/asm/arch-imx8m/imx-regs.h @@ -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 {