- May 15, 2015
-
-
Simon Glass authored
This printf() should have a newline at the end. Add it. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Simon Glass authored
Emualate this function which is used with Chrome OS verified boot. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These files use error numbering, so add the include. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function should return a useful error for U-Boot, rather than -1. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Simon Glass authored
It is convenient for some boards to implement save_boot_params() in C rather than assembler. Provide a way to return in this case. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Simon Glass authored
Commit 47ed5dd0 dropped the .got section from U-Boot binaries. This is needed for some relocations, and causes failures if missing. Add it back. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This should say 'in', not 'out'. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This name is used in Linux, so use it in U-Boot. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
As a first step towards converting the TPM system to driver model, allow it to work with CONFIG_DM_I2C. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We can currently set this but there is no API function to get it. Add one. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com> Acked-by:
Heiko <Schocher<hs@denx.de>
-
Simon Glass authored
This command was missed in the conversion. Add it back for driver model. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com> Acked-by:
Heiko Schocher <hs@denx.de>
-
Simon Glass authored
We maintain an accumulator for time spent reading from SPI flash, since this can be significant on some platforms. Also add one for decompression time. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Vincent Palatin authored
Provide a function to detect USB device insertion/removal in order to avoid having to do USB enumeration in a tight loop when trying to detect peripheral hotplugging. Signed-off-by:
Vincent Palatin <vpalatin@chromium.org> Reviewed-by:
Stefan Reinauer <reinauer@chromium.org> Tested-by:
Stefan Reinauer <reinauer@chromium.org> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
This commit adds support for the OHCI companion controller, which makes usb-1 devices directly plugged into to usb root port work. Note for now this switches usb-keyboard support for sunxi back from int-queue support to the old interrupt polling method. Adding int-queue support to the ohci code and switching back to int-queue support is in the works. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Marek Vasut <marex@denx.de> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
Convert sunxi-boards which use the sunxi-ehci code to the driver-model. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
Add driver-model support to the ohci code. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Marek Vasut <marex@denx.de>
-
Hans de Goede authored
For some reason the ohci code is full with: #ifdef DEBUG pkt_print(...) #else mdelay(1); #endif AFAICT there is no reason for the mdelay(1) calls. This commit disables them when building the ohci code for new driver-model using boards. It leaves the mdelay(1) calls in place when building for older boards, so as to avoid causing any regressions there. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
The usb spec says that we must wait a minimum amount of time after port power on (exact time is in the hub descriptor), this is something which we must not only do for root ports but also for external hub ports, which is why the common usb_hub code already waits a full second after powering up ports. Having a separate wait for just the root hub in the ohci-hcd code only leads to doing the waiting twice for the root ports, so drop the wait from the ohci-hcd code. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
The u-boot usb code uses polling for all endpoints, including interrupt endpoints, so urbs should never be automatically resubmitted. This also fixes a leak of the urb, as submit_int_msg() did not check if an already re-submitted urb exists before creating a new one. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Marek Vasut <marex@denx.de>
-
Hans de Goede authored
USB scanning is slow, and there is no need to scan the companion buses if no usb devices where handed over to the companinon controllers by any of the main controllers. This saves e.g. 2 seconds when booting a A10 OLinuxIno Lime with no USB-1 devices plugged into the root usb ports. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
USB companion controllers must be scanned after the main controller has been scanned, so that any devices which the main controller which to hand over to the companion have actually been handed over before we scan the companion. As there are no guarantees that this will magically happen in the right order, split the scanning of the buses in 2 phases, first main controllers, and then companion controllers. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
Move printing of usb scan status to usb_scan_bus(). This is a preparation patch for adding companion controller support to the usb uclass. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
Interrupt endpoints typically are polled for a long time by the usb controller before they return anything, so calls to submit_int_msg() can take a long time to complete this. To avoid this the u-boot code has the an interrupt queue mechanism / API, add support for this to the driver-model usb code and implement it for the dm ehci code. See the added doc comments for more details. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
This is a preparation patch for adding interrupt-queue support to the ehci dm code. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Hans de Goede authored
Short circuit the retry loop in legacy_hub_port_reset() by returning an error from usb_control_msg() when a device was handed over to a companion by the ehci code. This avoids trying to reset low / fullspeed devices 5 times needlessly. Also do not print an error when a device has been handed over. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Actually check for usb_set_port_feature() errors and propagate these if they happen. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
Propagate the error returned by submit_control_msg() rather then always returning -EIO when the hcd code indicates an error. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Hans de Goede authored
When after a reset the port status connection bit is still set and the enable bit is not then we're dealing with a full-speed device and should hand it over to the companion controller. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
- May 14, 2015
-
-
Tom Rini authored
With d6b72da0 we started including this file unconditionally. This isn't allowed in a file that we also use on armv8. This will get cleaned up a bit better once we really start using these same features (and have similar fdt updates needed) on armv8. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Joe Hershberger authored
The setexpr command used to segfault when accessing memory in sandbox. The pointer accesses should be mapped. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
git://git.denx.de/u-boot-tegraTom Rini authored
-
git://git.denx.de/u-boot-arcTom Rini authored
-
git://git.denx.de/u-boot-atmelTom Rini authored
-
Simon Glass authored
During the Kconfig conversion one of the changes was missed. CONFIG_SPL_STACK_R should be CONFIG_SPL_STACK_R_ADDR since we want the address. Reported-by:
Tim Harvey <tharvey@gateworks.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 13, 2015
-
-
Masahiro Yamada authored
All the Tegra boards borrow the files from board/nvidia/common/ directory, i.e., board/nvidia/common/* are not vendor-common files, but SoC-common files. Move NVIDIA common files to arch/arm/mach-tegra/ to clean up Makefiles. As arch/arm/mach-tegra/board.c already exists, this commit renames board/nvidia/common/board.c to arch/arm/mach-tegra/board2.c, expecting they will be consolidated as a second step. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Tom Warren <twarren@nvidia.com> Cc: Simon Glass <sjg@chromium.org> Acked-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Ian Campbell authored
The secure world code is relocated to the MB just below the top of 4G, we reserve it in the FDT (by setting CONFIG_ARMV7_SECURE_RESERVE_SIZE) but it is not protected in h/w. Signed-off-by:
Ian Campbell <ijc@hellion.org.uk> Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Thierry Reding <treding@nvidia.com> Tested-by:
Thierry Reding <treding@nvidia.com> Tested-by:
Ian Campbell <ijc@hellion.org.uk> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Jan Kiszka authored
Upstream Linux is broken with default configs when PSCI, thus non-secure mode is enabled. So the user should explicitly enable this mode, e.g. when she disabled CONFIG_CPU_IDLE in Linux (in which case it's safe to use). We can revert this workaround once Linux got fixed. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Thierry Reding authored
Make sure to enable the SMMU when booting the kernel in non-secure mode. This is necessary because some of the SMMU registers are restricted to TrustZone-secured requestors, hence the kernel wouldn't be able to turn the SMMU on. At the same time, enable translation for all memory clients for the same reasons. The kernel will still be able to control SMMU IOVA translation using the per-SWGROUP enable bits. Signed-off-by:
Thierry Reding <treding@nvidia.com> Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Jan Kiszka authored
We only set CNTFRQ in arch_timer_init for the boot CPU. But this has to happen for all cores. Fixing this resolves problems of KVM with emulating the generic timer/counter. Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Thierry Reding <treding@nvidia.com> Tested-by:
Thierry Reding <treding@nvidia.com> Tested-by:
Ian Campbell <ijc@hellion.org.uk> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
Ian Campbell authored
These registers can be used to prevent non-secure world from accessing a megabyte aligned region of RAM, use them to protect the u-boot secure monitor code. At first I tried to do this from s_init(), however this inexplicably causes u-boot's networking (e.g. DHCP) to fail, while networking under Linux was fine. So instead I have added a new weak arch function protect_secure_section() called from relocate_secure_section() and reserved the region there. This is better overall since it defers the reservation until after the sec vs. non-sec decision (which can be influenced by an envvar) has been made when booting the os. Signed-off-by:
Ian Campbell <ijc@hellion.org.uk> [Jan: tiny style adjustment] Signed-off-by:
Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Thierry Reding <treding@nvidia.com> Tested-by:
Thierry Reding <treding@nvidia.com> Tested-by:
Ian Campbell <ijc@hellion.org.uk> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-