aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu/include/mach/soc.h
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2017-09-24 15:50:17 +0300
committerStefan Roese <sr@denx.de>2017-09-26 06:53:18 +0200
commitf3a88e2ca17ac1ff54f5eff67c96cdaa5c542f6a (patch)
tree13246d22f134d50be595b6c14da39dc7b0913e6b /arch/arm/mach-mvebu/include/mach/soc.h
parentc3ab2744447db80de3c0a18422256a7b638253b3 (diff)
downloadu-boot-midas-f3a88e2ca17ac1ff54f5eff67c96cdaa5c542f6a.tar.gz
u-boot-midas-f3a88e2ca17ac1ff54f5eff67c96cdaa5c542f6a.tar.bz2
u-boot-midas-f3a88e2ca17ac1ff54f5eff67c96cdaa5c542f6a.zip
arm: mvebu: fix boot from UART on ClearFog Base
The ClearFog Base boot from UART when setting the DIP switches to 01001. Unfortunately, the SPL code sometimes fails to detect the UART boot method at run-time. Add an alternative SAR UART boot value to fix this. Note that this alternative value is not documented (Armada 38x Hardware Specifications, Table 48). But experimentations showed it on the ClearFog Base. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/arm/mach-mvebu/include/mach/soc.h')
-rw-r--r--arch/arm/mach-mvebu/include/mach/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h
index cdd64fb285..1d302761f0 100644
--- a/arch/arm/mach-mvebu/include/mach/soc.h
+++ b/arch/arm/mach-mvebu/include/mach/soc.h
@@ -142,6 +142,7 @@
#define BOOT_DEV_SEL_MASK (0x3f << BOOT_DEV_SEL_OFFS)
#define BOOT_FROM_UART 0x28
+#define BOOT_FROM_UART_ALT 0x3f
#define BOOT_FROM_SPI 0x32
#define BOOT_FROM_MMC 0x30
#define BOOT_FROM_MMC_ALT 0x31