Commit aafe4020 authored by Heiko Schocher's avatar Heiko Schocher Committed by Stefano Babic

i.MX6: define struct pwm_regs and PWMCR_* defines

add defines for pwm modul found on imx6.
Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
parent 4a4d3a7d
......@@ -777,5 +777,21 @@ struct wdog_regs {
u16 wmcr; /* Miscellaneous Control */
};
#define PWMCR_PRESCALER(x) (((x - 1) & 0xFFF) << 4)
#define PWMCR_DOZEEN (1 << 24)
#define PWMCR_WAITEN (1 << 23)
#define PWMCR_DBGEN (1 << 22)
#define PWMCR_CLKSRC_IPG_HIGH (2 << 16)
#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;
};
#endif /* __ASSEMBLER__*/
#endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment