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 */ 112f8163baSRussell King #include <linux/gpio.h> 1255c79a40SMark A. Greer #include <linux/init.h> 1355c79a40SMark A. Greer #include <linux/clk.h> 1455c79a40SMark A. Greer 1555c79a40SMark A. Greer #include <asm/mach/map.h> 1655c79a40SMark A. Greer 1755c79a40SMark A. Greer #include <mach/psc.h> 1855c79a40SMark A. Greer #include <mach/irqs.h> 1955c79a40SMark A. Greer #include <mach/cputype.h> 2055c79a40SMark A. Greer #include <mach/common.h> 2155c79a40SMark A. Greer #include <mach/time.h> 2255c79a40SMark A. Greer #include <mach/da8xx.h> 235f3fcf96SLinus Walleij #include <mach/gpio-davinci.h> 2455c79a40SMark A. Greer 2555c79a40SMark A. Greer #include "clock.h" 2655c79a40SMark A. Greer #include "mux.h" 2755c79a40SMark A. Greer 2855c79a40SMark A. Greer /* Offsets of the 8 compare registers on the da830 */ 2955c79a40SMark A. Greer #define DA830_CMP12_0 0x60 3055c79a40SMark A. Greer #define DA830_CMP12_1 0x64 3155c79a40SMark A. Greer #define DA830_CMP12_2 0x68 3255c79a40SMark A. Greer #define DA830_CMP12_3 0x6c 3355c79a40SMark A. Greer #define DA830_CMP12_4 0x70 3455c79a40SMark A. Greer #define DA830_CMP12_5 0x74 3555c79a40SMark A. Greer #define DA830_CMP12_6 0x78 3655c79a40SMark A. Greer #define DA830_CMP12_7 0x7c 3755c79a40SMark A. Greer 3855c79a40SMark A. Greer #define DA830_REF_FREQ 24000000 3955c79a40SMark A. Greer 4055c79a40SMark A. Greer static struct pll_data pll0_data = { 4155c79a40SMark A. Greer .num = 1, 42bea238f6SRajashekhara, Sudhakar .phys_base = DA8XX_PLL0_BASE, 4355c79a40SMark A. Greer .flags = PLL_HAS_PREDIV | PLL_HAS_POSTDIV, 4455c79a40SMark A. Greer }; 4555c79a40SMark A. Greer 4655c79a40SMark A. Greer static struct clk ref_clk = { 4755c79a40SMark A. Greer .name = "ref_clk", 4855c79a40SMark A. Greer .rate = DA830_REF_FREQ, 4955c79a40SMark A. Greer }; 5055c79a40SMark A. Greer 5155c79a40SMark A. Greer static struct clk pll0_clk = { 5255c79a40SMark A. Greer .name = "pll0", 5355c79a40SMark A. Greer .parent = &ref_clk, 5455c79a40SMark A. Greer .pll_data = &pll0_data, 5555c79a40SMark A. Greer .flags = CLK_PLL, 5655c79a40SMark A. Greer }; 5755c79a40SMark A. Greer 5855c79a40SMark A. Greer static struct clk pll0_aux_clk = { 5955c79a40SMark A. Greer .name = "pll0_aux_clk", 6055c79a40SMark A. Greer .parent = &pll0_clk, 6155c79a40SMark A. Greer .flags = CLK_PLL | PRE_PLL, 6255c79a40SMark A. Greer }; 6355c79a40SMark A. Greer 6455c79a40SMark A. Greer static struct clk pll0_sysclk2 = { 6555c79a40SMark A. Greer .name = "pll0_sysclk2", 6655c79a40SMark A. Greer .parent = &pll0_clk, 6755c79a40SMark A. Greer .flags = CLK_PLL, 6855c79a40SMark A. Greer .div_reg = PLLDIV2, 6955c79a40SMark A. Greer }; 7055c79a40SMark A. Greer 7155c79a40SMark A. Greer static struct clk pll0_sysclk3 = { 7255c79a40SMark A. Greer .name = "pll0_sysclk3", 7355c79a40SMark A. Greer .parent = &pll0_clk, 7455c79a40SMark A. Greer .flags = CLK_PLL, 7555c79a40SMark A. Greer .div_reg = PLLDIV3, 7655c79a40SMark A. Greer }; 7755c79a40SMark A. Greer 7855c79a40SMark A. Greer static struct clk pll0_sysclk4 = { 7955c79a40SMark A. Greer .name = "pll0_sysclk4", 8055c79a40SMark A. Greer .parent = &pll0_clk, 8155c79a40SMark A. Greer .flags = CLK_PLL, 8255c79a40SMark A. Greer .div_reg = PLLDIV4, 8355c79a40SMark A. Greer }; 8455c79a40SMark A. Greer 8555c79a40SMark A. Greer static struct clk pll0_sysclk5 = { 8655c79a40SMark A. Greer .name = "pll0_sysclk5", 8755c79a40SMark A. Greer .parent = &pll0_clk, 8855c79a40SMark A. Greer .flags = CLK_PLL, 8955c79a40SMark A. Greer .div_reg = PLLDIV5, 9055c79a40SMark A. Greer }; 9155c79a40SMark A. Greer 9255c79a40SMark A. Greer static struct clk pll0_sysclk6 = { 9355c79a40SMark A. Greer .name = "pll0_sysclk6", 9455c79a40SMark A. Greer .parent = &pll0_clk, 9555c79a40SMark A. Greer .flags = CLK_PLL, 9655c79a40SMark A. Greer .div_reg = PLLDIV6, 9755c79a40SMark A. Greer }; 9855c79a40SMark A. Greer 9955c79a40SMark A. Greer static struct clk pll0_sysclk7 = { 10055c79a40SMark A. Greer .name = "pll0_sysclk7", 10155c79a40SMark A. Greer .parent = &pll0_clk, 10255c79a40SMark A. Greer .flags = CLK_PLL, 10355c79a40SMark A. Greer .div_reg = PLLDIV7, 10455c79a40SMark A. Greer }; 10555c79a40SMark A. Greer 10655c79a40SMark A. Greer static struct clk i2c0_clk = { 10755c79a40SMark A. Greer .name = "i2c0", 10855c79a40SMark A. Greer .parent = &pll0_aux_clk, 10955c79a40SMark A. Greer }; 11055c79a40SMark A. Greer 11155c79a40SMark A. Greer static struct clk timerp64_0_clk = { 11255c79a40SMark A. Greer .name = "timer0", 11355c79a40SMark A. Greer .parent = &pll0_aux_clk, 11455c79a40SMark A. Greer }; 11555c79a40SMark A. Greer 11655c79a40SMark A. Greer static struct clk timerp64_1_clk = { 11755c79a40SMark A. Greer .name = "timer1", 11855c79a40SMark A. Greer .parent = &pll0_aux_clk, 11955c79a40SMark A. Greer }; 12055c79a40SMark A. Greer 12155c79a40SMark A. Greer static struct clk arm_rom_clk = { 12255c79a40SMark A. Greer .name = "arm_rom", 12355c79a40SMark A. Greer .parent = &pll0_sysclk2, 12455c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_ARM_RAM_ROM, 12555c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 12655c79a40SMark A. Greer }; 12755c79a40SMark A. Greer 12855c79a40SMark A. Greer static struct clk scr0_ss_clk = { 12955c79a40SMark A. Greer .name = "scr0_ss", 13055c79a40SMark A. Greer .parent = &pll0_sysclk2, 13155c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_SCR0_SS, 13255c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 13355c79a40SMark A. Greer }; 13455c79a40SMark A. Greer 13555c79a40SMark A. Greer static struct clk scr1_ss_clk = { 13655c79a40SMark A. Greer .name = "scr1_ss", 13755c79a40SMark A. Greer .parent = &pll0_sysclk2, 13855c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_SCR1_SS, 13955c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 14055c79a40SMark A. Greer }; 14155c79a40SMark A. Greer 14255c79a40SMark A. Greer static struct clk scr2_ss_clk = { 14355c79a40SMark A. Greer .name = "scr2_ss", 14455c79a40SMark A. Greer .parent = &pll0_sysclk2, 14555c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_SCR2_SS, 14655c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 14755c79a40SMark A. Greer }; 14855c79a40SMark A. Greer 14955c79a40SMark A. Greer static struct clk dmax_clk = { 15055c79a40SMark A. Greer .name = "dmax", 15155c79a40SMark A. Greer .parent = &pll0_sysclk2, 1529a9fb12aSSubhasish Ghosh .lpsc = DA8XX_LPSC0_PRUSS, 15355c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 15455c79a40SMark A. Greer }; 15555c79a40SMark A. Greer 15655c79a40SMark A. Greer static struct clk tpcc_clk = { 15755c79a40SMark A. Greer .name = "tpcc", 15855c79a40SMark A. Greer .parent = &pll0_sysclk2, 15955c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_TPCC, 16055c79a40SMark A. Greer .flags = ALWAYS_ENABLED | CLK_PSC, 16155c79a40SMark A. Greer }; 16255c79a40SMark A. Greer 16355c79a40SMark A. Greer static struct clk tptc0_clk = { 16455c79a40SMark A. Greer .name = "tptc0", 16555c79a40SMark A. Greer .parent = &pll0_sysclk2, 16655c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_TPTC0, 16755c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 16855c79a40SMark A. Greer }; 16955c79a40SMark A. Greer 17055c79a40SMark A. Greer static struct clk tptc1_clk = { 17155c79a40SMark A. Greer .name = "tptc1", 17255c79a40SMark A. Greer .parent = &pll0_sysclk2, 17355c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_TPTC1, 17455c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 17555c79a40SMark A. Greer }; 17655c79a40SMark A. Greer 17755c79a40SMark A. Greer static struct clk mmcsd_clk = { 17855c79a40SMark A. Greer .name = "mmcsd", 17955c79a40SMark A. Greer .parent = &pll0_sysclk2, 18055c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_MMC_SD, 18155c79a40SMark A. Greer }; 18255c79a40SMark A. Greer 18355c79a40SMark A. Greer static struct clk uart0_clk = { 18455c79a40SMark A. Greer .name = "uart0", 18555c79a40SMark A. Greer .parent = &pll0_sysclk2, 18655c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_UART0, 18755c79a40SMark A. Greer }; 18855c79a40SMark A. Greer 18955c79a40SMark A. Greer static struct clk uart1_clk = { 19055c79a40SMark A. Greer .name = "uart1", 19155c79a40SMark A. Greer .parent = &pll0_sysclk2, 19255c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_UART1, 193789a785eSSergei Shtylyov .gpsc = 1, 19455c79a40SMark A. Greer }; 19555c79a40SMark A. Greer 19655c79a40SMark A. Greer static struct clk uart2_clk = { 19755c79a40SMark A. Greer .name = "uart2", 19855c79a40SMark A. Greer .parent = &pll0_sysclk2, 19955c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_UART2, 200789a785eSSergei Shtylyov .gpsc = 1, 20155c79a40SMark A. Greer }; 20255c79a40SMark A. Greer 20355c79a40SMark A. Greer static struct clk spi0_clk = { 20455c79a40SMark A. Greer .name = "spi0", 20555c79a40SMark A. Greer .parent = &pll0_sysclk2, 20655c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_SPI0, 20755c79a40SMark A. Greer }; 20855c79a40SMark A. Greer 20955c79a40SMark A. Greer static struct clk spi1_clk = { 21055c79a40SMark A. Greer .name = "spi1", 21155c79a40SMark A. Greer .parent = &pll0_sysclk2, 21255c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_SPI1, 213789a785eSSergei Shtylyov .gpsc = 1, 21455c79a40SMark A. Greer }; 21555c79a40SMark A. Greer 21655c79a40SMark A. Greer static struct clk ecap0_clk = { 21755c79a40SMark A. Greer .name = "ecap0", 21855c79a40SMark A. Greer .parent = &pll0_sysclk2, 21955c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_ECAP, 220789a785eSSergei Shtylyov .gpsc = 1, 22155c79a40SMark A. Greer }; 22255c79a40SMark A. Greer 22355c79a40SMark A. Greer static struct clk ecap1_clk = { 22455c79a40SMark A. Greer .name = "ecap1", 22555c79a40SMark A. Greer .parent = &pll0_sysclk2, 22655c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_ECAP, 227789a785eSSergei Shtylyov .gpsc = 1, 22855c79a40SMark A. Greer }; 22955c79a40SMark A. Greer 23055c79a40SMark A. Greer static struct clk ecap2_clk = { 23155c79a40SMark A. Greer .name = "ecap2", 23255c79a40SMark A. Greer .parent = &pll0_sysclk2, 23355c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_ECAP, 234789a785eSSergei Shtylyov .gpsc = 1, 23555c79a40SMark A. Greer }; 23655c79a40SMark A. Greer 23755c79a40SMark A. Greer static struct clk pwm0_clk = { 23855c79a40SMark A. Greer .name = "pwm0", 23955c79a40SMark A. Greer .parent = &pll0_sysclk2, 24055c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_PWM, 241789a785eSSergei Shtylyov .gpsc = 1, 24255c79a40SMark A. Greer }; 24355c79a40SMark A. Greer 24455c79a40SMark A. Greer static struct clk pwm1_clk = { 24555c79a40SMark A. Greer .name = "pwm1", 24655c79a40SMark A. Greer .parent = &pll0_sysclk2, 24755c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_PWM, 248789a785eSSergei Shtylyov .gpsc = 1, 24955c79a40SMark A. Greer }; 25055c79a40SMark A. Greer 25155c79a40SMark A. Greer static struct clk pwm2_clk = { 25255c79a40SMark A. Greer .name = "pwm2", 25355c79a40SMark A. Greer .parent = &pll0_sysclk2, 25455c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_PWM, 255789a785eSSergei Shtylyov .gpsc = 1, 25655c79a40SMark A. Greer }; 25755c79a40SMark A. Greer 25855c79a40SMark A. Greer static struct clk eqep0_clk = { 25955c79a40SMark A. Greer .name = "eqep0", 26055c79a40SMark A. Greer .parent = &pll0_sysclk2, 26155c79a40SMark A. Greer .lpsc = DA830_LPSC1_EQEP, 262789a785eSSergei Shtylyov .gpsc = 1, 26355c79a40SMark A. Greer }; 26455c79a40SMark A. Greer 26555c79a40SMark A. Greer static struct clk eqep1_clk = { 26655c79a40SMark A. Greer .name = "eqep1", 26755c79a40SMark A. Greer .parent = &pll0_sysclk2, 26855c79a40SMark A. Greer .lpsc = DA830_LPSC1_EQEP, 269789a785eSSergei Shtylyov .gpsc = 1, 27055c79a40SMark A. Greer }; 27155c79a40SMark A. Greer 27255c79a40SMark A. Greer static struct clk lcdc_clk = { 27355c79a40SMark A. Greer .name = "lcdc", 27455c79a40SMark A. Greer .parent = &pll0_sysclk2, 27555c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_LCDC, 276789a785eSSergei Shtylyov .gpsc = 1, 27755c79a40SMark A. Greer }; 27855c79a40SMark A. Greer 27955c79a40SMark A. Greer static struct clk mcasp0_clk = { 28055c79a40SMark A. Greer .name = "mcasp0", 28155c79a40SMark A. Greer .parent = &pll0_sysclk2, 28255c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_McASP0, 283789a785eSSergei Shtylyov .gpsc = 1, 28455c79a40SMark A. Greer }; 28555c79a40SMark A. Greer 28655c79a40SMark A. Greer static struct clk mcasp1_clk = { 28755c79a40SMark A. Greer .name = "mcasp1", 28855c79a40SMark A. Greer .parent = &pll0_sysclk2, 28955c79a40SMark A. Greer .lpsc = DA830_LPSC1_McASP1, 290789a785eSSergei Shtylyov .gpsc = 1, 29155c79a40SMark A. Greer }; 29255c79a40SMark A. Greer 29355c79a40SMark A. Greer static struct clk mcasp2_clk = { 29455c79a40SMark A. Greer .name = "mcasp2", 29555c79a40SMark A. Greer .parent = &pll0_sysclk2, 29655c79a40SMark A. Greer .lpsc = DA830_LPSC1_McASP2, 297789a785eSSergei Shtylyov .gpsc = 1, 29855c79a40SMark A. Greer }; 29955c79a40SMark A. Greer 30055c79a40SMark A. Greer static struct clk usb20_clk = { 30155c79a40SMark A. Greer .name = "usb20", 30255c79a40SMark A. Greer .parent = &pll0_sysclk2, 30355c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_USB20, 304789a785eSSergei Shtylyov .gpsc = 1, 30555c79a40SMark A. Greer }; 30655c79a40SMark A. Greer 30755c79a40SMark A. Greer static struct clk aemif_clk = { 30855c79a40SMark A. Greer .name = "aemif", 30955c79a40SMark A. Greer .parent = &pll0_sysclk3, 31055c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_EMIF25, 31155c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 31255c79a40SMark A. Greer }; 31355c79a40SMark A. Greer 31455c79a40SMark A. Greer static struct clk aintc_clk = { 31555c79a40SMark A. Greer .name = "aintc", 31655c79a40SMark A. Greer .parent = &pll0_sysclk4, 31755c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_AINTC, 31855c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 31955c79a40SMark A. Greer }; 32055c79a40SMark A. Greer 32155c79a40SMark A. Greer static struct clk secu_mgr_clk = { 32255c79a40SMark A. Greer .name = "secu_mgr", 32355c79a40SMark A. Greer .parent = &pll0_sysclk4, 32455c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_SECU_MGR, 32555c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 32655c79a40SMark A. Greer }; 32755c79a40SMark A. Greer 32855c79a40SMark A. Greer static struct clk emac_clk = { 32955c79a40SMark A. Greer .name = "emac", 33055c79a40SMark A. Greer .parent = &pll0_sysclk4, 33155c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_CPGMAC, 332789a785eSSergei Shtylyov .gpsc = 1, 33355c79a40SMark A. Greer }; 33455c79a40SMark A. Greer 33555c79a40SMark A. Greer static struct clk gpio_clk = { 33655c79a40SMark A. Greer .name = "gpio", 33755c79a40SMark A. Greer .parent = &pll0_sysclk4, 33855c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_GPIO, 339789a785eSSergei Shtylyov .gpsc = 1, 34055c79a40SMark A. Greer }; 34155c79a40SMark A. Greer 34255c79a40SMark A. Greer static struct clk i2c1_clk = { 34355c79a40SMark A. Greer .name = "i2c1", 34455c79a40SMark A. Greer .parent = &pll0_sysclk4, 34555c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_I2C, 346789a785eSSergei Shtylyov .gpsc = 1, 34755c79a40SMark A. Greer }; 34855c79a40SMark A. Greer 34955c79a40SMark A. Greer static struct clk usb11_clk = { 35055c79a40SMark A. Greer .name = "usb11", 35155c79a40SMark A. Greer .parent = &pll0_sysclk4, 35255c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_USB11, 353789a785eSSergei Shtylyov .gpsc = 1, 35455c79a40SMark A. Greer }; 35555c79a40SMark A. Greer 35655c79a40SMark A. Greer static struct clk emif3_clk = { 35755c79a40SMark A. Greer .name = "emif3", 35855c79a40SMark A. Greer .parent = &pll0_sysclk5, 35955c79a40SMark A. Greer .lpsc = DA8XX_LPSC1_EMIF3C, 360789a785eSSergei Shtylyov .gpsc = 1, 36155c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 36255c79a40SMark A. Greer }; 36355c79a40SMark A. Greer 36455c79a40SMark A. Greer static struct clk arm_clk = { 36555c79a40SMark A. Greer .name = "arm", 36655c79a40SMark A. Greer .parent = &pll0_sysclk6, 36755c79a40SMark A. Greer .lpsc = DA8XX_LPSC0_ARM, 36855c79a40SMark A. Greer .flags = ALWAYS_ENABLED, 36955c79a40SMark A. Greer }; 37055c79a40SMark A. Greer 37155c79a40SMark A. Greer static struct clk rmii_clk = { 37255c79a40SMark A. Greer .name = "rmii", 37355c79a40SMark A. Greer .parent = &pll0_sysclk7, 37455c79a40SMark A. Greer }; 37555c79a40SMark A. Greer 37608aca087SKevin Hilman static struct clk_lookup da830_clks[] = { 37755c79a40SMark A. Greer CLK(NULL, "ref", &ref_clk), 37855c79a40SMark A. Greer CLK(NULL, "pll0", &pll0_clk), 37955c79a40SMark A. Greer CLK(NULL, "pll0_aux", &pll0_aux_clk), 38055c79a40SMark A. Greer CLK(NULL, "pll0_sysclk2", &pll0_sysclk2), 38155c79a40SMark A. Greer CLK(NULL, "pll0_sysclk3", &pll0_sysclk3), 38255c79a40SMark A. Greer CLK(NULL, "pll0_sysclk4", &pll0_sysclk4), 38355c79a40SMark A. Greer CLK(NULL, "pll0_sysclk5", &pll0_sysclk5), 38455c79a40SMark A. Greer CLK(NULL, "pll0_sysclk6", &pll0_sysclk6), 38555c79a40SMark A. Greer CLK(NULL, "pll0_sysclk7", &pll0_sysclk7), 38655c79a40SMark A. Greer CLK("i2c_davinci.1", NULL, &i2c0_clk), 38755c79a40SMark A. Greer CLK(NULL, "timer0", &timerp64_0_clk), 38855c79a40SMark A. Greer CLK("watchdog", NULL, &timerp64_1_clk), 38955c79a40SMark A. Greer CLK(NULL, "arm_rom", &arm_rom_clk), 39055c79a40SMark A. Greer CLK(NULL, "scr0_ss", &scr0_ss_clk), 39155c79a40SMark A. Greer CLK(NULL, "scr1_ss", &scr1_ss_clk), 39255c79a40SMark A. Greer CLK(NULL, "scr2_ss", &scr2_ss_clk), 39355c79a40SMark A. Greer CLK(NULL, "dmax", &dmax_clk), 39455c79a40SMark A. Greer CLK(NULL, "tpcc", &tpcc_clk), 39555c79a40SMark A. Greer CLK(NULL, "tptc0", &tptc0_clk), 39655c79a40SMark A. Greer CLK(NULL, "tptc1", &tptc1_clk), 397d7ca4c75SManjunathappa, Prakash CLK("da830-mmc.0", NULL, &mmcsd_clk), 39855c79a40SMark A. Greer CLK(NULL, "uart0", &uart0_clk), 39955c79a40SMark A. Greer CLK(NULL, "uart1", &uart1_clk), 40055c79a40SMark A. Greer CLK(NULL, "uart2", &uart2_clk), 4014918b40dSMichael Williamson CLK("spi_davinci.0", NULL, &spi0_clk), 4024918b40dSMichael Williamson CLK("spi_davinci.1", NULL, &spi1_clk), 40355c79a40SMark A. Greer CLK(NULL, "ecap0", &ecap0_clk), 40455c79a40SMark A. Greer CLK(NULL, "ecap1", &ecap1_clk), 40555c79a40SMark A. Greer CLK(NULL, "ecap2", &ecap2_clk), 40655c79a40SMark A. Greer CLK(NULL, "pwm0", &pwm0_clk), 40755c79a40SMark A. Greer CLK(NULL, "pwm1", &pwm1_clk), 40855c79a40SMark A. Greer CLK(NULL, "pwm2", &pwm2_clk), 40955c79a40SMark A. Greer CLK("eqep.0", NULL, &eqep0_clk), 41055c79a40SMark A. Greer CLK("eqep.1", NULL, &eqep1_clk), 41181cec3c7SManjunathappa CLK("da8xx_lcdc.0", "fck", &lcdc_clk), 412e33ef5e3SChaithrika U S CLK("davinci-mcasp.0", NULL, &mcasp0_clk), 413e33ef5e3SChaithrika U S CLK("davinci-mcasp.1", NULL, &mcasp1_clk), 414e33ef5e3SChaithrika U S CLK("davinci-mcasp.2", NULL, &mcasp2_clk), 415b9af5ddfSSergei Shtylyov CLK(NULL, "usb20", &usb20_clk), 41655c79a40SMark A. Greer CLK(NULL, "aemif", &aemif_clk), 41755c79a40SMark A. Greer CLK(NULL, "aintc", &aintc_clk), 41855c79a40SMark A. Greer CLK(NULL, "secu_mgr", &secu_mgr_clk), 41955c79a40SMark A. Greer CLK("davinci_emac.1", NULL, &emac_clk), 42055c79a40SMark A. Greer CLK(NULL, "gpio", &gpio_clk), 42155c79a40SMark A. Greer CLK("i2c_davinci.2", NULL, &i2c1_clk), 42255c79a40SMark A. Greer CLK(NULL, "usb11", &usb11_clk), 42355c79a40SMark A. Greer CLK(NULL, "emif3", &emif3_clk), 42455c79a40SMark A. Greer CLK(NULL, "arm", &arm_clk), 42555c79a40SMark A. Greer CLK(NULL, "rmii", &rmii_clk), 42655c79a40SMark A. Greer CLK(NULL, NULL, NULL), 42755c79a40SMark A. Greer }; 42855c79a40SMark A. Greer 42955c79a40SMark A. Greer /* 43055c79a40SMark A. Greer * Device specific mux setup 43155c79a40SMark A. Greer * 43255c79a40SMark A. Greer * soc description mux mode mode mux dbg 43355c79a40SMark A. Greer * reg offset mask mode 43455c79a40SMark A. Greer */ 43555c79a40SMark A. Greer static const struct mux_config da830_pins[] = { 43655c79a40SMark A. Greer #ifdef CONFIG_DAVINCI_MUX 43755c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_14, 0, 0, 0xf, 1, false) 43855c79a40SMark A. Greer MUX_CFG(DA830, RTCK, 0, 0, 0xf, 8, false) 43955c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_15, 0, 4, 0xf, 1, false) 44055c79a40SMark A. Greer MUX_CFG(DA830, EMU_0, 0, 4, 0xf, 8, false) 44155c79a40SMark A. Greer MUX_CFG(DA830, EMB_SDCKE, 0, 8, 0xf, 1, false) 44255c79a40SMark A. Greer MUX_CFG(DA830, EMB_CLK_GLUE, 0, 12, 0xf, 1, false) 44355c79a40SMark A. Greer MUX_CFG(DA830, EMB_CLK, 0, 12, 0xf, 2, false) 44455c79a40SMark A. Greer MUX_CFG(DA830, NEMB_CS_0, 0, 16, 0xf, 1, false) 44555c79a40SMark A. Greer MUX_CFG(DA830, NEMB_CAS, 0, 20, 0xf, 1, false) 44655c79a40SMark A. Greer MUX_CFG(DA830, NEMB_RAS, 0, 24, 0xf, 1, false) 44755c79a40SMark A. Greer MUX_CFG(DA830, NEMB_WE, 0, 28, 0xf, 1, false) 44855c79a40SMark A. Greer MUX_CFG(DA830, EMB_BA_1, 1, 0, 0xf, 1, false) 44955c79a40SMark A. Greer MUX_CFG(DA830, EMB_BA_0, 1, 4, 0xf, 1, false) 45055c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_0, 1, 8, 0xf, 1, false) 45155c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_1, 1, 12, 0xf, 1, false) 45255c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_2, 1, 16, 0xf, 1, false) 45355c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_3, 1, 20, 0xf, 1, false) 45455c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_4, 1, 24, 0xf, 1, false) 45555c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_5, 1, 28, 0xf, 1, false) 45655c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_0, 1, 0, 0xf, 8, false) 45755c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_1, 1, 4, 0xf, 8, false) 45855c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_2, 1, 8, 0xf, 8, false) 45955c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_3, 1, 12, 0xf, 8, false) 46055c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_4, 1, 16, 0xf, 8, false) 46155c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_5, 1, 20, 0xf, 8, false) 46255c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_6, 1, 24, 0xf, 8, false) 46355c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_7, 1, 28, 0xf, 8, false) 46455c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_6, 2, 0, 0xf, 1, false) 46555c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_7, 2, 4, 0xf, 1, false) 46655c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_8, 2, 8, 0xf, 1, false) 46755c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_9, 2, 12, 0xf, 1, false) 46855c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_10, 2, 16, 0xf, 1, false) 46955c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_11, 2, 20, 0xf, 1, false) 47055c79a40SMark A. Greer MUX_CFG(DA830, EMB_A_12, 2, 24, 0xf, 1, false) 47155c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_31, 2, 28, 0xf, 1, false) 47255c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_8, 2, 0, 0xf, 8, false) 47355c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_9, 2, 4, 0xf, 8, false) 47455c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_10, 2, 8, 0xf, 8, false) 47555c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_11, 2, 12, 0xf, 8, false) 47655c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_12, 2, 16, 0xf, 8, false) 47755c79a40SMark A. Greer MUX_CFG(DA830, GPIO7_13, 2, 20, 0xf, 8, false) 47855c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_13, 2, 24, 0xf, 8, false) 47955c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_30, 3, 0, 0xf, 1, false) 48055c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_29, 3, 4, 0xf, 1, false) 48155c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_28, 3, 8, 0xf, 1, false) 48255c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_27, 3, 12, 0xf, 1, false) 48355c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_26, 3, 16, 0xf, 1, false) 48455c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_25, 3, 20, 0xf, 1, false) 48555c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_24, 3, 24, 0xf, 1, false) 48655c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_23, 3, 28, 0xf, 1, false) 48755c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_22, 4, 0, 0xf, 1, false) 48855c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_21, 4, 4, 0xf, 1, false) 48955c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_20, 4, 8, 0xf, 1, false) 49055c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_19, 4, 12, 0xf, 1, false) 49155c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_18, 4, 16, 0xf, 1, false) 49255c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_17, 4, 20, 0xf, 1, false) 49355c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_16, 4, 24, 0xf, 1, false) 49455c79a40SMark A. Greer MUX_CFG(DA830, NEMB_WE_DQM_3, 4, 28, 0xf, 1, false) 49555c79a40SMark A. Greer MUX_CFG(DA830, NEMB_WE_DQM_2, 5, 0, 0xf, 1, false) 49655c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_0, 5, 4, 0xf, 1, false) 49755c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_1, 5, 8, 0xf, 1, false) 49855c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_2, 5, 12, 0xf, 1, false) 49955c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_3, 5, 16, 0xf, 1, false) 50055c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_4, 5, 20, 0xf, 1, false) 50155c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_5, 5, 24, 0xf, 1, false) 50255c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_6, 5, 28, 0xf, 1, false) 50355c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_0, 5, 4, 0xf, 8, false) 50455c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_1, 5, 8, 0xf, 8, false) 50555c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_2, 5, 12, 0xf, 8, false) 50655c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_3, 5, 16, 0xf, 8, false) 50755c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_4, 5, 20, 0xf, 8, false) 50855c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_5, 5, 24, 0xf, 8, false) 50955c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_6, 5, 28, 0xf, 8, false) 51055c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_7, 6, 0, 0xf, 1, false) 51155c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_8, 6, 4, 0xf, 1, false) 51255c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_9, 6, 8, 0xf, 1, false) 51355c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_10, 6, 12, 0xf, 1, false) 51455c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_11, 6, 16, 0xf, 1, false) 51555c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_12, 6, 20, 0xf, 1, false) 51655c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_13, 6, 24, 0xf, 1, false) 51755c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_14, 6, 28, 0xf, 1, false) 51855c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_7, 6, 0, 0xf, 8, false) 51955c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_8, 6, 4, 0xf, 8, false) 52055c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_9, 6, 8, 0xf, 8, false) 52155c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_10, 6, 12, 0xf, 8, false) 52255c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_11, 6, 16, 0xf, 8, false) 52355c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_12, 6, 20, 0xf, 8, false) 52455c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_13, 6, 24, 0xf, 8, false) 52555c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_14, 6, 28, 0xf, 8, false) 52655c79a40SMark A. Greer MUX_CFG(DA830, EMB_D_15, 7, 0, 0xf, 1, false) 52755c79a40SMark A. Greer MUX_CFG(DA830, NEMB_WE_DQM_1, 7, 4, 0xf, 1, false) 52855c79a40SMark A. Greer MUX_CFG(DA830, NEMB_WE_DQM_0, 7, 8, 0xf, 1, false) 52955c79a40SMark A. Greer MUX_CFG(DA830, SPI0_SOMI_0, 7, 12, 0xf, 1, false) 53055c79a40SMark A. Greer MUX_CFG(DA830, SPI0_SIMO_0, 7, 16, 0xf, 1, false) 53155c79a40SMark A. Greer MUX_CFG(DA830, SPI0_CLK, 7, 20, 0xf, 1, false) 53255c79a40SMark A. Greer MUX_CFG(DA830, NSPI0_ENA, 7, 24, 0xf, 1, false) 53355c79a40SMark A. Greer MUX_CFG(DA830, NSPI0_SCS_0, 7, 28, 0xf, 1, false) 53455c79a40SMark A. Greer MUX_CFG(DA830, EQEP0I, 7, 12, 0xf, 2, false) 53555c79a40SMark A. Greer MUX_CFG(DA830, EQEP0S, 7, 16, 0xf, 2, false) 53655c79a40SMark A. Greer MUX_CFG(DA830, EQEP1I, 7, 20, 0xf, 2, false) 53755c79a40SMark A. Greer MUX_CFG(DA830, NUART0_CTS, 7, 24, 0xf, 2, false) 53855c79a40SMark A. Greer MUX_CFG(DA830, NUART0_RTS, 7, 28, 0xf, 2, false) 53955c79a40SMark A. Greer MUX_CFG(DA830, EQEP0A, 7, 24, 0xf, 4, false) 54055c79a40SMark A. Greer MUX_CFG(DA830, EQEP0B, 7, 28, 0xf, 4, false) 54155c79a40SMark A. Greer MUX_CFG(DA830, GPIO6_15, 7, 0, 0xf, 8, false) 54255c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_14, 7, 4, 0xf, 8, false) 54355c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_15, 7, 8, 0xf, 8, false) 54455c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_0, 7, 12, 0xf, 8, false) 54555c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_1, 7, 16, 0xf, 8, false) 54655c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_2, 7, 20, 0xf, 8, false) 54755c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_3, 7, 24, 0xf, 8, false) 54855c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_4, 7, 28, 0xf, 8, false) 54955c79a40SMark A. Greer MUX_CFG(DA830, SPI1_SOMI_0, 8, 0, 0xf, 1, false) 55055c79a40SMark A. Greer MUX_CFG(DA830, SPI1_SIMO_0, 8, 4, 0xf, 1, false) 55155c79a40SMark A. Greer MUX_CFG(DA830, SPI1_CLK, 8, 8, 0xf, 1, false) 55255c79a40SMark A. Greer MUX_CFG(DA830, UART0_RXD, 8, 12, 0xf, 1, false) 55355c79a40SMark A. Greer MUX_CFG(DA830, UART0_TXD, 8, 16, 0xf, 1, false) 55455c79a40SMark A. Greer MUX_CFG(DA830, AXR1_10, 8, 20, 0xf, 1, false) 55555c79a40SMark A. Greer MUX_CFG(DA830, AXR1_11, 8, 24, 0xf, 1, false) 55655c79a40SMark A. Greer MUX_CFG(DA830, NSPI1_ENA, 8, 28, 0xf, 1, false) 55755c79a40SMark A. Greer MUX_CFG(DA830, I2C1_SCL, 8, 0, 0xf, 2, false) 55855c79a40SMark A. Greer MUX_CFG(DA830, I2C1_SDA, 8, 4, 0xf, 2, false) 55955c79a40SMark A. Greer MUX_CFG(DA830, EQEP1S, 8, 8, 0xf, 2, false) 56055c79a40SMark A. Greer MUX_CFG(DA830, I2C0_SDA, 8, 12, 0xf, 2, false) 56155c79a40SMark A. Greer MUX_CFG(DA830, I2C0_SCL, 8, 16, 0xf, 2, false) 56255c79a40SMark A. Greer MUX_CFG(DA830, UART2_RXD, 8, 28, 0xf, 2, false) 56355c79a40SMark A. Greer MUX_CFG(DA830, TM64P0_IN12, 8, 12, 0xf, 4, false) 56455c79a40SMark A. Greer MUX_CFG(DA830, TM64P0_OUT12, 8, 16, 0xf, 4, false) 56555c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_5, 8, 0, 0xf, 8, false) 56655c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_6, 8, 4, 0xf, 8, false) 56755c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_7, 8, 8, 0xf, 8, false) 56855c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_8, 8, 12, 0xf, 8, false) 56955c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_9, 8, 16, 0xf, 8, false) 57055c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_10, 8, 20, 0xf, 8, false) 57155c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_11, 8, 24, 0xf, 8, false) 57255c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_12, 8, 28, 0xf, 8, false) 57355c79a40SMark A. Greer MUX_CFG(DA830, NSPI1_SCS_0, 9, 0, 0xf, 1, false) 57455c79a40SMark A. Greer MUX_CFG(DA830, USB0_DRVVBUS, 9, 4, 0xf, 1, false) 57555c79a40SMark A. Greer MUX_CFG(DA830, AHCLKX0, 9, 8, 0xf, 1, false) 57655c79a40SMark A. Greer MUX_CFG(DA830, ACLKX0, 9, 12, 0xf, 1, false) 57755c79a40SMark A. Greer MUX_CFG(DA830, AFSX0, 9, 16, 0xf, 1, false) 57855c79a40SMark A. Greer MUX_CFG(DA830, AHCLKR0, 9, 20, 0xf, 1, false) 57955c79a40SMark A. Greer MUX_CFG(DA830, ACLKR0, 9, 24, 0xf, 1, false) 58055c79a40SMark A. Greer MUX_CFG(DA830, AFSR0, 9, 28, 0xf, 1, false) 58155c79a40SMark A. Greer MUX_CFG(DA830, UART2_TXD, 9, 0, 0xf, 2, false) 58255c79a40SMark A. Greer MUX_CFG(DA830, AHCLKX2, 9, 8, 0xf, 2, false) 58355c79a40SMark A. Greer MUX_CFG(DA830, ECAP0_APWM0, 9, 12, 0xf, 2, false) 58455c79a40SMark A. Greer MUX_CFG(DA830, RMII_MHZ_50_CLK, 9, 20, 0xf, 2, false) 58555c79a40SMark A. Greer MUX_CFG(DA830, ECAP1_APWM1, 9, 24, 0xf, 2, false) 58655c79a40SMark A. Greer MUX_CFG(DA830, USB_REFCLKIN, 9, 8, 0xf, 4, false) 58755c79a40SMark A. Greer MUX_CFG(DA830, GPIO5_13, 9, 0, 0xf, 8, false) 58855c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_15, 9, 4, 0xf, 8, false) 58955c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_11, 9, 8, 0xf, 8, false) 59055c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_12, 9, 12, 0xf, 8, false) 59155c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_13, 9, 16, 0xf, 8, false) 59255c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_14, 9, 20, 0xf, 8, false) 59355c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_15, 9, 24, 0xf, 8, false) 59455c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_12, 9, 28, 0xf, 8, false) 59555c79a40SMark A. Greer MUX_CFG(DA830, AMUTE0, 10, 0, 0xf, 1, false) 59655c79a40SMark A. Greer MUX_CFG(DA830, AXR0_0, 10, 4, 0xf, 1, false) 59755c79a40SMark A. Greer MUX_CFG(DA830, AXR0_1, 10, 8, 0xf, 1, false) 59855c79a40SMark A. Greer MUX_CFG(DA830, AXR0_2, 10, 12, 0xf, 1, false) 59955c79a40SMark A. Greer MUX_CFG(DA830, AXR0_3, 10, 16, 0xf, 1, false) 60055c79a40SMark A. Greer MUX_CFG(DA830, AXR0_4, 10, 20, 0xf, 1, false) 60155c79a40SMark A. Greer MUX_CFG(DA830, AXR0_5, 10, 24, 0xf, 1, false) 60255c79a40SMark A. Greer MUX_CFG(DA830, AXR0_6, 10, 28, 0xf, 1, false) 60355c79a40SMark A. Greer MUX_CFG(DA830, RMII_TXD_0, 10, 4, 0xf, 2, false) 60455c79a40SMark A. Greer MUX_CFG(DA830, RMII_TXD_1, 10, 8, 0xf, 2, false) 60555c79a40SMark A. Greer MUX_CFG(DA830, RMII_TXEN, 10, 12, 0xf, 2, false) 60655c79a40SMark A. Greer MUX_CFG(DA830, RMII_CRS_DV, 10, 16, 0xf, 2, false) 60755c79a40SMark A. Greer MUX_CFG(DA830, RMII_RXD_0, 10, 20, 0xf, 2, false) 60855c79a40SMark A. Greer MUX_CFG(DA830, RMII_RXD_1, 10, 24, 0xf, 2, false) 60955c79a40SMark A. Greer MUX_CFG(DA830, RMII_RXER, 10, 28, 0xf, 2, false) 61055c79a40SMark A. Greer MUX_CFG(DA830, AFSR2, 10, 4, 0xf, 4, false) 61155c79a40SMark A. Greer MUX_CFG(DA830, ACLKX2, 10, 8, 0xf, 4, false) 61255c79a40SMark A. Greer MUX_CFG(DA830, AXR2_3, 10, 12, 0xf, 4, false) 61355c79a40SMark A. Greer MUX_CFG(DA830, AXR2_2, 10, 16, 0xf, 4, false) 61455c79a40SMark A. Greer MUX_CFG(DA830, AXR2_1, 10, 20, 0xf, 4, false) 61555c79a40SMark A. Greer MUX_CFG(DA830, AFSX2, 10, 24, 0xf, 4, false) 61655c79a40SMark A. Greer MUX_CFG(DA830, ACLKR2, 10, 28, 0xf, 4, false) 61755c79a40SMark A. Greer MUX_CFG(DA830, NRESETOUT, 10, 0, 0xf, 8, false) 61855c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_0, 10, 4, 0xf, 8, false) 61955c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_1, 10, 8, 0xf, 8, false) 62055c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_2, 10, 12, 0xf, 8, false) 62155c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_3, 10, 16, 0xf, 8, false) 62255c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_4, 10, 20, 0xf, 8, false) 62355c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_5, 10, 24, 0xf, 8, false) 62455c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_6, 10, 28, 0xf, 8, false) 62555c79a40SMark A. Greer MUX_CFG(DA830, AXR0_7, 11, 0, 0xf, 1, false) 62655c79a40SMark A. Greer MUX_CFG(DA830, AXR0_8, 11, 4, 0xf, 1, false) 62755c79a40SMark A. Greer MUX_CFG(DA830, UART1_RXD, 11, 8, 0xf, 1, false) 62855c79a40SMark A. Greer MUX_CFG(DA830, UART1_TXD, 11, 12, 0xf, 1, false) 62955c79a40SMark A. Greer MUX_CFG(DA830, AXR0_11, 11, 16, 0xf, 1, false) 63055c79a40SMark A. Greer MUX_CFG(DA830, AHCLKX1, 11, 20, 0xf, 1, false) 63155c79a40SMark A. Greer MUX_CFG(DA830, ACLKX1, 11, 24, 0xf, 1, false) 63255c79a40SMark A. Greer MUX_CFG(DA830, AFSX1, 11, 28, 0xf, 1, false) 63355c79a40SMark A. Greer MUX_CFG(DA830, MDIO_CLK, 11, 0, 0xf, 2, false) 63455c79a40SMark A. Greer MUX_CFG(DA830, MDIO_D, 11, 4, 0xf, 2, false) 63555c79a40SMark A. Greer MUX_CFG(DA830, AXR0_9, 11, 8, 0xf, 2, false) 63655c79a40SMark A. Greer MUX_CFG(DA830, AXR0_10, 11, 12, 0xf, 2, false) 63755c79a40SMark A. Greer MUX_CFG(DA830, EPWM0B, 11, 20, 0xf, 2, false) 63855c79a40SMark A. Greer MUX_CFG(DA830, EPWM0A, 11, 24, 0xf, 2, false) 63955c79a40SMark A. Greer MUX_CFG(DA830, EPWMSYNCI, 11, 28, 0xf, 2, false) 64055c79a40SMark A. Greer MUX_CFG(DA830, AXR2_0, 11, 16, 0xf, 4, false) 64155c79a40SMark A. Greer MUX_CFG(DA830, EPWMSYNC0, 11, 28, 0xf, 4, false) 64255c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_7, 11, 0, 0xf, 8, false) 64355c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_8, 11, 4, 0xf, 8, false) 64455c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_9, 11, 8, 0xf, 8, false) 64555c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_10, 11, 12, 0xf, 8, false) 64655c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_11, 11, 16, 0xf, 8, false) 64755c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_14, 11, 20, 0xf, 8, false) 64855c79a40SMark A. Greer MUX_CFG(DA830, GPIO3_15, 11, 24, 0xf, 8, false) 64955c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_10, 11, 28, 0xf, 8, false) 65055c79a40SMark A. Greer MUX_CFG(DA830, AHCLKR1, 12, 0, 0xf, 1, false) 65155c79a40SMark A. Greer MUX_CFG(DA830, ACLKR1, 12, 4, 0xf, 1, false) 65255c79a40SMark A. Greer MUX_CFG(DA830, AFSR1, 12, 8, 0xf, 1, false) 65355c79a40SMark A. Greer MUX_CFG(DA830, AMUTE1, 12, 12, 0xf, 1, false) 65455c79a40SMark A. Greer MUX_CFG(DA830, AXR1_0, 12, 16, 0xf, 1, false) 65555c79a40SMark A. Greer MUX_CFG(DA830, AXR1_1, 12, 20, 0xf, 1, false) 65655c79a40SMark A. Greer MUX_CFG(DA830, AXR1_2, 12, 24, 0xf, 1, false) 65755c79a40SMark A. Greer MUX_CFG(DA830, AXR1_3, 12, 28, 0xf, 1, false) 65855c79a40SMark A. Greer MUX_CFG(DA830, ECAP2_APWM2, 12, 4, 0xf, 2, false) 65955c79a40SMark A. Greer MUX_CFG(DA830, EHRPWMGLUETZ, 12, 12, 0xf, 2, false) 66055c79a40SMark A. Greer MUX_CFG(DA830, EQEP1A, 12, 28, 0xf, 2, false) 66155c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_11, 12, 0, 0xf, 8, false) 66255c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_12, 12, 4, 0xf, 8, false) 66355c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_13, 12, 8, 0xf, 8, false) 66455c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_14, 12, 12, 0xf, 8, false) 66555c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_0, 12, 16, 0xf, 8, false) 66655c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_1, 12, 20, 0xf, 8, false) 66755c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_2, 12, 24, 0xf, 8, false) 66855c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_3, 12, 28, 0xf, 8, false) 66955c79a40SMark A. Greer MUX_CFG(DA830, AXR1_4, 13, 0, 0xf, 1, false) 67055c79a40SMark A. Greer MUX_CFG(DA830, AXR1_5, 13, 4, 0xf, 1, false) 67155c79a40SMark A. Greer MUX_CFG(DA830, AXR1_6, 13, 8, 0xf, 1, false) 67255c79a40SMark A. Greer MUX_CFG(DA830, AXR1_7, 13, 12, 0xf, 1, false) 67355c79a40SMark A. Greer MUX_CFG(DA830, AXR1_8, 13, 16, 0xf, 1, false) 67455c79a40SMark A. Greer MUX_CFG(DA830, AXR1_9, 13, 20, 0xf, 1, false) 67555c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_0, 13, 24, 0xf, 1, false) 67655c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_1, 13, 28, 0xf, 1, false) 67755c79a40SMark A. Greer MUX_CFG(DA830, EQEP1B, 13, 0, 0xf, 2, false) 67855c79a40SMark A. Greer MUX_CFG(DA830, EPWM2B, 13, 4, 0xf, 2, false) 67955c79a40SMark A. Greer MUX_CFG(DA830, EPWM2A, 13, 8, 0xf, 2, false) 68055c79a40SMark A. Greer MUX_CFG(DA830, EPWM1B, 13, 12, 0xf, 2, false) 68155c79a40SMark A. Greer MUX_CFG(DA830, EPWM1A, 13, 16, 0xf, 2, false) 68255c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_0, 13, 24, 0xf, 2, false) 68355c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_1, 13, 28, 0xf, 2, false) 68455c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_0, 13, 24, 0xf, 4, false) 68555c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_1, 13, 28, 0xf, 4, false) 68655c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_4, 13, 0, 0xf, 8, false) 68755c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_5, 13, 4, 0xf, 8, false) 68855c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_6, 13, 8, 0xf, 8, false) 68955c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_7, 13, 12, 0xf, 8, false) 69055c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_8, 13, 16, 0xf, 8, false) 69155c79a40SMark A. Greer MUX_CFG(DA830, GPIO4_9, 13, 20, 0xf, 8, false) 69255c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_0, 13, 24, 0xf, 8, false) 69355c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_1, 13, 28, 0xf, 8, false) 69455c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_2, 14, 0, 0xf, 1, false) 69555c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_3, 14, 4, 0xf, 1, false) 69655c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_4, 14, 8, 0xf, 1, false) 69755c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_5, 14, 12, 0xf, 1, false) 69855c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_6, 14, 16, 0xf, 1, false) 69955c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_7, 14, 20, 0xf, 1, false) 70055c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_8, 14, 24, 0xf, 1, false) 70155c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_9, 14, 28, 0xf, 1, false) 70255c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_2, 14, 0, 0xf, 2, false) 70355c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_3, 14, 4, 0xf, 2, false) 70455c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_4, 14, 8, 0xf, 2, false) 70555c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_5, 14, 12, 0xf, 2, false) 70655c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_6, 14, 16, 0xf, 2, false) 70755c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_DAT_7, 14, 20, 0xf, 2, false) 70855c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_8, 14, 24, 0xf, 2, false) 70955c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_9, 14, 28, 0xf, 2, false) 71055c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_2, 14, 0, 0xf, 4, false) 71155c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_3, 14, 4, 0xf, 4, false) 71255c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_4, 14, 8, 0xf, 4, false) 71355c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_5, 14, 12, 0xf, 4, false) 71455c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_6, 14, 16, 0xf, 4, false) 71555c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_7, 14, 20, 0xf, 4, false) 71655c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_8, 14, 24, 0xf, 4, false) 71755c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_9, 14, 28, 0xf, 4, false) 71855c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_2, 14, 0, 0xf, 8, false) 71955c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_3, 14, 4, 0xf, 8, false) 72055c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_4, 14, 8, 0xf, 8, false) 72155c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_5, 14, 12, 0xf, 8, false) 72255c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_6, 14, 16, 0xf, 8, false) 72355c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_7, 14, 20, 0xf, 8, false) 72455c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_8, 14, 24, 0xf, 8, false) 72555c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_9, 14, 28, 0xf, 8, false) 72655c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_10, 15, 0, 0xf, 1, false) 72755c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_11, 15, 4, 0xf, 1, false) 72855c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_12, 15, 8, 0xf, 1, false) 72955c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_13, 15, 12, 0xf, 1, false) 73055c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_14, 15, 16, 0xf, 1, false) 73155c79a40SMark A. Greer MUX_CFG(DA830, EMA_D_15, 15, 20, 0xf, 1, false) 73255c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_0, 15, 24, 0xf, 1, false) 73355c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_1, 15, 28, 0xf, 1, false) 73455c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_10, 15, 0, 0xf, 2, false) 73555c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_11, 15, 4, 0xf, 2, false) 73655c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_12, 15, 8, 0xf, 2, false) 73755c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_13, 15, 12, 0xf, 2, false) 73855c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_14, 15, 16, 0xf, 2, false) 73955c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HD_15, 15, 20, 0xf, 2, false) 74055c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_7, 15, 24, 0xf, 2, false) 74155c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_CLK, 15, 28, 0xf, 2, false) 74255c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_10, 15, 0, 0xf, 4, false) 74355c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_11, 15, 4, 0xf, 4, false) 74455c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_12, 15, 8, 0xf, 4, false) 74555c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_13, 15, 12, 0xf, 4, false) 74655c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_14, 15, 16, 0xf, 4, false) 74755c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_15, 15, 20, 0xf, 4, false) 74855c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HCNTL0, 15, 28, 0xf, 4, false) 74955c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_10, 15, 0, 0xf, 8, false) 75055c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_11, 15, 4, 0xf, 8, false) 75155c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_12, 15, 8, 0xf, 8, false) 75255c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_13, 15, 12, 0xf, 8, false) 75355c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_14, 15, 16, 0xf, 8, false) 75455c79a40SMark A. Greer MUX_CFG(DA830, GPIO0_15, 15, 20, 0xf, 8, false) 75555c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_0, 15, 24, 0xf, 8, false) 75655c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_1, 15, 28, 0xf, 8, false) 75755c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_2, 16, 0, 0xf, 1, false) 75855c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_3, 16, 4, 0xf, 1, false) 75955c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_4, 16, 8, 0xf, 1, false) 76055c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_5, 16, 12, 0xf, 1, false) 76155c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_6, 16, 16, 0xf, 1, false) 76255c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_7, 16, 20, 0xf, 1, false) 76355c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_8, 16, 24, 0xf, 1, false) 76455c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_9, 16, 28, 0xf, 1, false) 76555c79a40SMark A. Greer MUX_CFG(DA830, MMCSD_CMD, 16, 0, 0xf, 2, false) 76655c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_6, 16, 4, 0xf, 2, false) 76755c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_3, 16, 8, 0xf, 2, false) 76855c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_2, 16, 12, 0xf, 2, false) 76955c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_1, 16, 16, 0xf, 2, false) 77055c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_0, 16, 20, 0xf, 2, false) 77155c79a40SMark A. Greer MUX_CFG(DA830, LCD_PCLK, 16, 24, 0xf, 2, false) 77255c79a40SMark A. Greer MUX_CFG(DA830, LCD_HSYNC, 16, 28, 0xf, 2, false) 77355c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HCNTL1, 16, 0, 0xf, 4, false) 77455c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_2, 16, 0, 0xf, 8, false) 77555c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_3, 16, 4, 0xf, 8, false) 77655c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_4, 16, 8, 0xf, 8, false) 77755c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_5, 16, 12, 0xf, 8, false) 77855c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_6, 16, 16, 0xf, 8, false) 77955c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_7, 16, 20, 0xf, 8, false) 78055c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_8, 16, 24, 0xf, 8, false) 78155c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_9, 16, 28, 0xf, 8, false) 78255c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_10, 17, 0, 0xf, 1, false) 78355c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_11, 17, 4, 0xf, 1, false) 78455c79a40SMark A. Greer MUX_CFG(DA830, EMA_A_12, 17, 8, 0xf, 1, false) 78555c79a40SMark A. Greer MUX_CFG(DA830, EMA_BA_1, 17, 12, 0xf, 1, false) 78655c79a40SMark A. Greer MUX_CFG(DA830, EMA_BA_0, 17, 16, 0xf, 1, false) 78755c79a40SMark A. Greer MUX_CFG(DA830, EMA_CLK, 17, 20, 0xf, 1, false) 78855c79a40SMark A. Greer MUX_CFG(DA830, EMA_SDCKE, 17, 24, 0xf, 1, false) 78955c79a40SMark A. Greer MUX_CFG(DA830, NEMA_CAS, 17, 28, 0xf, 1, false) 79055c79a40SMark A. Greer MUX_CFG(DA830, LCD_VSYNC, 17, 0, 0xf, 2, false) 79155c79a40SMark A. Greer MUX_CFG(DA830, NLCD_AC_ENB_CS, 17, 4, 0xf, 2, false) 79255c79a40SMark A. Greer MUX_CFG(DA830, LCD_MCLK, 17, 8, 0xf, 2, false) 79355c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_5, 17, 12, 0xf, 2, false) 79455c79a40SMark A. Greer MUX_CFG(DA830, LCD_D_4, 17, 16, 0xf, 2, false) 79555c79a40SMark A. Greer MUX_CFG(DA830, OBSCLK, 17, 20, 0xf, 2, false) 79655c79a40SMark A. Greer MUX_CFG(DA830, NEMA_CS_4, 17, 28, 0xf, 2, false) 79755c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HHWIL, 17, 12, 0xf, 4, false) 79855c79a40SMark A. Greer MUX_CFG(DA830, AHCLKR2, 17, 20, 0xf, 4, false) 79955c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_10, 17, 0, 0xf, 8, false) 80055c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_11, 17, 4, 0xf, 8, false) 80155c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_12, 17, 8, 0xf, 8, false) 80255c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_13, 17, 12, 0xf, 8, false) 80355c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_14, 17, 16, 0xf, 8, false) 80455c79a40SMark A. Greer MUX_CFG(DA830, GPIO1_15, 17, 20, 0xf, 8, false) 80555c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_0, 17, 24, 0xf, 8, false) 80655c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_1, 17, 28, 0xf, 8, false) 80755c79a40SMark A. Greer MUX_CFG(DA830, NEMA_RAS, 18, 0, 0xf, 1, false) 80855c79a40SMark A. Greer MUX_CFG(DA830, NEMA_WE, 18, 4, 0xf, 1, false) 80955c79a40SMark A. Greer MUX_CFG(DA830, NEMA_CS_0, 18, 8, 0xf, 1, false) 81055c79a40SMark A. Greer MUX_CFG(DA830, NEMA_CS_2, 18, 12, 0xf, 1, false) 81155c79a40SMark A. Greer MUX_CFG(DA830, NEMA_CS_3, 18, 16, 0xf, 1, false) 81255c79a40SMark A. Greer MUX_CFG(DA830, NEMA_OE, 18, 20, 0xf, 1, false) 81355c79a40SMark A. Greer MUX_CFG(DA830, NEMA_WE_DQM_1, 18, 24, 0xf, 1, false) 81455c79a40SMark A. Greer MUX_CFG(DA830, NEMA_WE_DQM_0, 18, 28, 0xf, 1, false) 81555c79a40SMark A. Greer MUX_CFG(DA830, NEMA_CS_5, 18, 0, 0xf, 2, false) 81655c79a40SMark A. Greer MUX_CFG(DA830, UHPI_HRNW, 18, 4, 0xf, 2, false) 81755c79a40SMark A. Greer MUX_CFG(DA830, NUHPI_HAS, 18, 8, 0xf, 2, false) 81855c79a40SMark A. Greer MUX_CFG(DA830, NUHPI_HCS, 18, 12, 0xf, 2, false) 81955c79a40SMark A. Greer MUX_CFG(DA830, NUHPI_HDS1, 18, 20, 0xf, 2, false) 82055c79a40SMark A. Greer MUX_CFG(DA830, NUHPI_HDS2, 18, 24, 0xf, 2, false) 82155c79a40SMark A. Greer MUX_CFG(DA830, NUHPI_HINT, 18, 28, 0xf, 2, false) 82255c79a40SMark A. Greer MUX_CFG(DA830, AXR0_12, 18, 4, 0xf, 4, false) 82355c79a40SMark A. Greer MUX_CFG(DA830, AMUTE2, 18, 16, 0xf, 4, false) 82455c79a40SMark A. Greer MUX_CFG(DA830, AXR0_13, 18, 20, 0xf, 4, false) 82555c79a40SMark A. Greer MUX_CFG(DA830, AXR0_14, 18, 24, 0xf, 4, false) 82655c79a40SMark A. Greer MUX_CFG(DA830, AXR0_15, 18, 28, 0xf, 4, false) 82755c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_2, 18, 0, 0xf, 8, false) 82855c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_3, 18, 4, 0xf, 8, false) 82955c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_4, 18, 8, 0xf, 8, false) 83055c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_5, 18, 12, 0xf, 8, false) 83155c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_6, 18, 16, 0xf, 8, false) 83255c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_7, 18, 20, 0xf, 8, false) 83355c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_8, 18, 24, 0xf, 8, false) 83455c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_9, 18, 28, 0xf, 8, false) 83555c79a40SMark A. Greer MUX_CFG(DA830, EMA_WAIT_0, 19, 0, 0xf, 1, false) 83655c79a40SMark A. Greer MUX_CFG(DA830, NUHPI_HRDY, 19, 0, 0xf, 2, false) 83755c79a40SMark A. Greer MUX_CFG(DA830, GPIO2_10, 19, 0, 0xf, 8, false) 83855c79a40SMark A. Greer #endif 83955c79a40SMark A. Greer }; 84055c79a40SMark A. Greer 841bcad6dc3SAndi Kleen const short da830_emif25_pins[] __initconst = { 84255c79a40SMark A. Greer DA830_EMA_D_0, DA830_EMA_D_1, DA830_EMA_D_2, DA830_EMA_D_3, 84355c79a40SMark A. Greer DA830_EMA_D_4, DA830_EMA_D_5, DA830_EMA_D_6, DA830_EMA_D_7, 84455c79a40SMark A. Greer DA830_EMA_D_8, DA830_EMA_D_9, DA830_EMA_D_10, DA830_EMA_D_11, 84555c79a40SMark A. Greer DA830_EMA_D_12, DA830_EMA_D_13, DA830_EMA_D_14, DA830_EMA_D_15, 84655c79a40SMark A. Greer DA830_EMA_A_0, DA830_EMA_A_1, DA830_EMA_A_2, DA830_EMA_A_3, 84755c79a40SMark A. Greer DA830_EMA_A_4, DA830_EMA_A_5, DA830_EMA_A_6, DA830_EMA_A_7, 84855c79a40SMark A. Greer DA830_EMA_A_8, DA830_EMA_A_9, DA830_EMA_A_10, DA830_EMA_A_11, 84955c79a40SMark A. Greer DA830_EMA_A_12, DA830_EMA_BA_0, DA830_EMA_BA_1, DA830_EMA_CLK, 85055c79a40SMark A. Greer DA830_EMA_SDCKE, DA830_NEMA_CS_4, DA830_NEMA_CS_5, DA830_NEMA_WE, 85155c79a40SMark A. Greer DA830_NEMA_CS_0, DA830_NEMA_CS_2, DA830_NEMA_CS_3, DA830_NEMA_OE, 85255c79a40SMark A. Greer DA830_NEMA_WE_DQM_1, DA830_NEMA_WE_DQM_0, DA830_EMA_WAIT_0, 85355c79a40SMark A. Greer -1 85455c79a40SMark A. Greer }; 85555c79a40SMark A. Greer 856bcad6dc3SAndi Kleen const short da830_spi0_pins[] __initconst = { 85755c79a40SMark A. Greer DA830_SPI0_SOMI_0, DA830_SPI0_SIMO_0, DA830_SPI0_CLK, DA830_NSPI0_ENA, 85855c79a40SMark A. Greer DA830_NSPI0_SCS_0, 85955c79a40SMark A. Greer -1 86055c79a40SMark A. Greer }; 86155c79a40SMark A. Greer 862bcad6dc3SAndi Kleen const short da830_spi1_pins[] __initconst = { 86355c79a40SMark A. Greer DA830_SPI1_SOMI_0, DA830_SPI1_SIMO_0, DA830_SPI1_CLK, DA830_NSPI1_ENA, 86455c79a40SMark A. Greer DA830_NSPI1_SCS_0, 86555c79a40SMark A. Greer -1 86655c79a40SMark A. Greer }; 86755c79a40SMark A. Greer 868bcad6dc3SAndi Kleen const short da830_mmc_sd_pins[] __initconst = { 86955c79a40SMark A. Greer DA830_MMCSD_DAT_0, DA830_MMCSD_DAT_1, DA830_MMCSD_DAT_2, 87055c79a40SMark A. Greer DA830_MMCSD_DAT_3, DA830_MMCSD_DAT_4, DA830_MMCSD_DAT_5, 87155c79a40SMark A. Greer DA830_MMCSD_DAT_6, DA830_MMCSD_DAT_7, DA830_MMCSD_CLK, 87255c79a40SMark A. Greer DA830_MMCSD_CMD, 87355c79a40SMark A. Greer -1 87455c79a40SMark A. Greer }; 87555c79a40SMark A. Greer 876bcad6dc3SAndi Kleen const short da830_uart0_pins[] __initconst = { 87755c79a40SMark A. Greer DA830_NUART0_CTS, DA830_NUART0_RTS, DA830_UART0_RXD, DA830_UART0_TXD, 87855c79a40SMark A. Greer -1 87955c79a40SMark A. Greer }; 88055c79a40SMark A. Greer 881bcad6dc3SAndi Kleen const short da830_uart1_pins[] __initconst = { 88255c79a40SMark A. Greer DA830_UART1_RXD, DA830_UART1_TXD, 88355c79a40SMark A. Greer -1 88455c79a40SMark A. Greer }; 88555c79a40SMark A. Greer 886bcad6dc3SAndi Kleen const short da830_uart2_pins[] __initconst = { 88755c79a40SMark A. Greer DA830_UART2_RXD, DA830_UART2_TXD, 88855c79a40SMark A. Greer -1 88955c79a40SMark A. Greer }; 89055c79a40SMark A. Greer 891bcad6dc3SAndi Kleen const short da830_usb20_pins[] __initconst = { 89255c79a40SMark A. Greer DA830_USB0_DRVVBUS, DA830_USB_REFCLKIN, 89355c79a40SMark A. Greer -1 89455c79a40SMark A. Greer }; 89555c79a40SMark A. Greer 896bcad6dc3SAndi Kleen const short da830_usb11_pins[] __initconst = { 89755c79a40SMark A. Greer DA830_USB_REFCLKIN, 89855c79a40SMark A. Greer -1 89955c79a40SMark A. Greer }; 90055c79a40SMark A. Greer 901bcad6dc3SAndi Kleen const short da830_uhpi_pins[] __initconst = { 90255c79a40SMark A. Greer DA830_UHPI_HD_0, DA830_UHPI_HD_1, DA830_UHPI_HD_2, DA830_UHPI_HD_3, 90355c79a40SMark A. Greer DA830_UHPI_HD_4, DA830_UHPI_HD_5, DA830_UHPI_HD_6, DA830_UHPI_HD_7, 90455c79a40SMark A. Greer DA830_UHPI_HD_8, DA830_UHPI_HD_9, DA830_UHPI_HD_10, DA830_UHPI_HD_11, 90555c79a40SMark A. Greer DA830_UHPI_HD_12, DA830_UHPI_HD_13, DA830_UHPI_HD_14, DA830_UHPI_HD_15, 90655c79a40SMark A. Greer DA830_UHPI_HCNTL0, DA830_UHPI_HCNTL1, DA830_UHPI_HHWIL, DA830_UHPI_HRNW, 90755c79a40SMark A. Greer DA830_NUHPI_HAS, DA830_NUHPI_HCS, DA830_NUHPI_HDS1, DA830_NUHPI_HDS2, 90855c79a40SMark A. Greer DA830_NUHPI_HINT, DA830_NUHPI_HRDY, 90955c79a40SMark A. Greer -1 91055c79a40SMark A. Greer }; 91155c79a40SMark A. Greer 912bcad6dc3SAndi Kleen const short da830_cpgmac_pins[] __initconst = { 91355c79a40SMark A. Greer DA830_RMII_TXD_0, DA830_RMII_TXD_1, DA830_RMII_TXEN, DA830_RMII_CRS_DV, 91455c79a40SMark A. Greer DA830_RMII_RXD_0, DA830_RMII_RXD_1, DA830_RMII_RXER, DA830_MDIO_CLK, 91555c79a40SMark A. Greer DA830_MDIO_D, 91655c79a40SMark A. Greer -1 91755c79a40SMark A. Greer }; 91855c79a40SMark A. Greer 919bcad6dc3SAndi Kleen const short da830_emif3c_pins[] __initconst = { 92055c79a40SMark A. Greer DA830_EMB_SDCKE, DA830_EMB_CLK_GLUE, DA830_EMB_CLK, DA830_NEMB_CS_0, 92155c79a40SMark A. Greer DA830_NEMB_CAS, DA830_NEMB_RAS, DA830_NEMB_WE, DA830_EMB_BA_1, 92255c79a40SMark A. Greer DA830_EMB_BA_0, DA830_EMB_A_0, DA830_EMB_A_1, DA830_EMB_A_2, 92355c79a40SMark A. Greer DA830_EMB_A_3, DA830_EMB_A_4, DA830_EMB_A_5, DA830_EMB_A_6, 92455c79a40SMark A. Greer DA830_EMB_A_7, DA830_EMB_A_8, DA830_EMB_A_9, DA830_EMB_A_10, 92555c79a40SMark A. Greer DA830_EMB_A_11, DA830_EMB_A_12, DA830_NEMB_WE_DQM_3, 92655c79a40SMark A. Greer DA830_NEMB_WE_DQM_2, DA830_EMB_D_0, DA830_EMB_D_1, DA830_EMB_D_2, 92755c79a40SMark A. Greer DA830_EMB_D_3, DA830_EMB_D_4, DA830_EMB_D_5, DA830_EMB_D_6, 92855c79a40SMark A. Greer DA830_EMB_D_7, DA830_EMB_D_8, DA830_EMB_D_9, DA830_EMB_D_10, 92955c79a40SMark A. Greer DA830_EMB_D_11, DA830_EMB_D_12, DA830_EMB_D_13, DA830_EMB_D_14, 93055c79a40SMark A. Greer DA830_EMB_D_15, DA830_EMB_D_16, DA830_EMB_D_17, DA830_EMB_D_18, 93155c79a40SMark A. Greer DA830_EMB_D_19, DA830_EMB_D_20, DA830_EMB_D_21, DA830_EMB_D_22, 93255c79a40SMark A. Greer DA830_EMB_D_23, DA830_EMB_D_24, DA830_EMB_D_25, DA830_EMB_D_26, 93355c79a40SMark A. Greer DA830_EMB_D_27, DA830_EMB_D_28, DA830_EMB_D_29, DA830_EMB_D_30, 93455c79a40SMark A. Greer DA830_EMB_D_31, DA830_NEMB_WE_DQM_1, DA830_NEMB_WE_DQM_0, 93555c79a40SMark A. Greer -1 93655c79a40SMark A. Greer }; 93755c79a40SMark A. Greer 938bcad6dc3SAndi Kleen const short da830_mcasp0_pins[] __initconst = { 93955c79a40SMark A. Greer DA830_AHCLKX0, DA830_ACLKX0, DA830_AFSX0, 94055c79a40SMark A. Greer DA830_AHCLKR0, DA830_ACLKR0, DA830_AFSR0, DA830_AMUTE0, 94155c79a40SMark A. Greer DA830_AXR0_0, DA830_AXR0_1, DA830_AXR0_2, DA830_AXR0_3, 94255c79a40SMark A. Greer DA830_AXR0_4, DA830_AXR0_5, DA830_AXR0_6, DA830_AXR0_7, 94355c79a40SMark A. Greer DA830_AXR0_8, DA830_AXR0_9, DA830_AXR0_10, DA830_AXR0_11, 94455c79a40SMark A. Greer DA830_AXR0_12, DA830_AXR0_13, DA830_AXR0_14, DA830_AXR0_15, 94555c79a40SMark A. Greer -1 94655c79a40SMark A. Greer }; 94755c79a40SMark A. Greer 948bcad6dc3SAndi Kleen const short da830_mcasp1_pins[] __initconst = { 94955c79a40SMark A. Greer DA830_AHCLKX1, DA830_ACLKX1, DA830_AFSX1, 95055c79a40SMark A. Greer DA830_AHCLKR1, DA830_ACLKR1, DA830_AFSR1, DA830_AMUTE1, 95155c79a40SMark A. Greer DA830_AXR1_0, DA830_AXR1_1, DA830_AXR1_2, DA830_AXR1_3, 95255c79a40SMark A. Greer DA830_AXR1_4, DA830_AXR1_5, DA830_AXR1_6, DA830_AXR1_7, 95355c79a40SMark A. Greer DA830_AXR1_8, DA830_AXR1_9, DA830_AXR1_10, DA830_AXR1_11, 95455c79a40SMark A. Greer -1 95555c79a40SMark A. Greer }; 95655c79a40SMark A. Greer 957bcad6dc3SAndi Kleen const short da830_mcasp2_pins[] __initconst = { 95855c79a40SMark A. Greer DA830_AHCLKX2, DA830_ACLKX2, DA830_AFSX2, 95955c79a40SMark A. Greer DA830_AHCLKR2, DA830_ACLKR2, DA830_AFSR2, DA830_AMUTE2, 96055c79a40SMark A. Greer DA830_AXR2_0, DA830_AXR2_1, DA830_AXR2_2, DA830_AXR2_3, 96155c79a40SMark A. Greer -1 96255c79a40SMark A. Greer }; 96355c79a40SMark A. Greer 964bcad6dc3SAndi Kleen const short da830_i2c0_pins[] __initconst = { 96555c79a40SMark A. Greer DA830_I2C0_SDA, DA830_I2C0_SCL, 96655c79a40SMark A. Greer -1 96755c79a40SMark A. Greer }; 96855c79a40SMark A. Greer 969bcad6dc3SAndi Kleen const short da830_i2c1_pins[] __initconst = { 97055c79a40SMark A. Greer DA830_I2C1_SCL, DA830_I2C1_SDA, 97155c79a40SMark A. Greer -1 97255c79a40SMark A. Greer }; 97355c79a40SMark A. Greer 974bcad6dc3SAndi Kleen const short da830_lcdcntl_pins[] __initconst = { 97555c79a40SMark A. Greer DA830_LCD_D_0, DA830_LCD_D_1, DA830_LCD_D_2, DA830_LCD_D_3, 97655c79a40SMark A. Greer DA830_LCD_D_4, DA830_LCD_D_5, DA830_LCD_D_6, DA830_LCD_D_7, 97755c79a40SMark A. Greer DA830_LCD_D_8, DA830_LCD_D_9, DA830_LCD_D_10, DA830_LCD_D_11, 97855c79a40SMark A. Greer DA830_LCD_D_12, DA830_LCD_D_13, DA830_LCD_D_14, DA830_LCD_D_15, 97955c79a40SMark A. Greer DA830_LCD_PCLK, DA830_LCD_HSYNC, DA830_LCD_VSYNC, DA830_NLCD_AC_ENB_CS, 98055c79a40SMark A. Greer DA830_LCD_MCLK, 98155c79a40SMark A. Greer -1 98255c79a40SMark A. Greer }; 98355c79a40SMark A. Greer 984bcad6dc3SAndi Kleen const short da830_pwm_pins[] __initconst = { 98555c79a40SMark A. Greer DA830_ECAP0_APWM0, DA830_ECAP1_APWM1, DA830_EPWM0B, DA830_EPWM0A, 98655c79a40SMark A. Greer DA830_EPWMSYNCI, DA830_EPWMSYNC0, DA830_ECAP2_APWM2, DA830_EHRPWMGLUETZ, 98755c79a40SMark A. Greer DA830_EPWM2B, DA830_EPWM2A, DA830_EPWM1B, DA830_EPWM1A, 98855c79a40SMark A. Greer -1 98955c79a40SMark A. Greer }; 99055c79a40SMark A. Greer 991bcad6dc3SAndi Kleen const short da830_ecap0_pins[] __initconst = { 99255c79a40SMark A. Greer DA830_ECAP0_APWM0, 99355c79a40SMark A. Greer -1 99455c79a40SMark A. Greer }; 99555c79a40SMark A. Greer 996bcad6dc3SAndi Kleen const short da830_ecap1_pins[] __initconst = { 99755c79a40SMark A. Greer DA830_ECAP1_APWM1, 99855c79a40SMark A. Greer -1 99955c79a40SMark A. Greer }; 100055c79a40SMark A. Greer 1001bcad6dc3SAndi Kleen const short da830_ecap2_pins[] __initconst = { 100255c79a40SMark A. Greer DA830_ECAP2_APWM2, 100355c79a40SMark A. Greer -1 100455c79a40SMark A. Greer }; 100555c79a40SMark A. Greer 1006bcad6dc3SAndi Kleen const short da830_eqep0_pins[] __initconst = { 100755c79a40SMark A. Greer DA830_EQEP0I, DA830_EQEP0S, DA830_EQEP0A, DA830_EQEP0B, 100855c79a40SMark A. Greer -1 100955c79a40SMark A. Greer }; 101055c79a40SMark A. Greer 1011bcad6dc3SAndi Kleen const short da830_eqep1_pins[] __initconst = { 101255c79a40SMark A. Greer DA830_EQEP1I, DA830_EQEP1S, DA830_EQEP1A, DA830_EQEP1B, 101355c79a40SMark A. Greer -1 101455c79a40SMark A. Greer }; 101555c79a40SMark A. Greer 101655c79a40SMark A. Greer /* FIQ are pri 0-1; otherwise 2-7, with 7 lowest priority */ 101755c79a40SMark A. Greer static u8 da830_default_priorities[DA830_N_CP_INTC_IRQ] = { 101855c79a40SMark A. Greer [IRQ_DA8XX_COMMTX] = 7, 101955c79a40SMark A. Greer [IRQ_DA8XX_COMMRX] = 7, 102055c79a40SMark A. Greer [IRQ_DA8XX_NINT] = 7, 102155c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT0] = 7, 102255c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT1] = 7, 102355c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT2] = 7, 102455c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT3] = 7, 102555c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT4] = 7, 102655c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT5] = 7, 102755c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT6] = 7, 102855c79a40SMark A. Greer [IRQ_DA8XX_EVTOUT7] = 7, 102955c79a40SMark A. Greer [IRQ_DA8XX_CCINT0] = 7, 103055c79a40SMark A. Greer [IRQ_DA8XX_CCERRINT] = 7, 103155c79a40SMark A. Greer [IRQ_DA8XX_TCERRINT0] = 7, 103255c79a40SMark A. Greer [IRQ_DA8XX_AEMIFINT] = 7, 103355c79a40SMark A. Greer [IRQ_DA8XX_I2CINT0] = 7, 103455c79a40SMark A. Greer [IRQ_DA8XX_MMCSDINT0] = 7, 103555c79a40SMark A. Greer [IRQ_DA8XX_MMCSDINT1] = 7, 103655c79a40SMark A. Greer [IRQ_DA8XX_ALLINT0] = 7, 103755c79a40SMark A. Greer [IRQ_DA8XX_RTC] = 7, 103855c79a40SMark A. Greer [IRQ_DA8XX_SPINT0] = 7, 103955c79a40SMark A. Greer [IRQ_DA8XX_TINT12_0] = 7, 104055c79a40SMark A. Greer [IRQ_DA8XX_TINT34_0] = 7, 104155c79a40SMark A. Greer [IRQ_DA8XX_TINT12_1] = 7, 104255c79a40SMark A. Greer [IRQ_DA8XX_TINT34_1] = 7, 104355c79a40SMark A. Greer [IRQ_DA8XX_UARTINT0] = 7, 104455c79a40SMark A. Greer [IRQ_DA8XX_KEYMGRINT] = 7, 104555c79a40SMark A. Greer [IRQ_DA830_MPUERR] = 7, 104655c79a40SMark A. Greer [IRQ_DA8XX_CHIPINT0] = 7, 104755c79a40SMark A. Greer [IRQ_DA8XX_CHIPINT1] = 7, 104855c79a40SMark A. Greer [IRQ_DA8XX_CHIPINT2] = 7, 104955c79a40SMark A. Greer [IRQ_DA8XX_CHIPINT3] = 7, 105055c79a40SMark A. Greer [IRQ_DA8XX_TCERRINT1] = 7, 105155c79a40SMark A. Greer [IRQ_DA8XX_C0_RX_THRESH_PULSE] = 7, 105255c79a40SMark A. Greer [IRQ_DA8XX_C0_RX_PULSE] = 7, 105355c79a40SMark A. Greer [IRQ_DA8XX_C0_TX_PULSE] = 7, 105455c79a40SMark A. Greer [IRQ_DA8XX_C0_MISC_PULSE] = 7, 105555c79a40SMark A. Greer [IRQ_DA8XX_C1_RX_THRESH_PULSE] = 7, 105655c79a40SMark A. Greer [IRQ_DA8XX_C1_RX_PULSE] = 7, 105755c79a40SMark A. Greer [IRQ_DA8XX_C1_TX_PULSE] = 7, 105855c79a40SMark A. Greer [IRQ_DA8XX_C1_MISC_PULSE] = 7, 105955c79a40SMark A. Greer [IRQ_DA8XX_MEMERR] = 7, 106055c79a40SMark A. Greer [IRQ_DA8XX_GPIO0] = 7, 106155c79a40SMark A. Greer [IRQ_DA8XX_GPIO1] = 7, 106255c79a40SMark A. Greer [IRQ_DA8XX_GPIO2] = 7, 106355c79a40SMark A. Greer [IRQ_DA8XX_GPIO3] = 7, 106455c79a40SMark A. Greer [IRQ_DA8XX_GPIO4] = 7, 106555c79a40SMark A. Greer [IRQ_DA8XX_GPIO5] = 7, 106655c79a40SMark A. Greer [IRQ_DA8XX_GPIO6] = 7, 106755c79a40SMark A. Greer [IRQ_DA8XX_GPIO7] = 7, 106855c79a40SMark A. Greer [IRQ_DA8XX_GPIO8] = 7, 106955c79a40SMark A. Greer [IRQ_DA8XX_I2CINT1] = 7, 107055c79a40SMark A. Greer [IRQ_DA8XX_LCDINT] = 7, 107155c79a40SMark A. Greer [IRQ_DA8XX_UARTINT1] = 7, 107255c79a40SMark A. Greer [IRQ_DA8XX_MCASPINT] = 7, 107355c79a40SMark A. Greer [IRQ_DA8XX_ALLINT1] = 7, 107455c79a40SMark A. Greer [IRQ_DA8XX_SPINT1] = 7, 107555c79a40SMark A. Greer [IRQ_DA8XX_UHPI_INT1] = 7, 107655c79a40SMark A. Greer [IRQ_DA8XX_USB_INT] = 7, 107755c79a40SMark A. Greer [IRQ_DA8XX_IRQN] = 7, 107855c79a40SMark A. Greer [IRQ_DA8XX_RWAKEUP] = 7, 107955c79a40SMark A. Greer [IRQ_DA8XX_UARTINT2] = 7, 108055c79a40SMark A. Greer [IRQ_DA8XX_DFTSSINT] = 7, 108155c79a40SMark A. Greer [IRQ_DA8XX_EHRPWM0] = 7, 108255c79a40SMark A. Greer [IRQ_DA8XX_EHRPWM0TZ] = 7, 108355c79a40SMark A. Greer [IRQ_DA8XX_EHRPWM1] = 7, 108455c79a40SMark A. Greer [IRQ_DA8XX_EHRPWM1TZ] = 7, 108555c79a40SMark A. Greer [IRQ_DA830_EHRPWM2] = 7, 108655c79a40SMark A. Greer [IRQ_DA830_EHRPWM2TZ] = 7, 108755c79a40SMark A. Greer [IRQ_DA8XX_ECAP0] = 7, 108855c79a40SMark A. Greer [IRQ_DA8XX_ECAP1] = 7, 108955c79a40SMark A. Greer [IRQ_DA8XX_ECAP2] = 7, 109055c79a40SMark A. Greer [IRQ_DA830_EQEP0] = 7, 109155c79a40SMark A. Greer [IRQ_DA830_EQEP1] = 7, 109255c79a40SMark A. Greer [IRQ_DA830_T12CMPINT0_0] = 7, 109355c79a40SMark A. Greer [IRQ_DA830_T12CMPINT1_0] = 7, 109455c79a40SMark A. Greer [IRQ_DA830_T12CMPINT2_0] = 7, 109555c79a40SMark A. Greer [IRQ_DA830_T12CMPINT3_0] = 7, 109655c79a40SMark A. Greer [IRQ_DA830_T12CMPINT4_0] = 7, 109755c79a40SMark A. Greer [IRQ_DA830_T12CMPINT5_0] = 7, 109855c79a40SMark A. Greer [IRQ_DA830_T12CMPINT6_0] = 7, 109955c79a40SMark A. Greer [IRQ_DA830_T12CMPINT7_0] = 7, 110055c79a40SMark A. Greer [IRQ_DA830_T12CMPINT0_1] = 7, 110155c79a40SMark A. Greer [IRQ_DA830_T12CMPINT1_1] = 7, 110255c79a40SMark A. Greer [IRQ_DA830_T12CMPINT2_1] = 7, 110355c79a40SMark A. Greer [IRQ_DA830_T12CMPINT3_1] = 7, 110455c79a40SMark A. Greer [IRQ_DA830_T12CMPINT4_1] = 7, 110555c79a40SMark A. Greer [IRQ_DA830_T12CMPINT5_1] = 7, 110655c79a40SMark A. Greer [IRQ_DA830_T12CMPINT6_1] = 7, 110755c79a40SMark A. Greer [IRQ_DA830_T12CMPINT7_1] = 7, 110855c79a40SMark A. Greer [IRQ_DA8XX_ARMCLKSTOPREQ] = 7, 110955c79a40SMark A. Greer }; 111055c79a40SMark A. Greer 111155c79a40SMark A. Greer static struct map_desc da830_io_desc[] = { 111255c79a40SMark A. Greer { 111355c79a40SMark A. Greer .virtual = IO_VIRT, 111455c79a40SMark A. Greer .pfn = __phys_to_pfn(IO_PHYS), 111555c79a40SMark A. Greer .length = IO_SIZE, 111655c79a40SMark A. Greer .type = MT_DEVICE 111755c79a40SMark A. Greer }, 111855c79a40SMark A. Greer { 111955c79a40SMark A. Greer .virtual = DA8XX_CP_INTC_VIRT, 112055c79a40SMark A. Greer .pfn = __phys_to_pfn(DA8XX_CP_INTC_BASE), 112155c79a40SMark A. Greer .length = DA8XX_CP_INTC_SIZE, 112255c79a40SMark A. Greer .type = MT_DEVICE 112355c79a40SMark A. Greer }, 112455c79a40SMark A. Greer }; 112555c79a40SMark A. Greer 1126e4c822c7SCyril Chemparathy static u32 da830_psc_bases[] = { DA8XX_PSC0_BASE, DA8XX_PSC1_BASE }; 112755c79a40SMark A. Greer 112855c79a40SMark A. Greer /* Contents of JTAG ID register used to identify exact cpu type */ 112955c79a40SMark A. Greer static struct davinci_id da830_ids[] = { 113055c79a40SMark A. Greer { 113155c79a40SMark A. Greer .variant = 0x0, 113255c79a40SMark A. Greer .part_no = 0xb7df, 113355c79a40SMark A. Greer .manufacturer = 0x017, /* 0x02f >> 1 */ 113455c79a40SMark A. Greer .cpu_id = DAVINCI_CPU_ID_DA830, 1135f2024a99SKevin Hilman .name = "da830/omap-l137 rev1.0", 1136f2024a99SKevin Hilman }, 1137f2024a99SKevin Hilman { 1138f2024a99SKevin Hilman .variant = 0x8, 1139f2024a99SKevin Hilman .part_no = 0xb7df, 1140f2024a99SKevin Hilman .manufacturer = 0x017, 1141f2024a99SKevin Hilman .cpu_id = DAVINCI_CPU_ID_DA830, 1142f2024a99SKevin Hilman .name = "da830/omap-l137 rev1.1", 1143f2024a99SKevin Hilman }, 1144f2024a99SKevin Hilman { 1145f2024a99SKevin Hilman .variant = 0x9, 1146f2024a99SKevin Hilman .part_no = 0xb7df, 1147f2024a99SKevin Hilman .manufacturer = 0x017, 1148f2024a99SKevin Hilman .cpu_id = DAVINCI_CPU_ID_DA830, 1149f2024a99SKevin Hilman .name = "da830/omap-l137 rev2.0", 115055c79a40SMark A. Greer }, 115155c79a40SMark A. Greer }; 115255c79a40SMark A. Greer 115355c79a40SMark A. Greer static struct davinci_timer_instance da830_timer_instance[2] = { 115455c79a40SMark A. Greer { 11551bcd38adSCyril Chemparathy .base = DA8XX_TIMER64P0_BASE, 115655c79a40SMark A. Greer .bottom_irq = IRQ_DA8XX_TINT12_0, 115755c79a40SMark A. Greer .top_irq = IRQ_DA8XX_TINT34_0, 115855c79a40SMark A. Greer .cmp_off = DA830_CMP12_0, 115955c79a40SMark A. Greer .cmp_irq = IRQ_DA830_T12CMPINT0_0, 116055c79a40SMark A. Greer }, 116155c79a40SMark A. Greer { 11621bcd38adSCyril Chemparathy .base = DA8XX_TIMER64P1_BASE, 116355c79a40SMark A. Greer .bottom_irq = IRQ_DA8XX_TINT12_1, 116455c79a40SMark A. Greer .top_irq = IRQ_DA8XX_TINT34_1, 116555c79a40SMark A. Greer .cmp_off = DA830_CMP12_0, 116655c79a40SMark A. Greer .cmp_irq = IRQ_DA830_T12CMPINT0_1, 116755c79a40SMark A. Greer }, 116855c79a40SMark A. Greer }; 116955c79a40SMark A. Greer 117055c79a40SMark A. Greer /* 117155c79a40SMark A. Greer * T0_BOT: Timer 0, bottom : Used for clock_event & clocksource 117255c79a40SMark A. Greer * T0_TOP: Timer 0, top : Used by DSP 117355c79a40SMark A. Greer * T1_BOT, T1_TOP: Timer 1, bottom & top: Used for watchdog timer 117455c79a40SMark A. Greer */ 117555c79a40SMark A. Greer static struct davinci_timer_info da830_timer_info = { 117655c79a40SMark A. Greer .timers = da830_timer_instance, 117755c79a40SMark A. Greer .clockevent_id = T0_BOT, 117855c79a40SMark A. Greer .clocksource_id = T0_BOT, 117955c79a40SMark A. Greer }; 118055c79a40SMark A. Greer 118155c79a40SMark A. Greer static struct davinci_soc_info davinci_soc_info_da830 = { 118255c79a40SMark A. Greer .io_desc = da830_io_desc, 118355c79a40SMark A. Greer .io_desc_num = ARRAY_SIZE(da830_io_desc), 11843347db83SCyril Chemparathy .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, 118555c79a40SMark A. Greer .ids = da830_ids, 118655c79a40SMark A. Greer .ids_num = ARRAY_SIZE(da830_ids), 118755c79a40SMark A. Greer .cpu_clks = da830_clks, 118855c79a40SMark A. Greer .psc_bases = da830_psc_bases, 118955c79a40SMark A. Greer .psc_bases_num = ARRAY_SIZE(da830_psc_bases), 1190779b0d53SCyril Chemparathy .pinmux_base = DA8XX_SYSCFG0_BASE + 0x120, 119155c79a40SMark A. Greer .pinmux_pins = da830_pins, 119255c79a40SMark A. Greer .pinmux_pins_num = ARRAY_SIZE(da830_pins), 1193bd808947SCyril Chemparathy .intc_base = DA8XX_CP_INTC_BASE, 119455c79a40SMark A. Greer .intc_type = DAVINCI_INTC_TYPE_CP_INTC, 119555c79a40SMark A. Greer .intc_irq_prios = da830_default_priorities, 119655c79a40SMark A. Greer .intc_irq_num = DA830_N_CP_INTC_IRQ, 119755c79a40SMark A. Greer .timer_info = &da830_timer_info, 1198686b634aSCyril Chemparathy .gpio_type = GPIO_TYPE_DAVINCI, 1199b8d44293SCyril Chemparathy .gpio_base = DA8XX_GPIO_BASE, 120055c79a40SMark A. Greer .gpio_num = 128, 120155c79a40SMark A. Greer .gpio_irq = IRQ_DA8XX_GPIO0, 120255c79a40SMark A. Greer .serial_dev = &da8xx_serial_device, 120355c79a40SMark A. Greer .emac_pdata = &da8xx_emac_pdata, 120455c79a40SMark A. Greer }; 120555c79a40SMark A. Greer 120655c79a40SMark A. Greer void __init da830_init(void) 120755c79a40SMark A. Greer { 120855c79a40SMark A. Greer davinci_common_init(&davinci_soc_info_da830); 1209bcd6a1c6SCyril Chemparathy 1210bcd6a1c6SCyril Chemparathy da8xx_syscfg0_base = ioremap(DA8XX_SYSCFG0_BASE, SZ_4K); 1211bcd6a1c6SCyril Chemparathy WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module"); 121255c79a40SMark A. Greer } 1213