powerpc/85xx: Enable eSDHC boot support on P2020 DS
authorJerry Huang <Chang-Ming.Huang@freescale.com>
Mon, 24 Jan 2011 17:09:54 +0000 (17:09 +0000)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 5 Apr 2011 03:26:32 +0000 (22:26 -0500)
commit1ac63e4094eee321266d5e5129077a3247d9439a
tree735601d619302486b23575199e26ea2768af31cd
parent97039ab98c551c7860bc0977d684ef686159e0d7
powerpc/85xx: Enable eSDHC boot support on P2020 DS

We implement our own mmc_get_env_addr since the environment variables are
written to just after the u-boot image on SDCard, so we must read the MBR
to get the start address and code length of the u-boot image, then
calculate the address of the env.

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Signed-off-by: Zhao Chenhui <b35336@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/common/Makefile
board/freescale/common/sdhc_boot.c [new file with mode: 0644]
board/freescale/p2020ds/tlb.c
boards.cfg
include/configs/P2020DS.h