aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-07-15WIP: USB gadget adaptation and stuffomap/sniper/recovery-v2015.07Paul Kocialkowski
2015-07-15WIP: Always boot form MMC1/external sdcardPaul Kocialkowski
2015-07-15WIP: Follow cmd changesPaul Kocialkowski
2015-07-15WIP: changes to make it build - sighPaul Kocialkowski
2015-07-15work as of nowPaul Kocialkowski
2015-07-15WIP: ARM errataPaul Kocialkowski
2015-07-15WIP: No driver model yetPaul Kocialkowski
2015-07-15WIP: Peace logo, consolde on Linux back and stuffPaul Kocialkowski
2015-07-15WIP: some TWL workPaul Kocialkowski
2015-07-15WIP: Boot boot.imgPaul Kocialkowski
2015-07-15WIP: Cleanup and stuffPaul Kocialkowski
2015-07-15WIP: better muxing, i2c speed, BD2812 supportPaul Kocialkowski
2015-07-15WIP FOSDEM in da cafeteria!Paul Kocialkowski
2015-07-15WIP: first batch of video pruningPaul Kocialkowski
2015-07-15WIP: DSI display working on logoPaul Kocialkowski
2015-07-15WIP: Video import from LGE releasePaul Kocialkowski
2015-07-15WIP: sniper config correctionPaul Kocialkowski
2015-07-15WIP: Sniper config cleanupPaul Kocialkowski
2015-07-15WIP: USB support, telling the MUIC to mux USBPaul Kocialkowski
2015-07-15WIP: Video-related stuffPaul Kocialkowski
2015-07-15WIP: Proper boot.img base address that allows bootingPaul Kocialkowski
2015-07-15WIP: A bit of muxing and other thingsPaul Kocialkowski
2015-07-15WIP: Android bootPaul Kocialkowski
2015-07-15WIP: Sniper config for raw MMC bootingPaul Kocialkowski
2015-07-15WIP: Board MMC powerPaul Kocialkowski
2015-07-15WIP: Stick to master for sniper configPaul Kocialkowski
2015-07-15WIP: Sniper supportPaul Kocialkowski
2015-07-15power: LP8720 regulator supportPaul Kocialkowski
This adds support for the LP8720 i2c regulator, as found in e.g. the LG Optimus Black (P970), codename sniper. This code supports setting up and enabling one of the 5 LDOs that the IC provides. Other more advanced features are unsupported. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: CONFIG_USB_FASTBOOT prefix replacement for consistencyPaul Kocialkowski
FASTBOOT is defined both by CONFIG_USB_FUNCTION_FASTBOOT AND CONFIG_CMD_FASTBOOT, so it doesn't make much sense to have a CONFIG_USB_FASTBOOT prefix for fastboot-specific options, especially given that other config options for fastboot use the CONFIG_FASTBOOT prefix. This replaces the CONFIG_USB_FASTBOOT prefix with CONFIG_FASTBOOT, for consistency. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: gadget: fastboot: Dequeue the previous IN request for the current requestPaul Kocialkowski
Recent versions of the fastboot tool will query the partition type before doing an operation on a partition (such as erase, flash, etc). It will then submit the operation as soon as the response for the partition type is received. Usually, the MUSB controller will see that the partition type request return status was read by the host at the very same time as the actual operation request is submitted by the host. However, the operation will be read first (int_rx is handled first in musb_interrupt) and after it is completed, the fastboot USB gadget driver will send another return status. Hence, this happens before the musb gadget framework has had a chance to handle the previous acknowledgement that the host read the return status and dequeue the request. The host will then usually empty the FIFO by the time musb_interrupt gets around handling the return status acknowledgement (for the previous request, this is still on the same musb_interrupt call), so no other interrupt is generated and the most recent return status acknowledgement remains unaccounted for. It will then be used as a response for the next command, and the proper response for it will be delayed to the next command, and so on. Dequeuing the previous IN request in the fastboot code ensures that no previous return status remains. It is acceptable to do it since there is no callback to it anyways. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: gadget: fastboot: Request status and length check in rx handlerPaul Kocialkowski
This avoids handling requests that have an error status or no data. In particular, this avoids showing unnecessary error messages when the USB gadget gets disconnected (e.g. with fastboot continue) and the fastboot USB gadget driver sends an error back to the host (that has disconnected already). Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap5: Definitions for SYS_BOOT-based fallback boot device selectionPaul Kocialkowski
This introduces code to read the value of the SYS_BOOT pins on the OMAP5, as well as the memory-preferred scheme for the interpretation of each value. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap4: Definitions for SYS_BOOT-based fallback boot device selectionPaul Kocialkowski
This introduces code to read the value of the SYS_BOOT pins on the OMAP4, as well as the memory-preferred scheme for the interpretation of each value. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap3: Definitions for SYS_BOOT-based fallback boot device selectionPaul Kocialkowski
This introduces code to read the value of the SYS_BOOT pins on the OMAP3, as well as the memory-preferred scheme for the interpretation of each value. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap-common: SYS_BOOT-based fallback boot device selection for peripheral bootPaul Kocialkowski
OMAP devices might boot from peripheral devices, such as UART or USB. When that happens, the U-Boot SPL tries to boot the next stage (complete U-Boot) from that peripheral device, but in most cases, this is not a valid boot device. This introduces a fallback option that reads the SYS_BOOT pins, that are used by the bootrom to determine which device to boot from. It is intended for the SYS_BOOT value to be interpreted in the memory-preferred scheme, so that the U-Boot SPL can load the next stage from a valid location. Practically, this options allows loading the U-Boot SPL through USB and have it load the next stage according to the memory device selected by SYS_BOOT instead of stalling. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15siemens-am33x-common: Hardcoded value instead of non-included definePaul Kocialkowski
The config file for the siemens-am33x-common was using OMAP_I2C_STANDARD, which is defined in a header that is not included in the config header. In most cases, it was being included by the code using CONFIG_SYS_OMAP24_I2C_SPEED, but it might not always be the case. In particular, when introducing I2C SPL support in omap-common's boot-common.c, the header is missing and including it breaks other devices. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap-common: Boot device define instead of hardcoded valuePaul Kocialkowski
Now that SPL boot devices are clearly defined, we can use BOOT_DEVICE_QSPI_4 instead of a hardcoded value. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap: SPL boot devices cleanup and completionPaul Kocialkowski
This cleans up the SPL boot devices for omap platforms and introduces support for missing boot devices. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15omap-common: Common boot code OMAP3 support and cleanupPaul Kocialkowski
This introduces OMAP3 support for the common omap boot code, as well as a major cleanup of the common omap boot code. First, the omap_boot_parameters structure becomes platform-specific, since its definition differs a bit across omap platforms. The offsets are removed as well since it is U-Boot's coding style to use structures for mapping such kind of data (in the sense that it is similar to registers). It is correct to assume that romcode structure encoding is the same as U-Boot, given the description of these structures in the TRMs. The original address provided by the bootrom is passed to the U-Boot binary instead of a duplicate of the structure stored in global data. This allows to have only the relevant (boot device and mode) information stored in global data. It is also expected that the address where the bootrom stores that information is not overridden by the U-Boot SPL or U-Boot. The save_omap_boot_params is expected to handle all special cases where the data provided by the bootrom cannot be used as-is, so that spl_boot_device and spl_boot_mode only return the data from global data. All of this is only relevant when the U-Boot SPL is used. In cases it is not, save_boot_params should fallback to its weak (or board-specific) definition. save_omap_boot_params should not be called in that context either. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15fastboot: Dynamic controller index for usb_gadget_handle_interruptsPaul Kocialkowski
Since we're now using a dynamic controller index for fastboot too, usb_gadget_handle_interrupts should be using it instead of 0 (despite the fact that it's currently not being used at all in the musb-new implementation). Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: gadget: Weak board_usb_init/cleanup definitions in USB download gadget codePaul Kocialkowski
Weak versions of board_usb_init and board_usb_cleanup are defined in common USB host code, but it is also used for USB device gadgets, so we also need a weak definition of it when there is no USB host enabled. Both weak definitions do not conflict. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: board_usb_init and board_usb_cleanup calls in the fastboot commandPaul Kocialkowski
Each USB download function command calls board_usb_init before registering the USB gadget and board_usb_cleanup after de-registering it. On devices currently using fasboot, musb-new is usually initialized earlier, but some other boards might need the board_usb_init call to properly initialize musb-new. This requires adding an argument (the USB controller index) to the fastboot command, as it is currently done with other USB download gadget functions. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: Fastboot function config for better consistency with other functionsPaul Kocialkowski
USB download gadget functions such as thor and dfu have a separate config option for the USB gadget part of the code, independent from the command part. This switches the fastboot USB gadget to the same scheme, for better consistency. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-15usb: USB download gadget and functions config options coherent namingPaul Kocialkowski
This introduces a coherent scheme for naming USB download gadget and functions config options. The download USB gadget config option is moved to CONFIG_USB_GADGET_DOWNLOAD for better consistency with other gadgets and each function's config option is moved to a CONFIG_USB_FUNCTION_ prefix. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
2015-07-14Prepare v2015.07Tom Rini
Signed-off-by: Tom Rini <trini@konsulko.com>
2015-07-11scsi: fix compiler warning with DEBUG and 48bit LBAsAndre Przywara
Commit 2b42c9317db ("ahci: support LBA48 data reads for 2+TB drives") introduced conditional code which triggers a warning when compiled with DEBUG enabled: In file included from common/cmd_scsi.c:12:0: common/cmd_scsi.c: In function 'scsi_read': include/common.h:109:4: warning: 'smallblks' may be used uninitialized in this function [-Wmaybe-uninitialized] ... Since this is for debug only, take the easy way and initialize the variable explicitly on declaration to avoid the warning. (Fix a nearby whitespace error on the way.) Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Andre Przywara <osp@andrep.de>
2015-07-10Merge git://git.denx.de/u-boot-samsungTom Rini
2015-07-10Merge git://git.denx.de/u-boot-marvellTom Rini
2015-07-10mtd: fix false positive "Offset exceeds device limit" errorMasahiro Yamada
Since commit 09c3280754f8 (mtd, nand: Move common functions from cmd_nand.c to common place), NAND commands would not work at all on large devices. => nand read 80000000 10000 10000 NAND read: Offset exceeds device limit => nand erase 100000 100000 NAND erase: Offset exceeds device limit The type of the "size" of "struct mtd_info" is uint64_t, while mtd_arg_off_size() and mtd_arg_off() treat chipsize as int type. The chipsize is wrapped around if the argument is given with 2GB or larger. Acked-by: Heiko Schocher <hs@denx.de> Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2015-07-10arm: mvebu: db-88f6820-gp: Add USB/EHCI supportStefan Roese
This patch enabled the USB/EHCI support for the Marvell DB-88F6820-GP eval board. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr>