]> git.sur5r.net Git - u-boot/commitdiff
tegra: add SDIO1 funcmux entry for UARTA
authorLucas Stach <dev@lynxeye.de>
Wed, 16 May 2012 08:21:02 +0000 (08:21 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:18 +0000 (14:07 +0200)
This is based on top of:
tegra: add alternate UART1 funcmux entry
tegra: add UART1 on GPU funcmux entry

v2: remove enum change

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
CC: Stephen Warren <swarren@wwwdotorg.org>
CC: Tom Warren <twarren@nvidia.com>
CC: Marek Vasut <marex@denx.de>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/board.c
arch/arm/cpu/armv7/tegra2/funcmux.c
arch/arm/include/asm/arch-tegra2/funcmux.h

index 6106ef99922c758df61641ef6dcd9f4096f77144..923678d063a15531b50972d75d4c7e2455c4624c 100644 (file)
@@ -106,6 +106,8 @@ static int uart_configs[] = {
        FUNCMUX_UART1_UAA_UAB,
 #elif defined(CONFIG_TEGRA2_UARTA_GPU)
        FUNCMUX_UART1_GPU,
+#elif defined(CONFIG_TEGRA2_UARTA_SDIO1)
+       FUNCMUX_UART1_SDIO1,
 #else
        FUNCMUX_UART1_IRRX_IRTX,
 #endif
index c27908821a1423f12b55bf838aaafa3fd41e7bc4..155986932a2d183f03147e6b290aa07efe73ae17 100644 (file)
@@ -50,6 +50,11 @@ int funcmux_select(enum periph_id id, int config)
                        pinmux_tristate_disable(PINGRP_GPU);
                        bad_config = 0;
                        break;
+               case FUNCMUX_UART1_SDIO1:
+                       pinmux_set_func(PINGRP_SDIO1, PMUX_FUNC_UARTA);
+                       pinmux_tristate_disable(PINGRP_SDIO1);
+                       bad_config = 0;
+                       break;
                }
                if (!bad_config) {
                        /*
index dba2cf50d0c2c00202f35ceef0968bcb2bbd603e..19184d1d29bc6d6d8a9907e7f6443a3433811bb5 100644 (file)
@@ -32,6 +32,7 @@ enum {
        FUNCMUX_UART1_IRRX_IRTX = 0,
        FUNCMUX_UART1_UAA_UAB,
        FUNCMUX_UART1_GPU,
+       FUNCMUX_UART1_SDIO1,
        FUNCMUX_UART2_IRDA = 0,
        FUNCMUX_UART4_GMC = 0,