| #
d0ce1ac5 |
| 20-Jun-2025 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "s32g274a/sd_support" into integration
* changes: feat(s32g274a): move fip in a dedicated partition feat(s32g274ardb): initialize the IO buffer feat(s32g274ardb): init
Merge changes from topic "s32g274a/sd_support" into integration
* changes: feat(s32g274a): move fip in a dedicated partition feat(s32g274ardb): initialize the IO buffer feat(s32g274ardb): initialize the uSDHC driver feat(s32g274ardb): set the system counter rate feat(s32g274ardb): init the generic timer for BL2 fix(nxp-mmc): handle response for CMD0 refactor(mmc): replace 0 with MMC_RESPONSE_NONE feat(mmc): add define for no response
show more ...
|
| #
4e4e6b50 |
| 13-Jun-2025 |
Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com> |
refactor(mmc): replace 0 with MMC_RESPONSE_NONE
Use the newly introduced MMC_RESPONSE_NONE macro for Command 0, where no response is expected.
Change-Id: I861a1bd009ea131677a23e2d94ea27bff3653360 S
refactor(mmc): replace 0 with MMC_RESPONSE_NONE
Use the newly introduced MMC_RESPONSE_NONE macro for Command 0, where no response is expected.
Change-Id: I861a1bd009ea131677a23e2d94ea27bff3653360 Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>
show more ...
|
| #
83e79a39 |
| 19-Sep-2023 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "fix(mmc): initialises response buffer with zeros" into integration
|
| #
b1a2c51a |
| 16-Sep-2023 |
Anand Saminathan <anans@google.com> |
fix(mmc): initialises response buffer with zeros
if ops->send_cmd in mmc_send_cmd returns a non-zero value, r_data (resp_data in mmc_device_state) is never populated, so the while condition in mmc_d
fix(mmc): initialises response buffer with zeros
if ops->send_cmd in mmc_send_cmd returns a non-zero value, r_data (resp_data in mmc_device_state) is never populated, so the while condition in mmc_device_state would end up reading the uninitialized resp_data buffer
Signed-off-by: Anand Saminathan <anans@google.com> Change-Id: I72d752867c537d49e111e6d149c3cca122f7dc9f
show more ...
|
| #
d5a8482f |
| 21-Mar-2023 |
Manish Pandey <manish.pandey2@arm.com> |
Merge "fix(mmc): remove redundant reset_to_idle call" into integration
|
| #
bc0a7386 |
| 28-Feb-2023 |
Baruch Siach <baruch@tkos.co.il> |
fix(mmc): remove redundant reset_to_idle call
mmc_enumerate() is the only caller of mmc_send_op_cond(). mmc_enumerate() calls mmc_reset_to_idle() just before calling mmc_send_op_cond(). No need to d
fix(mmc): remove redundant reset_to_idle call
mmc_enumerate() is the only caller of mmc_send_op_cond(). mmc_enumerate() calls mmc_reset_to_idle() just before calling mmc_send_op_cond(). No need to do that again in mmc_send_op_cond().
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Change-Id: Ib8c8ed1a559e3fecb315245f91bb3dc1f547d820
show more ...
|
| #
aa61ff6c |
| 24-Jan-2023 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "fix_misra_partition_mmc" into integration
* changes: fix(mmc): align part config type fix(mmc): do not modify r_data in mmc_send_cmd() fix(mmc): explicitly check oper
Merge changes from topic "fix_misra_partition_mmc" into integration
* changes: fix(mmc): align part config type fix(mmc): do not modify r_data in mmc_send_cmd() fix(mmc): explicitly check operators precedence fix(partition): add U suffix for unsigned numbers fix(partition): add missing curly braces
show more ...
|
| #
53cbc949 |
| 20-Jun-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(mmc): align part config type
This corrects MISRA C2012 10.3: The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type categor
fix(mmc): align part config type
This corrects MISRA C2012 10.3: The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category. Set part_config to be an unsigned char everywhere it is used.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9cf87848fb016a5630b3c8091290419e3bc62b91
show more ...
|
| #
bf78a650 |
| 21-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(mmc): do not modify r_data in mmc_send_cmd()
Fix MISRA C2012-17.8: A function parameter should not be modified
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I08ed4c6768c7988a98de
fix(mmc): do not modify r_data in mmc_send_cmd()
Fix MISRA C2012-17.8: A function parameter should not be modified
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I08ed4c6768c7988a98de21da181b97b0885139de
show more ...
|
| #
14cda516 |
| 18-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(mmc): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit While at it put the test on one l
fix(mmc): explicitly check operators precedence
This corrects the MISRA violation C2012-12.1: The precedence of operators within expressions should be made explicit While at it put the test on one line.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: Id19231faaf033c1e7dbe703690e0dddc7aa8f346
show more ...
|
| #
ad6a2e6d |
| 12-Sep-2022 |
Manish Pandey <manish.pandey2@arm.com> |
Merge "fix(mmc): resolve the build error" into integration
|
| #
ccf8392c |
| 09-Sep-2022 |
Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> |
fix(mmc): resolve the build error
Adding the header file plat/common/common_def.h to resolve the "SIZE_128" undeclared identifier error.
Change-Id: I399edf4248776f6dd9f93e000b8672cadc71509d Signed-
fix(mmc): resolve the build error
Adding the header file plat/common/common_def.h to resolve the "SIZE_128" undeclared identifier error.
Change-Id: I399edf4248776f6dd9f93e000b8672cadc71509d Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
show more ...
|
| #
1309c6c8 |
| 08-Sep-2022 |
Manish Pandey <manish.pandey2@arm.com> |
Merge changes from topic "fix_fip_in_emmc_boot" into integration
* changes: fix(st): add max size for FIP in eMMC boot part feat(mmc): get boot partition size
|
| #
f462c124 |
| 01-Sep-2022 |
Yann Gautier <yann.gautier@st.com> |
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_boo
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
show more ...
|
| #
afbb10ab |
| 17-Aug-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "st-mmc-updates" into integration
* changes: feat(st-sdmmc2): define FIFO size feat(st-sdmmc2): make reset property optional feat(st): enable MMC_FLAG_SD_CMD6 for SD-c
Merge changes from topic "st-mmc-updates" into integration
* changes: feat(st-sdmmc2): define FIFO size feat(st-sdmmc2): make reset property optional feat(st): enable MMC_FLAG_SD_CMD6 for SD-cards feat(st-sdmmc2): manage CMD6 feat(mmc): manage SD Switch Function for high speed mode
show more ...
|
| #
e5b267bb |
| 12-Jun-2019 |
Yann Gautier <yann.gautier@st.com> |
feat(mmc): manage SD Switch Function for high speed mode
On SD-cards, Switch Function Command (CMD6) is used to switch functions, like setting High Speed mode. It is useful for high capacity cards t
feat(mmc): manage SD Switch Function for high speed mode
On SD-cards, Switch Function Command (CMD6) is used to switch functions, like setting High Speed mode. It is useful for high capacity cards to double frequency (from 25MHz by default to 50MHz). If the SD-card is High Capacity, a CMD6 is issued after filling the device information. If High Speed mode is supported and the switch is OK, then the max_bus_freq can be set to 50MHz. The driver set_ios() function should then be called to update peripheral configuration, especially clock prescaler.
Change-Id: I2d6807aa7f9440d2b2f907a747cd3b47a2ba1545 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| #
7460c41d |
| 09-Jun-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge "fix(mmc): remove broken, unsecure, unused eMMC RPMB handling" into integration
|
| #
86b015eb |
| 08-Jun-2022 |
Ahmad Fatoum <a.fatoum@pengutronix.de> |
fix(mmc): remove broken, unsecure, unused eMMC RPMB handling
Replay-protected memory block access is enabled by writing 0x3 to PARTITION_ACCESS (bit[2:0]). Instead the driver is using the first boot
fix(mmc): remove broken, unsecure, unused eMMC RPMB handling
Replay-protected memory block access is enabled by writing 0x3 to PARTITION_ACCESS (bit[2:0]). Instead the driver is using the first boot partition, which does not provide any playback protection. Additionally, it unconditionally activates the first boot partition, potentially breaking boot for SoCs that consult boot partitions, require boot ack or downgrading to an old bootloader if the first partition happens to be the inactive one.
Also, neither enabling or disabling the RPMB observes the PARTITION_SWITCH_TIME. As there are no in-tree users for these functions, drop them for now until a properly functional implementation is added. That one will likely share most code with the existing boot partition switch, which doesn't suffer from the described issues.
Change-Id: Ia4a3f738f60a0dbcc33782f868cfbb1e1c5b664a Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
show more ...
|
| #
925ce791 |
| 07-Jun-2022 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "stm32mp-emmc-boot-fip" into integration
* changes: feat(stm32mp1): extend STM32MP_EMMC_BOOT support to FIP format refactor(mmc): replace magic value with new PART_CFG_B
Merge changes from topic "stm32mp-emmc-boot-fip" into integration
* changes: feat(stm32mp1): extend STM32MP_EMMC_BOOT support to FIP format refactor(mmc): replace magic value with new PART_CFG_BOOT_PARTITION_NO_ACCESS refactor(mmc): export user/boot partition switch functions
show more ...
|
| #
01c5dd5e |
| 31-May-2022 |
Ahmad Fatoum <a.fatoum@pengutronix.de> |
refactor(mmc): replace magic value with new PART_CFG_BOOT_PARTITION_NO_ACCESS
Disabling access to the boot partition reverts the MMC to read from the user area. Add a macro to make this clearer.
Su
refactor(mmc): replace magic value with new PART_CFG_BOOT_PARTITION_NO_ACCESS
Disabling access to the boot partition reverts the MMC to read from the user area. Add a macro to make this clearer.
Suggested-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Change-Id: I34a5a987980bb4690d08d255f465b11a4697ed5a
show more ...
|
| #
f85041a6 |
| 23-May-2022 |
Ahmad Fatoum <a.fatoum@pengutronix.de> |
refactor(mmc): export user/boot partition switch functions
At the moment, mmc_boot_part_read_blocks() takes care to switch to the boot partition before transfer and back afterwards. This can introdu
refactor(mmc): export user/boot partition switch functions
At the moment, mmc_boot_part_read_blocks() takes care to switch to the boot partition before transfer and back afterwards. This can introduce large overhead when reading small chunks. Give consumers of the API more control by exporting mmc_part_switch_current_boot() and mmc_part_switch_user().
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Change-Id: Ib641f188071bb8e0196f4af495ec9ad4a292284f
show more ...
|
| #
b39a1308 |
| 07-Jun-2021 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes I85a87dc9,If75df769,I55b0c910 into integration
* changes: feat(plat/st): add STM32MP_EMMC_BOOT option feat(drivers/st): manage boot part in io_mmc feat(drivers/mmc): boot partiti
Merge changes I85a87dc9,If75df769,I55b0c910 into integration
* changes: feat(plat/st): add STM32MP_EMMC_BOOT option feat(drivers/st): manage boot part in io_mmc feat(drivers/mmc): boot partition read support
show more ...
|
| #
5014b52d |
| 30-Mar-2021 |
Vyacheslav Yurkov <uvv.mail@gmail.com> |
feat(drivers/mmc): boot partition read support
Added a public function to read blocks from a current boot partition. switch between partitions has to respect eMMC partition switch timing.
Signed-of
feat(drivers/mmc): boot partition read support
Added a public function to read blocks from a current boot partition. switch between partitions has to respect eMMC partition switch timing.
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com> Change-Id: I55b0c910314253e5647486609583fd290dadd30a
show more ...
|
| #
cc031fbe |
| 08-Apr-2021 |
Madhukar Pappireddy <madhukar.pappireddy@arm.com> |
Merge changes from topic "mmc_device_info" into integration
* changes: mmc: remove useless extra semicolons Revert "mmc:prevent accessing to the released space in case of wrong usage"
|
| #
4ecd2417 |
| 23-Mar-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
mmc: remove useless extra semicolons
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: If1d6b2040e482577292890e3554449096648c2ae
|