Commit 82eeb71ae9ddcdcd5326b397cbe0c42b71553f67

Authored by Tom Rini
1 parent 49ad40298c

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]);