Home | History | Annotate | Line # | Download | only in clock
      1  1.1  jmcneill /*	$NetBSD: lpc18xx-cgu.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $	*/
      2  1.1  jmcneill 
      3  1.1  jmcneill /*
      4  1.1  jmcneill  * Copyright (c) 2015 Joachim Eastwood <manabian (at) gmail.com>
      5  1.1  jmcneill  *
      6  1.1  jmcneill  * This code is released using a dual license strategy: BSD/GPL
      7  1.1  jmcneill  * You can choose the licence that better fits your requirements.
      8  1.1  jmcneill  *
      9  1.1  jmcneill  * Released under the terms of 3-clause BSD License
     10  1.1  jmcneill  * Released under the terms of GNU General Public License Version 2.0
     11  1.1  jmcneill  *
     12  1.1  jmcneill  */
     13  1.1  jmcneill 
     14  1.1  jmcneill /* LPC18xx/43xx base clock ids */
     15  1.1  jmcneill #define BASE_SAFE_CLK		0
     16  1.1  jmcneill #define BASE_USB0_CLK		1
     17  1.1  jmcneill #define BASE_PERIPH_CLK		2
     18  1.1  jmcneill #define BASE_USB1_CLK		3
     19  1.1  jmcneill #define BASE_CPU_CLK		4
     20  1.1  jmcneill #define BASE_SPIFI_CLK		5
     21  1.1  jmcneill #define BASE_SPI_CLK		6
     22  1.1  jmcneill #define BASE_PHY_RX_CLK		7
     23  1.1  jmcneill #define BASE_PHY_TX_CLK		8
     24  1.1  jmcneill #define BASE_APB1_CLK		9
     25  1.1  jmcneill #define BASE_APB3_CLK		10
     26  1.1  jmcneill #define BASE_LCD_CLK		11
     27  1.1  jmcneill #define BASE_ADCHS_CLK		12
     28  1.1  jmcneill #define BASE_SDIO_CLK		13
     29  1.1  jmcneill #define BASE_SSP0_CLK		14
     30  1.1  jmcneill #define BASE_SSP1_CLK		15
     31  1.1  jmcneill #define BASE_UART0_CLK		16
     32  1.1  jmcneill #define BASE_UART1_CLK		17
     33  1.1  jmcneill #define BASE_UART2_CLK		18
     34  1.1  jmcneill #define BASE_UART3_CLK		19
     35  1.1  jmcneill #define BASE_OUT_CLK		20
     36  1.1  jmcneill #define BASE_RES1_CLK		21
     37  1.1  jmcneill #define BASE_RES2_CLK		22
     38  1.1  jmcneill #define BASE_RES3_CLK		23
     39  1.1  jmcneill #define BASE_RES4_CLK		24
     40  1.1  jmcneill #define BASE_AUDIO_CLK		25
     41  1.1  jmcneill #define BASE_CGU_OUT0_CLK	26
     42  1.1  jmcneill #define BASE_CGU_OUT1_CLK	27
     43  1.1  jmcneill #define BASE_CLK_MAX		(BASE_CGU_OUT1_CLK + 1)
     44