All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vishnu Patekar <vishnupatekar0510@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 02/10] sunxi: Add support for UART0 in PB pin group on A83T
Date: Fri, 13 Nov 2015 02:09:10 +0800	[thread overview]
Message-ID: <1447351758-10413-3-git-send-email-vishnupatekar0510@gmail.com> (raw)
In-Reply-To: <1447351758-10413-1-git-send-email-vishnupatekar0510@gmail.com>

On A83T, PB9,PB10 are UART0 pins.
On allwinner A83T Dev board(h8homlet), this uart0 serial connector
is exposed.

Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com>
---
 arch/arm/cpu/armv7/sunxi/board.c       | 4 ++++
 arch/arm/include/asm/arch-sunxi/gpio.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c
index 4785ac6..348f028 100644
--- a/arch/arm/cpu/armv7/sunxi/board.c
+++ b/arch/arm/cpu/armv7/sunxi/board.c
@@ -72,6 +72,10 @@ static int gpio_init(void)
 	sunxi_gpio_set_cfgpin(SUNXI_GPB(0), SUN8I_A33_GPB_UART0);
 	sunxi_gpio_set_cfgpin(SUNXI_GPB(1), SUN8I_A33_GPB_UART0);
 	sunxi_gpio_set_pull(SUNXI_GPB(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);
+	sunxi_gpio_set_pull(SUNXI_GPB(10), SUNXI_GPIO_PULL_UP);
 #elif CONFIG_CONS_INDEX == 1 && defined(CONFIG_MACH_SUN9I)
 	sunxi_gpio_set_cfgpin(SUNXI_GPH(12), SUN9I_GPH_UART0);
 	sunxi_gpio_set_cfgpin(SUNXI_GPH(13), SUN9I_GPH_UART0);
diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h b/arch/arm/include/asm/arch-sunxi/gpio.h
index 8382101..14a3328 100644
--- a/arch/arm/include/asm/arch-sunxi/gpio.h
+++ b/arch/arm/include/asm/arch-sunxi/gpio.h
@@ -157,6 +157,7 @@ enum sunxi_gpio_number {
 #define SUN5I_GPB_UART0		2
 #define SUN8I_GPB_UART2		2
 #define SUN8I_A33_GPB_UART0	3
+#define SUN8I_A83T_GPB_UART0	2
 
 #define SUNXI_GPC_NAND		2
 #define SUNXI_GPC_SDC2		3
-- 
1.9.1

  parent reply	other threads:[~2015-11-12 18:09 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12 18:09 [U-Boot] [PATCH 00/10] basic support for Allwinner A83T SOC Vishnu Patekar
2015-11-12 18:09 ` [U-Boot] [PATCH 01/10] sunxi: Add Machine Support for " Vishnu Patekar
2015-11-13 17:19   ` Hans de Goede
2015-11-14 18:35     ` Vishnu Patekar
2015-11-12 18:09 ` Vishnu Patekar [this message]
2015-11-13 17:19   ` [U-Boot] [PATCH 02/10] sunxi: Add support for UART0 in PB pin group on A83T Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 03/10] sunxi: power: axp818: add support for axp818 driver Vishnu Patekar
2015-11-13 17:21   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 04/10] sunxi: power: enabled support for axp818 Vishnu Patekar
2015-11-13 17:24   ` Hans de Goede
2015-11-14 18:43     ` Vishnu Patekar
2015-11-12 18:09 ` [U-Boot] [PATCH 05/10] sunxi: do not enable smp for A83T Vishnu Patekar
2015-11-13 17:24   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 06/10] sunxi: clk: add basic clocks " Vishnu Patekar
2015-11-13 17:25   ` Hans de Goede
2015-11-14 18:47     ` Vishnu Patekar
2015-11-15  2:10       ` Chen-Yu Tsai
2015-11-12 18:09 ` [U-Boot] [PATCH 07/10] sunxi: Add support for Allwinner A83T DRAM Vishnu Patekar
2015-11-13 17:25   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 08/10] sunxi: do not include display for A83T Vishnu Patekar
2015-11-13 17:25   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 09/10] sunxi: dts: sun8i: Add Allwinner A83T dtsi Vishnu Patekar
2015-11-13 17:26   ` Hans de Goede
2015-11-12 18:09 ` [U-Boot] [PATCH 10/10] sunxi: Add suport for A83T HomletV2 Board by Allwinner Vishnu Patekar
2015-11-13 17:27   ` Hans de Goede
2015-11-13 16:52 ` [U-Boot] [PATCH 00/10] basic support for Allwinner A83T SOC Hans de Goede
2015-11-13 17:05   ` Chen-Yu Tsai
2015-11-14 18:32   ` Vishnu Patekar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447351758-10413-3-git-send-email-vishnupatekar0510@gmail.com \
    --to=vishnupatekar0510@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.