Ejemplo n.º 1
0
	/* E.10 = UART5_CTS */
	{{KINETIS_GPIO_PORT_E, 10}, KINETIS_GPIO_CONFIG_MUX(3)},
	/* E.11 = UART5_RTS */
	{{KINETIS_GPIO_PORT_E, 11}, KINETIS_GPIO_CONFIG_MUX(3)},
#endif /* CONFIG_KINETIS_UART5_CTSRTS */
#endif /* CONFIG_KINETIS_UART5 */

#if defined(CONFIG_GPIOLIB)
	/*
	 * Pin configuration for the User LEDs and the User Button installed
	 * on the SOM-BSB baseboard. Other baseboards may need different pin
	 * configurations.
	 */
#if 0
	/* E.9 = GPIO 137: User button (S2) */
	{{KINETIS_GPIO_PORT_E,  9}, KINETIS_GPIO_CONFIG_PULLUP(1)},
	/* E.11 = GPIO 139: LED DS3 */
	{{KINETIS_GPIO_PORT_E, 11}, KINETIS_GPIO_CONFIG_MUX(1)},
	/* E.12 = GPIO 140: LED DS4 */
	{{KINETIS_GPIO_PORT_E, 12}, KINETIS_GPIO_CONFIG_MUX(1)},
#endif
#endif /* CONFIG_GPIOLIB */
};

/*
 * GPIO pin configuration table for TWR-K70F120M + TWR-SER + TWR-LCD-RGB
 */
static const struct kinetis_gpio_pin_config twr_lcd_rgb_iomux[] = {
#if defined(CONFIG_KINETIS_FB)
	/* F.0 = GLCD_PCLK */
	{{KINETIS_GPIO_PORT_F,  0}, KINETIS_GPIO_CONFIG_DSE(7)},
Ejemplo n.º 2
0
#if defined(CONFIG_MMC_ESDHC)
	/* E.0 = SDHC0_D1 */
	{{KINETIS_GPIO_PORT_E, 0}, KINETIS_GPIO_CONFIG_MUX(4)},
	/* E.1 = SDHC0_D0 */
	{{KINETIS_GPIO_PORT_E, 1}, KINETIS_GPIO_CONFIG_MUX(4)},
	/* E.2 = SDHC0_DCLK */
	{{KINETIS_GPIO_PORT_E, 2}, KINETIS_GPIO_CONFIG_MUX(4)},
	/* E.3 = SDHC0_CMD */
	{{KINETIS_GPIO_PORT_E, 3}, KINETIS_GPIO_CONFIG_MUX(4)},
	/* E.4 = SDHC0_D3 */
	{{KINETIS_GPIO_PORT_E, 4}, KINETIS_GPIO_CONFIG_MUX(4)},
	/* E.5 = SDHC0_D2 */
	{{KINETIS_GPIO_PORT_E, 5}, KINETIS_GPIO_CONFIG_MUX(4)},
#if defined(CONFIG_KINETIS_GPIO_INT)
	{{KINETIS_GPIO_PORT_E, 28}, KINETIS_GPIO_CONFIG_PULLUP(1)},
#else
	/* E.28 = GPIO (Card detect) */
	{{KINETIS_GPIO_PORT_E, 28}, KINETIS_GPIO_CONFIG_PULLUP(1) |
	 KINETIS_GPIO_CONFIG_IRQC_EITHER},
#endif
#endif
};

/*
 * Pin configuration table for K70-SOM, excluding LCD signals.
 */
static const struct kinetis_gpio_pin_config k70som_iomux[] = {
#if defined(CONFIG_KINETIS_UART0)
	/* D.7 = UART0_TX */
	{{KINETIS_GPIO_PORT_D, 7}, KINETIS_GPIO_CONFIG_PULLUP(3)},