Searched refs:env_flash (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/env/ |
H A D | sf.c | 38 static struct spi_flash *env_flash; variable 55 env_flash = dev_get_uclass_priv(new); in setup_flash_device() 58 if (!env_flash) { in setup_flash_device() 59 env_flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, in setup_flash_device() 62 if (!env_flash) { in setup_flash_device() 106 ret = spi_flash_read(env_flash, saved_offset, in env_sf_save() 115 ret = spi_flash_erase(env_flash, env_new_offset, in env_sf_save() 122 ret = spi_flash_write(env_flash, env_new_offset, in env_sf_save() 128 ret = spi_flash_write(env_flash, saved_offset, in env_sf_save() 134 ret = spi_flash_write(env_flash, env_offset + offsetof(env_t, flags), in env_sf_save() [all …]
|