mbox series

[0/3] env: sf: add support of command env erase

Message ID 20210209104852.1293-1-patrick.delaunay@foss.st.com
Headers show
Series env: sf: add support of command env erase | expand

Message

Patrick DELAUNAY Feb. 9, 2021, 10:48 a.m. UTC
Hi,

I add support of env erase command for SPI flash backend (sf).

To erase the environment, this patch only invalidate the content at
CONFIG_ENV_OFFSET and at CONFIG_ENV_OFFSET_REDUND (force a bad CRC).

The 2 first patchs of the serie are preliminary and clenaup steps.

Patrick



Patrick Delaunay (3):
  env: add ENV_ERASE_PTR macro
  env: sf: update the use of macro ENV_SAVE_PTR
  env: sf: add support of command env erase

 env/ext4.c             |  3 +--
 env/mmc.c              |  6 +-----
 env/sf.c               | 36 +++++++++++++++++++++++++++++++++++-
 include/env_internal.h |  1 +
 4 files changed, 38 insertions(+), 8 deletions(-)