From: Simon Glass Date: Tue, 17 Apr 2012 09:01:32 +0000 (+0000) Subject: tegra: Add keyboard support to funcmux X-Git-Tag: v2012.07-rc1~144^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e91f40dd54a4f909f4af3a0cdaa1bbc73c9e100;p=u-boot tegra: Add keyboard support to funcmux Add funcmux support for the default keyboard mapping. Signed-off-by: Simon Glass Signed-off-by: Tom Warren --- diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c b/arch/arm/cpu/armv7/tegra2/funcmux.c index c1d2dfec5f..0ef7753021 100644 --- a/arch/arm/cpu/armv7/tegra2/funcmux.c +++ b/arch/arm/cpu/armv7/tegra2/funcmux.c @@ -169,6 +169,22 @@ int funcmux_select(enum periph_id id, int config) } break; + case PERIPH_ID_KBC: + if (config == FUNCMUX_DEFAULT) { + enum pmux_pingrp grp[] = {PINGRP_KBCA, PINGRP_KBCB, + PINGRP_KBCC, PINGRP_KBCD, PINGRP_KBCE, + PINGRP_KBCF}; + int i; + + for (i = 0; i < ARRAY_SIZE(grp); i++) { + pinmux_tristate_disable(grp[i]); + pinmux_set_func(grp[i], PMUX_FUNC_KBC); + pinmux_set_pullupdown(grp[i], PMUX_PULL_UP); + } + + break; + } + default: debug("%s: invalid periph_id %d", __func__, id); return -1;