IO: support block device type
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 18 Mar 2016 07:14:19 +0000 (15:14 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 27 Apr 2016 10:51:58 +0000 (18:51 +0800)
commit9da7a653bda90669057b842b64de4f6b880c8574
tree2f79193caff0fc5f93933bfee19c7699d0b98db4
parent142ff9b5f5d80d0c5e5a235f5c80570a535c7e72
IO: support block device type

FIP is accessed as memory-mapped type. eMMC is block device type.
In order to support FIP based on eMMC, add the new io_block layer.

io_block always access eMMC device as block size. And it'll only
copy the required data into buffer in io_block driver. So preparing
an temporary buffer is required.

When use io_block device, MAX_IO_BLOCK_DEVICES should be declared
in platform_def.h. It's used to support multiple block devices.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers/io/io_block.c [new file with mode: 0644]
include/drivers/io/io_block.h [new file with mode: 0644]
include/drivers/io/io_storage.h