History

clk: at91: allow configuring generated PCR layout

The PCR register layout for GCLKCSS is changing for the future SoCs, allow configuring it.

Alexandre Belloni committed 7 years ago

Commit e4cfb821 parent cb4f4945 files · +30 −30Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/clk/at91_pmc.h+1−6
@@ -187,13 +187,8 @@ · 186 unmodified lines
187187
188188 #define AT91_PMC_PCR 0x10c /* Peripheral Control Register [some SAM9 and SAMA5] */
189189 #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 */
193190 #define AT91_PMC_PCR_CMD (0x1 << 12) /* Command (read=0, write=1) */
194−#define AT91_PMC_PCR_GCKDIV_OFFSET 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 */
191+#define AT91_PMC_PCR_GCKDIV_MASK GENMASK(27, 20)
197192 #define AT91_PMC_PCR_EN (0x1 << 28) /* Enable */
198193 #define AT91_PMC_PCR_GCKEN (0x1 << 29) /* GCK Enable */
199194

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t