From: Simon Glass Date: Sun, 29 Jul 2012 20:53:26 +0000 (+0000) Subject: tegra: Add NAND support to funcmux X-Git-Tag: v2012.10-rc1~2^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35e1132c88eb75f6cde2ffcc47696584356879c0;p=u-boot tegra: Add NAND support to funcmux Add selection of NAND flash pins to the funcmux. Signed-off-by: Simon Glass Acked-by: Stephen Warren Signed-off-by: Tom Warren --- diff --git a/arch/arm/cpu/tegra20-common/funcmux.c b/arch/arm/cpu/tegra20-common/funcmux.c index 8cfed645ce..b2129adf2f 100644 --- a/arch/arm/cpu/tegra20-common/funcmux.c +++ b/arch/arm/cpu/tegra20-common/funcmux.c @@ -234,6 +234,13 @@ int funcmux_select(enum periph_id id, int config) } break; + case PERIPH_ID_NDFLASH: + if (config == FUNCMUX_NDFLASH_ATC) { + pinmux_set_func(PINGRP_ATC, PMUX_FUNC_NAND); + pinmux_tristate_disable(PINGRP_ATC); + } + break; + default: debug("%s: invalid periph_id %d", __func__, id); return -1; diff --git a/arch/arm/include/asm/arch-tegra20/funcmux.h b/arch/arm/include/asm/arch-tegra20/funcmux.h index 258f7b641a..bd511db853 100644 --- a/arch/arm/include/asm/arch-tegra20/funcmux.h +++ b/arch/arm/include/asm/arch-tegra20/funcmux.h @@ -57,6 +57,9 @@ enum { /* Serial Flash configs */ FUNCMUX_SPI1_GMC_GMD = 0, + + /* NAND flags */ + FUNCMUX_NDFLASH_ATC = 0, }; /**