#define PWMV2_CPRD 0x0C
#define PWMV2_CPRDUPD 0x10
-/* Max values for period and prescaler */
-
-/* Only the LSB 16 bits are significant. */
-#define PWM_MAXV1_PRD 0xFFFF
-/* All 32 bits are significant. */
-#define PWM_MAXV2_PRD 0xFFFFFFFF
-#define PRD_MAXV1_PRES 10
-
struct atmel_pwm_registers {
u8 period;
u8 period_upd;
},
.cfg = {
/* 16 bits to keep period and duty. */
- .max_period = PWM_MAXV1_PRD,
- .max_pres = PRD_MAXV1_PRES,
+ .max_period = 0xffff,
+ .max_pres = 10,
},
};
},
.cfg = {
/* 16 bits to keep period and duty. */
- .max_period = PWM_MAXV1_PRD,
- .max_pres = PRD_MAXV1_PRES,
+ .max_period = 0xffff,
+ .max_pres = 10,
},
};
},
.cfg = {
/* 32 bits to keep period and duty. */
- .max_period = PWM_MAXV2_PRD,
- .max_pres = PRD_MAXV1_PRES,
+ .max_period = 0xffffffff,
+ .max_pres = 10,
},
};