Searched refs:TCON_OFFSET (Results 1 – 3 of 3) sorted by relevance
23 #define TCON_OFFSET(x) ((x + 1) * (!!x) << 2) macro25 #define TCON_START(x) (1 << TCON_OFFSET(x))26 #define TCON_UPDATE(x) (1 << (TCON_OFFSET(x) + 1))27 #define TCON_INVERTER(x) (1 << (TCON_OFFSET(x) + 2))28 #define TCON_AUTO_RELOAD(x) (1 << (TCON_OFFSET(x) + 3))
162 val = readl(&pwm->tcon) & ~(0xf << TCON_OFFSET(pwm_id)); in pwm_init()