Forbid reading data beyong addr 32MB to protect user data & firmware. Excess
partial is filled with 0xcc. The addr 32MB is quoted from pre-loader.
Change-Id: I96f4fb3bb0d88a309fef20650863011cd9f0dfd9
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
At present the vendor storage partition is small than 64K in the
design, so vendor storage r/w commands do not take multi-packet
into consideration, if it is needed, the codes should do a little
change in future. Besides, the RPMB r/w support need to be added
when its APIs get ready.
Change-Id: I621604c99b44c69eb3aff3e01b28a18f35303040
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This patch add a new rockusb command support.
Rockusb command provides a way to upgrade firmware for Rockchip SoC
based devices, its design make use of USB Bulk-Only Transport based
on USB Mass Storage framework.
Change-Id: Idb04c62a8f6fb7ba84641bd4ee00f67920a7cfc8
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This patch add a new rockusb gadget driver function.
For the design, simply embeding rockusb code into USB Mass Storage
function as using UMS framework can prominently improve upgrade speed
and devices stability.
This change does not affect the original USB Mass Storage function,
the rockusb process are just checked by IS_RKUSB_UMS_DNL macro which
only run when CONFIG_CMD_ROCKUSB was defined and rkusb_ums_dnl
composite driver was registed.
Change-Id: I9c2723200c7e02d947587037abcd7d3badf4256c
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>