spl: add CONFIG_MTD_BLK_U_BOOT_OFFS

Find the uboot by CONFIG_MTD_BLK_U_BOOT_OFFS address from nand,
spi nand, nor flash with mtd block interface.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I6032570406a8eda2609ad877785e71c6c8b5df0c
This commit is contained in:
Jason Zhu 2020-07-24 17:39:17 +08:00 committed by Jianhong Chen
parent 77827e2e47
commit 3b1ddd14f7
1 changed files with 8 additions and 0 deletions

View File

@ -465,6 +465,14 @@ config SPL_MTD_SUPPORT
devices. See SPL_NAND_SUPPORT and SPL_ONENAND_SUPPORT for how
to enable specific MTD drivers.
config MTD_BLK_U_BOOT_OFFS
hex "Location in MTD block to read U-Boot from"
default 0x4000
depends on SPL_MTD_SUPPORT
help
Set the offset from the start of the nand,spi nand and nor flash where
u-boot should be loaded from.
config SPL_MUSB_NEW_SUPPORT
bool "Support new Mentor Graphics USB"
help