Commit
82eeb71ae9ddcdcd5326b397cbe0c42b71553f67
Exists in
smarc_8mq_lf_v2020.04
and in
12 other branches
8qm-imx_v2020.04_5.4.70_2.3.0, emb_lf_v2022.04, emb_lf_v2023.04, pitx_8mp_lf_v2020.04, smarc-8m-android-10.0.0_2.6.0, smarc-8m-android-11.0.0_2.0.0, smarc-8mp-android-11.0.0_2.0.0, smarc_8m-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2020.04_5.4.24_2.1.0, smarc_8mp_lf_v2020.04, smarc_8mq-imx_v2020.04_5.4.24_2.1.0
Revert "env: sf: fix environment in SPI NOR"
Per Heiko the original changes were correct and something is misbehaving
on his hardware.
This reverts commit 3d5931e5986a49c44cdab845c6751d845812e8d8.
Signed-off-by: Tom Rini <trini@konsulko.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Side-by-side Diff
... |
... |
@@ -98,7 +98,7 @@ |
98
|
98 |
u32 addr = 0; |
99
|
99 |
u32 page_size = flash->page_size; |
100
|
100 |
|
101
|
|
- memset(buf, 0xff, len); |
|
101 |
+ memset(buf, 0x0, len); |
102
|
102 |
for (int i = 0; i < len / page_size; ++i) { |
103
|
103 |
int ret = spi_flash_read(flash, offset, page_size, |
104
|
104 |
&((char *)buf)[addr]); |