xref: /openbmc/linux/arch/arm/mach-davinci/da830.c (revision 544ca0b0)
155c79a40SMark A. Greer /*
255c79a40SMark A. Greer  * TI DA830/OMAP L137 chip specific setup
355c79a40SMark A. Greer  *
455c79a40SMark A. Greer  * Author: Mark A. Greer <mgreer@mvista.com>
555c79a40SMark A. Greer  *
655c79a40SMark A. Greer  * 2009 (c) MontaVista Software, Inc. This file is licensed under
755c79a40SMark A. Greer  * the terms of the GNU General Public License version 2. This program
855c79a40SMark A. Greer  * is licensed "as is" without any warranty of any kind, whether express
955c79a40SMark A. Greer  * or implied.
1055c79a40SMark A. Greer  */
113952af1cSDavid Lechner #include <linux/clk-provider.h>
123952af1cSDavid Lechner #include <linux/clk/davinci.h>
132f8163baSRussell King #include <linux/gpio.h>
1455c79a40SMark A. Greer #include <linux/init.h>
15f606d38dSKV Sujith #include <linux/platform_data/gpio-davinci.h>
1655c79a40SMark A. Greer 
1755c79a40SMark A. Greer #include <asm/mach/map.h>
1855c79a40SMark A. Greer 
1955c79a40SMark A. Greer #include <mach/common.h>
203952af1cSDavid Lechner #include <mach/cputype.h>
2155c79a40SMark A. Greer #include <mach/da8xx.h>
223952af1cSDavid Lechner #include <mach/time.h>
2355c79a40SMark A. Greer 
24544ca0b0SBartosz Golaszewski #include "irqs.h"
2555c79a40SMark A. Greer #include "mux.h"
2655c79a40SMark A. Greer 
2755c79a40SMark A. Greer /* Offsets of the 8 compare registers on the da830 */
2855c79a40SMark A. Greer #define DA830_CMP12_0		0x60
2955c79a40SMark A. Greer #define DA830_CMP12_1		0x64
3055c79a40SMark A. Greer #define DA830_CMP12_2		0x68
3155c79a40SMark A. Greer #define DA830_CMP12_3		0x6c
3255c79a40SMark A. Greer #define DA830_CMP12_4		0x70
3355c79a40SMark A. Greer #define DA830_CMP12_5		0x74
3455c79a40SMark A. Greer #define DA830_CMP12_6		0x78
3555c79a40SMark A. Greer #define DA830_CMP12_7		0x7c
3655c79a40SMark A. Greer 
3755c79a40SMark A. Greer #define DA830_REF_FREQ		24000000
3855c79a40SMark A. Greer 
3955c79a40SMark A. Greer /*
4055c79a40SMark A. Greer  * Device specific mux setup
4155c79a40SMark A. Greer  *
4255c79a40SMark A. Greer  *	     soc      description	mux    mode    mode   mux	dbg
4355c79a40SMark A. Greer  *					reg   offset   mask   mode
4455c79a40SMark A. Greer  */
4555c79a40SMark A. Greer static const struct mux_config da830_pins[] = {
4655c79a40SMark A. Greer #ifdef CONFIG_DAVINCI_MUX
4755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_14,	0,	0,	0xf,	1,	false)
4855c79a40SMark A. Greer 	MUX_CFG(DA830, RTCK,		0,	0,	0xf,	8,	false)
4955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_15,	0,	4,	0xf,	1,	false)
5055c79a40SMark A. Greer 	MUX_CFG(DA830, EMU_0,		0,	4,	0xf,	8,	false)
5155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_SDCKE,	0,	8,	0xf,	1,	false)
5255c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_CLK_GLUE,	0,	12,	0xf,	1,	false)
5355c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_CLK,		0,	12,	0xf,	2,	false)
5455c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_CS_0,	0,	16,	0xf,	1,	false)
5555c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_CAS,	0,	20,	0xf,	1,	false)
5655c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_RAS,	0,	24,	0xf,	1,	false)
5755c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_WE,		0,	28,	0xf,	1,	false)
5855c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_BA_1,	1,	0,	0xf,	1,	false)
5955c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_BA_0,	1,	4,	0xf,	1,	false)
6055c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_0,		1,	8,	0xf,	1,	false)
6155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_1,		1,	12,	0xf,	1,	false)
6255c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_2,		1,	16,	0xf,	1,	false)
6355c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_3,		1,	20,	0xf,	1,	false)
6455c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_4,		1,	24,	0xf,	1,	false)
6555c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_5,		1,	28,	0xf,	1,	false)
6655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_0,		1,	0,	0xf,	8,	false)
6755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_1,		1,	4,	0xf,	8,	false)
6855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_2,		1,	8,	0xf,	8,	false)
6955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_3,		1,	12,	0xf,	8,	false)
7055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_4,		1,	16,	0xf,	8,	false)
7155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_5,		1,	20,	0xf,	8,	false)
7255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_6,		1,	24,	0xf,	8,	false)
7355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_7,		1,	28,	0xf,	8,	false)
7455c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_6,		2,	0,	0xf,	1,	false)
7555c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_7,		2,	4,	0xf,	1,	false)
7655c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_8,		2,	8,	0xf,	1,	false)
7755c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_9,		2,	12,	0xf,	1,	false)
7855c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_10,	2,	16,	0xf,	1,	false)
7955c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_11,	2,	20,	0xf,	1,	false)
8055c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_A_12,	2,	24,	0xf,	1,	false)
8155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_31,	2,	28,	0xf,	1,	false)
8255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_8,		2,	0,	0xf,	8,	false)
8355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_9,		2,	4,	0xf,	8,	false)
8455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_10,	2,	8,	0xf,	8,	false)
8555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_11,	2,	12,	0xf,	8,	false)
8655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_12,	2,	16,	0xf,	8,	false)
8755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO7_13,	2,	20,	0xf,	8,	false)
8855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_13,	2,	24,	0xf,	8,	false)
8955c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_30,	3,	0,	0xf,	1,	false)
9055c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_29,	3,	4,	0xf,	1,	false)
9155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_28,	3,	8,	0xf,	1,	false)
9255c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_27,	3,	12,	0xf,	1,	false)
9355c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_26,	3,	16,	0xf,	1,	false)
9455c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_25,	3,	20,	0xf,	1,	false)
9555c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_24,	3,	24,	0xf,	1,	false)
9655c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_23,	3,	28,	0xf,	1,	false)
9755c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_22,	4,	0,	0xf,	1,	false)
9855c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_21,	4,	4,	0xf,	1,	false)
9955c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_20,	4,	8,	0xf,	1,	false)
10055c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_19,	4,	12,	0xf,	1,	false)
10155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_18,	4,	16,	0xf,	1,	false)
10255c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_17,	4,	20,	0xf,	1,	false)
10355c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_16,	4,	24,	0xf,	1,	false)
10455c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_WE_DQM_3,	4,	28,	0xf,	1,	false)
10555c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_WE_DQM_2,	5,	0,	0xf,	1,	false)
10655c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_0,		5,	4,	0xf,	1,	false)
10755c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_1,		5,	8,	0xf,	1,	false)
10855c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_2,		5,	12,	0xf,	1,	false)
10955c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_3,		5,	16,	0xf,	1,	false)
11055c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_4,		5,	20,	0xf,	1,	false)
11155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_5,		5,	24,	0xf,	1,	false)
11255c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_6,		5,	28,	0xf,	1,	false)
11355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_0,		5,	4,	0xf,	8,	false)
11455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_1,		5,	8,	0xf,	8,	false)
11555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_2,		5,	12,	0xf,	8,	false)
11655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_3,		5,	16,	0xf,	8,	false)
11755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_4,		5,	20,	0xf,	8,	false)
11855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_5,		5,	24,	0xf,	8,	false)
11955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_6,		5,	28,	0xf,	8,	false)
12055c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_7,		6,	0,	0xf,	1,	false)
12155c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_8,		6,	4,	0xf,	1,	false)
12255c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_9,		6,	8,	0xf,	1,	false)
12355c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_10,	6,	12,	0xf,	1,	false)
12455c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_11,	6,	16,	0xf,	1,	false)
12555c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_12,	6,	20,	0xf,	1,	false)
12655c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_13,	6,	24,	0xf,	1,	false)
12755c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_14,	6,	28,	0xf,	1,	false)
12855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_7,		6,	0,	0xf,	8,	false)
12955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_8,		6,	4,	0xf,	8,	false)
13055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_9,		6,	8,	0xf,	8,	false)
13155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_10,	6,	12,	0xf,	8,	false)
13255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_11,	6,	16,	0xf,	8,	false)
13355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_12,	6,	20,	0xf,	8,	false)
13455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_13,	6,	24,	0xf,	8,	false)
13555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_14,	6,	28,	0xf,	8,	false)
13655c79a40SMark A. Greer 	MUX_CFG(DA830, EMB_D_15,	7,	0,	0xf,	1,	false)
13755c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_WE_DQM_1,	7,	4,	0xf,	1,	false)
13855c79a40SMark A. Greer 	MUX_CFG(DA830, NEMB_WE_DQM_0,	7,	8,	0xf,	1,	false)
13955c79a40SMark A. Greer 	MUX_CFG(DA830, SPI0_SOMI_0,	7,	12,	0xf,	1,	false)
14055c79a40SMark A. Greer 	MUX_CFG(DA830, SPI0_SIMO_0,	7,	16,	0xf,	1,	false)
14155c79a40SMark A. Greer 	MUX_CFG(DA830, SPI0_CLK,	7,	20,	0xf,	1,	false)
14255c79a40SMark A. Greer 	MUX_CFG(DA830, NSPI0_ENA,	7,	24,	0xf,	1,	false)
14355c79a40SMark A. Greer 	MUX_CFG(DA830, NSPI0_SCS_0,	7,	28,	0xf,	1,	false)
14455c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP0I,		7,	12,	0xf,	2,	false)
14555c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP0S,		7,	16,	0xf,	2,	false)
14655c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP1I,		7,	20,	0xf,	2,	false)
14755c79a40SMark A. Greer 	MUX_CFG(DA830, NUART0_CTS,	7,	24,	0xf,	2,	false)
14855c79a40SMark A. Greer 	MUX_CFG(DA830, NUART0_RTS,	7,	28,	0xf,	2,	false)
14955c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP0A,		7,	24,	0xf,	4,	false)
15055c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP0B,		7,	28,	0xf,	4,	false)
15155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO6_15,	7,	0,	0xf,	8,	false)
15255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_14,	7,	4,	0xf,	8,	false)
15355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_15,	7,	8,	0xf,	8,	false)
15455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_0,		7,	12,	0xf,	8,	false)
15555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_1,		7,	16,	0xf,	8,	false)
15655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_2,		7,	20,	0xf,	8,	false)
15755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_3,		7,	24,	0xf,	8,	false)
15855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_4,		7,	28,	0xf,	8,	false)
15955c79a40SMark A. Greer 	MUX_CFG(DA830, SPI1_SOMI_0,	8,	0,	0xf,	1,	false)
16055c79a40SMark A. Greer 	MUX_CFG(DA830, SPI1_SIMO_0,	8,	4,	0xf,	1,	false)
16155c79a40SMark A. Greer 	MUX_CFG(DA830, SPI1_CLK,	8,	8,	0xf,	1,	false)
16255c79a40SMark A. Greer 	MUX_CFG(DA830, UART0_RXD,	8,	12,	0xf,	1,	false)
16355c79a40SMark A. Greer 	MUX_CFG(DA830, UART0_TXD,	8,	16,	0xf,	1,	false)
16455c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_10,		8,	20,	0xf,	1,	false)
16555c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_11,		8,	24,	0xf,	1,	false)
16655c79a40SMark A. Greer 	MUX_CFG(DA830, NSPI1_ENA,	8,	28,	0xf,	1,	false)
16755c79a40SMark A. Greer 	MUX_CFG(DA830, I2C1_SCL,	8,	0,	0xf,	2,	false)
16855c79a40SMark A. Greer 	MUX_CFG(DA830, I2C1_SDA,	8,	4,	0xf,	2,	false)
16955c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP1S,		8,	8,	0xf,	2,	false)
17055c79a40SMark A. Greer 	MUX_CFG(DA830, I2C0_SDA,	8,	12,	0xf,	2,	false)
17155c79a40SMark A. Greer 	MUX_CFG(DA830, I2C0_SCL,	8,	16,	0xf,	2,	false)
17255c79a40SMark A. Greer 	MUX_CFG(DA830, UART2_RXD,	8,	28,	0xf,	2,	false)
17355c79a40SMark A. Greer 	MUX_CFG(DA830, TM64P0_IN12,	8,	12,	0xf,	4,	false)
17455c79a40SMark A. Greer 	MUX_CFG(DA830, TM64P0_OUT12,	8,	16,	0xf,	4,	false)
17555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_5,		8,	0,	0xf,	8,	false)
17655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_6,		8,	4,	0xf,	8,	false)
17755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_7,		8,	8,	0xf,	8,	false)
17855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_8,		8,	12,	0xf,	8,	false)
17955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_9,		8,	16,	0xf,	8,	false)
18055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_10,	8,	20,	0xf,	8,	false)
18155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_11,	8,	24,	0xf,	8,	false)
18255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_12,	8,	28,	0xf,	8,	false)
18355c79a40SMark A. Greer 	MUX_CFG(DA830, NSPI1_SCS_0,	9,	0,	0xf,	1,	false)
18455c79a40SMark A. Greer 	MUX_CFG(DA830, USB0_DRVVBUS,	9,	4,	0xf,	1,	false)
18555c79a40SMark A. Greer 	MUX_CFG(DA830, AHCLKX0,		9,	8,	0xf,	1,	false)
18655c79a40SMark A. Greer 	MUX_CFG(DA830, ACLKX0,		9,	12,	0xf,	1,	false)
18755c79a40SMark A. Greer 	MUX_CFG(DA830, AFSX0,		9,	16,	0xf,	1,	false)
18855c79a40SMark A. Greer 	MUX_CFG(DA830, AHCLKR0,		9,	20,	0xf,	1,	false)
18955c79a40SMark A. Greer 	MUX_CFG(DA830, ACLKR0,		9,	24,	0xf,	1,	false)
19055c79a40SMark A. Greer 	MUX_CFG(DA830, AFSR0,		9,	28,	0xf,	1,	false)
19155c79a40SMark A. Greer 	MUX_CFG(DA830, UART2_TXD,	9,	0,	0xf,	2,	false)
19255c79a40SMark A. Greer 	MUX_CFG(DA830, AHCLKX2,		9,	8,	0xf,	2,	false)
19355c79a40SMark A. Greer 	MUX_CFG(DA830, ECAP0_APWM0,	9,	12,	0xf,	2,	false)
19455c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_MHZ_50_CLK,	9,	20,	0xf,	2,	false)
19555c79a40SMark A. Greer 	MUX_CFG(DA830, ECAP1_APWM1,	9,	24,	0xf,	2,	false)
19655c79a40SMark A. Greer 	MUX_CFG(DA830, USB_REFCLKIN,	9,	8,	0xf,	4,	false)
19755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO5_13,	9,	0,	0xf,	8,	false)
19855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_15,	9,	4,	0xf,	8,	false)
19955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_11,	9,	8,	0xf,	8,	false)
20055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_12,	9,	12,	0xf,	8,	false)
20155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_13,	9,	16,	0xf,	8,	false)
20255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_14,	9,	20,	0xf,	8,	false)
20355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_15,	9,	24,	0xf,	8,	false)
20455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_12,	9,	28,	0xf,	8,	false)
20555c79a40SMark A. Greer 	MUX_CFG(DA830, AMUTE0,		10,	0,	0xf,	1,	false)
20655c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_0,		10,	4,	0xf,	1,	false)
20755c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_1,		10,	8,	0xf,	1,	false)
20855c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_2,		10,	12,	0xf,	1,	false)
20955c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_3,		10,	16,	0xf,	1,	false)
21055c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_4,		10,	20,	0xf,	1,	false)
21155c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_5,		10,	24,	0xf,	1,	false)
21255c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_6,		10,	28,	0xf,	1,	false)
21355c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_TXD_0,	10,	4,	0xf,	2,	false)
21455c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_TXD_1,	10,	8,	0xf,	2,	false)
21555c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_TXEN,	10,	12,	0xf,	2,	false)
21655c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_CRS_DV,	10,	16,	0xf,	2,	false)
21755c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_RXD_0,	10,	20,	0xf,	2,	false)
21855c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_RXD_1,	10,	24,	0xf,	2,	false)
21955c79a40SMark A. Greer 	MUX_CFG(DA830, RMII_RXER,	10,	28,	0xf,	2,	false)
22055c79a40SMark A. Greer 	MUX_CFG(DA830, AFSR2,		10,	4,	0xf,	4,	false)
22155c79a40SMark A. Greer 	MUX_CFG(DA830, ACLKX2,		10,	8,	0xf,	4,	false)
22255c79a40SMark A. Greer 	MUX_CFG(DA830, AXR2_3,		10,	12,	0xf,	4,	false)
22355c79a40SMark A. Greer 	MUX_CFG(DA830, AXR2_2,		10,	16,	0xf,	4,	false)
22455c79a40SMark A. Greer 	MUX_CFG(DA830, AXR2_1,		10,	20,	0xf,	4,	false)
22555c79a40SMark A. Greer 	MUX_CFG(DA830, AFSX2,		10,	24,	0xf,	4,	false)
22655c79a40SMark A. Greer 	MUX_CFG(DA830, ACLKR2,		10,	28,	0xf,	4,	false)
22755c79a40SMark A. Greer 	MUX_CFG(DA830, NRESETOUT,	10,	0,	0xf,	8,	false)
22855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_0,		10,	4,	0xf,	8,	false)
22955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_1,		10,	8,	0xf,	8,	false)
23055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_2,		10,	12,	0xf,	8,	false)
23155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_3,		10,	16,	0xf,	8,	false)
23255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_4,		10,	20,	0xf,	8,	false)
23355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_5,		10,	24,	0xf,	8,	false)
23455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_6,		10,	28,	0xf,	8,	false)
23555c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_7,		11,	0,	0xf,	1,	false)
23655c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_8,		11,	4,	0xf,	1,	false)
23755c79a40SMark A. Greer 	MUX_CFG(DA830, UART1_RXD,	11,	8,	0xf,	1,	false)
23855c79a40SMark A. Greer 	MUX_CFG(DA830, UART1_TXD,	11,	12,	0xf,	1,	false)
23955c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_11,		11,	16,	0xf,	1,	false)
24055c79a40SMark A. Greer 	MUX_CFG(DA830, AHCLKX1,		11,	20,	0xf,	1,	false)
24155c79a40SMark A. Greer 	MUX_CFG(DA830, ACLKX1,		11,	24,	0xf,	1,	false)
24255c79a40SMark A. Greer 	MUX_CFG(DA830, AFSX1,		11,	28,	0xf,	1,	false)
24355c79a40SMark A. Greer 	MUX_CFG(DA830, MDIO_CLK,	11,	0,	0xf,	2,	false)
24455c79a40SMark A. Greer 	MUX_CFG(DA830, MDIO_D,		11,	4,	0xf,	2,	false)
24555c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_9,		11,	8,	0xf,	2,	false)
24655c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_10,		11,	12,	0xf,	2,	false)
24755c79a40SMark A. Greer 	MUX_CFG(DA830, EPWM0B,		11,	20,	0xf,	2,	false)
24855c79a40SMark A. Greer 	MUX_CFG(DA830, EPWM0A,		11,	24,	0xf,	2,	false)
24955c79a40SMark A. Greer 	MUX_CFG(DA830, EPWMSYNCI,	11,	28,	0xf,	2,	false)
25055c79a40SMark A. Greer 	MUX_CFG(DA830, AXR2_0,		11,	16,	0xf,	4,	false)
25155c79a40SMark A. Greer 	MUX_CFG(DA830, EPWMSYNC0,	11,	28,	0xf,	4,	false)
25255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_7,		11,	0,	0xf,	8,	false)
25355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_8,		11,	4,	0xf,	8,	false)
25455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_9,		11,	8,	0xf,	8,	false)
25555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_10,	11,	12,	0xf,	8,	false)
25655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_11,	11,	16,	0xf,	8,	false)
25755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_14,	11,	20,	0xf,	8,	false)
25855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO3_15,	11,	24,	0xf,	8,	false)
25955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_10,	11,	28,	0xf,	8,	false)
26055c79a40SMark A. Greer 	MUX_CFG(DA830, AHCLKR1,		12,	0,	0xf,	1,	false)
26155c79a40SMark A. Greer 	MUX_CFG(DA830, ACLKR1,		12,	4,	0xf,	1,	false)
26255c79a40SMark A. Greer 	MUX_CFG(DA830, AFSR1,		12,	8,	0xf,	1,	false)
26355c79a40SMark A. Greer 	MUX_CFG(DA830, AMUTE1,		12,	12,	0xf,	1,	false)
26455c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_0,		12,	16,	0xf,	1,	false)
26555c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_1,		12,	20,	0xf,	1,	false)
26655c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_2,		12,	24,	0xf,	1,	false)
26755c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_3,		12,	28,	0xf,	1,	false)
26855c79a40SMark A. Greer 	MUX_CFG(DA830, ECAP2_APWM2,	12,	4,	0xf,	2,	false)
26955c79a40SMark A. Greer 	MUX_CFG(DA830, EHRPWMGLUETZ,	12,	12,	0xf,	2,	false)
27055c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP1A,		12,	28,	0xf,	2,	false)
27155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_11,	12,	0,	0xf,	8,	false)
27255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_12,	12,	4,	0xf,	8,	false)
27355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_13,	12,	8,	0xf,	8,	false)
27455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_14,	12,	12,	0xf,	8,	false)
27555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_0,		12,	16,	0xf,	8,	false)
27655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_1,		12,	20,	0xf,	8,	false)
27755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_2,		12,	24,	0xf,	8,	false)
27855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_3,		12,	28,	0xf,	8,	false)
27955c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_4,		13,	0,	0xf,	1,	false)
28055c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_5,		13,	4,	0xf,	1,	false)
28155c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_6,		13,	8,	0xf,	1,	false)
28255c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_7,		13,	12,	0xf,	1,	false)
28355c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_8,		13,	16,	0xf,	1,	false)
28455c79a40SMark A. Greer 	MUX_CFG(DA830, AXR1_9,		13,	20,	0xf,	1,	false)
28555c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_0,		13,	24,	0xf,	1,	false)
28655c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_1,		13,	28,	0xf,	1,	false)
28755c79a40SMark A. Greer 	MUX_CFG(DA830, EQEP1B,		13,	0,	0xf,	2,	false)
28855c79a40SMark A. Greer 	MUX_CFG(DA830, EPWM2B,		13,	4,	0xf,	2,	false)
28955c79a40SMark A. Greer 	MUX_CFG(DA830, EPWM2A,		13,	8,	0xf,	2,	false)
29055c79a40SMark A. Greer 	MUX_CFG(DA830, EPWM1B,		13,	12,	0xf,	2,	false)
29155c79a40SMark A. Greer 	MUX_CFG(DA830, EPWM1A,		13,	16,	0xf,	2,	false)
29255c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_0,	13,	24,	0xf,	2,	false)
29355c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_1,	13,	28,	0xf,	2,	false)
29455c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_0,	13,	24,	0xf,	4,	false)
29555c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_1,	13,	28,	0xf,	4,	false)
29655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_4,		13,	0,	0xf,	8,	false)
29755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_5,		13,	4,	0xf,	8,	false)
29855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_6,		13,	8,	0xf,	8,	false)
29955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_7,		13,	12,	0xf,	8,	false)
30055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_8,		13,	16,	0xf,	8,	false)
30155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO4_9,		13,	20,	0xf,	8,	false)
30255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_0,		13,	24,	0xf,	8,	false)
30355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_1,		13,	28,	0xf,	8,	false)
30455c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_2,		14,	0,	0xf,	1,	false)
30555c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_3,		14,	4,	0xf,	1,	false)
30655c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_4,		14,	8,	0xf,	1,	false)
30755c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_5,		14,	12,	0xf,	1,	false)
30855c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_6,		14,	16,	0xf,	1,	false)
30955c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_7,		14,	20,	0xf,	1,	false)
31055c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_8,		14,	24,	0xf,	1,	false)
31155c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_9,		14,	28,	0xf,	1,	false)
31255c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_2,	14,	0,	0xf,	2,	false)
31355c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_3,	14,	4,	0xf,	2,	false)
31455c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_4,	14,	8,	0xf,	2,	false)
31555c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_5,	14,	12,	0xf,	2,	false)
31655c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_6,	14,	16,	0xf,	2,	false)
31755c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_DAT_7,	14,	20,	0xf,	2,	false)
31855c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_8,	14,	24,	0xf,	2,	false)
31955c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_9,	14,	28,	0xf,	2,	false)
32055c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_2,	14,	0,	0xf,	4,	false)
32155c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_3,	14,	4,	0xf,	4,	false)
32255c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_4,	14,	8,	0xf,	4,	false)
32355c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_5,	14,	12,	0xf,	4,	false)
32455c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_6,	14,	16,	0xf,	4,	false)
32555c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_7,	14,	20,	0xf,	4,	false)
32655c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_8,		14,	24,	0xf,	4,	false)
32755c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_9,		14,	28,	0xf,	4,	false)
32855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_2,		14,	0,	0xf,	8,	false)
32955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_3,		14,	4,	0xf,	8,	false)
33055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_4,		14,	8,	0xf,	8,	false)
33155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_5,		14,	12,	0xf,	8,	false)
33255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_6,		14,	16,	0xf,	8,	false)
33355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_7,		14,	20,	0xf,	8,	false)
33455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_8,		14,	24,	0xf,	8,	false)
33555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_9,		14,	28,	0xf,	8,	false)
33655c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_10,	15,	0,	0xf,	1,	false)
33755c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_11,	15,	4,	0xf,	1,	false)
33855c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_12,	15,	8,	0xf,	1,	false)
33955c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_13,	15,	12,	0xf,	1,	false)
34055c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_14,	15,	16,	0xf,	1,	false)
34155c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_D_15,	15,	20,	0xf,	1,	false)
34255c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_0,		15,	24,	0xf,	1,	false)
34355c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_1,		15,	28,	0xf,	1,	false)
34455c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_10,	15,	0,	0xf,	2,	false)
34555c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_11,	15,	4,	0xf,	2,	false)
34655c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_12,	15,	8,	0xf,	2,	false)
34755c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_13,	15,	12,	0xf,	2,	false)
34855c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_14,	15,	16,	0xf,	2,	false)
34955c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HD_15,	15,	20,	0xf,	2,	false)
35055c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_7,		15,	24,	0xf,	2,	false)
35155c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_CLK,	15,	28,	0xf,	2,	false)
35255c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_10,	15,	0,	0xf,	4,	false)
35355c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_11,	15,	4,	0xf,	4,	false)
35455c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_12,	15,	8,	0xf,	4,	false)
35555c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_13,	15,	12,	0xf,	4,	false)
35655c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_14,	15,	16,	0xf,	4,	false)
35755c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_15,	15,	20,	0xf,	4,	false)
35855c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HCNTL0,	15,	28,	0xf,	4,	false)
35955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_10,	15,	0,	0xf,	8,	false)
36055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_11,	15,	4,	0xf,	8,	false)
36155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_12,	15,	8,	0xf,	8,	false)
36255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_13,	15,	12,	0xf,	8,	false)
36355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_14,	15,	16,	0xf,	8,	false)
36455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO0_15,	15,	20,	0xf,	8,	false)
36555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_0,		15,	24,	0xf,	8,	false)
36655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_1,		15,	28,	0xf,	8,	false)
36755c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_2,		16,	0,	0xf,	1,	false)
36855c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_3,		16,	4,	0xf,	1,	false)
36955c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_4,		16,	8,	0xf,	1,	false)
37055c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_5,		16,	12,	0xf,	1,	false)
37155c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_6,		16,	16,	0xf,	1,	false)
37255c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_7,		16,	20,	0xf,	1,	false)
37355c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_8,		16,	24,	0xf,	1,	false)
37455c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_9,		16,	28,	0xf,	1,	false)
37555c79a40SMark A. Greer 	MUX_CFG(DA830, MMCSD_CMD,	16,	0,	0xf,	2,	false)
37655c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_6,		16,	4,	0xf,	2,	false)
37755c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_3,		16,	8,	0xf,	2,	false)
37855c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_2,		16,	12,	0xf,	2,	false)
37955c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_1,		16,	16,	0xf,	2,	false)
38055c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_0,		16,	20,	0xf,	2,	false)
38155c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_PCLK,	16,	24,	0xf,	2,	false)
38255c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_HSYNC,	16,	28,	0xf,	2,	false)
38355c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HCNTL1,	16,	0,	0xf,	4,	false)
38455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_2,		16,	0,	0xf,	8,	false)
38555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_3,		16,	4,	0xf,	8,	false)
38655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_4,		16,	8,	0xf,	8,	false)
38755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_5,		16,	12,	0xf,	8,	false)
38855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_6,		16,	16,	0xf,	8,	false)
38955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_7,		16,	20,	0xf,	8,	false)
39055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_8,		16,	24,	0xf,	8,	false)
39155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_9,		16,	28,	0xf,	8,	false)
39255c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_10,	17,	0,	0xf,	1,	false)
39355c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_11,	17,	4,	0xf,	1,	false)
39455c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_A_12,	17,	8,	0xf,	1,	false)
39555c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_BA_1,	17,	12,	0xf,	1,	false)
39655c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_BA_0,	17,	16,	0xf,	1,	false)
39755c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_CLK,		17,	20,	0xf,	1,	false)
39855c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_SDCKE,	17,	24,	0xf,	1,	false)
39955c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_CAS,	17,	28,	0xf,	1,	false)
40055c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_VSYNC,	17,	0,	0xf,	2,	false)
40155c79a40SMark A. Greer 	MUX_CFG(DA830, NLCD_AC_ENB_CS,	17,	4,	0xf,	2,	false)
40255c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_MCLK,	17,	8,	0xf,	2,	false)
40355c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_5,		17,	12,	0xf,	2,	false)
40455c79a40SMark A. Greer 	MUX_CFG(DA830, LCD_D_4,		17,	16,	0xf,	2,	false)
40555c79a40SMark A. Greer 	MUX_CFG(DA830, OBSCLK,		17,	20,	0xf,	2,	false)
40655c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_CS_4,	17,	28,	0xf,	2,	false)
40755c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HHWIL,	17,	12,	0xf,	4,	false)
40855c79a40SMark A. Greer 	MUX_CFG(DA830, AHCLKR2,		17,	20,	0xf,	4,	false)
40955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_10,	17,	0,	0xf,	8,	false)
41055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_11,	17,	4,	0xf,	8,	false)
41155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_12,	17,	8,	0xf,	8,	false)
41255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_13,	17,	12,	0xf,	8,	false)
41355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_14,	17,	16,	0xf,	8,	false)
41455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO1_15,	17,	20,	0xf,	8,	false)
41555c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_0,		17,	24,	0xf,	8,	false)
41655c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_1,		17,	28,	0xf,	8,	false)
41755c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_RAS,	18,	0,	0xf,	1,	false)
41855c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_WE,		18,	4,	0xf,	1,	false)
41955c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_CS_0,	18,	8,	0xf,	1,	false)
42055c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_CS_2,	18,	12,	0xf,	1,	false)
42155c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_CS_3,	18,	16,	0xf,	1,	false)
42255c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_OE,		18,	20,	0xf,	1,	false)
42355c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_WE_DQM_1,	18,	24,	0xf,	1,	false)
42455c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_WE_DQM_0,	18,	28,	0xf,	1,	false)
42555c79a40SMark A. Greer 	MUX_CFG(DA830, NEMA_CS_5,	18,	0,	0xf,	2,	false)
42655c79a40SMark A. Greer 	MUX_CFG(DA830, UHPI_HRNW,	18,	4,	0xf,	2,	false)
42755c79a40SMark A. Greer 	MUX_CFG(DA830, NUHPI_HAS,	18,	8,	0xf,	2,	false)
42855c79a40SMark A. Greer 	MUX_CFG(DA830, NUHPI_HCS,	18,	12,	0xf,	2,	false)
42955c79a40SMark A. Greer 	MUX_CFG(DA830, NUHPI_HDS1,	18,	20,	0xf,	2,	false)
43055c79a40SMark A. Greer 	MUX_CFG(DA830, NUHPI_HDS2,	18,	24,	0xf,	2,	false)
43155c79a40SMark A. Greer 	MUX_CFG(DA830, NUHPI_HINT,	18,	28,	0xf,	2,	false)
43255c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_12,		18,	4,	0xf,	4,	false)
43355c79a40SMark A. Greer 	MUX_CFG(DA830, AMUTE2,		18,	16,	0xf,	4,	false)
43455c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_13,		18,	20,	0xf,	4,	false)
43555c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_14,		18,	24,	0xf,	4,	false)
43655c79a40SMark A. Greer 	MUX_CFG(DA830, AXR0_15,		18,	28,	0xf,	4,	false)
43755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_2,		18,	0,	0xf,	8,	false)
43855c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_3,		18,	4,	0xf,	8,	false)
43955c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_4,		18,	8,	0xf,	8,	false)
44055c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_5,		18,	12,	0xf,	8,	false)
44155c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_6,		18,	16,	0xf,	8,	false)
44255c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_7,		18,	20,	0xf,	8,	false)
44355c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_8,		18,	24,	0xf,	8,	false)
44455c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_9,		18,	28,	0xf,	8,	false)
44555c79a40SMark A. Greer 	MUX_CFG(DA830, EMA_WAIT_0,	19,	0,	0xf,	1,	false)
44655c79a40SMark A. Greer 	MUX_CFG(DA830, NUHPI_HRDY,	19,	0,	0xf,	2,	false)
44755c79a40SMark A. Greer 	MUX_CFG(DA830, GPIO2_10,	19,	0,	0xf,	8,	false)
44855c79a40SMark A. Greer #endif
44955c79a40SMark A. Greer };
45055c79a40SMark A. Greer 
451bcad6dc3SAndi Kleen const short da830_emif25_pins[] __initconst = {
45255c79a40SMark A. Greer 	DA830_EMA_D_0, DA830_EMA_D_1, DA830_EMA_D_2, DA830_EMA_D_3,
45355c79a40SMark A. Greer 	DA830_EMA_D_4, DA830_EMA_D_5, DA830_EMA_D_6, DA830_EMA_D_7,
45455c79a40SMark A. Greer 	DA830_EMA_D_8, DA830_EMA_D_9, DA830_EMA_D_10, DA830_EMA_D_11,
45555c79a40SMark A. Greer 	DA830_EMA_D_12, DA830_EMA_D_13, DA830_EMA_D_14, DA830_EMA_D_15,
45655c79a40SMark A. Greer 	DA830_EMA_A_0, DA830_EMA_A_1, DA830_EMA_A_2, DA830_EMA_A_3,
45755c79a40SMark A. Greer 	DA830_EMA_A_4, DA830_EMA_A_5, DA830_EMA_A_6, DA830_EMA_A_7,
45855c79a40SMark A. Greer 	DA830_EMA_A_8, DA830_EMA_A_9, DA830_EMA_A_10, DA830_EMA_A_11,
45955c79a40SMark A. Greer 	DA830_EMA_A_12, DA830_EMA_BA_0, DA830_EMA_BA_1, DA830_EMA_CLK,
46055c79a40SMark A. Greer 	DA830_EMA_SDCKE, DA830_NEMA_CS_4, DA830_NEMA_CS_5, DA830_NEMA_WE,
46155c79a40SMark A. Greer 	DA830_NEMA_CS_0, DA830_NEMA_CS_2, DA830_NEMA_CS_3, DA830_NEMA_OE,
46255c79a40SMark A. Greer 	DA830_NEMA_WE_DQM_1, DA830_NEMA_WE_DQM_0, DA830_EMA_WAIT_0,
46355c79a40SMark A. Greer 	-1
46455c79a40SMark A. Greer };
46555c79a40SMark A. Greer 
466bcad6dc3SAndi Kleen const short da830_spi0_pins[] __initconst = {
46755c79a40SMark A. Greer 	DA830_SPI0_SOMI_0, DA830_SPI0_SIMO_0, DA830_SPI0_CLK, DA830_NSPI0_ENA,
46855c79a40SMark A. Greer 	DA830_NSPI0_SCS_0,
46955c79a40SMark A. Greer 	-1
47055c79a40SMark A. Greer };
47155c79a40SMark A. Greer 
472bcad6dc3SAndi Kleen const short da830_spi1_pins[] __initconst = {
47355c79a40SMark A. Greer 	DA830_SPI1_SOMI_0, DA830_SPI1_SIMO_0, DA830_SPI1_CLK, DA830_NSPI1_ENA,
47455c79a40SMark A. Greer 	DA830_NSPI1_SCS_0,
47555c79a40SMark A. Greer 	-1
47655c79a40SMark A. Greer };
47755c79a40SMark A. Greer 
478bcad6dc3SAndi Kleen const short da830_mmc_sd_pins[] __initconst = {
47955c79a40SMark A. Greer 	DA830_MMCSD_DAT_0, DA830_MMCSD_DAT_1, DA830_MMCSD_DAT_2,
48055c79a40SMark A. Greer 	DA830_MMCSD_DAT_3, DA830_MMCSD_DAT_4, DA830_MMCSD_DAT_5,
48155c79a40SMark A. Greer 	DA830_MMCSD_DAT_6, DA830_MMCSD_DAT_7, DA830_MMCSD_CLK,
48255c79a40SMark A. Greer 	DA830_MMCSD_CMD,
48355c79a40SMark A. Greer 	-1
48455c79a40SMark A. Greer };
48555c79a40SMark A. Greer 
486bcad6dc3SAndi Kleen const short da830_uart0_pins[] __initconst = {
48755c79a40SMark A. Greer 	DA830_NUART0_CTS, DA830_NUART0_RTS, DA830_UART0_RXD, DA830_UART0_TXD,
48855c79a40SMark A. Greer 	-1
48955c79a40SMark A. Greer };
49055c79a40SMark A. Greer 
491bcad6dc3SAndi Kleen const short da830_uart1_pins[] __initconst = {
49255c79a40SMark A. Greer 	DA830_UART1_RXD, DA830_UART1_TXD,
49355c79a40SMark A. Greer 	-1
49455c79a40SMark A. Greer };
49555c79a40SMark A. Greer 
496bcad6dc3SAndi Kleen const short da830_uart2_pins[] __initconst = {
49755c79a40SMark A. Greer 	DA830_UART2_RXD, DA830_UART2_TXD,
49855c79a40SMark A. Greer 	-1
49955c79a40SMark A. Greer };
50055c79a40SMark A. Greer 
501bcad6dc3SAndi Kleen const short da830_usb20_pins[] __initconst = {
50255c79a40SMark A. Greer 	DA830_USB0_DRVVBUS, DA830_USB_REFCLKIN,
50355c79a40SMark A. Greer 	-1
50455c79a40SMark A. Greer };
50555c79a40SMark A. Greer 
506bcad6dc3SAndi Kleen const short da830_usb11_pins[] __initconst = {
50755c79a40SMark A. Greer 	DA830_USB_REFCLKIN,
50855c79a40SMark A. Greer 	-1
50955c79a40SMark A. Greer };
51055c79a40SMark A. Greer 
511bcad6dc3SAndi Kleen const short da830_uhpi_pins[] __initconst = {
51255c79a40SMark A. Greer 	DA830_UHPI_HD_0, DA830_UHPI_HD_1, DA830_UHPI_HD_2, DA830_UHPI_HD_3,
51355c79a40SMark A. Greer 	DA830_UHPI_HD_4, DA830_UHPI_HD_5, DA830_UHPI_HD_6, DA830_UHPI_HD_7,
51455c79a40SMark A. Greer 	DA830_UHPI_HD_8, DA830_UHPI_HD_9, DA830_UHPI_HD_10, DA830_UHPI_HD_11,
51555c79a40SMark A. Greer 	DA830_UHPI_HD_12, DA830_UHPI_HD_13, DA830_UHPI_HD_14, DA830_UHPI_HD_15,
51655c79a40SMark A. Greer 	DA830_UHPI_HCNTL0, DA830_UHPI_HCNTL1, DA830_UHPI_HHWIL, DA830_UHPI_HRNW,
51755c79a40SMark A. Greer 	DA830_NUHPI_HAS, DA830_NUHPI_HCS, DA830_NUHPI_HDS1, DA830_NUHPI_HDS2,
51855c79a40SMark A. Greer 	DA830_NUHPI_HINT, DA830_NUHPI_HRDY,
51955c79a40SMark A. Greer 	-1
52055c79a40SMark A. Greer };
52155c79a40SMark A. Greer 
522bcad6dc3SAndi Kleen const short da830_cpgmac_pins[] __initconst = {
52355c79a40SMark A. Greer 	DA830_RMII_TXD_0, DA830_RMII_TXD_1, DA830_RMII_TXEN, DA830_RMII_CRS_DV,
52455c79a40SMark A. Greer 	DA830_RMII_RXD_0, DA830_RMII_RXD_1, DA830_RMII_RXER, DA830_MDIO_CLK,
52555c79a40SMark A. Greer 	DA830_MDIO_D,
52655c79a40SMark A. Greer 	-1
52755c79a40SMark A. Greer };
52855c79a40SMark A. Greer 
529bcad6dc3SAndi Kleen const short da830_emif3c_pins[] __initconst = {
53055c79a40SMark A. Greer 	DA830_EMB_SDCKE, DA830_EMB_CLK_GLUE, DA830_EMB_CLK, DA830_NEMB_CS_0,
53155c79a40SMark A. Greer 	DA830_NEMB_CAS, DA830_NEMB_RAS, DA830_NEMB_WE, DA830_EMB_BA_1,
53255c79a40SMark A. Greer 	DA830_EMB_BA_0, DA830_EMB_A_0, DA830_EMB_A_1, DA830_EMB_A_2,
53355c79a40SMark A. Greer 	DA830_EMB_A_3, DA830_EMB_A_4, DA830_EMB_A_5, DA830_EMB_A_6,
53455c79a40SMark A. Greer 	DA830_EMB_A_7, DA830_EMB_A_8, DA830_EMB_A_9, DA830_EMB_A_10,
53555c79a40SMark A. Greer 	DA830_EMB_A_11, DA830_EMB_A_12, DA830_NEMB_WE_DQM_3,
53655c79a40SMark A. Greer 	DA830_NEMB_WE_DQM_2, DA830_EMB_D_0, DA830_EMB_D_1, DA830_EMB_D_2,
53755c79a40SMark A. Greer 	DA830_EMB_D_3, DA830_EMB_D_4, DA830_EMB_D_5, DA830_EMB_D_6,
53855c79a40SMark A. Greer 	DA830_EMB_D_7, DA830_EMB_D_8, DA830_EMB_D_9, DA830_EMB_D_10,
53955c79a40SMark A. Greer 	DA830_EMB_D_11, DA830_EMB_D_12, DA830_EMB_D_13, DA830_EMB_D_14,
54055c79a40SMark A. Greer 	DA830_EMB_D_15, DA830_EMB_D_16, DA830_EMB_D_17, DA830_EMB_D_18,
54155c79a40SMark A. Greer 	DA830_EMB_D_19, DA830_EMB_D_20, DA830_EMB_D_21, DA830_EMB_D_22,
54255c79a40SMark A. Greer 	DA830_EMB_D_23, DA830_EMB_D_24, DA830_EMB_D_25, DA830_EMB_D_26,
54355c79a40SMark A. Greer 	DA830_EMB_D_27, DA830_EMB_D_28, DA830_EMB_D_29, DA830_EMB_D_30,
54455c79a40SMark A. Greer 	DA830_EMB_D_31, DA830_NEMB_WE_DQM_1, DA830_NEMB_WE_DQM_0,
54555c79a40SMark A. Greer 	-1
54655c79a40SMark A. Greer };
54755c79a40SMark A. Greer 
548bcad6dc3SAndi Kleen const short da830_mcasp0_pins[] __initconst = {
54955c79a40SMark A. Greer 	DA830_AHCLKX0, DA830_ACLKX0, DA830_AFSX0,
55055c79a40SMark A. Greer 	DA830_AHCLKR0, DA830_ACLKR0, DA830_AFSR0, DA830_AMUTE0,
55155c79a40SMark A. Greer 	DA830_AXR0_0, DA830_AXR0_1, DA830_AXR0_2, DA830_AXR0_3,
55255c79a40SMark A. Greer 	DA830_AXR0_4, DA830_AXR0_5, DA830_AXR0_6, DA830_AXR0_7,
55355c79a40SMark A. Greer 	DA830_AXR0_8, DA830_AXR0_9, DA830_AXR0_10, DA830_AXR0_11,
55455c79a40SMark A. Greer 	DA830_AXR0_12, DA830_AXR0_13, DA830_AXR0_14, DA830_AXR0_15,
55555c79a40SMark A. Greer 	-1
55655c79a40SMark A. Greer };
55755c79a40SMark A. Greer 
558bcad6dc3SAndi Kleen const short da830_mcasp1_pins[] __initconst = {
55955c79a40SMark A. Greer 	DA830_AHCLKX1, DA830_ACLKX1, DA830_AFSX1,
56055c79a40SMark A. Greer 	DA830_AHCLKR1, DA830_ACLKR1, DA830_AFSR1, DA830_AMUTE1,
56155c79a40SMark A. Greer 	DA830_AXR1_0, DA830_AXR1_1, DA830_AXR1_2, DA830_AXR1_3,
56255c79a40SMark A. Greer 	DA830_AXR1_4, DA830_AXR1_5, DA830_AXR1_6, DA830_AXR1_7,
56355c79a40SMark A. Greer 	DA830_AXR1_8, DA830_AXR1_9, DA830_AXR1_10, DA830_AXR1_11,
56455c79a40SMark A. Greer 	-1
56555c79a40SMark A. Greer };
56655c79a40SMark A. Greer 
567bcad6dc3SAndi Kleen const short da830_mcasp2_pins[] __initconst = {
56855c79a40SMark A. Greer 	DA830_AHCLKX2, DA830_ACLKX2, DA830_AFSX2,
56955c79a40SMark A. Greer 	DA830_AHCLKR2, DA830_ACLKR2, DA830_AFSR2, DA830_AMUTE2,
57055c79a40SMark A. Greer 	DA830_AXR2_0, DA830_AXR2_1, DA830_AXR2_2, DA830_AXR2_3,
57155c79a40SMark A. Greer 	-1
57255c79a40SMark A. Greer };
57355c79a40SMark A. Greer 
574bcad6dc3SAndi Kleen const short da830_i2c0_pins[] __initconst = {
57555c79a40SMark A. Greer 	DA830_I2C0_SDA, DA830_I2C0_SCL,
57655c79a40SMark A. Greer 	-1
57755c79a40SMark A. Greer };
57855c79a40SMark A. Greer 
579bcad6dc3SAndi Kleen const short da830_i2c1_pins[] __initconst = {
58055c79a40SMark A. Greer 	DA830_I2C1_SCL, DA830_I2C1_SDA,
58155c79a40SMark A. Greer 	-1
58255c79a40SMark A. Greer };
58355c79a40SMark A. Greer 
584bcad6dc3SAndi Kleen const short da830_lcdcntl_pins[] __initconst = {
58555c79a40SMark A. Greer 	DA830_LCD_D_0, DA830_LCD_D_1, DA830_LCD_D_2, DA830_LCD_D_3,
58655c79a40SMark A. Greer 	DA830_LCD_D_4, DA830_LCD_D_5, DA830_LCD_D_6, DA830_LCD_D_7,
58755c79a40SMark A. Greer 	DA830_LCD_D_8, DA830_LCD_D_9, DA830_LCD_D_10, DA830_LCD_D_11,
58855c79a40SMark A. Greer 	DA830_LCD_D_12, DA830_LCD_D_13, DA830_LCD_D_14, DA830_LCD_D_15,
58955c79a40SMark A. Greer 	DA830_LCD_PCLK, DA830_LCD_HSYNC, DA830_LCD_VSYNC, DA830_NLCD_AC_ENB_CS,
59055c79a40SMark A. Greer 	DA830_LCD_MCLK,
59155c79a40SMark A. Greer 	-1
59255c79a40SMark A. Greer };
59355c79a40SMark A. Greer 
594bcad6dc3SAndi Kleen const short da830_pwm_pins[] __initconst = {
59555c79a40SMark A. Greer 	DA830_ECAP0_APWM0, DA830_ECAP1_APWM1, DA830_EPWM0B, DA830_EPWM0A,
59655c79a40SMark A. Greer 	DA830_EPWMSYNCI, DA830_EPWMSYNC0, DA830_ECAP2_APWM2, DA830_EHRPWMGLUETZ,
59755c79a40SMark A. Greer 	DA830_EPWM2B, DA830_EPWM2A, DA830_EPWM1B, DA830_EPWM1A,
59855c79a40SMark A. Greer 	-1
59955c79a40SMark A. Greer };
60055c79a40SMark A. Greer 
601bcad6dc3SAndi Kleen const short da830_ecap0_pins[] __initconst = {
60255c79a40SMark A. Greer 	DA830_ECAP0_APWM0,
60355c79a40SMark A. Greer 	-1
60455c79a40SMark A. Greer };
60555c79a40SMark A. Greer 
606bcad6dc3SAndi Kleen const short da830_ecap1_pins[] __initconst = {
60755c79a40SMark A. Greer 	DA830_ECAP1_APWM1,
60855c79a40SMark A. Greer 	-1
60955c79a40SMark A. Greer };
61055c79a40SMark A. Greer 
611bcad6dc3SAndi Kleen const short da830_ecap2_pins[] __initconst = {
61255c79a40SMark A. Greer 	DA830_ECAP2_APWM2,
61355c79a40SMark A. Greer 	-1
61455c79a40SMark A. Greer };
61555c79a40SMark A. Greer 
616bcad6dc3SAndi Kleen const short da830_eqep0_pins[] __initconst = {
61755c79a40SMark A. Greer 	DA830_EQEP0I, DA830_EQEP0S, DA830_EQEP0A, DA830_EQEP0B,
61855c79a40SMark A. Greer 	-1
61955c79a40SMark A. Greer };
62055c79a40SMark A. Greer 
621bcad6dc3SAndi Kleen const short da830_eqep1_pins[] __initconst = {
62255c79a40SMark A. Greer 	DA830_EQEP1I, DA830_EQEP1S, DA830_EQEP1A, DA830_EQEP1B,
62355c79a40SMark A. Greer 	-1
62455c79a40SMark A. Greer };
62555c79a40SMark A. Greer 
62655c79a40SMark A. Greer /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */
62755c79a40SMark A. Greer static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = {
62855c79a40SMark A. Greer 	[IRQ_DA8XX_COMMTX]		= 7,
62955c79a40SMark A. Greer 	[IRQ_DA8XX_COMMRX]		= 7,
63055c79a40SMark A. Greer 	[IRQ_DA8XX_NINT]		= 7,
63155c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT0]		= 7,
63255c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT1]		= 7,
63355c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT2]		= 7,
63455c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT3]		= 7,
63555c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT4]		= 7,
63655c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT5]		= 7,
63755c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT6]		= 7,
63855c79a40SMark A. Greer 	[IRQ_DA8XX_EVTOUT7]		= 7,
63955c79a40SMark A. Greer 	[IRQ_DA8XX_CCINT0]		= 7,
64055c79a40SMark A. Greer 	[IRQ_DA8XX_CCERRINT]		= 7,
64155c79a40SMark A. Greer 	[IRQ_DA8XX_TCERRINT0]		= 7,
64255c79a40SMark A. Greer 	[IRQ_DA8XX_AEMIFINT]		= 7,
64355c79a40SMark A. Greer 	[IRQ_DA8XX_I2CINT0]		= 7,
64455c79a40SMark A. Greer 	[IRQ_DA8XX_MMCSDINT0]		= 7,
64555c79a40SMark A. Greer 	[IRQ_DA8XX_MMCSDINT1]		= 7,
64655c79a40SMark A. Greer 	[IRQ_DA8XX_ALLINT0]		= 7,
64755c79a40SMark A. Greer 	[IRQ_DA8XX_RTC]			= 7,
64855c79a40SMark A. Greer 	[IRQ_DA8XX_SPINT0]		= 7,
64955c79a40SMark A. Greer 	[IRQ_DA8XX_TINT12_0]		= 7,
65055c79a40SMark A. Greer 	[IRQ_DA8XX_TINT34_0]		= 7,
65155c79a40SMark A. Greer 	[IRQ_DA8XX_TINT12_1]		= 7,
65255c79a40SMark A. Greer 	[IRQ_DA8XX_TINT34_1]		= 7,
65355c79a40SMark A. Greer 	[IRQ_DA8XX_UARTINT0]		= 7,
65455c79a40SMark A. Greer 	[IRQ_DA8XX_KEYMGRINT]		= 7,
65555c79a40SMark A. Greer 	[IRQ_DA830_MPUERR]		= 7,
65655c79a40SMark A. Greer 	[IRQ_DA8XX_CHIPINT0]		= 7,
65755c79a40SMark A. Greer 	[IRQ_DA8XX_CHIPINT1]		= 7,
65855c79a40SMark A. Greer 	[IRQ_DA8XX_CHIPINT2]		= 7,
65955c79a40SMark A. Greer 	[IRQ_DA8XX_CHIPINT3]		= 7,
66055c79a40SMark A. Greer 	[IRQ_DA8XX_TCERRINT1]		= 7,
66155c79a40SMark A. Greer 	[IRQ_DA8XX_C0_RX_THRESH_PULSE]	= 7,
66255c79a40SMark A. Greer 	[IRQ_DA8XX_C0_RX_PULSE]		= 7,
66355c79a40SMark A. Greer 	[IRQ_DA8XX_C0_TX_PULSE]		= 7,
66455c79a40SMark A. Greer 	[IRQ_DA8XX_C0_MISC_PULSE]	= 7,
66555c79a40SMark A. Greer 	[IRQ_DA8XX_C1_RX_THRESH_PULSE]	= 7,
66655c79a40SMark A. Greer 	[IRQ_DA8XX_C1_RX_PULSE]		= 7,
66755c79a40SMark A. Greer 	[IRQ_DA8XX_C1_TX_PULSE]		= 7,
66855c79a40SMark A. Greer 	[IRQ_DA8XX_C1_MISC_PULSE]	= 7,
66955c79a40SMark A. Greer 	[IRQ_DA8XX_MEMERR]		= 7,
67055c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO0]		= 7,
67155c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO1]		= 7,
67255c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO2]		= 7,
67355c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO3]		= 7,
67455c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO4]		= 7,
67555c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO5]		= 7,
67655c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO6]		= 7,
67755c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO7]		= 7,
67855c79a40SMark A. Greer 	[IRQ_DA8XX_GPIO8]		= 7,
67955c79a40SMark A. Greer 	[IRQ_DA8XX_I2CINT1]		= 7,
68055c79a40SMark A. Greer 	[IRQ_DA8XX_LCDINT]		= 7,
68155c79a40SMark A. Greer 	[IRQ_DA8XX_UARTINT1]		= 7,
68255c79a40SMark A. Greer 	[IRQ_DA8XX_MCASPINT]		= 7,
68355c79a40SMark A. Greer 	[IRQ_DA8XX_ALLINT1]		= 7,
68455c79a40SMark A. Greer 	[IRQ_DA8XX_SPINT1]		= 7,
68555c79a40SMark A. Greer 	[IRQ_DA8XX_UHPI_INT1]		= 7,
68655c79a40SMark A. Greer 	[IRQ_DA8XX_USB_INT]		= 7,
68755c79a40SMark A. Greer 	[IRQ_DA8XX_IRQN]		= 7,
68855c79a40SMark A. Greer 	[IRQ_DA8XX_RWAKEUP]		= 7,
68955c79a40SMark A. Greer 	[IRQ_DA8XX_UARTINT2]		= 7,
69055c79a40SMark A. Greer 	[IRQ_DA8XX_DFTSSINT]		= 7,
69155c79a40SMark A. Greer 	[IRQ_DA8XX_EHRPWM0]		= 7,
69255c79a40SMark A. Greer 	[IRQ_DA8XX_EHRPWM0TZ]		= 7,
69355c79a40SMark A. Greer 	[IRQ_DA8XX_EHRPWM1]		= 7,
69455c79a40SMark A. Greer 	[IRQ_DA8XX_EHRPWM1TZ]		= 7,
69555c79a40SMark A. Greer 	[IRQ_DA830_EHRPWM2]		= 7,
69655c79a40SMark A. Greer 	[IRQ_DA830_EHRPWM2TZ]		= 7,
69755c79a40SMark A. Greer 	[IRQ_DA8XX_ECAP0]		= 7,
69855c79a40SMark A. Greer 	[IRQ_DA8XX_ECAP1]		= 7,
69955c79a40SMark A. Greer 	[IRQ_DA8XX_ECAP2]		= 7,
70055c79a40SMark A. Greer 	[IRQ_DA830_EQEP0]		= 7,
70155c79a40SMark A. Greer 	[IRQ_DA830_EQEP1]		= 7,
70255c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT0_0]	= 7,
70355c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT1_0]	= 7,
70455c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT2_0]	= 7,
70555c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT3_0]	= 7,
70655c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT4_0]	= 7,
70755c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT5_0]	= 7,
70855c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT6_0]	= 7,
70955c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT7_0]	= 7,
71055c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT0_1]	= 7,
71155c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT1_1]	= 7,
71255c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT2_1]	= 7,
71355c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT3_1]	= 7,
71455c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT4_1]	= 7,
71555c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT5_1]	= 7,
71655c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT6_1]	= 7,
71755c79a40SMark A. Greer 	[IRQ_DA830_T12CMPINT7_1]	= 7,
71855c79a40SMark A. Greer 	[IRQ_DA8XX_ARMCLKSTOPREQ]	= 7,
71955c79a40SMark A. Greer };
72055c79a40SMark A. Greer 
72155c79a40SMark A. Greer static struct map_desc da830_io_desc[] = {
72255c79a40SMark A. Greer 	{
72355c79a40SMark A. Greer 		.virtual	= IO_VIRT,
72455c79a40SMark A. Greer 		.pfn		= __phys_to_pfn(IO_PHYS),
72555c79a40SMark A. Greer 		.length		= IO_SIZE,
72655c79a40SMark A. Greer 		.type		= MT_DEVICE
72755c79a40SMark A. Greer 	},
72855c79a40SMark A. Greer 	{
72955c79a40SMark A. Greer 		.virtual	= DA8XX_CP_INTC_VIRT,
73055c79a40SMark A. Greer 		.pfn		= __phys_to_pfn(DA8XX_CP_INTC_BASE),
73155c79a40SMark A. Greer 		.length		= DA8XX_CP_INTC_SIZE,
73255c79a40SMark A. Greer 		.type		= MT_DEVICE
73355c79a40SMark A. Greer 	},
73455c79a40SMark A. Greer };
73555c79a40SMark A. Greer 
73655c79a40SMark A. Greer /* Contents of JTAG ID register used to identify exact cpu type */
73755c79a40SMark A. Greer static struct davinci_id da830_ids[] = {
73855c79a40SMark A. Greer 	{
73955c79a40SMark A. Greer 		.variant	= 0x0,
74055c79a40SMark A. Greer 		.part_no	= 0xb7df,
74155c79a40SMark A. Greer 		.manufacturer	= 0x017,	/* 0x02f >> 1 */
74255c79a40SMark A. Greer 		.cpu_id		= DAVINCI_CPU_ID_DA830,
743f2024a99SKevin Hilman 		.name		= "da830/omap-l137 rev1.0",
744f2024a99SKevin Hilman 	},
745f2024a99SKevin Hilman 	{
746f2024a99SKevin Hilman 		.variant	= 0x8,
747f2024a99SKevin Hilman 		.part_no	= 0xb7df,
748f2024a99SKevin Hilman 		.manufacturer	= 0x017,
749f2024a99SKevin Hilman 		.cpu_id		= DAVINCI_CPU_ID_DA830,
750f2024a99SKevin Hilman 		.name		= "da830/omap-l137 rev1.1",
751f2024a99SKevin Hilman 	},
752f2024a99SKevin Hilman 	{
753f2024a99SKevin Hilman 		.variant	= 0x9,
754f2024a99SKevin Hilman 		.part_no	= 0xb7df,
755f2024a99SKevin Hilman 		.manufacturer	= 0x017,
756f2024a99SKevin Hilman 		.cpu_id		= DAVINCI_CPU_ID_DA830,
757f2024a99SKevin Hilman 		.name		= "da830/omap-l137 rev2.0",
75855c79a40SMark A. Greer 	},
75955c79a40SMark A. Greer };
76055c79a40SMark A. Greer 
761f606d38dSKV Sujith static struct davinci_gpio_platform_data da830_gpio_platform_data = {
76255a891d0SBartosz Golaszewski 	.no_auto_base	= true,
76355a891d0SBartosz Golaszewski 	.base		= 0,
764f606d38dSKV Sujith 	.ngpio		= 128,
765f606d38dSKV Sujith };
766f606d38dSKV Sujith 
767f606d38dSKV Sujith int __init da830_register_gpio(void)
768f606d38dSKV Sujith {
769f606d38dSKV Sujith 	return da8xx_register_gpio(&da830_gpio_platform_data);
770f606d38dSKV Sujith }
771f606d38dSKV Sujith 
77255c79a40SMark A. Greer static struct davinci_timer_instance da830_timer_instance[2] = {
77355c79a40SMark A. Greer 	{
7741bcd38adSCyril Chemparathy 		.base		= DA8XX_TIMER64P0_BASE,
775a98ca73eSBartosz Golaszewski 		.bottom_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT12_0),
776a98ca73eSBartosz Golaszewski 		.top_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT34_0),
77755c79a40SMark A. Greer 		.cmp_off	= DA830_CMP12_0,
778a98ca73eSBartosz Golaszewski 		.cmp_irq	= DAVINCI_INTC_IRQ(IRQ_DA830_T12CMPINT0_0),
77955c79a40SMark A. Greer 	},
78055c79a40SMark A. Greer 	{
7811bcd38adSCyril Chemparathy 		.base		= DA8XX_TIMER64P1_BASE,
782a98ca73eSBartosz Golaszewski 		.bottom_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT12_1),
783a98ca73eSBartosz Golaszewski 		.top_irq	= DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT34_1),
78455c79a40SMark A. Greer 		.cmp_off	= DA830_CMP12_0,
785a98ca73eSBartosz Golaszewski 		.cmp_irq	= DAVINCI_INTC_IRQ(IRQ_DA830_T12CMPINT0_1),
78655c79a40SMark A. Greer 	},
78755c79a40SMark A. Greer };
78855c79a40SMark A. Greer 
78955c79a40SMark A. Greer /*
79055c79a40SMark A. Greer  * T0_BOT: Timer 0, bottom		: Used for clock_event & clocksource
79155c79a40SMark A. Greer  * T0_TOP: Timer 0, top			: Used by DSP
79255c79a40SMark A. Greer  * T1_BOT, T1_TOP: Timer 1, bottom & top: Used for watchdog timer
79355c79a40SMark A. Greer  */
79455c79a40SMark A. Greer static struct davinci_timer_info da830_timer_info = {
79555c79a40SMark A. Greer 	.timers		= da830_timer_instance,
79655c79a40SMark A. Greer 	.clockevent_id	= T0_BOT,
79755c79a40SMark A. Greer 	.clocksource_id	= T0_BOT,
79855c79a40SMark A. Greer };
79955c79a40SMark A. Greer 
800ab41910dSBhumika Goyal static const struct davinci_soc_info davinci_soc_info_da830 = {
80155c79a40SMark A. Greer 	.io_desc		= da830_io_desc,
80255c79a40SMark A. Greer 	.io_desc_num		= ARRAY_SIZE(da830_io_desc),
8033347db83SCyril Chemparathy 	.jtag_id_reg		= DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG,
80455c79a40SMark A. Greer 	.ids			= da830_ids,
80555c79a40SMark A. Greer 	.ids_num		= ARRAY_SIZE(da830_ids),
806779b0d53SCyril Chemparathy 	.pinmux_base		= DA8XX_SYSCFG0_BASE + 0x120,
80755c79a40SMark A. Greer 	.pinmux_pins		= da830_pins,
80855c79a40SMark A. Greer 	.pinmux_pins_num	= ARRAY_SIZE(da830_pins),
809bd808947SCyril Chemparathy 	.intc_base		= DA8XX_CP_INTC_BASE,
81055c79a40SMark A. Greer 	.intc_irq_prios		= da830_default_priorities,
81155c79a40SMark A. Greer 	.intc_irq_num		= DA830_N_CP_INTC_IRQ,
81255c79a40SMark A. Greer 	.timer_info		= &da830_timer_info,
81355c79a40SMark A. Greer 	.emac_pdata		= &da8xx_emac_pdata,
81455c79a40SMark A. Greer };
81555c79a40SMark A. Greer 
81655c79a40SMark A. Greer void __init da830_init(void)
81755c79a40SMark A. Greer {
81855c79a40SMark A. Greer 	davinci_common_init(&davinci_soc_info_da830);
819bcd6a1c6SCyril Chemparathy 
820bcd6a1c6SCyril Chemparathy 	da8xx_syscfg0_base = ioremap(DA8XX_SYSCFG0_BASE, SZ_4K);
821bcd6a1c6SCyril Chemparathy 	WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module");
82296c08173SDavid Lechner }
8236fc9ebbdSDavid Lechner 
82496c08173SDavid Lechner void __init da830_init_time(void)
82596c08173SDavid Lechner {
8263952af1cSDavid Lechner 	void __iomem *pll;
8273952af1cSDavid Lechner 	struct clk *clk;
8283952af1cSDavid Lechner 
8293952af1cSDavid Lechner 	clk_register_fixed_rate(NULL, "ref_clk", NULL, 0, DA830_REF_FREQ);
8303952af1cSDavid Lechner 
8313952af1cSDavid Lechner 	pll = ioremap(DA8XX_PLL0_BASE, SZ_4K);
8323952af1cSDavid Lechner 
8333952af1cSDavid Lechner 	da830_pll_init(NULL, pll, NULL);
8343952af1cSDavid Lechner 
8353952af1cSDavid Lechner 	clk = clk_get(NULL, "timer0");
8363952af1cSDavid Lechner 
8373952af1cSDavid Lechner 	davinci_timer_init(clk);
8383952af1cSDavid Lechner }
8393952af1cSDavid Lechner 
8403952af1cSDavid Lechner static struct resource da830_psc0_resources[] = {
8413952af1cSDavid Lechner 	{
8423952af1cSDavid Lechner 		.start	= DA8XX_PSC0_BASE,
8433952af1cSDavid Lechner 		.end	= DA8XX_PSC0_BASE + SZ_4K - 1,
8443952af1cSDavid Lechner 		.flags	= IORESOURCE_MEM,
8453952af1cSDavid Lechner 	},
8463952af1cSDavid Lechner };
8473952af1cSDavid Lechner 
8483952af1cSDavid Lechner static struct platform_device da830_psc0_device = {
8493952af1cSDavid Lechner 	.name		= "da830-psc0",
8503952af1cSDavid Lechner 	.id		= -1,
8513952af1cSDavid Lechner 	.resource	= da830_psc0_resources,
8523952af1cSDavid Lechner 	.num_resources	= ARRAY_SIZE(da830_psc0_resources),
8533952af1cSDavid Lechner };
8543952af1cSDavid Lechner 
8553952af1cSDavid Lechner static struct resource da830_psc1_resources[] = {
8563952af1cSDavid Lechner 	{
8573952af1cSDavid Lechner 		.start	= DA8XX_PSC1_BASE,
8583952af1cSDavid Lechner 		.end	= DA8XX_PSC1_BASE + SZ_4K - 1,
8593952af1cSDavid Lechner 		.flags	= IORESOURCE_MEM,
8603952af1cSDavid Lechner 	},
8613952af1cSDavid Lechner };
8623952af1cSDavid Lechner 
8633952af1cSDavid Lechner static struct platform_device da830_psc1_device = {
8643952af1cSDavid Lechner 	.name		= "da830-psc1",
8653952af1cSDavid Lechner 	.id		= -1,
8663952af1cSDavid Lechner 	.resource	= da830_psc1_resources,
8673952af1cSDavid Lechner 	.num_resources	= ARRAY_SIZE(da830_psc1_resources),
8683952af1cSDavid Lechner };
8693952af1cSDavid Lechner 
8703952af1cSDavid Lechner void __init da830_register_clocks(void)
8713952af1cSDavid Lechner {
8723952af1cSDavid Lechner 	/* PLL is registered in da830_init_time() */
8733952af1cSDavid Lechner 	platform_device_register(&da830_psc0_device);
8743952af1cSDavid Lechner 	platform_device_register(&da830_psc1_device);
87555c79a40SMark A. Greer }
876