From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Delaunay Date: Tue, 9 Feb 2021 11:48:49 +0100 Subject: [PATCH 0/3] env: sf: add support of command env erase Message-ID: <20210209104852.1293-1-patrick.delaunay@foss.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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(-) -- 2.17.1