diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-05-12 06:25:22 +0200 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2024-05-14 18:40:09 +0800 |
commit | 156c99fc33cc0694a6e148e0c6081ed52314a50e (patch) | |
tree | 8cacb243f1fba64e1535e128b16f3c579e70c1df /arch/riscv | |
parent | 9578e74571596eb8f1a74b46cbb2ddf6ed5dee39 (diff) | |
download | u-boot-156c99fc33cc0694a6e148e0c6081ed52314a50e.tar.gz u-boot-156c99fc33cc0694a6e148e0c6081ed52314a50e.tar.bz2 u-boot-156c99fc33cc0694a6e148e0c6081ed52314a50e.zip |
board: starfive: function to read eMMC size
The EEPROM provides information about the size of the eMMC.
Provide a new function get_mmc_size_from_eeprom() to read it.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E. Shattow <lucent@gmail.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/include/asm/arch-jh7110/eeprom.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/arch-jh7110/eeprom.h b/arch/riscv/include/asm/arch-jh7110/eeprom.h index 62d184aeb5..45ad2a5f7b 100644 --- a/arch/riscv/include/asm/arch-jh7110/eeprom.h +++ b/arch/riscv/include/asm/arch-jh7110/eeprom.h @@ -13,6 +13,13 @@ u8 get_pcb_revision_from_eeprom(void); u32 get_ddr_size_from_eeprom(void); /** + * get_mmc_size_from_eeprom() - read eMMC size from EEPROM + * + * @return: size in GiB or 0 on error. + */ +u32 get_mmc_size_from_eeprom(void); + +/** * get_product_id_from_eeprom - get product ID string * * A string like "VF7110A1-2228-D008E000-00000001" is returned. |