tegra2: Implement SPI / UART GPIO switch
authorSimon Glass <sjg@chromium.org>
Sat, 5 Nov 2011 04:46:49 +0000 (04:46 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 24 Dec 2011 09:23:31 +0000 (10:23 +0100)
commitcb93481268904df3447fbe8b0ccb2862967efc26
tree9df6b1370a3c55b7720d442f9b9324f590663cf0
parent9dd79fdb6cfed5c62aa5adeaa7d5f758114e105c
tegra2: Implement SPI / UART GPIO switch

The Tegra2 Seaboard has the unfortunate feature that SPI and the console
UART are multiplexed on the same pins. We need to switch between one
and the other during SPI and console activity.

This new file implements a switch and keeps track of which peripheral
owns the pins. It also flips over the controlling GPIO as needed

Since we are adding a second file to board/nvidia/common, we create
a proper Makefile there and remove the direct board.o include from
board/nvidia/seaboard/Makefile

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/include/asm/arch-tegra2/uart-spi-switch.h [new file with mode: 0644]
board/nvidia/common/Makefile [new file with mode: 0644]
board/nvidia/common/uart-spi-switch.c [new file with mode: 0644]
board/nvidia/seaboard/Makefile