We build a LVDS exp board for OMAP37xx EVM. In this, touchscreen is connected thru the SPI2. I did the following to enable the SPI2
1. In omap_board_mux omap36x_board_mux[] __initdata:
/* McSPI 2 */
OMAP3_MUX(MCSPI2_CLK, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
OMAP3_MUX(MCSPI2_SIMO, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
OMAP3_MUX(MCSPI2_SOMI, OMAP_MUX_MODE0 | OMAP_PIN_INPUT),
OMAP3_MUX(MCSPI2_CS1, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP |
OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_OUTPUT_LOW |
OMAP_PIN_OFF_WAKEUPENABLE),
2. GPIO 182 is used as the Pen Down Interrupt (#define OMAP3_EVM_TS_GPIO 182)
The issue is, still SPI2 is not working.
1. Is there any other mux is needed?
2. I read that, GPMC_NBE1/HSUSB is muxed with GPIO 182. So to access the 182, do I need to sacrifices the USB OTG Port? or any other work-around?
3. How to make the GPIO 182 is available for the Pen Down interrupt?