Skip to content

Commit a5ff3d8

Browse files
dougg3bebarino
authored andcommitted
clk: mmp: pxa168: add additional register defines
In preparation for adding additional peripherals over time, this commit adds a bunch of extra APBC_* defines based on information from the datasheet. It also reorganizes the list of defines to be ordered sequentially by address (grouped by type). Signed-off-by: Doug Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 568035b commit a5ff3d8

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

drivers/clk/mmp/clk-of-pxa168.c

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,47 @@
1919
#include "clk.h"
2020
#include "reset.h"
2121

22-
#define APBC_RTC 0x28
23-
#define APBC_TWSI0 0x2c
24-
#define APBC_KPC 0x30
2522
#define APBC_UART0 0x0
2623
#define APBC_UART1 0x4
2724
#define APBC_GPIO 0x8
2825
#define APBC_PWM0 0xc
2926
#define APBC_PWM1 0x10
3027
#define APBC_PWM2 0x14
3128
#define APBC_PWM3 0x18
29+
#define APBC_RTC 0x28
30+
#define APBC_TWSI0 0x2c
31+
#define APBC_KPC 0x30
3232
#define APBC_TIMER 0x34
33+
#define APBC_AIB 0x3c
34+
#define APBC_SW_JTAG 0x40
35+
#define APBC_ONEWIRE 0x48
36+
#define APBC_TWSI1 0x6c
37+
#define APBC_UART2 0x70
38+
#define APBC_AC97 0x84
3339
#define APBC_SSP0 0x81c
3440
#define APBC_SSP1 0x820
3541
#define APBC_SSP2 0x84c
3642
#define APBC_SSP3 0x858
3743
#define APBC_SSP4 0x85c
38-
#define APBC_TWSI1 0x6c
39-
#define APBC_UART2 0x70
44+
#define APMU_DISP0 0x4c
45+
#define APMU_CCIC0 0x50
4046
#define APMU_SDH0 0x54
4147
#define APMU_SDH1 0x58
4248
#define APMU_USB 0x5c
43-
#define APMU_DISP0 0x4c
44-
#define APMU_CCIC0 0x50
4549
#define APMU_DFC 0x60
50+
#define APMU_DMA 0x64
51+
#define APMU_BUS 0x6c
52+
#define APMU_GC 0xcc
53+
#define APMU_SMC 0xd4
54+
#define APMU_XD 0xdc
55+
#define APMU_SDH2 0xe0
56+
#define APMU_SDH3 0xe4
57+
#define APMU_CF 0xf0
58+
#define APMU_MSP 0xf4
59+
#define APMU_CMU 0xf8
60+
#define APMU_FE 0xfc
61+
#define APMU_PCIE 0x100
62+
#define APMU_EPD 0x104
4663
#define MPMU_UART_PLL 0x14
4764

4865
struct pxa168_clk_unit {

0 commit comments

Comments
 (0)