]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spl: spl_mmc: Add option to boot from a MMC partition with offset
authorStefan Roese <sr@denx.de>
Mon, 20 Jul 2015 09:20:39 +0000 (11:20 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:04 +0000 (13:49 +0200)
commit4a46a9d3d8288ed56c269d3e774be6ca89eae709
tree49c0459fefeec7475d9840beef5340f2d1d1cbac
parent5447c76e4b06510705375d8aa469a6b10dfa3af2
spl: spl_mmc: Add option to boot from a MMC partition with offset

This patch introduces the option to boot from a MMC card parition with
an offset. This can be done by using both defines together:

define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR    ((160 << 10) / 512)

The example above loads the main U-Boot at offset 160KiB from the MMC
partition 1.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Dirk Eibach <eibach@gdsys.de>
Cc: Tom Rini <trini@konsulko.com>
common/spl/spl_mmc.c