aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-10-24 09:39:02 -0400
committerTom Rini <trini@konsulko.com>2023-10-24 09:39:02 -0400
commit1b2a3d08c0440db4ee37d748b491673f1db0d384 (patch)
tree26d2e71946365e53a90b0033dd7cdb8b48ec2c85 /include/spl.h
parent351da15f71e3d70dbc63e90781b403415452d864 (diff)
parent2f96064d0cf78e21a668ad907d41d63e56f9f7bb (diff)
Merge tag 'u-boot-imx-20231024' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
u-boot-imx-20231024 ------------------- CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/18211 - Fixes for MC2432 Eeprom - i.MX93 ADC - Secondary boot mode on i.MX8M
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h
index 0d49e4a454..8ff20adc28 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -497,6 +497,32 @@ 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 (architecture override)
+ *
+ * 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 arch_spl_mmc_get_uboot_raw_sector(struct mmc *mmc,
+ unsigned long raw_sect);
+
+/**
+ * spl_mmc_get_uboot_raw_sector() - Provide raw sector of the start of U-Boot (board override)
+ *
+ * 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 board_spl_mmc_get_uboot_raw_sector(struct mmc *mmc,
+ unsigned long raw_sect);
+
+/**
* 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