| 36c87911 | 19-Oct-2023 |
william.wu <william.wu@rock-chips.com> |
usb: rockusb: Add support for usb3 download
This patch improve the usb gadget drivers and the usb dwc3 controller drivers to support rockusb usb3 download images.
With this patch, it can support: 1
usb: rockusb: Add support for usb3 download
This patch improve the usb gadget drivers and the usb dwc3 controller drivers to support rockusb usb3 download images.
With this patch, it can support: 1. Maskrom usbplug usb2 switch to usb3 automatically if the boards and the upgrade tool support usb3.
2. Loader enter usb3 automatically if the boards support usb3.
3. Force Maskrom/Loader usb fall back to usb2 if wait for usb3 enumeration time out.
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com> Signed-off-by: william.wu <william.wu@rock-chips.com> Change-Id: I9ad13fb42ae59cc9075545e22627f237f0eb1f32
show more ...
|
| 4d2787f5 | 02-Sep-2023 |
Jon Lin <jon.lin@rock-chips.com> |
rockusb: f_rockusb: Support switch storage
Change-Id: I10b6eb93c2bcf25f1f7bffcd8b168565873357de Signed-off-by: Jon Lin <jon.lin@rock-chips.com> |
| 47c8f13d | 28-Jul-2023 |
Hisping Lin <hisping.lin@rock-chips.com> |
f_rockusb: support check ta encryption key is written
Change-Id: I7581d2eca11ec830084dd42f5bc6047112e29243 Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com> |
| e93f38c2 | 09-Oct-2022 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: rockusb: fix compile errors
This fixed the below errors when 'CONFIG_CMD_ROCKUSB' is not set.
drivers/usb/gadget/f_mass_storage.c: In function ‘do_write’: drivers/usb/gadget/f_mass_sto
usb: gadget: rockusb: fix compile errors
This fixed the below errors when 'CONFIG_CMD_ROCKUSB' is not set.
drivers/usb/gadget/f_mass_storage.c: In function ‘do_write’: drivers/usb/gadget/f_mass_storage.c:824:15: error: unused variable ‘cdev_name’ [-Werror=unused-variable] const char *cdev_name = common->fsg->function.config->cdev->driver->name; ^~~~~~~~~ CC lib/display_options.o drivers/usb/gadget/f_mass_storage.c: In function ‘fsg_bind’: drivers/usb/gadget/f_mass_storage.c:2746:26: error: ‘rkusb_ss_function’ undeclared (first use in this function) usb_copy_descriptors(rkusb_ss_function);
Change-Id: Ifb4ec8412683290cbe151d45c950ecbcb791b6fc Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| afc6362a | 02-Aug-2022 |
Jon Lin <jon.lin@rock-chips.com> |
f_rockusb: Support read flash id for mtd devices
NAND for PP Nand, SNAND for SPI Nand, NOR for SPI Nor.
Change-Id: Ib4bfc9899da13a90c2665a6d98436c61fcf0cb8d Signed-off-by: Jon Lin <jon.lin@rock-chi
f_rockusb: Support read flash id for mtd devices
NAND for PP Nand, SNAND for SPI Nand, NOR for SPI Nor.
Change-Id: Ib4bfc9899da13a90c2665a6d98436c61fcf0cb8d Signed-off-by: Jon Lin <jon.lin@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 7eb64117 | 07-Sep-2022 |
Jon Lin <jon.lin@rock-chips.com> |
rockusb: f_rockusb: 128KB Max block xfer for SPI Nor
If too much data is transmitted at one time, communication with tools will be interrupted, the tool's log: Error:RKU_Read-->ReadFile failed,bRet=
rockusb: f_rockusb: 128KB Max block xfer for SPI Nor
If too much data is transmitted at one time, communication with tools will be interrupted, the tool's log: Error:RKU_Read-->ReadFile failed,bRet=0,err=995,size=13,read=0 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31 ERROR:DownloadImage-->RKU_WriteLBA failed,Written(0),RetCode(0)
Change-Id: I7f2eab95ea2718994a316f80b400f8b259c0d7b2 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
show more ...
|
| 2c0c66c1 | 08-Jul-2022 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
rockusb: add parity check for LBA write
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: I2113109a9372af862840436632aa4092b469c80a |
| b8e5601d | 24-Jun-2022 |
Jon Lin <jon.lin@rock-chips.com> |
f_rockusb: Decrease the offset of spinor IDB
The first copy is place in 64KB.
Change-Id: Ie6933e59ffb56eaaa434232990354c972c3c0693 Signed-off-by: Jon Lin <jon.lin@rock-chips.com> |
| 0a076251 | 13-May-2022 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: fix vendor and product id for ums
This fixes idVendor and idProduct value in USB Device descriptor for mass storage class.
Change-Id: Iaee53893eeb039dcf84b88fabb873781f739fa27 Signed-o
usb: gadget: fix vendor and product id for ums
This fixes idVendor and idProduct value in USB Device descriptor for mass storage class.
Change-Id: Iaee53893eeb039dcf84b88fabb873781f739fa27 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 78dcc928 | 08-Apr-2022 |
Zhang Yubing <yubing.zhang@rock-chips.com> |
drivers: f_rockusb: support dp hdcp handle and write
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com> Change-Id: Ia36efffb375080175c43b8456229d4b7eefbd67c |
| 420ee9d5 | 29-Mar-2022 |
Joseph Chen <chenjh@rock-chips.com> |
drivers: f_rockusb: Handle hdcp before write
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I4a7f87e2555ddbf96e0a3dafadc91e798adf6116 |
| a43611af | 02-Aug-2021 |
Hisping Lin <hisping.lin@rock-chips.com> |
f_rockusb: support write oem huk
Change-Id: I07a4db46e1fe3c5d2d584e700046b1b016940c38 Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com> |
| 0b97a2cb | 26-Oct-2021 |
Joseph Chen <chenjh@rock-chips.com> |
rockusb: introduce CONFIG_ROCKCHIP_NEW_IDB
The IDB header was changed from rk356x.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I8ac50adfe06da76f725b484681b76faeeb06d907 |
| 2daa60ee | 26-Sep-2021 |
Jon Lin <jon.lin@rock-chips.com> |
drivers: rockusb: Support NVME usb download
Change-Id: I51a4d7b64ea496866c2c20f3084e89112256f3cf Signed-off-by: Jon Lin <jon.lin@rock-chips.com> |
| d4cce25e | 15-Sep-2021 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
rockusb: add get storage media info for pc tool
the pc tool needs to confirm whether the current storage and firmware match while supporting multiple memory devices.
Signed-off-by: Yifeng Zhao <yi
rockusb: add get storage media info for pc tool
the pc tool needs to confirm whether the current storage and firmware match while supporting multiple memory devices.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: I6a65e34e0eaa4777cbf649fbe3bb748aeb1ecdb5
show more ...
|
| 850ced9d | 21-May-2021 |
Hisping Lin <hisping.lin@rock-chips.com> |
f_rockusb: support write ta encryption key
Change-Id: I9fca5f847a9d6146d325e2a9e07de8636fbe7904 Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com> |
| 2122174d | 12-May-2021 |
Wu Liangqing <wlq@rock-chips.com> |
rockusb: support avb bin download
Signed-off-by: Wu Liangqing <wlq@rock-chips.com> Change-Id: Ie33d56ee58f49f0a4b62fcdc2a9b121c653d5bcd |
| 65a0fed9 | 14-Apr-2021 |
Jon Lin <jon.lin@rock-chips.com> |
drivers: rockusb: Support new spinor IDB layout
1.Related to RK356x/RV1126/RK3308 spinor mtd block case 2.After RK356x, spinor IDB place in 128KB~1MB 2.Before RK356x, spinor IDB place in 32KB + 512K
drivers: rockusb: Support new spinor IDB layout
1.Related to RK356x/RV1126/RK3308 spinor mtd block case 2.After RK356x, spinor IDB place in 128KB~1MB 2.Before RK356x, spinor IDB place in 32KB + 512KB * n(n=0,1,2,3,4)
Change-Id: I06d9245b80f5334d0609573e750b3e2abd89c039 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
show more ...
|
| ca422507 | 20-Jan-2021 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
drivers: usb: add usb pid for dfu
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: Id823187c0b74fe99c4fdff7fdb85f6d995ed9d28 |
| 007849d8 | 12-Nov-2020 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
drivers: rockusb: add new idb feature for rk3568
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: Iee5ed01bb336a5b5994381fc8e734da3b87329fe |
| e66d4537 | 30-Oct-2020 |
Jon Lin <jon.lin@rock-chips.com> |
gadget: rockusb: Support rkusb_do_erase_force
Change-Id: Ia18c5a8414411044a72858d83ccddec63ac83e70 Signed-off-by: Jon Lin <jon.lin@rock-chips.com> |
| 40a6a2cb | 22-Sep-2020 |
Dayao Ji <jdy@rock-chips.com> |
fastboot: add virtual A/B feature support
Add "fasboot getvar snapshot-update-status" support and prevent erase/wipe of userdata/metadata when virtual A/B merge status is MERGING or SNAPSHOTTED (+so
fastboot: add virtual A/B feature support
Add "fasboot getvar snapshot-update-status" support and prevent erase/wipe of userdata/metadata when virtual A/B merge status is MERGING or SNAPSHOTTED (+source slot != current slot).
Signed-off-by: Dayao Ji <jdy@rock-chips.com> Change-Id: Ibb6ea5778b78b2601178f489d6efcee60d5d0a49
show more ...
|
| 95424692 | 19-May-2020 |
Joseph Chen <chenjh@rock-chips.com> |
gadget: rockusb: support usbplug download mode
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com> Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ic265243834ce294e6d979bcae89774a42600e5f3 |
| 3e677766 | 03-Mar-2020 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: vary ep max packet by usb speed
The EP Maxpacket should be varied due the USB speed may be changed at enumeration time.
Change-Id: I6cf8e1e8b6e3c24d14f7b24638aff88f8dd066e0 Signed-off-
usb: gadget: vary ep max packet by usb speed
The EP Maxpacket should be varied due the USB speed may be changed at enumeration time.
Change-Id: I6cf8e1e8b6e3c24d14f7b24638aff88f8dd066e0 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| ef78966d | 04-Mar-2020 |
Kever Yang <kever.yang@rock-chips.com> |
FROMLIST: usb: Migrate to support live DT for some driver
Use ofnode_ instead of fdt_ APIs so that the drivers can support live DT. This patch updates usb_get_dr_mode() and usb_get_maximum_speed() t
FROMLIST: usb: Migrate to support live DT for some driver
Use ofnode_ instead of fdt_ APIs so that the drivers can support live DT. This patch updates usb_get_dr_mode() and usb_get_maximum_speed() to use ofnode as parameter instead of fdt offset. And all the drivers who use these APIs update to use live dt APIs at the same time.
Change-Id: I41a3fa52e8fdb99f7fc36b1bc0eb21ae82f90e63 Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (am from http://patchwork.ozlabs.org/patch/1248682/)
show more ...
|