]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - sitara-epos/sitara-epos-kernel.git/commitdiff
arm:omap:am33xx: Add support for UART3 on IA EVM
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Wed, 17 Aug 2011 15:24:10 +0000 (20:54 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:31 +0000 (00:44 +0530)
IA EVM has UART3 as console. provide support for the same

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/board-am335xevm.c

index c275a0fc3ff6bfecc72f922475fc2e0f5ca8d64c..463992a3f27b46fc924cba9527a688b3ed698b77 100644 (file)
@@ -485,6 +485,13 @@ static struct pinmux_config mmc1_pin_mux[] = {
        {NULL, 0},
 };
 
        {NULL, 0},
 };
 
+/* Module pin mux for uart3 */
+static struct pinmux_config uart3_pin_mux[] = {
+       {"spi0_cs1.uart3_rxd", AM33XX_PIN_INPUT_PULLUP},
+       {"ecap0_in_pwm0_out.uart3_txd", AM33XX_PULL_ENBL},
+       {NULL, 0},
+};
+
 /*
 * @pin_mux - single module pin-mux structure which defines pin-mux
 *                      details for all its pins.
 /*
 * @pin_mux - single module pin-mux structure which defines pin-mux
 *                      details for all its pins.
@@ -699,6 +706,13 @@ static void usb1_init(int evm_id, int profile)
        return;
 }
 
        return;
 }
 
+/* setup uart3 */
+static void uart3_init(int evm_id, int profile)
+{
+       setup_pin_mux(uart3_pin_mux);
+       return;
+}
+
 /* NAND partition information */
 static struct mtd_partition am335x_nand_partitions[] = {
 /* All the partition sizes are listed in terms of NAND block size */
 /* NAND partition information */
 static struct mtd_partition am335x_nand_partitions[] = {
 /* All the partition sizes are listed in terms of NAND block size */
@@ -1013,6 +1027,7 @@ static struct evm_dev_cfg ind_auto_mtrl_evm_dev_cfg[] = {
        {usb1_init,     DEV_ON_BASEBOARD, PROFILE_ALL},
        {evm_nand_init, DEV_ON_DGHTR_BRD, PROFILE_ALL},
        {spi1_init,     DEV_ON_DGHTR_BRD, PROFILE_ALL},
        {usb1_init,     DEV_ON_BASEBOARD, PROFILE_ALL},
        {evm_nand_init, DEV_ON_DGHTR_BRD, PROFILE_ALL},
        {spi1_init,     DEV_ON_DGHTR_BRD, PROFILE_ALL},
+       {uart3_init,    DEV_ON_DGHTR_BRD, PROFILE_ALL},
        {NULL, 0, 0},
 };
 
        {NULL, 0, 0},
 };