+ /* Sysctl */
+ uint32_t sysctl;
+ /* GPIO base address register */
+ uint32_t base;
+ /* Pin(s) bitmask */
+ uint8_t pins;
+};
+
+/* Table to retrieve GPIO pins configuration to work as UART pins */
+static const struct gpio_uart_info gpio_uart[SER_CNT] =
+{
+ /* UART0 */
+ {
+ .base = GPIO_PORTA_BASE,
+ .pins = BV(1) | BV(0),
+ .sysctl = SYSCTL_RCGC2_GPIOA,
+ },
+ /* UART1 */
+ {
+ .base = GPIO_PORTD_BASE,
+ .pins = BV(3) | BV(2),
+ .sysctl = SYSCTL_RCGC2_GPIOD,
+ },
+ /* UART2 */
+ {
+ .base = GPIO_PORTG_BASE,
+ .pins = BV(1) | BV(0),
+ .sysctl = SYSCTL_RCGC2_GPIOG,
+ },
+};