/* by default ENV use the same parameters than SF command */
#ifndef CONFIG_ENV_SPI_BUS
# define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
/* by default ENV use the same parameters than SF command */
#ifndef CONFIG_ENV_SPI_BUS
# define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
/* Access the serial operations for a device */
#define sf_get_ops(dev) ((struct dm_spi_flash_ops *)(dev)->driver->ops)
/* Access the serial operations for a device */
#define sf_get_ops(dev) ((struct dm_spi_flash_ops *)(dev)->driver->ops)
unsigned int max_hz, unsigned int spi_mode);
/* Compatibility function - this is the old U-Boot API */
unsigned int max_hz, unsigned int spi_mode);
/* Compatibility function - this is the old U-Boot API */
return mtd->_read(mtd, offset, len, &retlen, buf);
}
return mtd->_read(mtd, offset, len, &retlen, buf);
}
return mtd->_write(mtd, offset, len, &retlen, buf);
}
return mtd->_write(mtd, offset, len, &retlen, buf);
}