| a4bcfe94 | 10-Mar-2020 |
Nicolas Le Bayon <nicolas.le.bayon@st.com> |
fix(drivers/st/pmic): missing error check
In pmic_operate(), "regulators" node value must be checked before entering in the fdt_for_each_subnode loop.
Change-Id: I1460cd24ec56ec47ab644f396b71b92973
fix(drivers/st/pmic): missing error check
In pmic_operate(), "regulators" node value must be checked before entering in the fdt_for_each_subnode loop.
Change-Id: I1460cd24ec56ec47ab644f396b71b92973e75fb4 Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 42822844 | 24-Feb-2020 |
Benjamin Gaignard <benjamin.gaignard@st.com> |
fix(drivers/st/pmic): initialize i2c_state
Make sure that i2c->i2c_state is correctly initialized with I2C_STATE_RESET value this avoid hi2c->lock to not be set to 0 when calling stm32_i2c_init duri
fix(drivers/st/pmic): initialize i2c_state
Make sure that i2c->i2c_state is correctly initialized with I2C_STATE_RESET value this avoid hi2c->lock to not be set to 0 when calling stm32_i2c_init during platform suspend/resume operations.
Change-Id: I3b4c1f9115589325eb256789a1764c322741db7d Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| a5bcf824 | 09-Nov-2020 |
Yann Gautier <yann.gautier@st.com> |
fix(io_stm32image): invalidate cache on local buf
When retrieving data from stm32 image file, the header is removed with a memcpy that shifts the data to overwrite the useless header for next binary
fix(io_stm32image): invalidate cache on local buf
When retrieving data from stm32 image file, the header is removed with a memcpy that shifts the data to overwrite the useless header for next binary.
STM32 binary from boot device: |-------------------------------------| | header | payload | |-------------------------------------|
After the memcpy: |-------------------------------------| | payload | remain | |-------------------------------------|
But the remaining data after the shifted payload is still in the cache. As it is of no use for anyone, just invalidate the cache at this address. This is required if the DDR is mapped secure in BL2, and the secure access is forbidden in BL33, or else TZC-400 issues an error.
Change-Id: Ice2af3b1ca49eccb79bfc62db60437e259d344ca Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| b6561c12 | 19-Jun-2020 |
Yann Gautier <yann.gautier@st.com> |
refactor(io_stm32image): add header size variable
A variable hdr_sz is created in stm32image_partition_read() function. It just represents the size of the stm32 image header but it really improves t
refactor(io_stm32image): add header size variable
A variable hdr_sz is created in stm32image_partition_read() function. It just represents the size of the stm32 image header but it really improves the readability of the function.
Change-Id: I95ec62a78a4b6c6a75b0d8c8aa0faef8bee424da Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 495885bc | 21-Jul-2020 |
Lionel Debieve <lionel.debieve@st.com> |
drivers: stm32_fmc2_nand: fix boundary check for chip select
Chip select is retrieved from device tree and check must be done regarding the MAX_CS defined.
Signed-off-by: Lionel Debieve <lionel.deb
drivers: stm32_fmc2_nand: fix boundary check for chip select
Chip select is retrieved from device tree and check must be done regarding the MAX_CS defined.
Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Reviewed-by: Christophe KERELLO <christophe.kerello@st.com> Change-Id: I03144b133bd51a845a4794f0f6bbd9402fc04936
show more ...
|
| 1bb9072a | 05-Feb-2020 |
Etienne Carriere <etienne.carriere@st.com> |
clk: stm32mp1: fix rcc mckprot status
MCKPROT hardening in RCC mandates that both bits RCC[TZEN] and RCC[MCKPROT] are enabled. This change fixes stm32mp1_rcc_is_mckprot() to check both bits, not RCC
clk: stm32mp1: fix rcc mckprot status
MCKPROT hardening in RCC mandates that both bits RCC[TZEN] and RCC[MCKPROT] are enabled. This change fixes stm32mp1_rcc_is_mckprot() to check both bits, not RCC[MCKPROT] only.
This change also updates stm32mp1_rcc_is_secure() for consistency.
Change-Id: If1f07babdcb5677906ddbf974d9dc17255d4e174 Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 54019a35 | 12-Jun-2020 |
Yann Gautier <yann.gautier@st.com> |
mmc: st: clear some flags before sending a command
The ICR static flags are cleared before sending a command. The SDMMC_DCTRLR register is set to 0 if no data is expected on a given command or on th
mmc: st: clear some flags before sending a command
The ICR static flags are cleared before sending a command. The SDMMC_DCTRLR register is set to 0 if no data is expected on a given command or on the next command in case of CMD55.
Change-Id: I5ae172a484218f53160e98b3684967c6960475a6 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 7d8e1218 | 12-Jun-2020 |
Yann Gautier <yann.gautier@st.com> |
mmc: st: correct retries management
The retries number should be 3. A warning message is added in mmc_block_read(), and the code is refactored.
Change-Id: I577c7dd91c451c7580b1660042cb5fe26ee3fa12
mmc: st: correct retries management
The retries number should be 3. A warning message is added in mmc_block_read(), and the code is refactored.
Change-Id: I577c7dd91c451c7580b1660042cb5fe26ee3fa12 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 769a9904 | 04-Sep-2020 |
Yann Gautier <yann.gautier@st.com> |
gpio: stm32_gpio: check GPIO node status after checking DT
The call to fdt_get_status(node) has to be done after the DT is found to be valid.
Fixes: 1fc2130c5 stm32mp1: update device tree and gpio
gpio: stm32_gpio: check GPIO node status after checking DT
The call to fdt_get_status(node) has to be done after the DT is found to be valid.
Fixes: 1fc2130c5 stm32mp1: update device tree and gpio functions
Change-Id: I70f803aae3dde128a9e740f54c8837b64cb1a244 Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 3d0d0a1b | 02-Dec-2019 |
Etienne Carriere <etienne.carriere@st.com> |
drivers/stm32_hash: register resources as secure or not
Register in the shared resources driver the secure or non-secure state of the HASH instances. Note that only BL32 needs to register the shared
drivers/stm32_hash: register resources as secure or not
Register in the shared resources driver the secure or non-secure state of the HASH instances. Note that only BL32 needs to register the shared peripheral because BL2 does not embed the shared resources driver.
Change-Id: I7f78fa8e47da71d48ef8b1dfe4d6f040fe918d8b Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| 66de6f3c | 02-Dec-2019 |
Etienne Carriere <etienne.carriere@st.com> |
drivers/stm32_gpio: register GPIO resources as secure or not
Register in the shared resources driver the secure or non-secure state of the GPIO pins.
Change-Id: Ifda473bcbbb0af799be6587961d6641edf8
drivers/stm32_gpio: register GPIO resources as secure or not
Register in the shared resources driver the secure or non-secure state of the GPIO pins.
Change-Id: Ifda473bcbbb0af799be6587961d6641edf887605 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| bcc360f7 | 02-Dec-2019 |
Etienne Carriere <etienne.carriere@st.com> |
drivers/stm32_iwdg: register IWDG resources as secure or not
Register in the shared resources driver the secure or non-secure state of the IWDG instances.
Change-Id: I3a3bc9525447f6a2a465891ca3a3fd
drivers/stm32_iwdg: register IWDG resources as secure or not
Register in the shared resources driver the secure or non-secure state of the IWDG instances.
Change-Id: I3a3bc9525447f6a2a465891ca3a3fd5fe664ca07 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|