18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * TI DA830/OMAP L137 chip specific setup
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Author: Mark A. Greer <mgreer@mvista.com>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * 2009 (c) MontaVista Software, Inc. This file is licensed under
78c2ecf20Sopenharmony_ci * the terms of the GNU General Public License version 2. This program
88c2ecf20Sopenharmony_ci * is licensed "as is" without any warranty of any kind, whether express
98c2ecf20Sopenharmony_ci * or implied.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci#include <linux/clk-provider.h>
128c2ecf20Sopenharmony_ci#include <linux/clk/davinci.h>
138c2ecf20Sopenharmony_ci#include <linux/gpio.h>
148c2ecf20Sopenharmony_ci#include <linux/init.h>
158c2ecf20Sopenharmony_ci#include <linux/io.h>
168c2ecf20Sopenharmony_ci#include <linux/irqchip/irq-davinci-cp-intc.h>
178c2ecf20Sopenharmony_ci#include <linux/platform_data/gpio-davinci.h>
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#include <asm/mach/map.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#include <mach/common.h>
228c2ecf20Sopenharmony_ci#include <mach/cputype.h>
238c2ecf20Sopenharmony_ci#include <mach/da8xx.h>
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#include <clocksource/timer-davinci.h>
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#include "irqs.h"
288c2ecf20Sopenharmony_ci#include "mux.h"
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci/* Offsets of the 8 compare registers on the da830 */
318c2ecf20Sopenharmony_ci#define DA830_CMP12_0		0x60
328c2ecf20Sopenharmony_ci#define DA830_CMP12_1		0x64
338c2ecf20Sopenharmony_ci#define DA830_CMP12_2		0x68
348c2ecf20Sopenharmony_ci#define DA830_CMP12_3		0x6c
358c2ecf20Sopenharmony_ci#define DA830_CMP12_4		0x70
368c2ecf20Sopenharmony_ci#define DA830_CMP12_5		0x74
378c2ecf20Sopenharmony_ci#define DA830_CMP12_6		0x78
388c2ecf20Sopenharmony_ci#define DA830_CMP12_7		0x7c
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define DA830_REF_FREQ		24000000
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*
438c2ecf20Sopenharmony_ci * Device specific mux setup
448c2ecf20Sopenharmony_ci *
458c2ecf20Sopenharmony_ci *	     soc      description	mux    mode    mode   mux	dbg
468c2ecf20Sopenharmony_ci *					reg   offset   mask   mode
478c2ecf20Sopenharmony_ci */
488c2ecf20Sopenharmony_cistatic const struct mux_config da830_pins[] = {
498c2ecf20Sopenharmony_ci#ifdef CONFIG_DAVINCI_MUX
508c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_14,	0,	0,	0xf,	1,	false)
518c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RTCK,		0,	0,	0xf,	8,	false)
528c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_15,	0,	4,	0xf,	1,	false)
538c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMU_0,		0,	4,	0xf,	8,	false)
548c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_SDCKE,	0,	8,	0xf,	1,	false)
558c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_CLK_GLUE,	0,	12,	0xf,	1,	false)
568c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_CLK,		0,	12,	0xf,	2,	false)
578c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_CS_0,	0,	16,	0xf,	1,	false)
588c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_CAS,	0,	20,	0xf,	1,	false)
598c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_RAS,	0,	24,	0xf,	1,	false)
608c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_WE,		0,	28,	0xf,	1,	false)
618c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_BA_1,	1,	0,	0xf,	1,	false)
628c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_BA_0,	1,	4,	0xf,	1,	false)
638c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_0,		1,	8,	0xf,	1,	false)
648c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_1,		1,	12,	0xf,	1,	false)
658c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_2,		1,	16,	0xf,	1,	false)
668c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_3,		1,	20,	0xf,	1,	false)
678c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_4,		1,	24,	0xf,	1,	false)
688c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_5,		1,	28,	0xf,	1,	false)
698c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_0,		1,	0,	0xf,	8,	false)
708c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_1,		1,	4,	0xf,	8,	false)
718c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_2,		1,	8,	0xf,	8,	false)
728c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_3,		1,	12,	0xf,	8,	false)
738c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_4,		1,	16,	0xf,	8,	false)
748c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_5,		1,	20,	0xf,	8,	false)
758c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_6,		1,	24,	0xf,	8,	false)
768c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_7,		1,	28,	0xf,	8,	false)
778c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_6,		2,	0,	0xf,	1,	false)
788c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_7,		2,	4,	0xf,	1,	false)
798c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_8,		2,	8,	0xf,	1,	false)
808c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_9,		2,	12,	0xf,	1,	false)
818c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_10,	2,	16,	0xf,	1,	false)
828c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_11,	2,	20,	0xf,	1,	false)
838c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_A_12,	2,	24,	0xf,	1,	false)
848c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_31,	2,	28,	0xf,	1,	false)
858c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_8,		2,	0,	0xf,	8,	false)
868c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_9,		2,	4,	0xf,	8,	false)
878c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_10,	2,	8,	0xf,	8,	false)
888c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_11,	2,	12,	0xf,	8,	false)
898c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_12,	2,	16,	0xf,	8,	false)
908c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO7_13,	2,	20,	0xf,	8,	false)
918c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_13,	2,	24,	0xf,	8,	false)
928c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_30,	3,	0,	0xf,	1,	false)
938c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_29,	3,	4,	0xf,	1,	false)
948c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_28,	3,	8,	0xf,	1,	false)
958c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_27,	3,	12,	0xf,	1,	false)
968c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_26,	3,	16,	0xf,	1,	false)
978c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_25,	3,	20,	0xf,	1,	false)
988c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_24,	3,	24,	0xf,	1,	false)
998c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_23,	3,	28,	0xf,	1,	false)
1008c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_22,	4,	0,	0xf,	1,	false)
1018c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_21,	4,	4,	0xf,	1,	false)
1028c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_20,	4,	8,	0xf,	1,	false)
1038c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_19,	4,	12,	0xf,	1,	false)
1048c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_18,	4,	16,	0xf,	1,	false)
1058c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_17,	4,	20,	0xf,	1,	false)
1068c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_16,	4,	24,	0xf,	1,	false)
1078c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_WE_DQM_3,	4,	28,	0xf,	1,	false)
1088c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_WE_DQM_2,	5,	0,	0xf,	1,	false)
1098c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_0,		5,	4,	0xf,	1,	false)
1108c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_1,		5,	8,	0xf,	1,	false)
1118c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_2,		5,	12,	0xf,	1,	false)
1128c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_3,		5,	16,	0xf,	1,	false)
1138c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_4,		5,	20,	0xf,	1,	false)
1148c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_5,		5,	24,	0xf,	1,	false)
1158c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_6,		5,	28,	0xf,	1,	false)
1168c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_0,		5,	4,	0xf,	8,	false)
1178c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_1,		5,	8,	0xf,	8,	false)
1188c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_2,		5,	12,	0xf,	8,	false)
1198c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_3,		5,	16,	0xf,	8,	false)
1208c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_4,		5,	20,	0xf,	8,	false)
1218c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_5,		5,	24,	0xf,	8,	false)
1228c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_6,		5,	28,	0xf,	8,	false)
1238c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_7,		6,	0,	0xf,	1,	false)
1248c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_8,		6,	4,	0xf,	1,	false)
1258c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_9,		6,	8,	0xf,	1,	false)
1268c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_10,	6,	12,	0xf,	1,	false)
1278c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_11,	6,	16,	0xf,	1,	false)
1288c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_12,	6,	20,	0xf,	1,	false)
1298c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_13,	6,	24,	0xf,	1,	false)
1308c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_14,	6,	28,	0xf,	1,	false)
1318c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_7,		6,	0,	0xf,	8,	false)
1328c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_8,		6,	4,	0xf,	8,	false)
1338c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_9,		6,	8,	0xf,	8,	false)
1348c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_10,	6,	12,	0xf,	8,	false)
1358c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_11,	6,	16,	0xf,	8,	false)
1368c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_12,	6,	20,	0xf,	8,	false)
1378c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_13,	6,	24,	0xf,	8,	false)
1388c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_14,	6,	28,	0xf,	8,	false)
1398c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMB_D_15,	7,	0,	0xf,	1,	false)
1408c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_WE_DQM_1,	7,	4,	0xf,	1,	false)
1418c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMB_WE_DQM_0,	7,	8,	0xf,	1,	false)
1428c2ecf20Sopenharmony_ci	MUX_CFG(DA830, SPI0_SOMI_0,	7,	12,	0xf,	1,	false)
1438c2ecf20Sopenharmony_ci	MUX_CFG(DA830, SPI0_SIMO_0,	7,	16,	0xf,	1,	false)
1448c2ecf20Sopenharmony_ci	MUX_CFG(DA830, SPI0_CLK,	7,	20,	0xf,	1,	false)
1458c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NSPI0_ENA,	7,	24,	0xf,	1,	false)
1468c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NSPI0_SCS_0,	7,	28,	0xf,	1,	false)
1478c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP0I,		7,	12,	0xf,	2,	false)
1488c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP0S,		7,	16,	0xf,	2,	false)
1498c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP1I,		7,	20,	0xf,	2,	false)
1508c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUART0_CTS,	7,	24,	0xf,	2,	false)
1518c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUART0_RTS,	7,	28,	0xf,	2,	false)
1528c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP0A,		7,	24,	0xf,	4,	false)
1538c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP0B,		7,	28,	0xf,	4,	false)
1548c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO6_15,	7,	0,	0xf,	8,	false)
1558c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_14,	7,	4,	0xf,	8,	false)
1568c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_15,	7,	8,	0xf,	8,	false)
1578c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_0,		7,	12,	0xf,	8,	false)
1588c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_1,		7,	16,	0xf,	8,	false)
1598c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_2,		7,	20,	0xf,	8,	false)
1608c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_3,		7,	24,	0xf,	8,	false)
1618c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_4,		7,	28,	0xf,	8,	false)
1628c2ecf20Sopenharmony_ci	MUX_CFG(DA830, SPI1_SOMI_0,	8,	0,	0xf,	1,	false)
1638c2ecf20Sopenharmony_ci	MUX_CFG(DA830, SPI1_SIMO_0,	8,	4,	0xf,	1,	false)
1648c2ecf20Sopenharmony_ci	MUX_CFG(DA830, SPI1_CLK,	8,	8,	0xf,	1,	false)
1658c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UART0_RXD,	8,	12,	0xf,	1,	false)
1668c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UART0_TXD,	8,	16,	0xf,	1,	false)
1678c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_10,		8,	20,	0xf,	1,	false)
1688c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_11,		8,	24,	0xf,	1,	false)
1698c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NSPI1_ENA,	8,	28,	0xf,	1,	false)
1708c2ecf20Sopenharmony_ci	MUX_CFG(DA830, I2C1_SCL,	8,	0,	0xf,	2,	false)
1718c2ecf20Sopenharmony_ci	MUX_CFG(DA830, I2C1_SDA,	8,	4,	0xf,	2,	false)
1728c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP1S,		8,	8,	0xf,	2,	false)
1738c2ecf20Sopenharmony_ci	MUX_CFG(DA830, I2C0_SDA,	8,	12,	0xf,	2,	false)
1748c2ecf20Sopenharmony_ci	MUX_CFG(DA830, I2C0_SCL,	8,	16,	0xf,	2,	false)
1758c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UART2_RXD,	8,	28,	0xf,	2,	false)
1768c2ecf20Sopenharmony_ci	MUX_CFG(DA830, TM64P0_IN12,	8,	12,	0xf,	4,	false)
1778c2ecf20Sopenharmony_ci	MUX_CFG(DA830, TM64P0_OUT12,	8,	16,	0xf,	4,	false)
1788c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_5,		8,	0,	0xf,	8,	false)
1798c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_6,		8,	4,	0xf,	8,	false)
1808c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_7,		8,	8,	0xf,	8,	false)
1818c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_8,		8,	12,	0xf,	8,	false)
1828c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_9,		8,	16,	0xf,	8,	false)
1838c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_10,	8,	20,	0xf,	8,	false)
1848c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_11,	8,	24,	0xf,	8,	false)
1858c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_12,	8,	28,	0xf,	8,	false)
1868c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NSPI1_SCS_0,	9,	0,	0xf,	1,	false)
1878c2ecf20Sopenharmony_ci	MUX_CFG(DA830, USB0_DRVVBUS,	9,	4,	0xf,	1,	false)
1888c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AHCLKX0,		9,	8,	0xf,	1,	false)
1898c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ACLKX0,		9,	12,	0xf,	1,	false)
1908c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AFSX0,		9,	16,	0xf,	1,	false)
1918c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AHCLKR0,		9,	20,	0xf,	1,	false)
1928c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ACLKR0,		9,	24,	0xf,	1,	false)
1938c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AFSR0,		9,	28,	0xf,	1,	false)
1948c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UART2_TXD,	9,	0,	0xf,	2,	false)
1958c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AHCLKX2,		9,	8,	0xf,	2,	false)
1968c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ECAP0_APWM0,	9,	12,	0xf,	2,	false)
1978c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_MHZ_50_CLK,	9,	20,	0xf,	2,	false)
1988c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ECAP1_APWM1,	9,	24,	0xf,	2,	false)
1998c2ecf20Sopenharmony_ci	MUX_CFG(DA830, USB_REFCLKIN,	9,	8,	0xf,	4,	false)
2008c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO5_13,	9,	0,	0xf,	8,	false)
2018c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_15,	9,	4,	0xf,	8,	false)
2028c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_11,	9,	8,	0xf,	8,	false)
2038c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_12,	9,	12,	0xf,	8,	false)
2048c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_13,	9,	16,	0xf,	8,	false)
2058c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_14,	9,	20,	0xf,	8,	false)
2068c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_15,	9,	24,	0xf,	8,	false)
2078c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_12,	9,	28,	0xf,	8,	false)
2088c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AMUTE0,		10,	0,	0xf,	1,	false)
2098c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_0,		10,	4,	0xf,	1,	false)
2108c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_1,		10,	8,	0xf,	1,	false)
2118c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_2,		10,	12,	0xf,	1,	false)
2128c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_3,		10,	16,	0xf,	1,	false)
2138c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_4,		10,	20,	0xf,	1,	false)
2148c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_5,		10,	24,	0xf,	1,	false)
2158c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_6,		10,	28,	0xf,	1,	false)
2168c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_TXD_0,	10,	4,	0xf,	2,	false)
2178c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_TXD_1,	10,	8,	0xf,	2,	false)
2188c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_TXEN,	10,	12,	0xf,	2,	false)
2198c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_CRS_DV,	10,	16,	0xf,	2,	false)
2208c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_RXD_0,	10,	20,	0xf,	2,	false)
2218c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_RXD_1,	10,	24,	0xf,	2,	false)
2228c2ecf20Sopenharmony_ci	MUX_CFG(DA830, RMII_RXER,	10,	28,	0xf,	2,	false)
2238c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AFSR2,		10,	4,	0xf,	4,	false)
2248c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ACLKX2,		10,	8,	0xf,	4,	false)
2258c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR2_3,		10,	12,	0xf,	4,	false)
2268c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR2_2,		10,	16,	0xf,	4,	false)
2278c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR2_1,		10,	20,	0xf,	4,	false)
2288c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AFSX2,		10,	24,	0xf,	4,	false)
2298c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ACLKR2,		10,	28,	0xf,	4,	false)
2308c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NRESETOUT,	10,	0,	0xf,	8,	false)
2318c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_0,		10,	4,	0xf,	8,	false)
2328c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_1,		10,	8,	0xf,	8,	false)
2338c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_2,		10,	12,	0xf,	8,	false)
2348c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_3,		10,	16,	0xf,	8,	false)
2358c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_4,		10,	20,	0xf,	8,	false)
2368c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_5,		10,	24,	0xf,	8,	false)
2378c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_6,		10,	28,	0xf,	8,	false)
2388c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_7,		11,	0,	0xf,	1,	false)
2398c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_8,		11,	4,	0xf,	1,	false)
2408c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UART1_RXD,	11,	8,	0xf,	1,	false)
2418c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UART1_TXD,	11,	12,	0xf,	1,	false)
2428c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_11,		11,	16,	0xf,	1,	false)
2438c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AHCLKX1,		11,	20,	0xf,	1,	false)
2448c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ACLKX1,		11,	24,	0xf,	1,	false)
2458c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AFSX1,		11,	28,	0xf,	1,	false)
2468c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MDIO_CLK,	11,	0,	0xf,	2,	false)
2478c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MDIO_D,		11,	4,	0xf,	2,	false)
2488c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_9,		11,	8,	0xf,	2,	false)
2498c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_10,		11,	12,	0xf,	2,	false)
2508c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWM0B,		11,	20,	0xf,	2,	false)
2518c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWM0A,		11,	24,	0xf,	2,	false)
2528c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWMSYNCI,	11,	28,	0xf,	2,	false)
2538c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR2_0,		11,	16,	0xf,	4,	false)
2548c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWMSYNC0,	11,	28,	0xf,	4,	false)
2558c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_7,		11,	0,	0xf,	8,	false)
2568c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_8,		11,	4,	0xf,	8,	false)
2578c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_9,		11,	8,	0xf,	8,	false)
2588c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_10,	11,	12,	0xf,	8,	false)
2598c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_11,	11,	16,	0xf,	8,	false)
2608c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_14,	11,	20,	0xf,	8,	false)
2618c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO3_15,	11,	24,	0xf,	8,	false)
2628c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_10,	11,	28,	0xf,	8,	false)
2638c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AHCLKR1,		12,	0,	0xf,	1,	false)
2648c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ACLKR1,		12,	4,	0xf,	1,	false)
2658c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AFSR1,		12,	8,	0xf,	1,	false)
2668c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AMUTE1,		12,	12,	0xf,	1,	false)
2678c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_0,		12,	16,	0xf,	1,	false)
2688c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_1,		12,	20,	0xf,	1,	false)
2698c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_2,		12,	24,	0xf,	1,	false)
2708c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_3,		12,	28,	0xf,	1,	false)
2718c2ecf20Sopenharmony_ci	MUX_CFG(DA830, ECAP2_APWM2,	12,	4,	0xf,	2,	false)
2728c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EHRPWMGLUETZ,	12,	12,	0xf,	2,	false)
2738c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP1A,		12,	28,	0xf,	2,	false)
2748c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_11,	12,	0,	0xf,	8,	false)
2758c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_12,	12,	4,	0xf,	8,	false)
2768c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_13,	12,	8,	0xf,	8,	false)
2778c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_14,	12,	12,	0xf,	8,	false)
2788c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_0,		12,	16,	0xf,	8,	false)
2798c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_1,		12,	20,	0xf,	8,	false)
2808c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_2,		12,	24,	0xf,	8,	false)
2818c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_3,		12,	28,	0xf,	8,	false)
2828c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_4,		13,	0,	0xf,	1,	false)
2838c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_5,		13,	4,	0xf,	1,	false)
2848c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_6,		13,	8,	0xf,	1,	false)
2858c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_7,		13,	12,	0xf,	1,	false)
2868c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_8,		13,	16,	0xf,	1,	false)
2878c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR1_9,		13,	20,	0xf,	1,	false)
2888c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_0,		13,	24,	0xf,	1,	false)
2898c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_1,		13,	28,	0xf,	1,	false)
2908c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EQEP1B,		13,	0,	0xf,	2,	false)
2918c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWM2B,		13,	4,	0xf,	2,	false)
2928c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWM2A,		13,	8,	0xf,	2,	false)
2938c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWM1B,		13,	12,	0xf,	2,	false)
2948c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EPWM1A,		13,	16,	0xf,	2,	false)
2958c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_0,	13,	24,	0xf,	2,	false)
2968c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_1,	13,	28,	0xf,	2,	false)
2978c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_0,	13,	24,	0xf,	4,	false)
2988c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_1,	13,	28,	0xf,	4,	false)
2998c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_4,		13,	0,	0xf,	8,	false)
3008c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_5,		13,	4,	0xf,	8,	false)
3018c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_6,		13,	8,	0xf,	8,	false)
3028c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_7,		13,	12,	0xf,	8,	false)
3038c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_8,		13,	16,	0xf,	8,	false)
3048c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO4_9,		13,	20,	0xf,	8,	false)
3058c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_0,		13,	24,	0xf,	8,	false)
3068c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_1,		13,	28,	0xf,	8,	false)
3078c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_2,		14,	0,	0xf,	1,	false)
3088c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_3,		14,	4,	0xf,	1,	false)
3098c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_4,		14,	8,	0xf,	1,	false)
3108c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_5,		14,	12,	0xf,	1,	false)
3118c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_6,		14,	16,	0xf,	1,	false)
3128c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_7,		14,	20,	0xf,	1,	false)
3138c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_8,		14,	24,	0xf,	1,	false)
3148c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_9,		14,	28,	0xf,	1,	false)
3158c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_2,	14,	0,	0xf,	2,	false)
3168c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_3,	14,	4,	0xf,	2,	false)
3178c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_4,	14,	8,	0xf,	2,	false)
3188c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_5,	14,	12,	0xf,	2,	false)
3198c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_6,	14,	16,	0xf,	2,	false)
3208c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_DAT_7,	14,	20,	0xf,	2,	false)
3218c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_8,	14,	24,	0xf,	2,	false)
3228c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_9,	14,	28,	0xf,	2,	false)
3238c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_2,	14,	0,	0xf,	4,	false)
3248c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_3,	14,	4,	0xf,	4,	false)
3258c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_4,	14,	8,	0xf,	4,	false)
3268c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_5,	14,	12,	0xf,	4,	false)
3278c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_6,	14,	16,	0xf,	4,	false)
3288c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_7,	14,	20,	0xf,	4,	false)
3298c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_8,		14,	24,	0xf,	4,	false)
3308c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_9,		14,	28,	0xf,	4,	false)
3318c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_2,		14,	0,	0xf,	8,	false)
3328c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_3,		14,	4,	0xf,	8,	false)
3338c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_4,		14,	8,	0xf,	8,	false)
3348c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_5,		14,	12,	0xf,	8,	false)
3358c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_6,		14,	16,	0xf,	8,	false)
3368c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_7,		14,	20,	0xf,	8,	false)
3378c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_8,		14,	24,	0xf,	8,	false)
3388c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_9,		14,	28,	0xf,	8,	false)
3398c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_10,	15,	0,	0xf,	1,	false)
3408c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_11,	15,	4,	0xf,	1,	false)
3418c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_12,	15,	8,	0xf,	1,	false)
3428c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_13,	15,	12,	0xf,	1,	false)
3438c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_14,	15,	16,	0xf,	1,	false)
3448c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_D_15,	15,	20,	0xf,	1,	false)
3458c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_0,		15,	24,	0xf,	1,	false)
3468c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_1,		15,	28,	0xf,	1,	false)
3478c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_10,	15,	0,	0xf,	2,	false)
3488c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_11,	15,	4,	0xf,	2,	false)
3498c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_12,	15,	8,	0xf,	2,	false)
3508c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_13,	15,	12,	0xf,	2,	false)
3518c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_14,	15,	16,	0xf,	2,	false)
3528c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HD_15,	15,	20,	0xf,	2,	false)
3538c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_7,		15,	24,	0xf,	2,	false)
3548c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_CLK,	15,	28,	0xf,	2,	false)
3558c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_10,	15,	0,	0xf,	4,	false)
3568c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_11,	15,	4,	0xf,	4,	false)
3578c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_12,	15,	8,	0xf,	4,	false)
3588c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_13,	15,	12,	0xf,	4,	false)
3598c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_14,	15,	16,	0xf,	4,	false)
3608c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_15,	15,	20,	0xf,	4,	false)
3618c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HCNTL0,	15,	28,	0xf,	4,	false)
3628c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_10,	15,	0,	0xf,	8,	false)
3638c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_11,	15,	4,	0xf,	8,	false)
3648c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_12,	15,	8,	0xf,	8,	false)
3658c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_13,	15,	12,	0xf,	8,	false)
3668c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_14,	15,	16,	0xf,	8,	false)
3678c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO0_15,	15,	20,	0xf,	8,	false)
3688c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_0,		15,	24,	0xf,	8,	false)
3698c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_1,		15,	28,	0xf,	8,	false)
3708c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_2,		16,	0,	0xf,	1,	false)
3718c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_3,		16,	4,	0xf,	1,	false)
3728c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_4,		16,	8,	0xf,	1,	false)
3738c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_5,		16,	12,	0xf,	1,	false)
3748c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_6,		16,	16,	0xf,	1,	false)
3758c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_7,		16,	20,	0xf,	1,	false)
3768c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_8,		16,	24,	0xf,	1,	false)
3778c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_9,		16,	28,	0xf,	1,	false)
3788c2ecf20Sopenharmony_ci	MUX_CFG(DA830, MMCSD_CMD,	16,	0,	0xf,	2,	false)
3798c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_6,		16,	4,	0xf,	2,	false)
3808c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_3,		16,	8,	0xf,	2,	false)
3818c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_2,		16,	12,	0xf,	2,	false)
3828c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_1,		16,	16,	0xf,	2,	false)
3838c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_0,		16,	20,	0xf,	2,	false)
3848c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_PCLK,	16,	24,	0xf,	2,	false)
3858c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_HSYNC,	16,	28,	0xf,	2,	false)
3868c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HCNTL1,	16,	0,	0xf,	4,	false)
3878c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_2,		16,	0,	0xf,	8,	false)
3888c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_3,		16,	4,	0xf,	8,	false)
3898c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_4,		16,	8,	0xf,	8,	false)
3908c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_5,		16,	12,	0xf,	8,	false)
3918c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_6,		16,	16,	0xf,	8,	false)
3928c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_7,		16,	20,	0xf,	8,	false)
3938c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_8,		16,	24,	0xf,	8,	false)
3948c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_9,		16,	28,	0xf,	8,	false)
3958c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_10,	17,	0,	0xf,	1,	false)
3968c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_11,	17,	4,	0xf,	1,	false)
3978c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_A_12,	17,	8,	0xf,	1,	false)
3988c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_BA_1,	17,	12,	0xf,	1,	false)
3998c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_BA_0,	17,	16,	0xf,	1,	false)
4008c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_CLK,		17,	20,	0xf,	1,	false)
4018c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_SDCKE,	17,	24,	0xf,	1,	false)
4028c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_CAS,	17,	28,	0xf,	1,	false)
4038c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_VSYNC,	17,	0,	0xf,	2,	false)
4048c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NLCD_AC_ENB_CS,	17,	4,	0xf,	2,	false)
4058c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_MCLK,	17,	8,	0xf,	2,	false)
4068c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_5,		17,	12,	0xf,	2,	false)
4078c2ecf20Sopenharmony_ci	MUX_CFG(DA830, LCD_D_4,		17,	16,	0xf,	2,	false)
4088c2ecf20Sopenharmony_ci	MUX_CFG(DA830, OBSCLK,		17,	20,	0xf,	2,	false)
4098c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_CS_4,	17,	28,	0xf,	2,	false)
4108c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HHWIL,	17,	12,	0xf,	4,	false)
4118c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AHCLKR2,		17,	20,	0xf,	4,	false)
4128c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_10,	17,	0,	0xf,	8,	false)
4138c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_11,	17,	4,	0xf,	8,	false)
4148c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_12,	17,	8,	0xf,	8,	false)
4158c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_13,	17,	12,	0xf,	8,	false)
4168c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_14,	17,	16,	0xf,	8,	false)
4178c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO1_15,	17,	20,	0xf,	8,	false)
4188c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_0,		17,	24,	0xf,	8,	false)
4198c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_1,		17,	28,	0xf,	8,	false)
4208c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_RAS,	18,	0,	0xf,	1,	false)
4218c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_WE,		18,	4,	0xf,	1,	false)
4228c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_CS_0,	18,	8,	0xf,	1,	false)
4238c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_CS_2,	18,	12,	0xf,	1,	false)
4248c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_CS_3,	18,	16,	0xf,	1,	false)
4258c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_OE,		18,	20,	0xf,	1,	false)
4268c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_WE_DQM_1,	18,	24,	0xf,	1,	false)
4278c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_WE_DQM_0,	18,	28,	0xf,	1,	false)
4288c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NEMA_CS_5,	18,	0,	0xf,	2,	false)
4298c2ecf20Sopenharmony_ci	MUX_CFG(DA830, UHPI_HRNW,	18,	4,	0xf,	2,	false)
4308c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUHPI_HAS,	18,	8,	0xf,	2,	false)
4318c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUHPI_HCS,	18,	12,	0xf,	2,	false)
4328c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUHPI_HDS1,	18,	20,	0xf,	2,	false)
4338c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUHPI_HDS2,	18,	24,	0xf,	2,	false)
4348c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUHPI_HINT,	18,	28,	0xf,	2,	false)
4358c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_12,		18,	4,	0xf,	4,	false)
4368c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AMUTE2,		18,	16,	0xf,	4,	false)
4378c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_13,		18,	20,	0xf,	4,	false)
4388c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_14,		18,	24,	0xf,	4,	false)
4398c2ecf20Sopenharmony_ci	MUX_CFG(DA830, AXR0_15,		18,	28,	0xf,	4,	false)
4408c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_2,		18,	0,	0xf,	8,	false)
4418c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_3,		18,	4,	0xf,	8,	false)
4428c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_4,		18,	8,	0xf,	8,	false)
4438c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_5,		18,	12,	0xf,	8,	false)
4448c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_6,		18,	16,	0xf,	8,	false)
4458c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_7,		18,	20,	0xf,	8,	false)
4468c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_8,		18,	24,	0xf,	8,	false)
4478c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_9,		18,	28,	0xf,	8,	false)
4488c2ecf20Sopenharmony_ci	MUX_CFG(DA830, EMA_WAIT_0,	19,	0,	0xf,	1,	false)
4498c2ecf20Sopenharmony_ci	MUX_CFG(DA830, NUHPI_HRDY,	19,	0,	0xf,	2,	false)
4508c2ecf20Sopenharmony_ci	MUX_CFG(DA830, GPIO2_10,	19,	0,	0xf,	8,	false)
4518c2ecf20Sopenharmony_ci#endif
4528c2ecf20Sopenharmony_ci};
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_ciconst short da830_emif25_pins[] __initconst = {
4558c2ecf20Sopenharmony_ci	DA830_EMA_D_0, DA830_EMA_D_1, DA830_EMA_D_2, DA830_EMA_D_3,
4568c2ecf20Sopenharmony_ci	DA830_EMA_D_4, DA830_EMA_D_5, DA830_EMA_D_6, DA830_EMA_D_7,
4578c2ecf20Sopenharmony_ci	DA830_EMA_D_8, DA830_EMA_D_9, DA830_EMA_D_10, DA830_EMA_D_11,
4588c2ecf20Sopenharmony_ci	DA830_EMA_D_12, DA830_EMA_D_13, DA830_EMA_D_14, DA830_EMA_D_15,
4598c2ecf20Sopenharmony_ci	DA830_EMA_A_0, DA830_EMA_A_1, DA830_EMA_A_2, DA830_EMA_A_3,
4608c2ecf20Sopenharmony_ci	DA830_EMA_A_4, DA830_EMA_A_5, DA830_EMA_A_6, DA830_EMA_A_7,
4618c2ecf20Sopenharmony_ci	DA830_EMA_A_8, DA830_EMA_A_9, DA830_EMA_A_10, DA830_EMA_A_11,
4628c2ecf20Sopenharmony_ci	DA830_EMA_A_12, DA830_EMA_BA_0, DA830_EMA_BA_1, DA830_EMA_CLK,
4638c2ecf20Sopenharmony_ci	DA830_EMA_SDCKE, DA830_NEMA_CS_4, DA830_NEMA_CS_5, DA830_NEMA_WE,
4648c2ecf20Sopenharmony_ci	DA830_NEMA_CS_0, DA830_NEMA_CS_2, DA830_NEMA_CS_3, DA830_NEMA_OE,
4658c2ecf20Sopenharmony_ci	DA830_NEMA_WE_DQM_1, DA830_NEMA_WE_DQM_0, DA830_EMA_WAIT_0,
4668c2ecf20Sopenharmony_ci	-1
4678c2ecf20Sopenharmony_ci};
4688c2ecf20Sopenharmony_ci
4698c2ecf20Sopenharmony_ciconst short da830_spi0_pins[] __initconst = {
4708c2ecf20Sopenharmony_ci	DA830_SPI0_SOMI_0, DA830_SPI0_SIMO_0, DA830_SPI0_CLK, DA830_NSPI0_ENA,
4718c2ecf20Sopenharmony_ci	DA830_NSPI0_SCS_0,
4728c2ecf20Sopenharmony_ci	-1
4738c2ecf20Sopenharmony_ci};
4748c2ecf20Sopenharmony_ci
4758c2ecf20Sopenharmony_ciconst short da830_spi1_pins[] __initconst = {
4768c2ecf20Sopenharmony_ci	DA830_SPI1_SOMI_0, DA830_SPI1_SIMO_0, DA830_SPI1_CLK, DA830_NSPI1_ENA,
4778c2ecf20Sopenharmony_ci	DA830_NSPI1_SCS_0,
4788c2ecf20Sopenharmony_ci	-1
4798c2ecf20Sopenharmony_ci};
4808c2ecf20Sopenharmony_ci
4818c2ecf20Sopenharmony_ciconst short da830_mmc_sd_pins[] __initconst = {
4828c2ecf20Sopenharmony_ci	DA830_MMCSD_DAT_0, DA830_MMCSD_DAT_1, DA830_MMCSD_DAT_2,
4838c2ecf20Sopenharmony_ci	DA830_MMCSD_DAT_3, DA830_MMCSD_DAT_4, DA830_MMCSD_DAT_5,
4848c2ecf20Sopenharmony_ci	DA830_MMCSD_DAT_6, DA830_MMCSD_DAT_7, DA830_MMCSD_CLK,
4858c2ecf20Sopenharmony_ci	DA830_MMCSD_CMD,
4868c2ecf20Sopenharmony_ci	-1
4878c2ecf20Sopenharmony_ci};
4888c2ecf20Sopenharmony_ci
4898c2ecf20Sopenharmony_ciconst short da830_uart0_pins[] __initconst = {
4908c2ecf20Sopenharmony_ci	DA830_NUART0_CTS, DA830_NUART0_RTS, DA830_UART0_RXD, DA830_UART0_TXD,
4918c2ecf20Sopenharmony_ci	-1
4928c2ecf20Sopenharmony_ci};
4938c2ecf20Sopenharmony_ci
4948c2ecf20Sopenharmony_ciconst short da830_uart1_pins[] __initconst = {
4958c2ecf20Sopenharmony_ci	DA830_UART1_RXD, DA830_UART1_TXD,
4968c2ecf20Sopenharmony_ci	-1
4978c2ecf20Sopenharmony_ci};
4988c2ecf20Sopenharmony_ci
4998c2ecf20Sopenharmony_ciconst short da830_uart2_pins[] __initconst = {
5008c2ecf20Sopenharmony_ci	DA830_UART2_RXD, DA830_UART2_TXD,
5018c2ecf20Sopenharmony_ci	-1
5028c2ecf20Sopenharmony_ci};
5038c2ecf20Sopenharmony_ci
5048c2ecf20Sopenharmony_ciconst short da830_usb20_pins[] __initconst = {
5058c2ecf20Sopenharmony_ci	DA830_USB0_DRVVBUS, DA830_USB_REFCLKIN,
5068c2ecf20Sopenharmony_ci	-1
5078c2ecf20Sopenharmony_ci};
5088c2ecf20Sopenharmony_ci
5098c2ecf20Sopenharmony_ciconst short da830_usb11_pins[] __initconst = {
5108c2ecf20Sopenharmony_ci	DA830_USB_REFCLKIN,
5118c2ecf20Sopenharmony_ci	-1
5128c2ecf20Sopenharmony_ci};
5138c2ecf20Sopenharmony_ci
5148c2ecf20Sopenharmony_ciconst short da830_uhpi_pins[] __initconst = {
5158c2ecf20Sopenharmony_ci	DA830_UHPI_HD_0, DA830_UHPI_HD_1, DA830_UHPI_HD_2, DA830_UHPI_HD_3,
5168c2ecf20Sopenharmony_ci	DA830_UHPI_HD_4, DA830_UHPI_HD_5, DA830_UHPI_HD_6, DA830_UHPI_HD_7,
5178c2ecf20Sopenharmony_ci	DA830_UHPI_HD_8, DA830_UHPI_HD_9, DA830_UHPI_HD_10, DA830_UHPI_HD_11,
5188c2ecf20Sopenharmony_ci	DA830_UHPI_HD_12, DA830_UHPI_HD_13, DA830_UHPI_HD_14, DA830_UHPI_HD_15,
5198c2ecf20Sopenharmony_ci	DA830_UHPI_HCNTL0, DA830_UHPI_HCNTL1, DA830_UHPI_HHWIL, DA830_UHPI_HRNW,
5208c2ecf20Sopenharmony_ci	DA830_NUHPI_HAS, DA830_NUHPI_HCS, DA830_NUHPI_HDS1, DA830_NUHPI_HDS2,
5218c2ecf20Sopenharmony_ci	DA830_NUHPI_HINT, DA830_NUHPI_HRDY,
5228c2ecf20Sopenharmony_ci	-1
5238c2ecf20Sopenharmony_ci};
5248c2ecf20Sopenharmony_ci
5258c2ecf20Sopenharmony_ciconst short da830_cpgmac_pins[] __initconst = {
5268c2ecf20Sopenharmony_ci	DA830_RMII_TXD_0, DA830_RMII_TXD_1, DA830_RMII_TXEN, DA830_RMII_CRS_DV,
5278c2ecf20Sopenharmony_ci	DA830_RMII_RXD_0, DA830_RMII_RXD_1, DA830_RMII_RXER, DA830_MDIO_CLK,
5288c2ecf20Sopenharmony_ci	DA830_MDIO_D,
5298c2ecf20Sopenharmony_ci	-1
5308c2ecf20Sopenharmony_ci};
5318c2ecf20Sopenharmony_ci
5328c2ecf20Sopenharmony_ciconst short da830_emif3c_pins[] __initconst = {
5338c2ecf20Sopenharmony_ci	DA830_EMB_SDCKE, DA830_EMB_CLK_GLUE, DA830_EMB_CLK, DA830_NEMB_CS_0,
5348c2ecf20Sopenharmony_ci	DA830_NEMB_CAS, DA830_NEMB_RAS, DA830_NEMB_WE, DA830_EMB_BA_1,
5358c2ecf20Sopenharmony_ci	DA830_EMB_BA_0, DA830_EMB_A_0, DA830_EMB_A_1, DA830_EMB_A_2,
5368c2ecf20Sopenharmony_ci	DA830_EMB_A_3, DA830_EMB_A_4, DA830_EMB_A_5, DA830_EMB_A_6,
5378c2ecf20Sopenharmony_ci	DA830_EMB_A_7, DA830_EMB_A_8, DA830_EMB_A_9, DA830_EMB_A_10,
5388c2ecf20Sopenharmony_ci	DA830_EMB_A_11, DA830_EMB_A_12, DA830_NEMB_WE_DQM_3,
5398c2ecf20Sopenharmony_ci	DA830_NEMB_WE_DQM_2, DA830_EMB_D_0, DA830_EMB_D_1, DA830_EMB_D_2,
5408c2ecf20Sopenharmony_ci	DA830_EMB_D_3, DA830_EMB_D_4, DA830_EMB_D_5, DA830_EMB_D_6,
5418c2ecf20Sopenharmony_ci	DA830_EMB_D_7, DA830_EMB_D_8, DA830_EMB_D_9, DA830_EMB_D_10,
5428c2ecf20Sopenharmony_ci	DA830_EMB_D_11, DA830_EMB_D_12, DA830_EMB_D_13, DA830_EMB_D_14,
5438c2ecf20Sopenharmony_ci	DA830_EMB_D_15, DA830_EMB_D_16, DA830_EMB_D_17, DA830_EMB_D_18,
5448c2ecf20Sopenharmony_ci	DA830_EMB_D_19, DA830_EMB_D_20, DA830_EMB_D_21, DA830_EMB_D_22,
5458c2ecf20Sopenharmony_ci	DA830_EMB_D_23, DA830_EMB_D_24, DA830_EMB_D_25, DA830_EMB_D_26,
5468c2ecf20Sopenharmony_ci	DA830_EMB_D_27, DA830_EMB_D_28, DA830_EMB_D_29, DA830_EMB_D_30,
5478c2ecf20Sopenharmony_ci	DA830_EMB_D_31, DA830_NEMB_WE_DQM_1, DA830_NEMB_WE_DQM_0,
5488c2ecf20Sopenharmony_ci	-1
5498c2ecf20Sopenharmony_ci};
5508c2ecf20Sopenharmony_ci
5518c2ecf20Sopenharmony_ciconst short da830_mcasp0_pins[] __initconst = {
5528c2ecf20Sopenharmony_ci	DA830_AHCLKX0, DA830_ACLKX0, DA830_AFSX0,
5538c2ecf20Sopenharmony_ci	DA830_AHCLKR0, DA830_ACLKR0, DA830_AFSR0, DA830_AMUTE0,
5548c2ecf20Sopenharmony_ci	DA830_AXR0_0, DA830_AXR0_1, DA830_AXR0_2, DA830_AXR0_3,
5558c2ecf20Sopenharmony_ci	DA830_AXR0_4, DA830_AXR0_5, DA830_AXR0_6, DA830_AXR0_7,
5568c2ecf20Sopenharmony_ci	DA830_AXR0_8, DA830_AXR0_9, DA830_AXR0_10, DA830_AXR0_11,
5578c2ecf20Sopenharmony_ci	DA830_AXR0_12, DA830_AXR0_13, DA830_AXR0_14, DA830_AXR0_15,
5588c2ecf20Sopenharmony_ci	-1
5598c2ecf20Sopenharmony_ci};
5608c2ecf20Sopenharmony_ci
5618c2ecf20Sopenharmony_ciconst short da830_mcasp1_pins[] __initconst = {
5628c2ecf20Sopenharmony_ci	DA830_AHCLKX1, DA830_ACLKX1, DA830_AFSX1,
5638c2ecf20Sopenharmony_ci	DA830_AHCLKR1, DA830_ACLKR1, DA830_AFSR1, DA830_AMUTE1,
5648c2ecf20Sopenharmony_ci	DA830_AXR1_0, DA830_AXR1_1, DA830_AXR1_2, DA830_AXR1_3,
5658c2ecf20Sopenharmony_ci	DA830_AXR1_4, DA830_AXR1_5, DA830_AXR1_6, DA830_AXR1_7,
5668c2ecf20Sopenharmony_ci	DA830_AXR1_8, DA830_AXR1_9, DA830_AXR1_10, DA830_AXR1_11,
5678c2ecf20Sopenharmony_ci	-1
5688c2ecf20Sopenharmony_ci};
5698c2ecf20Sopenharmony_ci
5708c2ecf20Sopenharmony_ciconst short da830_mcasp2_pins[] __initconst = {
5718c2ecf20Sopenharmony_ci	DA830_AHCLKX2, DA830_ACLKX2, DA830_AFSX2,
5728c2ecf20Sopenharmony_ci	DA830_AHCLKR2, DA830_ACLKR2, DA830_AFSR2, DA830_AMUTE2,
5738c2ecf20Sopenharmony_ci	DA830_AXR2_0, DA830_AXR2_1, DA830_AXR2_2, DA830_AXR2_3,
5748c2ecf20Sopenharmony_ci	-1
5758c2ecf20Sopenharmony_ci};
5768c2ecf20Sopenharmony_ci
5778c2ecf20Sopenharmony_ciconst short da830_i2c0_pins[] __initconst = {
5788c2ecf20Sopenharmony_ci	DA830_I2C0_SDA, DA830_I2C0_SCL,
5798c2ecf20Sopenharmony_ci	-1
5808c2ecf20Sopenharmony_ci};
5818c2ecf20Sopenharmony_ci
5828c2ecf20Sopenharmony_ciconst short da830_i2c1_pins[] __initconst = {
5838c2ecf20Sopenharmony_ci	DA830_I2C1_SCL, DA830_I2C1_SDA,
5848c2ecf20Sopenharmony_ci	-1
5858c2ecf20Sopenharmony_ci};
5868c2ecf20Sopenharmony_ci
5878c2ecf20Sopenharmony_ciconst short da830_lcdcntl_pins[] __initconst = {
5888c2ecf20Sopenharmony_ci	DA830_LCD_D_0, DA830_LCD_D_1, DA830_LCD_D_2, DA830_LCD_D_3,
5898c2ecf20Sopenharmony_ci	DA830_LCD_D_4, DA830_LCD_D_5, DA830_LCD_D_6, DA830_LCD_D_7,
5908c2ecf20Sopenharmony_ci	DA830_LCD_D_8, DA830_LCD_D_9, DA830_LCD_D_10, DA830_LCD_D_11,
5918c2ecf20Sopenharmony_ci	DA830_LCD_D_12, DA830_LCD_D_13, DA830_LCD_D_14, DA830_LCD_D_15,
5928c2ecf20Sopenharmony_ci	DA830_LCD_PCLK, DA830_LCD_HSYNC, DA830_LCD_VSYNC, DA830_NLCD_AC_ENB_CS,
5938c2ecf20Sopenharmony_ci	DA830_LCD_MCLK,
5948c2ecf20Sopenharmony_ci	-1
5958c2ecf20Sopenharmony_ci};
5968c2ecf20Sopenharmony_ci
5978c2ecf20Sopenharmony_ciconst short da830_pwm_pins[] __initconst = {
5988c2ecf20Sopenharmony_ci	DA830_ECAP0_APWM0, DA830_ECAP1_APWM1, DA830_EPWM0B, DA830_EPWM0A,
5998c2ecf20Sopenharmony_ci	DA830_EPWMSYNCI, DA830_EPWMSYNC0, DA830_ECAP2_APWM2, DA830_EHRPWMGLUETZ,
6008c2ecf20Sopenharmony_ci	DA830_EPWM2B, DA830_EPWM2A, DA830_EPWM1B, DA830_EPWM1A,
6018c2ecf20Sopenharmony_ci	-1
6028c2ecf20Sopenharmony_ci};
6038c2ecf20Sopenharmony_ci
6048c2ecf20Sopenharmony_ciconst short da830_ecap0_pins[] __initconst = {
6058c2ecf20Sopenharmony_ci	DA830_ECAP0_APWM0,
6068c2ecf20Sopenharmony_ci	-1
6078c2ecf20Sopenharmony_ci};
6088c2ecf20Sopenharmony_ci
6098c2ecf20Sopenharmony_ciconst short da830_ecap1_pins[] __initconst = {
6108c2ecf20Sopenharmony_ci	DA830_ECAP1_APWM1,
6118c2ecf20Sopenharmony_ci	-1
6128c2ecf20Sopenharmony_ci};
6138c2ecf20Sopenharmony_ci
6148c2ecf20Sopenharmony_ciconst short da830_ecap2_pins[] __initconst = {
6158c2ecf20Sopenharmony_ci	DA830_ECAP2_APWM2,
6168c2ecf20Sopenharmony_ci	-1
6178c2ecf20Sopenharmony_ci};
6188c2ecf20Sopenharmony_ci
6198c2ecf20Sopenharmony_ciconst short da830_eqep0_pins[] __initconst = {
6208c2ecf20Sopenharmony_ci	DA830_EQEP0I, DA830_EQEP0S, DA830_EQEP0A, DA830_EQEP0B,
6218c2ecf20Sopenharmony_ci	-1
6228c2ecf20Sopenharmony_ci};
6238c2ecf20Sopenharmony_ci
6248c2ecf20Sopenharmony_ciconst short da830_eqep1_pins[] __initconst = {
6258c2ecf20Sopenharmony_ci	DA830_EQEP1I, DA830_EQEP1S, DA830_EQEP1A, DA830_EQEP1B,
6268c2ecf20Sopenharmony_ci	-1
6278c2ecf20Sopenharmony_ci};
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_cistatic struct map_desc da830_io_desc[] = {
6308c2ecf20Sopenharmony_ci	{
6318c2ecf20Sopenharmony_ci		.virtual	= IO_VIRT,
6328c2ecf20Sopenharmony_ci		.pfn		= __phys_to_pfn(IO_PHYS),
6338c2ecf20Sopenharmony_ci		.length		= IO_SIZE,
6348c2ecf20Sopenharmony_ci		.type		= MT_DEVICE
6358c2ecf20Sopenharmony_ci	},
6368c2ecf20Sopenharmony_ci	{
6378c2ecf20Sopenharmony_ci		.virtual	= DA8XX_CP_INTC_VIRT,
6388c2ecf20Sopenharmony_ci		.pfn		= __phys_to_pfn(DA8XX_CP_INTC_BASE),
6398c2ecf20Sopenharmony_ci		.length		= DA8XX_CP_INTC_SIZE,
6408c2ecf20Sopenharmony_ci		.type		= MT_DEVICE
6418c2ecf20Sopenharmony_ci	},
6428c2ecf20Sopenharmony_ci};
6438c2ecf20Sopenharmony_ci
6448c2ecf20Sopenharmony_ci/* Contents of JTAG ID register used to identify exact cpu type */
6458c2ecf20Sopenharmony_cistatic struct davinci_id da830_ids[] = {
6468c2ecf20Sopenharmony_ci	{
6478c2ecf20Sopenharmony_ci		.variant	= 0x0,
6488c2ecf20Sopenharmony_ci		.part_no	= 0xb7df,
6498c2ecf20Sopenharmony_ci		.manufacturer	= 0x017,	/* 0x02f >> 1 */
6508c2ecf20Sopenharmony_ci		.cpu_id		= DAVINCI_CPU_ID_DA830,
6518c2ecf20Sopenharmony_ci		.name		= "da830/omap-l137 rev1.0",
6528c2ecf20Sopenharmony_ci	},
6538c2ecf20Sopenharmony_ci	{
6548c2ecf20Sopenharmony_ci		.variant	= 0x8,
6558c2ecf20Sopenharmony_ci		.part_no	= 0xb7df,
6568c2ecf20Sopenharmony_ci		.manufacturer	= 0x017,
6578c2ecf20Sopenharmony_ci		.cpu_id		= DAVINCI_CPU_ID_DA830,
6588c2ecf20Sopenharmony_ci		.name		= "da830/omap-l137 rev1.1",
6598c2ecf20Sopenharmony_ci	},
6608c2ecf20Sopenharmony_ci	{
6618c2ecf20Sopenharmony_ci		.variant	= 0x9,
6628c2ecf20Sopenharmony_ci		.part_no	= 0xb7df,
6638c2ecf20Sopenharmony_ci		.manufacturer	= 0x017,
6648c2ecf20Sopenharmony_ci		.cpu_id		= DAVINCI_CPU_ID_DA830,
6658c2ecf20Sopenharmony_ci		.name		= "da830/omap-l137 rev2.0",
6668c2ecf20Sopenharmony_ci	},
6678c2ecf20Sopenharmony_ci};
6688c2ecf20Sopenharmony_ci
6698c2ecf20Sopenharmony_cistatic struct davinci_gpio_platform_data da830_gpio_platform_data = {
6708c2ecf20Sopenharmony_ci	.no_auto_base	= true,
6718c2ecf20Sopenharmony_ci	.base		= 0,
6728c2ecf20Sopenharmony_ci	.ngpio		= 128,
6738c2ecf20Sopenharmony_ci};
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ciint __init da830_register_gpio(void)
6768c2ecf20Sopenharmony_ci{
6778c2ecf20Sopenharmony_ci	return da8xx_register_gpio(&da830_gpio_platform_data);
6788c2ecf20Sopenharmony_ci}
6798c2ecf20Sopenharmony_ci
6808c2ecf20Sopenharmony_ci/*
6818c2ecf20Sopenharmony_ci * Bottom half of timer0 is used both for clock even and clocksource.
6828c2ecf20Sopenharmony_ci * Top half is used by DSP.
6838c2ecf20Sopenharmony_ci */
6848c2ecf20Sopenharmony_cistatic const struct davinci_timer_cfg da830_timer_cfg = {
6858c2ecf20Sopenharmony_ci	.reg = DEFINE_RES_IO(DA8XX_TIMER64P0_BASE, SZ_4K),
6868c2ecf20Sopenharmony_ci	.irq = {
6878c2ecf20Sopenharmony_ci		DEFINE_RES_IRQ(DAVINCI_INTC_IRQ(IRQ_DA830_T12CMPINT0_0)),
6888c2ecf20Sopenharmony_ci		DEFINE_RES_IRQ(DAVINCI_INTC_IRQ(IRQ_DA8XX_TINT12_0)),
6898c2ecf20Sopenharmony_ci	},
6908c2ecf20Sopenharmony_ci	.cmp_off = DA830_CMP12_0,
6918c2ecf20Sopenharmony_ci};
6928c2ecf20Sopenharmony_ci
6938c2ecf20Sopenharmony_cistatic const struct davinci_soc_info davinci_soc_info_da830 = {
6948c2ecf20Sopenharmony_ci	.io_desc		= da830_io_desc,
6958c2ecf20Sopenharmony_ci	.io_desc_num		= ARRAY_SIZE(da830_io_desc),
6968c2ecf20Sopenharmony_ci	.jtag_id_reg		= DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG,
6978c2ecf20Sopenharmony_ci	.ids			= da830_ids,
6988c2ecf20Sopenharmony_ci	.ids_num		= ARRAY_SIZE(da830_ids),
6998c2ecf20Sopenharmony_ci	.pinmux_base		= DA8XX_SYSCFG0_BASE + 0x120,
7008c2ecf20Sopenharmony_ci	.pinmux_pins		= da830_pins,
7018c2ecf20Sopenharmony_ci	.pinmux_pins_num	= ARRAY_SIZE(da830_pins),
7028c2ecf20Sopenharmony_ci	.emac_pdata		= &da8xx_emac_pdata,
7038c2ecf20Sopenharmony_ci};
7048c2ecf20Sopenharmony_ci
7058c2ecf20Sopenharmony_civoid __init da830_init(void)
7068c2ecf20Sopenharmony_ci{
7078c2ecf20Sopenharmony_ci	davinci_common_init(&davinci_soc_info_da830);
7088c2ecf20Sopenharmony_ci
7098c2ecf20Sopenharmony_ci	da8xx_syscfg0_base = ioremap(DA8XX_SYSCFG0_BASE, SZ_4K);
7108c2ecf20Sopenharmony_ci	WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module");
7118c2ecf20Sopenharmony_ci}
7128c2ecf20Sopenharmony_ci
7138c2ecf20Sopenharmony_cistatic const struct davinci_cp_intc_config da830_cp_intc_config = {
7148c2ecf20Sopenharmony_ci	.reg = {
7158c2ecf20Sopenharmony_ci		.start		= DA8XX_CP_INTC_BASE,
7168c2ecf20Sopenharmony_ci		.end		= DA8XX_CP_INTC_BASE + SZ_8K - 1,
7178c2ecf20Sopenharmony_ci		.flags		= IORESOURCE_MEM,
7188c2ecf20Sopenharmony_ci	},
7198c2ecf20Sopenharmony_ci	.num_irqs		= DA830_N_CP_INTC_IRQ,
7208c2ecf20Sopenharmony_ci};
7218c2ecf20Sopenharmony_ci
7228c2ecf20Sopenharmony_civoid __init da830_init_irq(void)
7238c2ecf20Sopenharmony_ci{
7248c2ecf20Sopenharmony_ci	davinci_cp_intc_init(&da830_cp_intc_config);
7258c2ecf20Sopenharmony_ci}
7268c2ecf20Sopenharmony_ci
7278c2ecf20Sopenharmony_civoid __init da830_init_time(void)
7288c2ecf20Sopenharmony_ci{
7298c2ecf20Sopenharmony_ci	void __iomem *pll;
7308c2ecf20Sopenharmony_ci	struct clk *clk;
7318c2ecf20Sopenharmony_ci	int rv;
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_ci	clk_register_fixed_rate(NULL, "ref_clk", NULL, 0, DA830_REF_FREQ);
7348c2ecf20Sopenharmony_ci
7358c2ecf20Sopenharmony_ci	pll = ioremap(DA8XX_PLL0_BASE, SZ_4K);
7368c2ecf20Sopenharmony_ci
7378c2ecf20Sopenharmony_ci	da830_pll_init(NULL, pll, NULL);
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_ci	clk = clk_get(NULL, "timer0");
7408c2ecf20Sopenharmony_ci	if (WARN_ON(IS_ERR(clk))) {
7418c2ecf20Sopenharmony_ci		pr_err("Unable to get the timer clock\n");
7428c2ecf20Sopenharmony_ci		return;
7438c2ecf20Sopenharmony_ci	}
7448c2ecf20Sopenharmony_ci
7458c2ecf20Sopenharmony_ci	rv = davinci_timer_register(clk, &da830_timer_cfg);
7468c2ecf20Sopenharmony_ci	WARN(rv, "Unable to register the timer: %d\n", rv);
7478c2ecf20Sopenharmony_ci}
7488c2ecf20Sopenharmony_ci
7498c2ecf20Sopenharmony_cistatic struct resource da830_psc0_resources[] = {
7508c2ecf20Sopenharmony_ci	{
7518c2ecf20Sopenharmony_ci		.start	= DA8XX_PSC0_BASE,
7528c2ecf20Sopenharmony_ci		.end	= DA8XX_PSC0_BASE + SZ_4K - 1,
7538c2ecf20Sopenharmony_ci		.flags	= IORESOURCE_MEM,
7548c2ecf20Sopenharmony_ci	},
7558c2ecf20Sopenharmony_ci};
7568c2ecf20Sopenharmony_ci
7578c2ecf20Sopenharmony_cistatic struct platform_device da830_psc0_device = {
7588c2ecf20Sopenharmony_ci	.name		= "da830-psc0",
7598c2ecf20Sopenharmony_ci	.id		= -1,
7608c2ecf20Sopenharmony_ci	.resource	= da830_psc0_resources,
7618c2ecf20Sopenharmony_ci	.num_resources	= ARRAY_SIZE(da830_psc0_resources),
7628c2ecf20Sopenharmony_ci};
7638c2ecf20Sopenharmony_ci
7648c2ecf20Sopenharmony_cistatic struct resource da830_psc1_resources[] = {
7658c2ecf20Sopenharmony_ci	{
7668c2ecf20Sopenharmony_ci		.start	= DA8XX_PSC1_BASE,
7678c2ecf20Sopenharmony_ci		.end	= DA8XX_PSC1_BASE + SZ_4K - 1,
7688c2ecf20Sopenharmony_ci		.flags	= IORESOURCE_MEM,
7698c2ecf20Sopenharmony_ci	},
7708c2ecf20Sopenharmony_ci};
7718c2ecf20Sopenharmony_ci
7728c2ecf20Sopenharmony_cistatic struct platform_device da830_psc1_device = {
7738c2ecf20Sopenharmony_ci	.name		= "da830-psc1",
7748c2ecf20Sopenharmony_ci	.id		= -1,
7758c2ecf20Sopenharmony_ci	.resource	= da830_psc1_resources,
7768c2ecf20Sopenharmony_ci	.num_resources	= ARRAY_SIZE(da830_psc1_resources),
7778c2ecf20Sopenharmony_ci};
7788c2ecf20Sopenharmony_ci
7798c2ecf20Sopenharmony_civoid __init da830_register_clocks(void)
7808c2ecf20Sopenharmony_ci{
7818c2ecf20Sopenharmony_ci	/* PLL is registered in da830_init_time() */
7828c2ecf20Sopenharmony_ci	platform_device_register(&da830_psc0_device);
7838c2ecf20Sopenharmony_ci	platform_device_register(&da830_psc1_device);
7848c2ecf20Sopenharmony_ci}
785