[U-Boot] [PATCH v5 2/3] cfi_flash: convert to driver model

Simon Glass sjg at chromium.org
Mon Nov 9 21:24:52 CET 2015


On 6 November 2015 at 23:57, Thomas Chou <thomas at wytron.com.tw> wrote:
> Convert cfi flash to driver model.
>
> Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
> ---
> v2
>   add dts binding.
>   add more help to Kconfig.
>   move struct platdata to top of file as Simon suggested.
> v3
>   change to MTD uclass.
> v4
>   fix fdt addr and size cells in cfi_flash_probe().
>   move probe uclass to cfi_flash_dm_init().
>   add comment as suggested by Stefan.
> v5
>   use uclass priv mtd_info instead of cfi_mtd_info[].
>
>  doc/device-tree-bindings/mtd/mtd-physmap.txt | 88 ++++++++++++++++++++++++++++
>  drivers/mtd/Kconfig                          | 11 ++++
>  drivers/mtd/cfi_flash.c                      | 78 ++++++++++++++++++++++++
>  3 files changed, 177 insertions(+)
>  create mode 100644 doc/device-tree-bindings/mtd/mtd-physmap.txt

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list