| #
18188f57 |
| 21-Dec-2023 |
William Wu <william.wu@rock-chips.com> |
usb: gadget: rockusb: Improve rockusb download speed
This patch increase the usb transfer size for rockusb, the current size is 256KB, it can increase to 4MB for the usb dwc3 controller and the new
usb: gadget: rockusb: Improve rockusb download speed
This patch increase the usb transfer size for rockusb, the current size is 256KB, it can increase to 4MB for the usb dwc3 controller and the new upgrade tool.
Test on RK3588 EVB1 with windows upgrade tool V1.85
before: USB2.0 loader download speed: 27.10 MBps USB3.0 loader download speed: 39.73 MBps
after: USB2.0 loader download speed: 28.04 MBps USB3.0 loader download speed: 59.59 MBps
Change-Id: Iae8899115466da7f329d83f54c7051f69d06d412 Signed-off-by: William Wu <william.wu@rock-chips.com>
show more ...
|
| #
7b83b3a6 |
| 02-Nov-2023 |
Jianwei Zheng <jianwei.zheng@rock-chips.com> |
usb: gadget: rockusb: avoid enter maskrom if usb cable not connected
On platforms which support rockusb3.0, when we use "reboot loader" to restart system to loader mode and USB cable is not connecte
usb: gadget: rockusb: avoid enter maskrom if usb cable not connected
On platforms which support rockusb3.0, when we use "reboot loader" to restart system to loader mode and USB cable is not connected, in this case USB3 polling will timeout and USB speed will switch to USB2 and re-enumerate. But on current code, -ENODEV will be returned which cause entering rockusb failed and error entering maskrom.
error log: RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x3a3e000 wait for usb3 connect timeout RKUSB: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x3a3e000 Enter rockusb failed, fallback to bootrom...
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com> Change-Id: I3ecd408ea1605ad81839274f167353f3de9eb6c8
show more ...
|
| #
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 ...
|
| #
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 ...
|
| #
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
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
57521aaa |
| 23-Nov-2018 |
Lukasz Majewski <lukma@denx.de> |
UPSTREAM: usb: composite: Move bitmap related operations to ./include/linux/bitmap.h
The BITMAP related operations can now be moved to ./include/linux/bitmap.h file to mimic the Linux kernel directo
UPSTREAM: usb: composite: Move bitmap related operations to ./include/linux/bitmap.h
The BITMAP related operations can now be moved to ./include/linux/bitmap.h file to mimic the Linux kernel directory tree.
This change also allows to remove the lin_gadget_compat.h header file (which is a legacy code only for composite U-boot layer). It was also possible to remove #includes from several USB gadget drivers.
Conflicts: include/usb/lin_gadget_compat.h
Change-Id: Id61d6f9cef89ca238f082f430f6d01ac1009aa07 Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 916fa097997a5e1b70768ce944de28e038d4bebf)
show more ...
|
| #
aa10d76e |
| 30-Apr-2018 |
Bryan O'Donoghue <pure.logic@nexus-software.ie> |
UPSTREAM: usb: f_mass_storage: Fix set_bit and clear_bit usage
Compiling the f_mass_storage driver for an x86 target results in a compilation error as set_bit and clear_bit are provided by bitops.h
UPSTREAM: usb: f_mass_storage: Fix set_bit and clear_bit usage
Compiling the f_mass_storage driver for an x86 target results in a compilation error as set_bit and clear_bit are provided by bitops.h
Looking at the provenance of the current u-boot code and the git change history in the kernel, it looks like we have a local copy of set_bit and clear_bit as a hold-over from porting the Linux driver into u-boot.
These days __set_bit and __clear_bit are optionally provided by an arch and can be used as inputs to generic_bit_set and generic_bit_clear.
This patch switches over to generic_set_bit and generic_clear_bit to accommodate.
Tested on i.MX WaRP7 and Intel Edison
Change-Id: Ic7a56f08dcd5782a963a935df8217f5fdb605ee2 Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Cc: Lukasz Majewski <lukma@denx.de> Cc: Marek Vasut <marex@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 5ac73f6879327beef45bc58484f1f09c2f0cb37c)
show more ...
|
| #
75b27a42 |
| 18-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
UPSTREAM: usb: f_mass_storage: simplify logical expression
An unsigned int is always >= 0.
Change-Id: Iba5723469069b0155bcaca876071e32679a0437d Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.d
UPSTREAM: usb: f_mass_storage: simplify logical expression
An unsigned int is always >= 0.
Change-Id: Iba5723469069b0155bcaca876071e32679a0437d Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 48cdfa2f8177dbdfc77c365c0f3f918ceadbe484)
show more ...
|
| #
28386b6d |
| 05-Jun-2018 |
Alexey Brodkin <Alexey.Brodkin@synopsys.com> |
UPSTREAM: lib: Add hexdump
Often during debugging session it's very interesting to see what data we were dealing with. For example what we write or read to/from memory or peripherals.
This change i
UPSTREAM: lib: Add hexdump
Often during debugging session it's very interesting to see what data we were dealing with. For example what we write or read to/from memory or peripherals.
This change introduces functions that allow to dump binary data with one simple function invocation like: ------------------->8---------------- print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len); ------------------->8----------------
which gives us the following: ------------------->8---------------- 00000000: f2 b7 c9 88 62 61 75 64 72 61 74 65 3d 31 31 35 ....baudrate=115 00000010: 32 30 30 00 62 6f 6f 74 61 72 67 73 3d 63 6f 6e 200.bootargs=con 00000020: 73 6f 6c 65 3d 74 74 79 53 33 2c 31 31 35 32 30 sole=ttyS3,11520 00000030: 30 6e 38 00 62 6f 6f 74 64 65 6c 61 79 3d 33 00 0n8.bootdelay=3. 00000040: 62 6f 6f 74 66 69 6c 65 3d 75 49 6d 61 67 65 00 bootfile=uImage. 00000050: 66 64 74 63 6f 6e 74 72 6f 6c 61 64 64 72 3d 39 fdtcontroladdr=9 00000060: 66 66 62 31 62 61 30 00 6c 6f 61 64 61 64 64 72 ffb1ba0.loadaddr 00000070: 3d 30 78 38 32 30 30 30 30 30 30 00 73 74 64 65 =0x82000000.stde 00000080: 72 72 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 rr=serial0@e0022 00000090: 30 30 30 00 73 74 64 69 6e 3d 73 65 72 69 61 6c 000.stdin=serial 000000a0: 30 40 65 30 30 32 32 30 30 30 00 73 74 64 6f 75 0@e0022000.stdou 000000b0: 74 3d 73 65 72 69 61 6c 30 40 65 30 30 32 32 30 t=serial0@e00220 000000c0: 30 30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.............. ... ------------------->8----------------
Source of hexdump.c was copied from Linux kernel v4.7-rc2.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Anatolij Gustschin <agust@denx.de> Cc: Mario Six <mario.six@gdsys.cc> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Stefan Roese <sr@denx.de>
Change-Id: I038b41f51d45d1b853da499578bf8ef384a63730 Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit f8c987f8f127f867d96ca74bcd1fcb11d8265b67)
show more ...
|
| #
26dd3474 |
| 29-Sep-2018 |
William Wu <william.wu@rock-chips.com> |
usb: gadget: add SuperSpeed support to the Gadget Framework
This patch implements the Binary Device Object Store (BOS) Descriptor for SuperSpeed. It also add SuperSpeed Endpoint Descriptors for fast
usb: gadget: add SuperSpeed support to the Gadget Framework
This patch implements the Binary Device Object Store (BOS) Descriptor for SuperSpeed. It also add SuperSpeed Endpoint Descriptors for fastboot and rockusb gadget.
Change-Id: I7d858e1b5117d403919f5fdacb40072a5fad336f Signed-off-by: William Wu <william.wu@rock-chips.com>
show more ...
|
| #
f16e43f8 |
| 25-Oct-2017 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: add a new rockusb gadget driver
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
usb: gadget: add a new rockusb gadget driver
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>
show more ...
|
| #
02585eb3 |
| 07-Dec-2015 |
Stephen Warren <swarren@nvidia.com> |
ums: support multiple LUNs at once
Extend the ums command to accept a list of block devices. Each of these will be exported as a separate LUN. An example use-case would be:
ums 0 mmc 0,0.1,0.2
...
ums: support multiple LUNs at once
Extend the ums command to accept a list of block devices. Each of these will be exported as a separate LUN. An example use-case would be:
ums 0 mmc 0,0.1,0.2
... which would export LUNs for eMMC 0's user data, boot0, and boot1 HW partitions. This is useful since it allows the host access to everything on the eMMC without having to somehow stop the ums command from executing and restart it with different parameters.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
24b852a7 |
| 09-Nov-2015 |
Simon Glass <sjg@chromium.org> |
Move console definitions into a new console.h file
The console includes a global variable and several functions that are only used by a small subset of U-Boot files. Before adding more functions, mo
Move console definitions into a new console.h file
The console includes a global variable and several functions that are only used by a small subset of U-Boot files. Before adding more functions, move the definitions into their own header file.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
1254ff97 |
| 10-Jul-2015 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
|
| #
6f43ba70 |
| 07-Jul-2015 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
|
| #
0d3f732f |
| 16-Jun-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-usb
|
| #
075020ab |
| 22-May-2015 |
Inha Song <ideal.song@samsung.com> |
usb: f_mass_storage: sleep_thread: decrease the interval for check ctrlc()
This change decreases the interval of calls to: - display busy indicator - check ctrlc() - check cable connection
By this
usb: f_mass_storage: sleep_thread: decrease the interval for check ctrlc()
This change decreases the interval of calls to: - display busy indicator - check ctrlc() - check cable connection
By this change, breaking the UMS command is more easy on Odroid XU3.
Signed-off-by: Inha Song <ideal.song@samsung.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
show more ...
|
| #
2d48aa69 |
| 23-Feb-2015 |
Kishon Vijay Abraham I <kishon@ti.com> |
usb: modify usb_gadget_handle_interrupts to take controller index
Since we support multiple dwc3 controllers to be existent at the same time, in order to handle the interrupts of a particular dwc3 c
usb: modify usb_gadget_handle_interrupts to take controller index
Since we support multiple dwc3 controllers to be existent at the same time, in order to handle the interrupts of a particular dwc3 controller usb_gadget_handle_interrutps should take controller index as an argument.
Hence the API of usb_gadget_handle_interrupts is modified to take controller index as an argument and made the corresponding changes to all the usb_gadget_handle_interrupts calls.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|
| #
ec5e78cf |
| 20-Mar-2015 |
Thierry Reding <treding@nvidia.com> |
usb: mass-storage: Build warning fixes for 64-bit
Fix a printf format mismatch warning seen on 64-bit builds.
Cc: Łukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de> Signed-off
usb: mass-storage: Build warning fixes for 64-bit
Fix a printf format mismatch warning seen on 64-bit builds.
Cc: Łukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de> Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Lukasz Majewski <l.majewski@samsung.com> Tested-by: Lukasz Majewski <l.majewski@samsung.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|
| #
790af815 |
| 10-Oct-2014 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
|
| #
8a6b088a |
| 06-Oct-2014 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-usb
|
| #
f9935c87 |
| 20-Sep-2014 |
Eric Nelson <eric.nelson@boundarydevices.com> |
usb: f_mass_storage: set removable flag in do_inquiry based on LUN
Without this flag, tools like Alex Page's USB Image Tool won't see drives exposed over USB Gadget as removable, and won't allow acc
usb: f_mass_storage: set removable flag in do_inquiry based on LUN
Without this flag, tools like Alex Page's USB Image Tool won't see drives exposed over USB Gadget as removable, and won't allow access to them. http://www.alexpage.de/usb-image-tool/
The code was pulled from the main-line kernel: drivers/usb/gadget/function/f_mass_storage.c
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
show more ...
|
| #
dab5e346 |
| 16-Jul-2014 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
Conflicts: boards.cfg
|
| #
933611f7 |
| 09-Jun-2014 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
usb:composite: clear the whole common buffer
Since the struct fsg_common is calloced, reset it completely with zero's when reused. While at it, make checkpatch happy.
cc: Lukasz Majewski <l.majewsk
usb:composite: clear the whole common buffer
Since the struct fsg_common is calloced, reset it completely with zero's when reused. While at it, make checkpatch happy.
cc: Lukasz Majewski <l.majewski@samsung.com> cc: Piotr Wilczek <p.wilczek@samsung.com> cc: Kyungmin Park <kyungmin.park@samsung.com> cc: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|