diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-21 14:28:45 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-21 14:28:45 +0200 |
commit | c5c5ee950b50abc9ed2e449dc26ba686496dffc9 (patch) | |
tree | 9a7ac706097c790369e1d5e4a5d89a0575c76f02 /arch | |
parent | 60418f0bed0f16ce41b62207122099f10af9ac0d (diff) |
colibri_vf50: iomux: re-work pin muxing
Re-work pin muxing:
- FTM aka PWM without open drain enable
- DSPI1
- USBH_PEN, USBC_DET and USB_OC
- EXT_AUDIO_MCLK
- clean-up touchscreen pins
- BL_ON
- UART0 RTS/CTS and UART2
NAND pins are still missing (e.g. rely on U-Boot already having
done their configuration.
While at it clean-up includes as well.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mvf/board-colibri_vf50.c | 145 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/iomux-mvf.h | 129 |
2 files changed, 183 insertions, 91 deletions
diff --git a/arch/arm/mach-mvf/board-colibri_vf50.c b/arch/arm/mach-mvf/board-colibri_vf50.c index 2eecc72ba2fc..a3099f8aaffe 100644 --- a/arch/arm/mach-mvf/board-colibri_vf50.c +++ b/arch/arm/mach-mvf/board-colibri_vf50.c @@ -28,23 +28,10 @@ #include <linux/clk.h> #include <linux/platform_device.h> #include <linux/fsl_devices.h> -#include <linux/smsc911x.h> #include <linux/spi/spi.h> -#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE) -#include <linux/spi/flash.h> -#else -#include <linux/mtd/physmap.h> -#endif #include <linux/i2c.h> -#include <linux/i2c/pca953x.h> -#include <linux/ata.h> -#include <linux/mtd/mtd.h> -#include <linux/mtd/map.h> -#include <linux/mtd/partitions.h> #include <linux/pmic_external.h> #include <linux/pmic_status.h> -#include <linux/ipu.h> -#include <linux/mxcfb.h> #include <linux/pwm_backlight.h> #include <linux/leds_pwm.h> #include <linux/fec.h> @@ -59,19 +46,10 @@ #include <mach/common.h> #include <mach/hardware.h> -#include <mach/mxc_dvfs.h> #include <mach/memory.h> #include <mach/iomux-mvf.h> -#include <mach/imx-uart.h> #include <mach/spi-mvf.h> -#include <mach/viv_gpu.h> -#include <mach/ahci_sata.h> -#include <mach/ipu-v3.h> -#include <mach/mxc_hdmi.h> #include <mach/mxc_asrc.h> -#include <mach/mipi_dsi.h> -#include <mach/mipi_csi2.h> -#include <mach/fsl_l2_switch.h> #include <mach/mxc.h> #include <mach/colibri-ts.h> #include <asm/irq.h> @@ -101,19 +79,22 @@ static iomux_v3_cfg_t mvf600_pads[] = { MVF600_PAD36_PTB14__I2C0_SCL, MVF600_PAD37_PTB15__I2C0_SDA, -#if 0 +#if 0 /* optional secondary pinmux */ + /* CAN0 */ + MVF600_PAD36_PTB14__CAN0_RX, /* conflicts with MVF600_PAD36_PTB14__I2C0_SCL */ + MVF600_PAD37_PTB15__CAN0_TX, /* conflicts with MVF600_PAD37_PTB15__I2C0_SDA */ + /*CAN1*/ - MVF600_PAD38_PTB16__CAN1_RX, - MVF600_PAD39_PTB17__CAN1_TX, + MVF600_PAD38_PTB16__CAN1_RX, /* conflicts with MVF600_PAD38_PTB16_GPIO */ + MVF600_PAD39_PTB17__CAN1_TX, /* conflicts with MVF600_PAD39_PTB17_GPIO */ +#endif /* DSPI1: SSP on SODIMM pin 86, 88, 90 and 92 */ MVF600_PAD84_PTD5__DSPI1_PCS0, MVF600_PAD85_PTD6__DSPI1_SIN, MVF600_PAD86_PTD7__DSPI1_SOUT, MVF600_PAD87_PTD8__DSPI1_SCK, -#endif -#if defined(CONFIG_FEC1) || defined(CONFIG_FSL_L2_SWITCH) /* FEC1: Ethernet */ MVF600_PAD0_PTA6__RMII_CLKOUT, MVF600_PAD54_PTC9__RMII1_MDC, @@ -125,33 +106,40 @@ static iomux_v3_cfg_t mvf600_pads[] = { MVF600_PAD60_PTC15__RMII1_TXD1, MVF600_PAD61_PTC16__RMII1_TXD0, MVF600_PAD62_PTC17__RMII1_TXEN, -#endif - /* SAI2: AC97 */ + /* SAI2: AC97/Touchscreen */ #if 0 // Those pins are disabled on Colibri VP50 since touchscreen uses them... + MVF600_PAD4_PTA11_WM9715L_PENDOWN, /* carefull also used for JTAG JTMS/SWDIO */ + MVF600_PAD5_PTA12_EXT_AUDIO_MCLK, MVF600_PAD6_PTA16_SAI2_TX_BCLK, MVF600_PAD8_PTA18_SAI2_TX_DATA, MVF600_PAD9_PTA19_SAI2_TX_SYNC, MVF600_PAD12_PTA22_SAI2_RX_DATA, MVF600_PAD13_PTA23_SAI2_RX_SYNC, -// MVF600_PAD5_PTA12_EXT_AUDIO_MCLK, -// MVF600_PAD24_PTB2 WM9715L GENIRQ + MVF600_PAD24_PTB2_WM9715L_GENIRQ, #endif + /* Touchscreen */ MVF600_PAD4_PTA11, MVF600_PAD5_PTA12, MVF600_PAD6_PTA16_ADC1_SE0, - MVF600_PAD24_PTB2_ADC1_SE2, - MVF600_PAD8_PTA18_ADC0_SE0, - MVF600_PAD9_PTA19_ADC0_SE1, MVF600_PAD12_PTA22, MVF600_PAD13_PTA23, + MVF600_PAD8_PTA18_ADC0_SE0, + MVF600_PAD9_PTA19_ADC0_SE1, + MVF600_PAD24_PTB2_ADC1_SE2, + + /* ADC */ +//ADC0_SE8 +//ADC0_SE9 +//ADC1_SE8 +//ADC1_SE9 /* DCU0: Display */ MVF600_PAD105_PTE0_DCU0_HSYNC, MVF600_PAD106_PTE1_DCU0_VSYNC, MVF600_PAD107_PTE2_DCU0_PCLK, - MVF600_PAD109_PTE4_DCU0_DE, + MVF600_PAD109_PTE4_DCU0_DE, /* L_BIAS */ MVF600_PAD110_PTE5_DCU0_R0, MVF600_PAD111_PTE6_DCU0_R1, MVF600_PAD112_PTE7_DCU0_R2, @@ -176,42 +164,40 @@ static iomux_v3_cfg_t mvf600_pads[] = { MVF600_PAD131_PTE26_DCU0_B5, MVF600_PAD132_PTE27_DCU0_B6, MVF600_PAD133_PTE28_DCU0_B7, + MVF600_PAD45_PTC0_BL_ON, /* UART1: UART_C */ MVF600_PAD26_PTB4_UART1_TX, MVF600_PAD27_PTB5_UART1_RX, /* UART0: UART_A */ +//MVF600_PAD10_PTA20_UART0_DTR, +//MVF600_PAD11_PTA21_UART0_DCD, +//MVF600_PAD20_PTA30_UART0_RI, +//MVF600_PAD21_PTA31_UART0_DSR, MVF600_PAD32_PTB10_UART0_TX, MVF600_PAD33_PTB11_UART0_RX, + MVF600_PAD34_PTB12_UART0_RTS, + MVF600_PAD35_PTB13_UART0_CTS, -#if 0 /* UART2: UART_B */ MVF600_PAD79_PTD0_UART2_TX, MVF600_PAD80_PTD1_UART2_RX, + MVF600_PAD81_PTD2_UART2_RTS, + MVF600_PAD82_PTD3_UART2_CTS, /* USB */ MVF600_PAD83_PTD4__USBH_PEN, - MVF600_PAD102_PTC29__USBC_DET, + MVF600_PAD102_PTC29__USBC_DET, /* multiplexed USB0_VBUS_DET */ MVF600_PAD108_PTE3__USB_OC, -#endif - - /* - * PTB6 & PTB7 are commented out as they conflict with uart2 - * which is the MQX default console (e.g for printf) - */ - /* MVF600_PAD28_PTB6_FTM0CH6, */ - /* MVF600_PAD29_PTB7_FTM0CH7, */ - MVF600_PAD22_PTB0_FTM0CH0, //PWM<A> multiplexed + /* PWM */ + MVF600_PAD22_PTB0_FTM0CH0, //PWM<A> multiplexed MVF600_PAD52_PTC7_VID7 MVF600_PAD23_PTB1_FTM0CH1, //PWM<c> MVF600_PAD30_PTB8_FTM1CH0, //PWM<B> - MVF600_PAD31_PTB9_FTM1CH1, //PWM<D> + MVF600_PAD31_PTB9_FTM1CH1, //PWM<D> multiplexed MVF600_PAD51_PTC6_VID6 #if 0 - /* Touch Screen */ - MVF600_PAD4_PTA11_TS_IRQ, - /* NAND */ MVF600_PAD71_PTD23_NF_IO7, MVF600_PAD72_PTD22_NF_IO6, @@ -228,6 +214,60 @@ static iomux_v3_cfg_t mvf600_pads[] = { MVF600_PAD100_PTC27_NF_ALE, MVF600_PAD101_PTC28_NF_CLE, #endif + +//MVF600_PAD2_PTA9_GPIO, /* carefull also used for JTAG JTDI, may be used for RMII_CLKOUT */ +//MVF600_PAD7_PTA17_GPIO, +//MVF600_PAD38_PTB16_GPIO, +//MVF600_PAD39_PTB17_GPIO, +//MVF600_PAD40_PTB18_GPIO, +//MVF600_PAD41_PTB19_GPIO, +//MVF600_PAD43_PTB21_GPIO, /* CAN_INT */ +//MVF600_PAD44_PTB22_GPIO, +//MVF600_PAD63_PTD31_GPIO, +//MVF600_PAD65_PTD29_GPIO, +//MVF600_PAD66_PTD28_GPIO, +//MVF600_PAD67_PTD27_GPIO, +//MVF600_PAD68_PTD26_GPIO, +//MVF600_PAD69_PTD25_GPIO, +//MVF600_PAD70_PTD24_GPIO, +//MVF600_PAD88_PTD9_GPIO, +//MVF600_PAD89_PTD10_GPIO, +//MVF600_PAD90_PTD11_GPIO, +//MVF600_PAD92_PTD13_GPIO, +//MVF600_PAD93_PTB23_GPIO, +//MVF600_PAD96_PTB26_GPIO, +//MVF600_PAD98_PTB28_GPIO, +//MVF600_PAD103_PTC30_GPIO, + +//optional secondary pinmux +//MVF600_PAD28_PTB6_VIDHSYNC, +//MVF600_PAD29_PTB7_VIDVSYNC, +//MVF600_PAD46_PTC1_VID1, +//MVF600_PAD47_PTC2_VID2, +//MVF600_PAD48_PTC3_VID3, +//MVF600_PAD49_PTC4_VID4, +//MVF600_PAD50_PTC5_VID5, +//MVF600_PAD51_PTC6_VID6, /* multiplexed MVF600_PAD31_PTB9_FTM1CH1 */ +//MVF600_PAD52_PTC7_VID7, /* multiplexed MVF600_PAD22_PTB0_FTM0CH0 */ +//MVF600_PAD53_PTC8_VID8, +//MVF600_PAD64_PTD30_VID10, +//MVF600_PAD91_PTD12_VID, /* VIDMCLK? */ +//MVF600_PAD134_PTA7_VIDPCLK, + +//MVF600_PAD104_PTC31_ADC1_SE5, /* nVDD_FAULT/SENSE */ +//MVF600_PAD25_PTB3_ADC1_SE3, /* nBATT_FAULT/SENSE */ + +//VADCSE0 +//VADCSE1 +//VADCSE2 +//VADCSE3 + +//EXT_TAMPER0 +//EXT_TAMPER1 +//EXT_TAMPER2/EXT_WM0_TAMPER_IN +//EXT_TAMPER3/EXT_WM0_TAMPER_OUT +//EXT_TAMPER4/EXT_WM1_TAMPER_IN +//EXT_TAMPER5/EXT_WM1_TAMPER_OUT }; static struct imxuart_platform_data mvf_uart0_pdata = { @@ -481,11 +521,10 @@ static void __init mvf_board_init(void) static void __init mvf_timer_init(void) { -#if 1 struct clk *uart_clk; uart_clk = clk_get_sys("mvf-uart.0", NULL); early_console_setup(MVF_UART0_BASE_ADDR, uart_clk); -#endif + mvf_clocks_init(32768, 24000000, 0, 0); } @@ -499,8 +538,8 @@ static struct sys_timer mxc_timer = { MACHINE_START(COLIBRI_VF50, "Toradex Colibri VF50 Module") .boot_params = MVF_PHYS_OFFSET + 0x100, .fixup = fixup_mxc_board, - .map_io = mvf_map_io, .init_irq = mvf_init_irq, .init_machine = mvf_board_init, + .map_io = mvf_map_io, .timer = &mxc_timer, MACHINE_END diff --git a/arch/arm/plat-mxc/include/mach/iomux-mvf.h b/arch/arm/plat-mxc/include/mach/iomux-mvf.h index 0d1ff6abb048..cfbc24b8fa8e 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mvf.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mvf.h @@ -77,7 +77,7 @@ typedef enum iomux_config { PAD_CTL_DSE_25ohm) #define MVF600_FTM0_CH_CTRL (PAD_CTL_SPEED_LOW | PAD_CTL_OBE_ENABLE | \ - PAD_CTL_ODE | PAD_CTL_DSE_25ohm) + PAD_CTL_DSE_25ohm) #define MVF600_FTM1_CH_CTRL (PAD_CTL_SPEED_LOW | PAD_CTL_OBE_ENABLE | \ PAD_CTL_DSE_25ohm) /*SDHC1*/ @@ -129,6 +129,20 @@ typedef enum iomux_config { IOMUX_PAD(0x00B0, 0x00B0, 1, 0x0000, 0, \ MVF600_DSPI_PAD_CTRL | PAD_CTL_OBE_ENABLE) +/* DSPI1 */ +#define MVF600_PAD84_PTD5__DSPI1_PCS0 \ + IOMUX_PAD(0x0150, 0x0150, 3, 0x0000, 0, \ + MVF600_DSPI_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD85_PTD6__DSPI1_SIN \ + IOMUX_PAD(0x0154, 0x0154, 3, 0x0000, 0, \ + MVF600_DSPI_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD86_PTD7__DSPI1_SOUT \ + IOMUX_PAD(0x0158, 0x0158, 3, 0x0000, 0, \ + MVF600_DSPI_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD87_PTD8__DSPI1_SCK \ + IOMUX_PAD(0x015C, 0x015C, 3, 0x0000, 0, \ + MVF600_DSPI_PAD_CTRL | PAD_CTL_OBE_ENABLE) + /*FEC0*/ #define MVF600_PAD0_PTA6__RMII_CLKIN \ IOMUX_PAD(0x0000, 0x0000, 2, 0x02F0, 0, \ @@ -195,12 +209,21 @@ typedef enum iomux_config { MVF600_ENET_PAD_CTRL | PAD_CTL_OBE_ENABLE) /*USB0/1 VBUS, using the GPIO*/ +#define MVF600_PAD83_PTD4__USBH_PEN \ + IOMUX_PAD(0x014C, 0x014C, 0, 0x0000, 0, \ + MVF600_GPIO_GENERAL_CTRL) #define MVF600_PAD85_PTD6__USB0_VBUS_EN \ IOMUX_PAD(0x0154, 0x0154, 0, 0x0000, 0, \ MVF600_GPIO_GENERAL_CTRL) #define MVF600_PAD92_PTD13__USB1_VBUS_EN \ IOMUX_PAD(0x0170, 0x0170, 0, 0x0000, 0, \ MVF600_GPIO_GENERAL_CTRL) +#define MVF600_PAD102_PTC29__USBC_DET \ + IOMUX_PAD(0x0198, 0x0198, 0, 0x0000, 0, \ + MVF600_GPIO_GENERAL_CTRL) +#define MVF600_PAD108_PTE3__USB_OC \ + IOMUX_PAD(0x01B0, 0x01B0, 0, 0x0000, 0, \ + MVF600_GPIO_GENERAL_CTRL) /*ESAI0(share with FEC1)*/ #define MVF600_PAD54_PTC9__ESAI_SCKT \ @@ -230,6 +253,9 @@ typedef enum iomux_config { IOMUX_PAD(0x0138, 0x0138, 3, 0x0324, 1, MVF600_ESAI_PAD_CTRL) /*SAI2*/ +#define MVF600_PAD5_PTA12_EXT_AUDIO_MCLK \ + IOMUX_PAD(0x0014, 0x0014, 2, 0x02ec, 2, \ + MVF600_SAI_PAD_CTRL | PAD_CTL_IBE_ENABLE) #define MVF600_PAD6_PTA16_SAI2_TX_BCLK \ IOMUX_PAD(0x0018, 0x0018, 5, 0x0370, 0, \ MVF600_SAI_PAD_CTRL | PAD_CTL_IBE_ENABLE) @@ -252,46 +278,11 @@ typedef enum iomux_config { IOMUX_PAD(0x00A0, 0x00A0, 2, 0x02ec, 2, \ MVF600_SAI_PAD_CTRL | PAD_CTL_IBE_ENABLE) -/*Touchscreen*/ -#define MVF600_PAD4_PTA11 \ - IOMUX_PAD(0x0010, 0x0010, 0, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) -#define MVF600_PAD5_PTA12 \ - IOMUX_PAD(0x0014, 0x0014, 0, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) - -#define MVF600_PAD6_PTA16_ADC1_SE0 \ - IOMUX_PAD(0x0018, 0x0018, 3, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) -#define MVF600_PAD24_PTB2_ADC1_SE2 \ - IOMUX_PAD(0x0060, 0x0060, 2, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) -#define MVF600_PAD8_PTA18_ADC0_SE0 \ - IOMUX_PAD(0x0020, 0x0020, 2, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) -#define MVF600_PAD9_PTA19_ADC0_SE1 \ - IOMUX_PAD(0x0024, 0x0024, 2, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) - -#define MVF600_PAD12_PTA22 \ - IOMUX_PAD(0x0030, 0x0030, 0, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) -#define MVF600_PAD13_PTA23 \ - IOMUX_PAD(0x0034, 0x0034, 0, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) - -/*Touchscreen touch detection*/ -#define MVF600_PAD8_PTA18 \ - IOMUX_PAD(0x0020, 0x0020, 0, 0x0370, 0, \ - MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) -#define MVF600_PAD9_PTA19 \ - IOMUX_PAD(0x0024, 0x0024, 0, 0x0370, 0, \ - MVF600_GPIO_GENERAL_CTRL | PAD_CTL_IBE_ENABLE) - - /*DCU0*/ #define MVF600_PAD30_PTB8_LCD_ENABLE \ IOMUX_PAD(0x78, 0x78, 0, 0x0000, 0, MVF600_DCU_PAD_CTRL) +#define MVF600_PAD45_PTC0_BL_ON \ + IOMUX_PAD(0x00B4, 0x00B4, 0, 0x0000, 0, MVF600_GPIO_GENERAL_CTRL) #define MVF600_PAD105_PTE0_DCU0_HSYNC \ IOMUX_PAD(0x01A4, 0x01A4, 1, 0x0000, 0, MVF600_DCU_PAD_CTRL) #define MVF600_PAD106_PTE1_DCU0_VSYNC \ @@ -357,12 +348,33 @@ typedef enum iomux_config { IOMUX_PAD(0x006C, 0x006C, 2, 0x037C, 0, \ MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) +/* UART0 */ #define MVF600_PAD32_PTB10_UART0_TX \ IOMUX_PAD(0x0080, 0x0080, 1, 0x0000, 0, \ MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) #define MVF600_PAD33_PTB11_UART0_RX \ IOMUX_PAD(0x0084, 0x0084, 1, 0x0000, 0, \ MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD34_PTB12_UART0_RTS \ + IOMUX_PAD(0x0088, 0x0088, 1, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD35_PTB13_UART0_CTS \ + IOMUX_PAD(0x008C, 0x008C, 1, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +/* UART2 */ +#define MVF600_PAD79_PTD0_UART2_TX \ + IOMUX_PAD(0x013C, 0x013C, 2, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD80_PTD1_UART2_RX \ + IOMUX_PAD(0x0140, 0x0140, 2, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD81_PTD2_UART2_RTS \ + IOMUX_PAD(0x0144, 0x0144, 2, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD82_PTD3_UART2_CTS \ + IOMUX_PAD(0x0148, 0x0148, 2, 0x0000, 0, \ + MVF600_UART_PAD_CTRL | PAD_CTL_IBE_ENABLE) /* FlexTimer channel pin */ #define MVF600_PAD22_PTB0_FTM0CH0 \ @@ -384,9 +396,50 @@ typedef enum iomux_config { IOMUX_PAD(0x007C, 0x007C, 1, 0x0330, 0, MVF600_FTM1_CH_CTRL) /* Touch Screen */ +#define MVF600_PAD4_PTA11 \ + IOMUX_PAD(0x0010, 0x0010, 0, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD5_PTA12 \ + IOMUX_PAD(0x0014, 0x0014, 0, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) + +#define MVF600_PAD6_PTA16_ADC1_SE0 \ + IOMUX_PAD(0x0018, 0x0018, 3, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD24_PTB2_ADC1_SE2 \ + IOMUX_PAD(0x0060, 0x0060, 2, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD8_PTA18_ADC0_SE0 \ + IOMUX_PAD(0x0020, 0x0020, 2, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD9_PTA19_ADC0_SE1 \ + IOMUX_PAD(0x0024, 0x0024, 2, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) + +#define MVF600_PAD12_PTA22 \ + IOMUX_PAD(0x0030, 0x0030, 0, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) +#define MVF600_PAD13_PTA23 \ + IOMUX_PAD(0x0034, 0x0034, 0, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_OBE_ENABLE) + +/*Touchscreen touch detection*/ +#define MVF600_PAD8_PTA18 \ + IOMUX_PAD(0x0020, 0x0020, 0, 0x0370, 0, \ + MVF600_TS_PAD_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD9_PTA19 \ + IOMUX_PAD(0x0024, 0x0024, 0, 0x0370, 0, \ + MVF600_GPIO_GENERAL_CTRL | PAD_CTL_IBE_ENABLE) + +#define MVF600_PAD4_PTA11_WM9715L_PENDOWN \ + IOMUX_PAD(0x0010, 0x0010, 0, 0x0000, 0, \ + MVF600_GPIO_GENERAL_CTRL | PAD_CTL_IBE_ENABLE) #define MVF600_PAD21_PTA31_TS_IRQ \ IOMUX_PAD(0x0054, 0x0054, 0, 0x0000, 0, \ MVF600_GPIO_GENERAL_CTRL | PAD_CTL_IBE_ENABLE) +#define MVF600_PAD24_PTB2_WM9715L_GENIRQ \ + IOMUX_PAD(0x0060, 0x0060, 0, 0x0000, 0, \ + MVF600_GPIO_GENERAL_CTRL | PAD_CTL_IBE_ENABLE) /*QSPI*/ #define MVF600_PAD79_PTD0_QSPI0_A_SCK \ |