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>
1 parent 142ff9b commit 9da7a653bda90669057b842b64de4f6b880c8574
@Haojian Zhuang Haojian Zhuang authored on 18 Mar 2016
Showing 3 changed files
View
drivers/io/io_block.c 0 → 100644
View
include/drivers/io/io_block.h 0 → 100644
View
include/drivers/io/io_storage.h