arm:suniv:complete the serial port configuration of Suniv
Subsystems (3)
PATCH v2 1/1 arm:suniv:complete the serial port configuration of Suniv
From: lhdjply <[email protected]>
Due to the different serial ports used by each board, the serial IO configuration needs to be improved.
Signed-off-by lhdjply <[email protected]>
--- arch/arm/mach-sunxi/board.c | 4 ++-- include/sunxi_gpio.h | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-)
arch/arm/mach-sunxi/board.c +2 -2
@@ -151,8 +151,8 @@ static int gpio_init(void)sunxi_gpio_set_cfgpin (SUNXI_GPE (3 ),6 );sunxi_gpio_set_pull (SUNXI_GPE (3 ),SUNXI_GPIO_PULL_UP );#elif CONFIG_CONS_INDEX ==2 && defined(CONFIG_MACH_SUNIV ) -sunxi_gpio_set_cfgpin (SUNXI_GPA (2 ),SUNIV_GPE_UART0 ); -sunxi_gpio_set_cfgpin (SUNXI_GPA (3 ),SUNIV_GPE_UART0 ); +sunxi_gpio_set_cfgpin (SUNXI_GPA (2 ),SUNIV_GPA_UART1 ); +sunxi_gpio_set_cfgpin (SUNXI_GPA (3 ),SUNIV_GPA_UART1 );sunxi_gpio_set_pull (SUNXI_GPA (3 ),SUNXI_GPIO_PULL_UP );#elif CONFIG_CONS_INDEX ==2 && defined(CONFIG_MACH_SUN5I )sunxi_gpio_set_cfgpin (SUNXI_GPG (3 ),SUN5I_GPG_UART1 );
include/sunxi_gpio.h +6 -0
@@ -108,6 +108,8 @@ enum sunxi_gpio_number {#define SUN8I_H3_GPA_UART0 2#define SUN8I_H3_GPA_UART2 2 +#define SUNIV_GPA_UART1 5 +#define SUN4I_GPB_PWM 2#define SUN4I_GPB_TWI0 2#define SUN4I_GPB_TWI1 2
@@ -130,12 +132,16 @@ enum sunxi_gpio_number {#define SUNXI_GPD_LCD0 2#define SUNXI_GPD_LVDS0 3 +#define SUNIV_GPD_UART1 3 +#define SUNIV_GPD_UART2 3#define SUNIV_GPE_UART0 5 +#define SUNIV_GPE_UART2 3#define SUNXI_GPF_SDC0 2#define SUNXI_GPF_UART0 4#define SUN8I_GPF_UART0 3 +#define SUNIV_GPF_UART0 3#define SUN4I_GPG_SDC1 4#define SUN5I_GPG_SDC1 2
Signature · 1 line
2.34.1