summaryrefslogtreecommitdiff
path: root/board/compulab/trimslice/trimslice.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-06-12 08:33:41 (GMT)
committerAlbert ARIBAUD (U-Boot) <uboot@lilith.(none)>2012-07-09 20:44:33 (GMT)
commit2db7b952844f95c8299bb84bc3b2d38e8f48f5cd (patch)
treeed20767f3bb04f04aad42bfa9b2b55275d2b917b /board/compulab/trimslice/trimslice.c
parente02849488724bdfdc36ef8105c59a49986db3ebc (diff)
downloadu-boot-2db7b952844f95c8299bb84bc3b2d38e8f48f5cd.tar.xz
tegra: trimslice: set up serial flash pinmux
When Trimslice is booted from serial flash, the boot ROM does this, so U-Boot doesn't need to. However, booting from the SD slot for recovery purposes, the boot ROM does not set up the pinmux for serial flash. Add code to U-Boot to set this up, so that an SD-based recovery U-Boot image can upgrade the U-Boot in serial flash. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/compulab/trimslice/trimslice.c')
-rw-r--r--board/compulab/trimslice/trimslice.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/compulab/trimslice/trimslice.c b/board/compulab/trimslice/trimslice.c
index f15fbd7..1ac15f8 100644
--- a/board/compulab/trimslice/trimslice.c
+++ b/board/compulab/trimslice/trimslice.c
@@ -42,6 +42,11 @@ void gpio_config_uart(void)
{
}
+void pin_mux_spi(void)
+{
+ funcmux_select(PERIPH_ID_SPI1, FUNCMUX_SPI1_GMC_GMD);
+}
+
/*
* Routine: pin_mux_mmc
* Description: setup the pin muxes/tristate values for the SDMMC(s)