[U-Boot] [PATCH v2 15/44] dm: blk: Add a legacy block interface
Simon Glass
sjg at chromium.org
Sat May 14 21:35:07 CEST 2016
On 1 May 2016 at 11:36, Simon Glass <sjg at chromium.org> wrote:
> There is quite a bit of duplicated common code related to block devices
> in the IDE and SCSI implementations.
>
> Create some helper functions that can be used to reduce the duplication.
> These rely on a linker list of interface-type drivers
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Adjust newline output in blk_list_part()
> - Mention MMC partition 0 in the comments
>
> drivers/block/Makefile | 4 +
> drivers/block/blk_legacy.c | 261 +++++++++++++++++++++++++++++++++++++++++++++
> include/blk.h | 195 +++++++++++++++++++++++++++++++++
> 3 files changed, 460 insertions(+)
> create mode 100644 drivers/block/blk_legacy.c
Applied to u-boot-dm.
More information about the U-Boot
mailing list