xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/clock/lpc18xx-ccu.h (revision 6029d4abf2297d9a62ec7eb4150bf1ba5138736d)
1 /*	$NetBSD: lpc18xx-ccu.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
2 
3 /*
4  * Copyright (c) 2015 Joachim Eastwood <manabian@gmail.com>
5  *
6  * This code is released using a dual license strategy: BSD/GPL
7  * You can choose the licence that better fits your requirements.
8  *
9  * Released under the terms of 3-clause BSD License
10  * Released under the terms of GNU General Public License Version 2.0
11  *
12  */
13 
14 /* Clock Control Unit 1 (CCU1) clock offsets */
15 #define CLK_APB3_BUS		0x100
16 #define CLK_APB3_I2C1		0x108
17 #define CLK_APB3_DAC		0x110
18 #define CLK_APB3_ADC0		0x118
19 #define CLK_APB3_ADC1		0x120
20 #define CLK_APB3_CAN0		0x128
21 #define CLK_APB1_BUS		0x200
22 #define CLK_APB1_MOTOCON_PWM	0x208
23 #define CLK_APB1_I2C0		0x210
24 #define CLK_APB1_I2S		0x218
25 #define CLK_APB1_CAN1		0x220
26 #define CLK_SPIFI		0x300
27 #define CLK_CPU_BUS		0x400
28 #define CLK_CPU_SPIFI		0x408
29 #define CLK_CPU_GPIO		0x410
30 #define CLK_CPU_LCD		0x418
31 #define CLK_CPU_ETHERNET	0x420
32 #define CLK_CPU_USB0		0x428
33 #define CLK_CPU_EMC		0x430
34 #define CLK_CPU_SDIO		0x438
35 #define CLK_CPU_DMA		0x440
36 #define CLK_CPU_CORE		0x448
37 #define CLK_CPU_SCT		0x468
38 #define CLK_CPU_USB1		0x470
39 #define CLK_CPU_EMCDIV		0x478
40 #define CLK_CPU_FLASHA		0x480
41 #define CLK_CPU_FLASHB		0x488
42 #define CLK_CPU_M0APP		0x490
43 #define CLK_CPU_ADCHS		0x498
44 #define CLK_CPU_EEPROM		0x4a0
45 #define CLK_CPU_WWDT		0x500
46 #define CLK_CPU_UART0		0x508
47 #define CLK_CPU_UART1		0x510
48 #define CLK_CPU_SSP0		0x518
49 #define CLK_CPU_TIMER0		0x520
50 #define CLK_CPU_TIMER1		0x528
51 #define CLK_CPU_SCU		0x530
52 #define CLK_CPU_CREG		0x538
53 #define CLK_CPU_RITIMER		0x600
54 #define CLK_CPU_UART2		0x608
55 #define CLK_CPU_UART3		0x610
56 #define CLK_CPU_TIMER2		0x618
57 #define CLK_CPU_TIMER3		0x620
58 #define CLK_CPU_SSP1		0x628
59 #define CLK_CPU_QEI		0x630
60 #define CLK_PERIPH_BUS		0x700
61 #define CLK_PERIPH_CORE		0x710
62 #define CLK_PERIPH_SGPIO	0x718
63 #define CLK_USB0		0x800
64 #define CLK_USB1		0x900
65 #define CLK_SPI			0xA00
66 #define CLK_ADCHS		0xB00
67 
68 /* Clock Control Unit 2 (CCU2) clock offsets */
69 #define CLK_AUDIO		0x100
70 #define CLK_APB2_UART3		0x200
71 #define CLK_APB2_UART2		0x300
72 #define CLK_APB0_UART1		0x400
73 #define CLK_APB0_UART0		0x500
74 #define CLK_APB2_SSP1		0x600
75 #define CLK_APB0_SSP0		0x700
76 #define CLK_SDIO		0x800
77