arch:exynos: boot mode: add get_boot_mode(), code cleanup
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 1 Sep 2014 11:50:44 +0000 (13:50 +0200)
committerChanho Park <chanho61.park@samsung.com>
Mon, 11 Apr 2016 03:53:14 +0000 (12:53 +0900)
commitcd337b54e11bad0a74755ac86abdd25c0ac3cb8a
tree0916efb25c9c26fb1e0907c0228e04edb6997f10
parent7794d841ca50e646972ca521f8d0923c8c30e8e2
arch:exynos: boot mode: add get_boot_mode(), code cleanup

This patch introduces code clean-up for exynos boot mode check.
It includes:
- removal of typedef: boot_mode
- move the boot mode enum to arch-exynos/power.h
- add bootmode for sequence: eMMC 4.4 ch4 / SD ch2
- add new function: get_boot_mode() for OM[5:1] pin check
- update spl boot code

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Changes v5:
- exynos: boot mode: add missing bootmode (1st:EMMC 4.4 / 2nd:SD ch2)

Changes v6:
- none

changes v7:
- change boot mode name: BOOT_MODE_MMC to BOOT_MODE_SD
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Conflicts:
arch/arm/cpu/armv7/exynos/spl_boot.c
arch/arm/include/asm/arch-exynos/spl.h

Change-Id: Ia91a5e251c476ee97bdd4921f602a5d737b6db10
arch/arm/cpu/armv7/exynos/power.c
arch/arm/include/asm/arch-exynos/power.h