aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2020-01-17 14:02:44 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2020-01-28 09:54:05 +0900
commit86c88711082b9fb4da5f7eb0b80d5604c283f0c5 (patch)
treecf75818ec9dc87be33ecb2acaaa11d911ba5523e /arch/arm
parentda63b5da61318a2ea8a84a41f2e49eb24f8a3759 (diff)
downloadu-boot-86c88711082b9fb4da5f7eb0b80d5604c283f0c5.zip
u-boot-86c88711082b9fb4da5f7eb0b80d5604c283f0c5.tar.gz
u-boot-86c88711082b9fb4da5f7eb0b80d5604c283f0c5.tar.bz2
arm: exynos: Read default MMC device from XOM[7:5] pins
XOM pins provide information for iROM bootloader about the boot device. Those pins are mapped to lower bits of OP_MODE register (0x10000008), which is common for all Exynos SoC variants. Set the default MMC device id to reflect the boot device selected by XOM[7:5] pins (2 for the SD or 0 for the eMMC). Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-exynos/include/mach/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/include/mach/cpu.h b/arch/arm/mach-exynos/include/mach/cpu.h
index 766edee..fb5fdaf 100644
--- a/arch/arm/mach-exynos/include/mach/cpu.h
+++ b/arch/arm/mach-exynos/include/mach/cpu.h
@@ -17,6 +17,7 @@
#define EXYNOS4_GPIO_PART3_BASE 0x03860000
#define EXYNOS4_PRO_ID 0x10000000
+#define EXYNOS4_OP_MODE 0x10000008
#define EXYNOS4_SYSREG_BASE 0x10010000
#define EXYNOS4_POWER_BASE 0x10020000
#define EXYNOS4_SWRESET 0x10020400