]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(mmc): get boot partition size
authorYann Gautier <yann.gautier@st.com>
Thu, 1 Sep 2022 17:23:39 +0000 (19:23 +0200)
committerYann Gautier <yann.gautier@st.com>
Wed, 7 Sep 2022 07:36:48 +0000 (09:36 +0200)
commitf462c1249ac41f43423011bb12ace38cbeb0af4c
treec91d8ae340ccbfd870a3104615914346b5044c89
parent810bb3d0f4b3f3c1fa6d3fdca2d95c4e86329808
feat(mmc): get boot partition size

The boot partition size of an eMMC is given in ext_csd register, at
offset 226 (BOOT_SIZE_MULT), which has to be multiplied by 128kB.
Add a helper function mmc_boot_part_size() to get this eMMC boot
partition size.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I0e8e0fc9632f147fa1b1b3374accb78439025403
drivers/mmc/mmc.c
include/drivers/mmc.h