]> Git Repo - J-u-boot.git/commitdiff
sunxi: add support for H616 uart0
authorJernej Skrabec <[email protected]>
Mon, 11 Jan 2021 20:11:41 +0000 (21:11 +0100)
committerAndre Przywara <[email protected]>
Mon, 25 Jan 2021 21:52:01 +0000 (21:52 +0000)
This port is used for debug terminal on all known H616 boards.

Reviewed-by: Samuel Holland <[email protected]>
Signed-off-by: Jernej Skrabec <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
arch/arm/include/asm/arch-sunxi/gpio.h
arch/arm/mach-sunxi/board.c

index f817d328f4323ef3b9999d91b7d7451f683f465f..cdb7dbd5b8e57246f427ab46699af8300bfae50a 100644 (file)
@@ -206,6 +206,7 @@ enum sunxi_gpio_number {
 #define SUN6I_GPH_UART0                2
 #define SUN9I_GPH_UART0                2
 #define SUN50I_H6_GPH_UART0    2
+#define SUN50I_H616_GPH_UART0  2
 
 #define SUNXI_GPI_SDC3         2
 #define SUN7I_GPI_TWI3         3
index d90c7c04ecdec30ebb67cb9d700e34746fa8244c..ae6bc656d94ffbcb55a77df79026915b55bebe09 100644 (file)
@@ -116,6 +116,10 @@ static int gpio_init(void)
        sunxi_gpio_set_cfgpin(SUNXI_GPH(0), SUN50I_H6_GPH_UART0);
        sunxi_gpio_set_cfgpin(SUNXI_GPH(1), SUN50I_H6_GPH_UART0);
        sunxi_gpio_set_pull(SUNXI_GPH(1), SUNXI_GPIO_PULL_UP);
+#elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN50I_H616)
+       sunxi_gpio_set_cfgpin(SUNXI_GPH(0), SUN50I_H616_GPH_UART0);
+       sunxi_gpio_set_cfgpin(SUNXI_GPH(1), SUN50I_H616_GPH_UART0);
+       sunxi_gpio_set_pull(SUNXI_GPH(1), SUNXI_GPIO_PULL_UP);
 #elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN8I_A83T)
        sunxi_gpio_set_cfgpin(SUNXI_GPB(9), SUN8I_A83T_GPB_UART0);
        sunxi_gpio_set_cfgpin(SUNXI_GPB(10), SUN8I_A83T_GPB_UART0);
This page took 0.038065 seconds and 4 git commands to generate.