summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-06-16arm: mach-omap2: Generate MLO file from SD boot capable targetsAndrew F. Davis
Secure boot targets that can be loaded from an SD card FAT partition need to be called "MLO" on the filesystem, make a copy with this name to clarify the correct image for SD card booting. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
2017-06-16cmd: ethsw: Fix out-of-bounds errorYork Sun
The for loop in cmd_keywords_opt_check() seems to use wrong array to set boundary, reported by Coverity analysis. Signed-off-by: York Sun <york.sun@nxp.com> CC: Joe Hershberger <joe.hershberger@ni.com> CC: Tom Rini <trini@konsulko.com> CC: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Reported-by: Coverity (CID: 163251) Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2017-06-16arm: ti: Add missing guards to headersSemen Protsenko
To prevent possible double inclusions in future. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-16board/BuR/brxre1: refactor default environmentHannes Schmelzer
For better readability and setup-handling we refactor the default environment. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-16board/BuR/brxre1: cosmetic cleanup of config-headerHannes Schmelzer
Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-16board/BuR/brxre1: drop obsolete CONFIG_LCD_NOSTDOUT from config-headerHannes Schmelzer
This define isn't used anymore in the u-boot source tree, so we drop it from the config header. We drop it also from the 'config_whitelist.txt' Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-16board/BuR/brxre1: drop bootlogo featureHannes Schmelzer
the BMP logo loading has become obsolete and is not used any more. So we drop the support for it. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-16board/BuR/brxre1: fix MMC bootHannes Schmelzer
since commit 'd5abcf94c7123167725fc22ace342f0d455093c1' - ti: boot: Register the MMC controllers in SPL in the same way as in u-boot MMC boot on brxre1 board is broken, with this commit we make our board working again. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
2017-06-16treewide: remove unneeded semicolonsMasahiro Yamada
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-06-16defconfig: arm335x_evm_usbspl: Update MUSB EthernetMichael Welling
Adds CONFIG_SPL_USB_GADGET_SUPPORT and CONFIG_SPL_USBETH_SUPPORT. Removes CONFIG_SPL_NAND_SUPPORT, CONFIG_SPL_MTD_SUPPORT, and CONFIG_SPL_YMODEM_SUPPORT to free up space to fit in RAM. Signed-off-by: Michael Welling <mwelling@ieee.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Marek Vasut <marex@denx.de>
2017-06-16include: nand: move endif to end of fileMugunthan V N
The terminator endif of ifdef _NAND_H_ should be at the end of file as a fail safe. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
2017-06-14Merge git://git.denx.de/u-boot-mpc85xxTom Rini
2017-06-14Merge branch 'master' of git://git.denx.de/u-boot-tegraTom Rini
2017-06-14Revert "ARM: fixed relocation using proper alignment"Tom Rini
It turns out this change was not intended to be merged and as such, revert it. This reverts commit cdde7de0364ffa505d631b342f1a2fa729e8e67d. Reported-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com> Signed-off-by: Tom Rini <trini@konsulko.com>
2017-06-12ARM: tegra: remove Whistler supportStephen Warren
Whistler is an ancient Tegra 2 reference board. I may have been the only person who ever used it with upstream software, and I've just recycled the board hardware. Hence, it makes sense to remove support from software. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
2017-06-12powerpc: fsl: Update maintainersYork Sun
Update maintainers for B4860QDS, P1010RDB, P1_TWR, T104xRDB. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8569mds: Update config and maintainerYork Sun
Enable DHCP command by default. Update maintainer info. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8568mds: Update board configYork Sun
Enable DHCP command by default. Move environmental variable location to before U-Boot image. Enlarge reserved mem for malloc. Update maintainer. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8536ds: Update maintainerYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8544ds: Update maintainerYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8544ds: Fix environmental variable locationYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8544ds: Enable DHCP command by defaultYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8548cds: Enable DHCP command by defaultYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8548cds: Update maintainerYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12net: phy: marvell: Fix init function for m88e1145York Sun
Commit a058052c changed the generic phy_reset() to clear all bits in BMCR. This inevitably clears the ANEG bit. m88e1145 requires any change to ANEG bit to be followed by a software reset. This seems to be different from other PHYs. Implement read-modify-write procedure for this PHY init. Signed-off-by: York Sun <york.sun@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2017-06-12powerpc: mpc8641hpcn: Enable DHCP command and DDR debugYork Sun
Enable DHCP command to make TFTP easier. Enable DDR interactive debug by default. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12driver: ddr: fsl: Fix compiling error for DDR2York Sun
Fix compiling error of "no member named 'taamin_ps'" for DDR2. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8536ds: Enable DHCP command by defaultYork Sun
Enable DHCP command to make TFTP easier. Users don't have to use static IP address. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc86xx: Update maintainer for MPC8610HPCD and MPC8641HPCNYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc85xx: Update maintainer for MPC8541CDS and MPC8555CDSYork Sun
Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12powerpc: mpc8540ads: mpc8560ads: Drop support for MPC8540/60ADSYork Sun
Drop support for these two legacy boards. Signed-off-by: York Sun <york.sun@nxp.com>
2017-06-12board: ti: am335x: Fix scale_vcore for beaglebonesLokesh Vutla
commit 0650798824 ("board: am335x: Introduce scale_vcores") updated voltages of each board based on efuse. It updated beagle bone specific voltages under the condition board_is_bone(). But this is true only for BeagleBoneWhite. Due to which voltages are not configured for BBB, BBW as wrong device is being probed. So create a common function board_is_beaglebonex() which includes am335x based beagle family. Use this for updating voltages. Also remove extra if condition for selecting voltages which is done later using a switch case and match usb current limit as before the commit 0650798824. Fixes: 0650798824 ("board: am335x: Introduce scale_vcores") Reported-by: Emmanuel Vadot <manu@bidouilliste.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2017-06-12arm: am57xx: Keep environment in eMMCSemen Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Lokesh Vutla <lokeshvuta@ti.com>
2017-06-12arm: dra7: Increase "bootloader" partition sizeSemen Protsenko
Increase the size of u-boot.img, so that it conforms with new DFU configuration (see commit [1]). [1] 7a53a1a8115b ARM: ti: Update layout for MMC and eMMC (env and dfu) Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-12arm: am57xx: Increase "bootloader" partition sizeSemen Protsenko
Increase the size of u-boot.img, so that it conforms with new DFU configuration (see commit [1]). [1] 7a53a1a8115b ARM: ti: Update layout for MMC and eMMC (env and dfu) Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com>
2017-06-12MAINTAINERS: mpc83xx: Add new custodianmario.six@gdsys.cc
Add myself as mpc83xx custodian.
2017-06-12tools/tbot: update READMEHeiko Schocher
refer in the README to tbots webpage, and delete the README in tools/tbot, as the latest documentation for tbot is on this webpage. Signed-off-by: Heiko Schocher <hs@denx.de>
2017-06-12ARM: dts: keystone-k2hk-evm: Add U-boot specific dtsi fileCooper Jr., Franklin
With Davinci I2C switching to device model, K2HK requires U-boot specific device tree entries. This is only required for I2C 1 which is needed extremely early during the boot process. Fixes: 1743d040b1df ("ARM: keystone: Enable DM_I2C by default") Reported-by: Yan Liu <yan-liu@ti.com> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
2017-06-12cmd: nvedit: bring error message in sync with condition under which it appearsLothar Waßmann
The list of symbols listed in the error message for missing Kconfig symbols is out of sync with the symbols actually tested. Add the missing symbols and reorder their appearance to be in sync with the #if statement for easier checking. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
2017-06-12cmd: mtdparts: fix uninitialized variable warningLothar Waßmann
commit 06a040a31bcf ("cmd: mtdparts: fix null pointer dereference in parse_mtdparts") removed the initialization of a pointer variable, which is subsequently used in a debug() call. This produces an uninitialized variable warning, when compiling with DEBUG defined. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
2017-06-12dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_outputAxel Lin
Current code does not set output level in bcm6345_gpio_direction_output, fix it. Signed-off-by: Axel Lin <axel.lin@ingics.com>
2017-06-12board_f: fix calculation of reloc_offLothar Waßmann
relocate_code() calculates the relocation offset wrt. the symbol __image_copy_start which happens to have the same value as CONFIG_TEXT_BASE on most systems. When creating an i.MX boot image with an integrated IVT it is convenient to have CONFIG_TEXT_BASE point to the start of the IVT that is prepended to the actual code. Thus CONFIG_TEXT_BASE will differ from __image_copy_start, while the calculation 'gd->relocaddr - __image_copy_start' still gives the right relocation offset. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
2017-06-12ARM: provide a valid exception stack address for startup codeLothar Waßmann
Create exception stack in IRAM if available to facilitate debugging of pre-relocation code by catching exceptions rather than stopping dead. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
2017-06-12arm: adjust PC displayed in exception handlers to point to the failing ↵Lothar Waßmann
instruction Adjust the program counter register to point to the failing instruction depending on the exeption type. This makes it easier to localize the offending instruction leading to a fatal exception. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
2017-06-12ARM: remove bogus cp_delay() functionLothar Waßmann
The cp_delay() function was introduced because of a missing 'volatile' attribute to the 'asm' statement in get_cr() which led to the 'mrc' instruction in get_cr() being optimised out eventually. This has been fixed in commit 53fd4b8c22bb ("arm: mmu: Add missing volatile for reading SCTLR register") but the bogus cp_delay() function which was introduced as a workaround for the malfunctioning get_cr() was never removed. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
2017-06-12serial: stm32x7: simplify baud rate register calculationPatrice Chotard
Simplify baud rate register formula and use the oversampling uart feature. This code is aligned with what is implemented in kernel driver drivers/tty/serial/stm32-usart.c since kernel v4.9. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Christophe KERELLO <christophe.kerello@st.com> Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com> Acked-by: Vikas MANOCHA <vikas.manocha@st.com>
2017-06-12serial: stm32x7: align compatible with kernel onePatrice Chotard
stm32x7.c driver is dedicated for STM32F7. In kernel, "st,stm32-usart" and "st,stm32-uart" compatible strings are dedicated for STM32F4. To keep U-boot and kernel aligned, replace the serial compatible string from "st,stm32-usart", "st,stm32-uart" to "st,stm32f7-usart", "st,stm32f7-uart" specific for STM32F7. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Christophe KERELLO <christophe.kerello@st.com> Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com> Acked-by: Vikas MANOCHA <vikas.manocha@st.com>
2017-06-12rkcommon.c: Drop pointless assignmentSimon Glass
Assigning a variable to itself is not necessary. Drop this and also add a check for malloc() failure. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 161418) Fixes: 111bcc4 (rockchip: mkimage: pad the header to 8-bytes (using a 'nop') for RK3399)
2017-06-12board_f: Use IS_ENABLED instead of #ifdef in initf_bootstage()Simon Glass
The current implementation makes it look like the 'if (from_spl)' part is dead code because these features are not enabled for sandbox. We could enable it for sandbox_spl, but this is not done yet (it requires sharing memory between SPL and U-Boot proper which is in fact supported). It is probably nicer to avoid #ifdef anyway. Change it. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 163244) Fixes: 824bb1b (bootstage: Support SPL)
2017-06-12dm: core: Supress dead-code warning in __of_get_next_child()Simon Glass
Suppress a warning on next = next->sibling. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 163245) Fixes 644ec0a (dm: core: Add livetree access functions)