diff options
author | Tom Rini <trini@konsulko.com> | 2023-03-09 11:22:08 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-22 15:22:48 -0400 |
commit | 16d82d7bfac87bd3f670bf2388dff6354f8f0eac (patch) | |
tree | c6316de639f080c3514cab49979059b6753ad441 /board/advantech | |
parent | f5131e80fc5b6d858fe07f0691d82e8fbe2fd25d (diff) | |
download | u-boot-16d82d7bfac87bd3f670bf2388dff6354f8f0eac.tar.gz u-boot-16d82d7bfac87bd3f670bf2388dff6354f8f0eac.tar.bz2 u-boot-16d82d7bfac87bd3f670bf2388dff6354f8f0eac.zip |
spl: Add function prototype for spl_mmc_get_uboot_raw_sector
We did not add a prototype for spl_mmc_get_uboot_raw_sector to
include/spl.h before, so add and document one now. Correct the incorrect
prototype in board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c and
ensure that we have spl.h where we define a non-weak
spl_mmc_get_uboot_raw_sector as well.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/advantech')
-rw-r--r-- | board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c index 34109c69dd..09e63e0521 100644 --- a/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c +++ b/board/advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c @@ -208,7 +208,8 @@ int board_late_init(void) #ifdef CONFIG_SPL_MMC #define UBOOT_RAW_SECTOR_OFFSET 0x40 -unsigned long spl_mmc_get_uboot_raw_sector(struct mmc *mmc) +unsigned long spl_mmc_get_uboot_raw_sector(struct mmc *mmc, + unsigned long raw_sector) { u32 boot_dev = spl_boot_device(); |