diff options
| author | Tom Rini <[email protected]> | 2023-03-22 20:57:39 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-03-22 20:57:39 -0400 |
| commit | 884d626d8357853c012d535bf26c143bb7b5e6a5 (patch) | |
| tree | 06ac245b48b6cc59b392b5117030dffd63459db1 /include | |
| parent | 12340b122b354ecca350c0d08ac3d825897bdafa (diff) | |
| parent | 486930bd7fe1db63c302c960445cdd4be4a4f1d1 (diff) | |
Merge branch '2023-03-22-assorted-minor-code-cleanups' into next
- Minor code cleanups based on problems found by clang or enabling LTO.
Diffstat (limited to 'include')
| -rw-r--r-- | include/spl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index bad12fb01f4..7e0f5ac63b0 100644 --- a/include/spl.h +++ b/include/spl.h @@ -467,6 +467,19 @@ int spl_mmc_emmc_boot_partition(struct mmc *mmc); void spl_set_bd(void); /** + * spl_mmc_get_uboot_raw_sector() - Provide raw sector of the start of U-Boot + * + * This is a weak function which by default will provide the raw sector that is + * where the start of the U-Boot image has been written to. + * + * @mmc: struct mmc that describes the devie where U-Boot resides + * @raw_sect: The raw sector number where U-Boot is by default. + * Return: The raw sector location that U-Boot resides at + */ +unsigned long spl_mmc_get_uboot_raw_sector(struct mmc *mmc, + unsigned long raw_sect); + +/** * spl_set_header_raw_uboot() - Set up a standard SPL image structure * * This sets up the given spl_image which the standard values obtained from |
