diff options
author | Simon Glass <sjg@chromium.org> | 2012-04-17 09:01:32 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-05-15 08:31:39 +0200 |
commit | 7e91f40dd54a4f909f4af3a0cdaa1bbc73c9e100 (patch) | |
tree | f17ad1ef583c8a215ee4998524622b98bfc0c226 /arch | |
parent | 92c27c5193154465df03a4713b1a5323bb18506b (diff) | |
download | u-boot-imx-7e91f40dd54a4f909f4af3a0cdaa1bbc73c9e100.zip u-boot-imx-7e91f40dd54a4f909f4af3a0cdaa1bbc73c9e100.tar.gz u-boot-imx-7e91f40dd54a4f909f4af3a0cdaa1bbc73c9e100.tar.bz2 |
tegra: Add keyboard support to funcmux
Add funcmux support for the default keyboard mapping.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/tegra2/funcmux.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c b/arch/arm/cpu/armv7/tegra2/funcmux.c index c1d2dfe..0ef7753 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; |