The PCR register layout for GCLKCSS is changing for the future SoCs, allow configuring it.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -187,13 +187,8 @@ · 186 unmodified lines | |||
| 187 | 187 | ||
| 188 | #define AT91_PMC_PCR 0x10c /* Peripheral Control Register [some SAM9 and SAMA5] */ | 188 | #define AT91_PMC_PCR 0x10c /* Peripheral Control Register [some SAM9 and SAMA5] */ |
| 189 | #define AT91_PMC_PCR_PID_MASK 0x3f | 189 | #define AT91_PMC_PCR_PID_MASK 0x3f |
| 190 | #define AT91_PMC_PCR_GCKCSS_OFFSET 8 | ||
| 191 | #define AT91_PMC_PCR_GCKCSS_MASK (0x7 << AT91_PMC_PCR_GCKCSS_OFFSET) | ||
| 192 | #define AT91_PMC_PCR_GCKCSS(n) ((n) << AT91_PMC_PCR_GCKCSS_OFFSET) /* GCK Clock Source Selection */ | ||
| 193 | #define AT91_PMC_PCR_CMD (0x1 << 12) /* Command (read=0, write=1) */ | 190 | #define AT91_PMC_PCR_CMD (0x1 << 12) /* Command (read=0, write=1) */ |
| 194 | #define AT91_PMC_PCR_GCKDIV_OFFSET 20 | 191 | #define AT91_PMC_PCR_GCKDIV_MASK GENMASK(27, 20) |
| 195 | #define AT91_PMC_PCR_GCKDIV_MASK (0xff << AT91_PMC_PCR_GCKDIV_OFFSET) | ||
| 196 | #define AT91_PMC_PCR_GCKDIV(n) ((n) << AT91_PMC_PCR_GCKDIV_OFFSET) /* Generated Clock Divisor Value */ | ||
| 197 | #define AT91_PMC_PCR_EN (0x1 << 28) /* Enable */ | 192 | #define AT91_PMC_PCR_EN (0x1 << 28) /* Enable */ |
| 198 | #define AT91_PMC_PCR_GCKEN (0x1 << 29) /* GCK Enable */ | 193 | #define AT91_PMC_PCR_GCKEN (0x1 << 29) /* GCK Enable */ |
| 199 | 194 | ||