[U-Boot] [PATCH v7 16/34] sf: Add MTD support to spi_flash

Simon Glass sjg at chromium.org
Thu Nov 26 18:50:41 CET 2015


Hi Jagan,

On 26 November 2015 at 04:04, Jagan Teki <jteki at openedev.com> wrote:
> This patch adds mtd_info support to spi_flash layer, MTD has
> proven core for flash operations so adding MTD to spi_flash
> will extends more functionality.
>
> Reviewed-by: Heiko Schocher <hs at denx.de>
> Signed-off-by: Jagan Teki <jteki at openedev.com>
> ---
>  drivers/mtd/spi/sf_ops.c   | 40 +++++++++++++++++++++++-----------------
>  drivers/mtd/spi/sf_probe.c | 28 ++++++++++++++++++++--------
>  include/spi_flash.h        |  4 ++++
>  3 files changed, 47 insertions(+), 25 deletions(-)

This uses its own methods instead of driver model - function pointers
should be part of operations in a uclass.

Regards,
Simon


More information about the U-Boot mailing list