
This patch implement reading blocks form selected device with LBA addressing.
Corresponding command on workstation is: rkdeveloptool rl <start_blk> <blk_cnt> <file>
While we support reading more than one blocks per K_FW_LBA_READ_10 request, rkdeveloptool and original rockchip tool do perform chunk reads limiting the maximum size per chunk far lower than max int values.
Signed-off-by: Alberto Panizzo alberto@amarulasolutions.com Reviewed-by: Simon Glass sjg@chromium.org
arch/arm/include/asm/arch-rockchip/f_rockusb.h | 3 + doc/README.rockusb | 1 + drivers/usb/gadget/f_rockusb.c | 104 ++++++++++++++++++++++++- 3 files changed, 107 insertions(+), 1 deletion(-)
Reviewed-by: Philipp Tomsich philipp.tomsich@theobroma-systems.com