arch:exynos: boot mode: add get_boot_mode(), code cleanup
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Tue, 1 Jul 2014 11:30:54 +0000 (13:30 +0200)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 30 Jul 2014 16:17:45 +0000 (18:17 +0200)
commit6e0784f6e2c68371d098b1700d340c2788bfb700
tree88cbbd64666e1f7e0fc1c1b85eedfd38cfc0b2d6
parent8e25564df0eb2de39b34764884f4a111f35c4cfd
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

Change-Id: I08395daa57bb5df0c83a859202b7493de0c8242b
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
arch/arm/cpu/armv7/exynos/power.c
arch/arm/cpu/armv7/exynos/spl_boot.c
arch/arm/include/asm/arch-exynos/power.h
arch/arm/include/asm/arch-exynos/spl.h