]> git.sur5r.net Git - u-boot/commitdiff
tegra: add GMC/GMD funcmux entry for SFLASH
authorStephen Warren <swarren@nvidia.com>
Tue, 12 Jun 2012 08:33:39 +0000 (08:33 +0000)
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>
Mon, 9 Jul 2012 20:44:33 +0000 (22:44 +0200)
This is used on TrimSlice.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/funcmux.c
arch/arm/include/asm/arch-tegra2/funcmux.h

index 455d01011f874230101448d719d483993cd6445a..4a31a4cf0c7a4842d2642b49b5b29c6ef7382978 100644 (file)
@@ -224,6 +224,16 @@ int funcmux_select(enum periph_id id, int config)
                }
                break;
 
+       case PERIPH_ID_SPI1:
+               if (config == FUNCMUX_SPI1_GMC_GMD) {
+                       pinmux_set_func(PINGRP_GMC, PMUX_FUNC_SFLASH);
+                       pinmux_set_func(PINGRP_GMD, PMUX_FUNC_SFLASH);
+
+                       pinmux_tristate_disable(PINGRP_GMC);
+                       pinmux_tristate_disable(PINGRP_GMD);
+               }
+               break;
+
        default:
                debug("%s: invalid periph_id %d", __func__, id);
                return -1;
index 3cbc7d2fe1a3f13658dd1adb4023a3a8d941af88..dcd512f0843434a88c0c63d2b696627152d5c50c 100644 (file)
@@ -54,6 +54,9 @@ enum {
 
        /* USB configs */
        FUNCMUX_USB2_ULPI = 0,
+
+       /* Serial Flash configs */
+       FUNCMUX_SPI1_GMC_GMD = 0,
 };
 
 /**