- 18 Jan, 2015 17 commits
-
-
Rene Griessl authored
This patch enables U-Boot to modify the MAC address of the AX88179. Tested on RECS5250 (similar to Arndale5250) Signed-off-by:
Rene Griessl <rgriessl@cit-ec.uni-bielefeld.de>
-
Hans de Goede authored
Add interrupt queue support, so that a usb keyboard can be used without causing huge latencies. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Make construct_urb take an urb and hep parameter, rather then having it always operate on the file global urb and hep structs. This is a preperation patch for adding interrupt queue support. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
If a transfer / urb times-out, properly remove it from the schedule, rather then letting it sit on the ep head. This stops the musb code from getting confused and refusing to queue further transfers after a timeout. Tested by unplugging a usb-keyboard, replugging it and doing a usb-reset, before this commit the keyboard would not work after the usb-reset. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
This commit fixes a number of issues with the reset sequence of musb-new in host mode: 1) Our usb device probe relies on a second device reset being done after the first descriptors read. Factor the musb reset code into a usb_reset_root_port function (and add this as an empty define for other controllers), and call this when a device has no parent. 2) Just like with normal usb controllers there needs to be a delay after reset, for normal usb controllers, this is handled in hub_port_reset, add a delay to usb_reset_root_port. 3) Sync the musb reset sequence with the upstream kernel, clear all bits of power except bits 4-7, and increase the time reset is asserted to 50 ms. With these fixes an usb keyboard I have now always enumerates properly, where as earlier it would only enumerare properly once every 5 tries. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
For bulk and ctrl transfers common/usb.c sets udev->status = USB_ST_NOT_PROC, but it does not do so for interrupt transfers. musb_uboot.c: submit_urb() however was waiting for USB_ST_NOT_PROC to become 0, and thus without anyone setting USB_ST_NOT_PROC would exit immediately for interrupt urbs, returning the urb status of EINPROGRESS as error. This commit fixes this, thereby also making usb_kbd.c work together with musb_new and CONFIG_SYS_USB_EVENT_POLL. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
CPU cycle based timeouts are no good, because how long they use depends on CPU speed. Instead use time based timeouts, and wait one second for a device connection to show up (per the USB spec), and wait USB_TIMEOUT_MS for various urbs to complete. This fixes "usb start" taking for ever when no device is plugged into the otg port. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
This is based on Jussi Kivilinna's work for the linux-sunxi-3.4 kernel to use the kernels musb driver instead of Allwinners own custom driver. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
The sunxi SoCs also have a musb controller, but with a different register layout. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Before this commit u-boot would print the following on boot with musb and no usb device plugged in: starting USB... USB0: Port not available. USB error: all controllers failed lowlevel init This commit changes this to: starting USB... USB0: Port not available. Which is the correct thing to do since the low-level init went fine. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
When iomuxing is used we must not only deregister the device with stdio.c, but also remove the reference to the device in the console_devices array used by console-muxing. Add a call to iomux_doenv to usb_kbd_deregister to update console_devices, which will drop the reference. This fixes the console filling with "Failed to enqueue URB to controller" messages after a "usb stop force", or when the USB keyboard is gone after a "usb reset". Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Currently create_int_queue is only implemented by the ehci code, and that does not honor interrupt intervals, but other drivers which might also want to implement create_int_queue may honor intervals, so add an interval param. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Now that "usb start" will only start usb if not already started, we can simply call "usb start" whenever we (may) need access to usb devices, and it will only actually scan the bus at the first call. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Currently we've this magic in include/config_distro_bootcmd.h to avoid scanning the usb bus multiple times. And it does not work when also using an usb keyboard because then the preboot command has already scanned the bus, so we're still scanning it twice. This commit makes "usb start" only start usb if it is no already started, allowing us to remove all the magic for it from include/config_distro_bootcmd.h and just call it unconditionally. This also causes "usb start" and "usb reset" to actually do what their different names suggest, rather then both of them doing exactly the same. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Alex Sadovsky authored
Fix use-before-initialized bug in pxa25x_udc driver. Function usb_gadget_register_driver calls udc_disable, and udc_disable calls pullup_off that uses dev->mach->udc_command. But dev->mach is initialized in usb_gadget_register_driver after calling udc_disable. This patch fixes the order of initialization. Signed-off-by:
Alex Sadovsky <Nable.MainInbox@googlemail.com>
-
Stefan Roese authored
Without this function the USB compliance test (USB 2.0 Command Verifier) will fail in the "Interface Descriptor Test" with this error message: FAIL (1.2.51) A successful GetInterface request must return the alternate setting set by a prior call to SetInterface. Lets add this function to read back the value so that the DFU device fully passes the USB compliance test. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Roger Meier <r.meier@siemens.com> Cc: Samuel Egli <samuel.egli@siemens.com> Cc: Enrico Leto <enrico.leto@siemens.com> Acked-by:
Heiko Schocher <hs@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
Stefan Roese authored
On the DXR2 board (AM335x using MUSB) the USB compliance test suite (USB 2.0 Command Verifier) will cause the board to crash and reset upon the "BOS Descriptor Test - Addressed state". Here the output from the DRX2 while running this test: GADGET DRIVER: usb_dnl_dfu musb-hdrc: peripheral reset irq lost! composite_setup (776) data abort pc : [<87f693ac>] lr : [<87f6911c>] sp : 86f33a58 ip : 00000000 fp : 86f3bbac r10: 00000f00 r9 : 86f33ef4 r8 : 86f37da8 r7 : 00000005 r6 : 86f33a90 r5 : 00000000 r4 : 86f37e30 r3 : 00000000 r2 : 00000000 r1 : 87f9c888 r0 : 00000016 Flags: Nzcv IRQs off FIQs on Mode SVC_32 Resetting CPU ... resetting ... By adding the case statement for USB_DT_BOS and therefore not running into the default case (jump to unkown label) this crash is fixed. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Roger Meier <r.meier@siemens.com> Cc: Samuel Egli <samuel.egli@siemens.com> Cc: Enrico Leto <enrico.leto@siemens.com> Acked-by:
Heiko Schocher <hs@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de>
-
- 16 Jan, 2015 4 commits
-
-
git://git.denx.de/u-boot-tiTom Rini authored
-
Masahiro Yamada authored
All the 74xx_7xx boards are still non-generic boards: P3G4, ZUMA, ppmc7xx, ELPPC, mpc7448hpc2 Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Stefan Roese <sr@denx.de> Acked-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Nye Liu <nyet@zumanetworks.com> Cc: Roy Zang <tie-fei.zang@freescale.com>
-
Masahiro Yamada authored
Now TQM8xx is the only remaining board family of mpc8xx. It uses its own linker script, board/tqc/tqm8xx/u-boot.lds. arch/powerpc/cpu/mpc8xx/u-boot.lds is not used by any boards. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Wolfgang Denk <wd@denx.de>
-
Masahiro Yamada authored
Since commit 843125da (ppc4xx: remove HH405 board), CONFIG_HH405 is not defined. Since commit d5263304 (ppc4xx: remove PMC405), CONFIG_PMC405 is not defined. Acked-by:
Stefan Roese <sr@denx.de> Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Matthias Fuchs <matthias.fuchs@esd.eu>
-
- 15 Jan, 2015 18 commits
-
-
git://git.denx.de/u-boot-x86Tom Rini authored
-
Simon Glass authored
Normally buildman runs with 'make -s' meaning that only errors and warnings appear in the log file. Add a -V option to run make in verbose mode, and with V=1, causing a full build log to be created. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The site at https://www.kernel.org/pub/tools/crosstool/ is a convenient repository of toolchains which can be used for U-Boot. Add a feature to download and install a toolchain for a selected architecture automatically. It isn't clear how long this site will stay in the current place and format, but we should be able to rely on bug reports if it changes. Suggested-by:
Marek Vašut <marex@denx.de> Suggested-by:
Fabio Estevam <festevam@gmail.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some archs have need than one alias, so support a list of alises in the ..buildman file. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We should create a test setting file when running testes, not use whatever happens to be on the local machine. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Silently ignore this since it is valid to have missing sections. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This file is only partially documented. Add some more details. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Wolfgang Denk <wd@denx.de>
-
Simon Glass authored
Since we need a few modules which might not be available in a bare-bones distribution, add a note about that to the README. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Wolfgang Denk <wd@denx.de>
-
Simon Glass authored
In some cases there may be multiple toolchains with the same name in the path. Provide an option to use the full path in the CROSS_COMPILE environment variable. Note: Wolfgang mentioned that this is dangerous since in some cases there may be other tools on the path that are needed. So this is set up as an option, not the default. I will need test confirmation (i.e. that this commit fixes a real problem) before merging it. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Steve Rae <srae@broadcom.com>
-
Simon Glass authored
If: 1. Toolchains A and B have the same filename 2. Toolchain A is in the PATH 3. Toolchain B is given in ~/.buildman and buildman uses it to build then buildman will add toolchain B to the end of its path but will not necessarily use it since U-Boot will find toolchain A first in the PATH. Try to fix this by putting the toolchain first in the path instead of last. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The assumption that the compiler name will always end in gcc is incorrect for clang and apparently on BSD. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Adjust the -b flag to permit a range expression as well as a branch. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Tested-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Simon Glass authored
When running tests the output directory is often wiped. This is only safe if a branch is being built. The output directory may contain other things besides the buildman test output. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When building current source for a single board, buildman puts the output in <output_dir>/current/current/<board>. Add an option to make it use <output_dir>/<board> instead. This removes the unnecessary directories in that case, controlled by the --no-subdirs/-N option. Suggested-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Buildman normally obtains the upstream commit by asking git. Provided that the branch was created with 'git checkout -b <branch> <some_upstream>' then this normally works. When there is no upstream, we can try to guess one, by looking up through the commits until we find a branch. Add a function to try this and print a warning if buildman ends up relying on it. Also update the documentation to match. Signed-off-by:
Simon Glass <sjg@chromium.org> Suggested-by:
Wolfgang Denk <wd@denx.de>
-
Simon Glass authored
This is not needed since we always do a full (non-incremental) build. Also it might be dangerous since it will try to delete everything below the base directory. Fix this potentially nasty bug. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Buildman currently puts current-source builds in a current/current subdirectory, but there is no need for the extra depth. Suggested-by:
Albert Aribaud <albert.u.boot@aribaud.net> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a few tests of the output directory logic. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- 14 Jan, 2015 1 commit
-
-
git://git.denx.de/u-boot-videoTom Rini authored
-