Commit f1561fa6 authored by carbon's avatar carbon

set pin 4/5 default function to UART4

parent e4d322ac
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
}; };
}; };
&uart4 {
status = "okay";
};
/ { / {
}; };
......
...@@ -20,6 +20,10 @@ int cvi_board_init(void) ...@@ -20,6 +20,10 @@ int cvi_board_init(void)
PINMUX_CONFIG(SD1_D2, PWM_5); PINMUX_CONFIG(SD1_D2, PWM_5);
PINMUX_CONFIG(SD1_D1, PWM_6); PINMUX_CONFIG(SD1_D1, PWM_6);
// UART 4
PINMUX_CONFIG(SD1_GPIO1, UART4_TX);
PINMUX_CONFIG(SD1_GPIO0, UART4_RX);
// SPI // SPI
PINMUX_CONFIG(SD1_CLK, SPI2_SCK); PINMUX_CONFIG(SD1_CLK, SPI2_SCK);
PINMUX_CONFIG(SD1_CMD, SPI2_SDO); PINMUX_CONFIG(SD1_CMD, SPI2_SDO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment