summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: Fix linking with modern binutilsJoel Stanley2017-04-102-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since Binutils 1a9ccd70f9a7[1] u-boot will not link targets that set CONFIG_SYS_TEXT_BASE=0 with the following error: LD u-boot arm-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N arm-linux-gnueabi-ld.bfd: final link failed: Bad value The issue can be reproduced with the bad binutils and the rock2_defconfig target. This issue was also encountered by the powerpc kernel[2], with the fix being to pass --no-dynamic-linker for linkers newer than 2.26 when this flag was introduced. The option tells ld that the PIE or shared lib does not need loaded program headers. Ubuntu Zesty's Binutils 2.27.51.20161202 hits this error. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=1a9ccd70f9a7 [2] https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=ff45000fcb56b5b0f1a14a865d3541746d838a0a Signed-off-by: Joel Stanley <joel@jms.id.au> [AF: Apply to LDFLAGS_$(SPL_BIN) as well, suggested by Tom Rini] Signed-off-by: Andreas Färber <afaerber@suse.de>
* travis-ci: OrangePi PC2 only links with gcc-5.x or laterTom Rini2017-04-101-1/+1
| | | | | | | We disable this specific board as it does not link with the gcc-4.9.x that we use today in travis-ci. Signed-off-by: Tom Rini <trini@konsulko.com>
* defconfigs: am57xx_hs_evm: Move OPTEE load address to avoid overlapsAndrew F. Davis2017-04-091-1/+1
| | | | | | | Move the OPTEE load address to 0xbdb00000 in order to avoid overlap with the memory regions used in radio and RVC usecases. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: dra7xx_hs_evm: Move OPTEE load address to avoid overlapsMisael Lopez Cruz2017-04-091-1/+1
| | | | | | | | Move the OPTEE load address to 0xbdb00000 in order to avoid overlap with the memory regions used in radio and RVC usecases. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: am43xx_hs_evm: Add USB Host boot mode supportAndrew F. Davis2017-04-081-0/+1
| | | | | | | | | Enable SPL_USB_HOST_SUPPORT in the default defconfig to allow booting from USB peripherals. Unlike the non-HS boards, we already load SPL to a 0x4030_0000+ address, so no other changes are needed. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: am43xx_hs_evm: Add USB client boot mode supportAndrew F. Davis2017-04-081-0/+3
| | | | | | | Enable CONFIG_SPL_USBETH_SUPPORT in the default defconfig to allow booting as a USB RNDIS peripheral. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: am43xx_hs_evm: Add Net boot mode supportAndrew F. Davis2017-04-081-1/+3
| | | | | | | Enable Eth/Net boot support in the default defconfig to allow network booting. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: dra7xx_hs_evm: Sync HS and non-HS defconfigsAndrew F. Davis2017-04-081-0/+1
| | | | | | | Additions have been made to the non-HS defconfig without the same being made to the HS defconfig, sync them. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: am57xx_hs_evm: Sync HS and non-HS defconfigsAndrew F. Davis2017-04-081-0/+7
| | | | | | | Additions have been made to the non-HS defconfig without the same being made to the HS defconfig, sync them. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: am43xx_hs_evm: Sync HS and non-HS defconfigsAndrew F. Davis2017-04-081-1/+3
| | | | | | | Additions have been made to the non-HS defconfig without the same being made to the HS defconfig, sync them. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfigs: am335x_hs_evm: Sync HS and non-HS defconfigsAndrew F. Davis2017-04-081-0/+6
| | | | | | | | Sync new additions to non-HS defconfig with HS defconfig. Also add SPL NAND support, this was disabled before due to size constraints, enable this now at the expense of the less used GPT partition support. Signed-off-by: Andrew F. Davis <afd@ti.com>
* spl: net: Add FIT image support over network bootAndrew F. Davis2017-04-081-3/+31
| | | | | | | | | | FIT support in the net boot case is much like the RAM boot case in that we load our image to "load_addr" and pass a dummy read function into "spl_load_simple_fit()". As the load address is no longer hard-coded to the final execution address, legacy image loading will require load_addr to be set correctly in the image header. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfig: k2g_hs_evm: Add k2g_hs_evm_defconfigAndrew F. Davis2017-04-081-0/+55
| | | | | | | TI K2G secure devices have to be built with TI_SECURE_DEVICE, FIT, and FIT_IMAGE_POST_PROCESS enabled. Add a dedicated defconfig for this. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfig: k2hk_hs_evm: Add k2hk_hs_evm_defconfigAndrew F. Davis2017-04-081-0/+51
| | | | | | | TI K2HK secure devices have to be built with TI_SECURE_DEVICE, FIT, and FIT_IMAGE_POST_PROCESS enabled. Add a dedicated defconfig for this. Signed-off-by: Andrew F. Davis <afd@ti.com>
* defconfig: k2e_hs_evm: Add k2e_hs_evm_defconfigVitaly Andrianov2017-04-081-0/+51
| | | | | | | | | | TI K2E secure devices have to be built with TI_SECURE_DEVICE, FIT, and FIT_IMAGE_POST_PROCESS enabled. Add a dedicated defconfig for this. Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* Kconfig: Adds SYS_TEXT_BASE config option for Keystone2Madan Srinivas2017-04-085-1/+5
| | | | | | | | | | | This patch makes SYS_TEXT_BASE a config option for Keystone2 so that it can be used to load u-boot at different addresses on secure and non-secure Keystone2 devices. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* doc: Updates info on using Keystone2 secure devicesMadan Srinivas2017-04-081-0/+20
| | | | | | | | | | Add a section describing the secure boot image used on Keystone2 secure devices. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* ARM: Keystone2: Build secure images for K2Madan Srinivas2017-04-081-0/+6
| | | | | | | | | | | Adds an additional image type needed for supporting secure keystone devices. The build generates u-boot_HS_MLO which can be used to boot from all media on secure keystone devices. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* arm: mach-omap2: Add secure image name common to OMAP and keystoneMadan Srinivas2017-04-081-0/+6
| | | | | | | | | | As K2 can directly boot U-Boot, add u-boot_HS_MLO as the secure image name for secure K2 devices, for all boot modes other than SPI flash. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* arm: mach-omap2: Enable Kconfig support for K2 HS devicesVitaly Andrianov2017-04-081-1/+1
| | | | | | | | | | | | Like the OMAP54xx, AM43xx, & AM33xx family SoCs, the keystone family of SoCs also have high security enabled models. Allow K2E devices to be built with HS Device Type Support. Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* arm: mach-keystone: Implements FIT post-processing call for keystone SoCsVitaly Andrianov2017-04-081-0/+73
| | | | | | | | | | | | | | | | | | | This commit implements the board_fit_image_post_process() function for the keystone architecture. This function calls into the secure boot monitor for secure authentication/decryption of the image. All needed work is handled by the boot monitor and, depending on the keystone platform, the security functions may be offloaded to other secure processing elements in the SoC. The boot monitor acts as the gateway to these secure functions and the boot monitor for secure devices is available as part of the SECDEV package for KS2. For more details refer doc/README.ti-secure Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* image: Fixes build warning with CONFIG_FIT_IMAGE_POST_PROCESSMadan Srinivas2017-04-081-1/+2
| | | | | | | | | | | | | | The function 'board_fit_image_post_process' is defined only when the config option CONFIG_FIT_IMAGE_POST_PROCESS is enabled. For secure systems that do not use SPL but do use FIT kernel images, only CONFIG_FIT_IMAGE_POST_PROCESS will be defined, which will result in an implicit declaration of function 'board_fit_image_post_process' warning while building u-boot. Fix this warning. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
* ti_armv7_common: env: Change FIT image name to match build nameAndrew F. Davis2017-04-081-1/+1
| | | | | | | | The most common name for a FIT image containing a bootable kernel is "fitImage", as our builds now use this name also, change this to the default in our U-Boot environment. Signed-off-by: Andrew F. Davis <afd@ti.com>
* mtd: nand: am335x_spl_bch: Incorporate tWB delay in nand_command functionCooper Jr., Franklin2017-04-081-12/+40
| | | | | | | | | | | | | | | | | | Various commands to NAND flash results in the NAND flash becoming busy. For those commands the SoC should wait until the NAND indicates it is no longer busy before sending further commands. However, there is a delay between the time the SoC sends its last command and when the NAND flash sets its Ready/Busy Pin. This delay (tWB) must be respected or the SoC may falsely assume the flash is ready when in reality it just hasn't had enough time to indicate that it is busy. Properly delaying by tWB is already done for nand_command/nand_command_lp in nand_base.c including the version of it in the Linux kernel. Therefore, this patch brings the handling of tWB delay inline to nand_base.c Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> [trini: Reformat comments slightly] Signed-off-by: Tom Rini <trini@konsulko.com>
* davinci: omapl138_lcdk: switch to using common mmc argsSekhar Nori2017-04-081-13/+10
| | | | | | | | | | | | | Now that we have common MMC/SD boot environment variables that can be used across TI platforms, switch OMAP-L138 LCDK to use them. As a nice side-effect, we get support for using uEnv.txt on this platform. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* ARM: ti: consolidate mmc environment variablesSekhar Nori2017-04-087-63/+78
| | | | | | | | | | | | | | | | | | | Introduce include/environment/ti/mmc.h that consolidates environment variable definitions for various TI boards that support MMC/SD. This allows reuse of same environment variables on non-ARMv7 TI platforms like OMAP-L138 for example. While at it, move DFU-related environment variable includes to only non-SPL builds for AM335x and AM437x since they are not really used for SPL today. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* davinci: omapl138_lcdk: use environment variables for memory addressesSekhar Nori2017-04-081-5/+11
| | | | | | | | | | Use environment variables for various memory addresses used on OMAP-L138 LCDK board. This makes it easy to customize the boot process. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* davinci: omapl138_lcdk: enable some filesystem related commandsSekhar Nori2017-04-081-0/+2
| | | | | | | | | | | | | Enable some generic filesystem commands as well as disk partition related commands for OMAP-L138 LCDK board. These help in booting Linux from MMC/SD, for example. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* davinci: omapl138_lcdk: remove spibootSekhar Nori2017-04-081-8/+2
| | | | | | | | | | OMAP-L138 LCDK board does not have a SPI flash. Remove spiboot related environment variable definitions. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* ti: clocks: Fix do_enable_clocks() to accept NULL pointers as input parametersLukasz Majewski2017-04-081-4/+6
| | | | | | | | | | | | | | | | | | | | | | Up till this commit passing NULL as input parameter was allowed, but not handled properly. When one passed NULL to one of this function parameters, the code was executed causing data abort. However, what is more interesting, the abort was not caught because of code execution in HYP mode with masked CPSR A bit ("Imprecise Data Abort mask bit). The TI's AM57xx SoC switch to HYP mode with A bit masked in lowlevel_init.S due to SMC call. Such operation (by default) is performed in SoC ROM code. The problem would pop up when one: - Switch back to SVC mode after disabling LPAE support - Somebody enables A bit (by executing cpsie a asm instruction) and then the previously described exception would be caught. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* ti: wdt: omap: Disable watchdog timer before performing initializationLukasz Majewski2017-04-081-15/+22
| | | | | | | | | | | | | The OMAP WDT IP block requires to be stopped before any write to its registers is performed. This problem has been thoroughly described in Linux kernel: "watchdog: omap: assert the counter being stopped before reprogramming: SHA1: 530c11d432727c697629ad5f9d00ee8e2864d453 Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* ti: wdt: omap5: Define WDT_BASE for omap5+ SoCLukasz Majewski2017-04-081-0/+1
| | | | | Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* ti: wdt: common: Make the wdt IP defines common for the TI platformLukasz Majewski2017-04-083-47/+63
| | | | | Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* Merge branch 'master' of git://git.denx.de/u-boot-samsungTom Rini2017-04-087-305/+85
|\
| * board: samsung: trats2: remove the board_power_init() functionJaehoon Chung2017-04-071-57/+0
| | | | | | | | | | | | | | | | | | Remove the board_power_init() function. It will be initialized with device-tree. In future, it will be controlled with regulator API. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * configs: trats2: enable the configuration relevant to PMICJaehoon Chung2017-04-071-0/+3
| | | | | | | | | | | | | | | | Enable CONFIG_DM_I2C, CONFIG_DM_PMIC_MAX77686 and CONFIG_SYS_I2C_S3C24X0. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * board: samsung: trats2: remove the unused functionsJaehoon Chung2017-04-071-18/+0
| | | | | | | | | | | | | | | | Remove the unused functions. Never call the get_soft_i2c_scl/sda_pin() aynwhere. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * configs: trats2: enable CONFIG_DM_I2C_GPIOJaehoon Chung2017-04-071-0/+1
| | | | | | | | | | | | | | Enable the CONFIG_DM_I2C_GPIO for using i2c-gpio. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * board: samsung: trats2: remove the board_i2c_init() functionJaehoon Chung2017-04-071-29/+0
| | | | | | | | | | | | | | | | Remove the board_i2c_init() function. i2c should be initialized with device-tree file. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * arm: dts: trats2: add the i2c-gpio nodesJaehoon Chung2017-04-071-0/+18
| | | | | | | | | | | | | | | | Add the i2c-gpio nodes for fuelgauge and max77693. There are i2c8 and i2c9. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * odroid: dts: change the buck8 min-microvolt valueJaehoon Chung2017-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | Change the buck8's min-microvolt to 750000. Whent thor protocol is used, board_usb_init() should be tried to set to 750000. But it was returned -EINVAL, because '750000' too lower than 2850000. (thor command doesn't work fine because of this problem.) Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * configs: trats: enable the CONFIG_DM_I2C_GPIOJaehoon Chung2017-04-031-0/+1
| | | | | | | | | | | | | | | | Enable the CONFIG_DM_I2C_GPIO for using i2c gpio Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * board: samsung: trats: remove the i2c_init functionJaehoon Chung2017-04-031-13/+0
| | | | | | | | | | | | | | | | | | i2c should be initialized with device-tree. This function doesn't need anymore. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * arm: dts: trats: add i2c_fg node for fuelgaugeJaehoon Chung2017-04-031-0/+9
| | | | | | | | | | | | | | | | Trats has the i2c gpio for fuel-gaugge. This patch s for preparing to use the fuel-gauge. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * board: samsung: trats: convert to driver model for controlling phyJaehoon Chung2017-04-031-27/+48
| | | | | | | | | | | | | | | | Convert to driver model for controlling phy. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * board: samsung: trats: remove the unnecessary codesJaehoon Chung2017-04-031-160/+1
| | | | | | | | | | | | | | | | | | These codes are unnecessary, because max8997 should be initialized with dt-file. Remove max8997_init() function. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| * configs: trats: enable the CONFIG_DM_PMIC and PMIC_MAX8997Jaehoon Chung2017-04-031-0/+3
| | | | | | | | | | | | | | | | Enable the CONFIG_DM_PMIC and PMIC_MAX8997. Also use the CONFIG_SYS_I2C_S3C24X0 for using I2C. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
* | Merge branch 'master' of git://git.denx.de/u-boot-sunxiTom Rini2017-04-0830-23/+2863
|\ \
| * | sunxi: Add defconfig for Allwinner A23 EVBFlorent Jacquet2017-04-071-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables the support for the Allwinner A23 Evaluation Board (EVB), that already had a device tree (from Linux) but no defconfig. This board has an AXP223 PMIC, some NAND, Audio out and in plugs, an accelerometer and light sensor, as well as a USB HSIC hub and a USB OTG mini-USB connector. It also has a Wifi/BT chip. Access to the other buses (LCD, MIPI DSI, LVDS, etc) can be done through dedicated pin headers. Signed-off-by: Florent Jacquet <florent.jacquet@free-electrons.com> Cc: Jagan Teki <jagan@openedev.com> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
| * | sunxi: Add default environment sizeMaxime Ripard2017-04-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On boards that defines ENV_IS_NOWHERE, such as the NES classic, commit 19dbe7d1a3f7 ("common: Move environment choice to Kconfig") broke the build because of a missing environment size. Reintroduce a default environment size consistent with what we had before. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>