Merge changes from topic "jc/shift-overflow" into integration* changes: Enable -Wshift-overflow=2 to check for undefined shift behavior Update base code to not rely on undefined overflow behavi
Merge changes from topic "jc/shift-overflow" into integration* changes: Enable -Wshift-overflow=2 to check for undefined shift behavior Update base code to not rely on undefined overflow behaviour Update hisilicon drivers to not rely on undefined overflow behaviour Update synopsys drivers to not rely on undefined overflow behaviour Update imx platform to not rely on undefined overflow behaviour Update mediatek platform to not rely on undefined overflow behaviour Update layerscape platform to not rely on undefined overflow behaviour Update intel platform to not rely on undefined overflow behaviour Update rockchip platform to not rely on undefined overflow behaviour Update renesas platform to not rely on undefined overflow behaviour Update meson platform to not rely on undefined overflow behaviour Update marvell platform to not rely on undefined overflow behaviour
show more ...
Update synopsys drivers to not rely on undefined overflow behaviourThis consists of ensuring that the left operand of each shift isunsigned when the operation might overflow into the sign bit.Ch
Update synopsys drivers to not rely on undefined overflow behaviourThis consists of ensuring that the left operand of each shift isunsigned when the operation might overflow into the sign bit.Change-Id: I54560fe290e7dc52d364d0fe1c81a16f4c8d9a7bSigned-off-by: Justin Chadwell <justin.chadwell@arm.com>
driver: synopsys: emmc: Do not change FIFO TH as this breaks some platformsDesignware MMC DMA FIFO threshold shouldn't be changed as it brokePoplar platform's uboot MMCSigned-off-by: Tien Hock,
driver: synopsys: emmc: Do not change FIFO TH as this breaks some platformsDesignware MMC DMA FIFO threshold shouldn't be changed as it brokePoplar platform's uboot MMCSigned-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>Change-Id: I87ec9d5a78e1bf45119cb73797e402b25a914c13
driver: synosys: Fix SD MMC not initializing correctlydw_params.mmc_dev_type should be assigned before mmc_init, otherwise SDMMCinitialization will fail as the initialization treats the device as
driver: synosys: Fix SD MMC not initializing correctlydw_params.mmc_dev_type should be assigned before mmc_init, otherwise SDMMCinitialization will fail as the initialization treats the device as EMMCinstead of SD.Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
drivers: synopsys: Fix synopsys MMC driverThere are some issues with synopsys MMC driver:- CMD8 should not expect data (for SD)- ACMD51 should expect data (Send SCR for SD)- dw_prepare should no
drivers: synopsys: Fix synopsys MMC driverThere are some issues with synopsys MMC driver:- CMD8 should not expect data (for SD)- ACMD51 should expect data (Send SCR for SD)- dw_prepare should not dictate size to be MMC_BLOCK_SIZE, block size isnow handled in the dw_prepare function- after the CMD completes, when doing dw_read, we need to invalidate cacheand wait for the data transfer to complete- Need to set FIFO threshold, otherwise DMA might never get the interruptto read or writeSigned-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
Change some vars and functions to be static.Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- inclu
Sanitise includes across codebaseEnforce full include path for includes. Deprecate old paths.The following folders inside include/lib have been left unchanged:- include/lib/cpus/${ARCH}- include/lib/el3_runtime/${ARCH}The reason for this change is that having a global namespace forincludes isn't a good idea. It defeats one of the advantages of havingfolders and it introduces problems that are sometimes subtle (becauseyou may not know the header you are actually including if there are twoof them).For example, this patch had to be created because two headers werecalled the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platformto avoid collision."). More recently, this patch has had similarproblems: 46f9b2c3a282 ("drivers: add tzc380 support").This problem was introduced in commit 4ecca33988b9 ("Move include andsource files to logical locations"). At that time, there weren't toomany headers so it wasn't a real issue. However, time has shown thatthis creates problems.Platforms that want to preserve the way they include headers may add theremoved paths to PLAT_INCLUDES, but this is discouraged.Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8fSigned-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
mmc: Update framework to use standard response typeRespect official response type and update response to followofficial specification.All the MMC_RESPONSE_R(_x) are replaced with each correspondi
mmc: Update framework to use standard response typeRespect official response type and update response to followofficial specification.All the MMC_RESPONSE_R(_x) are replaced with each corresponding define.Partly revert 2a82a9c95f6c06079f58d69315544a6b49cf64a4 for dw_mmc.c:Responses R1, R1B and R5 have CRC.Signed-off-by: Lionel Debieve <lionel.debieve@st.com>Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers: emmc: dw_mmc: Add response flag into response ID definitionAdd response flag into ID definition so that driver does notneed to handle it again.Signed-off-by: Jun Nie <jun.nie@linaro.org
drivers: emmc: dw_mmc: Add response flag into response ID definitionAdd response flag into ID definition so that driver does notneed to handle it again.Signed-off-by: Jun Nie <jun.nie@linaro.org>Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
drivers/dw_mmc: migrate to mmc frameworkMigrate dw_mmc driver from emmc framework to mmc framework. Theemmc framework will be abandoned.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers: fix switch statements to comply with MISRA rulesEnsure (where possible) that switch statements in drivers comply withMISRA rules 16.1 - 16.7.Change-Id: I7a91e04b02af80fbc4673a52293386c0
drivers: fix switch statements to comply with MISRA rulesEnsure (where possible) that switch statements in drivers comply withMISRA rules 16.1 - 16.7.Change-Id: I7a91e04b02af80fbc4673a52293386c0f81a0f7aSigned-off-by: Jonathan Wright <jonathan.wright@arm.com>
drivers:ufs: fix hynix ufs bug with quirk on hi36xx SoCHynix ufs has deviations on hi36xx platform which will resultin ufs bursts transfer failures at a very low probability.To fix the problem,
drivers:ufs: fix hynix ufs bug with quirk on hi36xx SoCHynix ufs has deviations on hi36xx platform which will resultin ufs bursts transfer failures at a very low probability.To fix the problem, the Hynix device must set the registerVS_DebugSaveConfigTime to 0x10, which will set time referencefor SaveConfigTime is 250 ns. The time reference for SaveConfigTimeis 40 ns by default.Signed-off-by: fengbaopeng <fengbaopeng@hisilicon.com>
emmc/dw_mmc: fix the assert on HLE bitWhen check HLE bit in interrupt register, it should check whetherHLE bit is set, not clear.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers: add designware ufs driverInitialized the designware UFS PHY.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by
Use SPDX license identifiersTo make software license auditing simpler, use SPDX[0] licenseidentifiers instead of duplicating the license text in every file.NOTE: Files that have been imported by FreeBSD have not been modified.[0]: https://spdx.org/Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761aSigned-off-by: dp-arm <dimitris.papastamos@arm.com>
drivers: add designware emmc driverSupport Designware eMMC driver. It's based on both IO blockand eMMC driver.Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>