- Nov 18, 2018
-
-
git://git.denx.de/u-boot-mipsTom Rini authored
- tree-wide: introduce LDFLAGS_STANDALONE - MIPS: fix long-standing issue with linking of standalone programs - MIPS: MT76xx: add GPIO and WDT drivers - MIPS: MT76xx: various fixes and updates to gardena-smart-gateway board - MIPS: MT76xx: various fixes and updates to linkit-smart-7688 board
-
Daniel Schwierzeck authored
Use the global MIPS specific u-boot.lds for linking standalone programs instead of the outdated ones in examples/standalone/. Also pass --gc-sections in LDFLAGS_STANDALONE to optimize the size of standalone programs. Finally remove the deprecated config.mk files in arch/mips/cpu/mips[32,64]/. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Daniel Schwierzeck authored
Currently the OBJCOPYFLAGS are cleared when assigning "-O srec" or "-O binary" for standalone programs. All flags set by arch-specific Makefiles are lost. This is bad if an arch demands arch-specific flags for the objcopy step. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Daniel Schwierzeck authored
Introduce a new Makefile variable for passing LDFLAGS to standalone programs. Currently the variable CONFIG_STANDALONE_LOAD_ADDR is misued on some archs to pass a specific linker script. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Rick Chen <rick@andestech.com>
-
Stefan Roese authored
These misc updates include the following changes: - Change baudrate from 57600 to 115200 - Enable MIPS_BOOT_CMDLINE_LEGACY - Enable FIT support - Enable ethernet support - Enable SPI support - Enable GPIO support - Change max image size from 0x40000 to 0x80000 A note about the baudrate change: The original Mediatek U-Boot version used 57600 baud. Lets move to a more common and faster speed of 115200 baud. And remove the "console=" property from the DT as its not needed. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Use the correct function to get the uncached address to access the SoC registers. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
These misc updates include the following changes: - Change baudrate from 57600 to 115200 - Enable MIPS_BOOT_CMDLINE_LEGACY - Enable FIT support - Enable ethernet support - Enable SPI NOR and NAND support - Change MTD_UBI_BEB_LIMIT to 22 - Enable MTD Support - Enable GPIO support - Enable watchdog support - Enable bootcounter support - Enable version variable - Change max image size from 0x80000 to 0xa0000 - Change SYS_MALLOC_LEN to 16MiB (because of UBI/UBIFS) Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
This is needed to set the LEDs automatically to a default state, as configured in the dts. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Add the available LEDs to the DTS file so that they can be used. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Configure digital vs analog GPIOs as needed on this board. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
This patch enables and starts the watchdog on the MT7620 platform. Currently the WD timeout is configured to 60 seconds. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> [fixed build error due to missing function prototype arch_misc_init] Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Imply DM_ETH and DM_GPIO for ARCH_MT7620, as this platform now supports ethernet and GPIO as well. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Add the watchdog DT node to the DTS file. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Add the GPIO DT nodes to the DTS file. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
Add the ethernet DT node to the DTS file. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
This fixes an issue which has been noticed on the Gardena board, with the watchdog enabled, where the watdchdog reset (after a system hang) did result in reporting of 2.9 GiB and a hang after this. With this patch applied the memory controller is correctly reset and initialized again even after a watchdog reset. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
This patch adds GPIO support for the Mediatek MT7621 SoC, tested on MT7688 (Gardena smart-gateway). The driver is loosly based on the Linux kernel version. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> [fixed checkpatch.pl warnings: Prefer 'unsigned int' to bare use of 'unsigned'] Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
Stefan Roese authored
This patch adds watchdog support for the Mediatek MT7621 SoC. The driver is loosly based on the Linux kernel version. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com> [fixed merge conflict in drivers/watchdog/Kconfig] Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
-
- Nov 17, 2018
-
-
Tom Rini authored
- Initial bcm968580xref, am65x_evm_r5 support - lpc32xx, omap3_logic/am3517_evm updates - pinctrl command - fs_loader available for SPL
-
- Nov 16, 2018
-
-
Tom Rini authored
Add entries for the pine64-lts and pinebook configs. Cc: Vasily Khoruzhick <anarsoul@gmail.com> Cc: Andre Przywara <andre.przywara@arm.com> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Konrad Beckmann authored
A specially crafted FIT image makes it possible to overflow the stack with controlled values when using the verified boot feature. Depending on the memory layout, this could be used to overwrite configuration variables on the heap and setting them to 0, e.g. disable signature verification, thus bypassing it. This change fixes a bug in fdt_find_regions where the fdt structure is parsed. A lower value than -1 of depth can lead to a buffer underflow write on the stack. Signed-off-by:
Konrad Beckmann <konrad.beckmann@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Konrad Beckmann authored
A specially crafted FIT image leads to memory corruption in the stack when using the verified boot feature. The function fit_config_check_sig has a logic error that makes it possible to write past the end of the stack allocated array node_inc. This could potentially be used to bypass the signature check when using verified boot. This change ensures that the number of strings is correct when counted. Signed-off-by:
Konrad Beckmann <konrad.beckmann@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Martyn Welch authored
Add in the ability to modify the distro boot filename. Whilst not immediately useful in normal usage, it allows an alternative configuration to be provided when other u-boot functionality is used, such as bootcount limit, to fallback to an alternative boot configuration. In this case we can follow the same boot path as for normal boot, just using an alternatively named configuration file. For example, by providing the following `altbootcmd` when bootcount is in use: altbootcmd=setenv boot_extlinx_conf extlinux-rollback.conf; \ run distro_bootcmd Signed-off-by:
Martyn Welch <martyn.welch@collabora.co.uk> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
Keerthy authored
Fix compiler warning drivers/misc/fs_loader.c:193:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] Signed-off-by:
Keerthy <j-keerthy@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Keerthy authored
Instead of two staged ofnode_to_offset followed by device_get_global_by_of_offset approach, direcly use the device_get_global_by_ofnode to fetch the device. Signed-off-by:
Keerthy <j-keerthy@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Keerthy authored
Add fs.c under SPL as well as it is needed for fs_loader Signed-off-by:
Keerthy <j-keerthy@ti.com> Reviewed-by:
Simon Glass <sjg@chromium.org> [trini: Add as obj-$(CONFIG_FS_LOADER) for non-SPL_FRAMEWORK builds] Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Simon Goldschmidt authored
Add possibility to update the serial parity used. Signed-off-by:
Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Hannes Schmelzer <hannes.schmelzer@br-automation.com>
-
Simon Goldschmidt authored
The comment on this function prototype describes nonexistent parameters. It seems to be copied from 'setparity'. Update it to match its the parameter list. Signed-off-by:
Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Lokesh Vutla authored
Update the README file to add r5 build support and system firmware support. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com>
-
Lokesh Vutla authored
Add initial defconfig support for AM65x that runs on R5. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com> Signed-off-by:
Keerthy <j-keerthy@ti.com>
-
Lokesh Vutla authored
Add R5 specific dts for am654-evm. Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com> Signed-off-by:
Keerthy <j-keerthy@ti.com> Signed-off-by:
Schuyler Patton <spatton@ti.com> Signed-off-by:
James Doublesin <doublesin@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Lokesh Vutla authored
Sync the k3-am654 specific dts files from Linux next with tag 20181019. This changes are in queue for Linux v4.20-rc1 Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Lokesh Vutla authored
Add initial support for AM654 based EVM running on R5. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com>
-
Lokesh Vutla authored
In SPL, DDR should be made available by the end of board_init_f() so that apis in board_init_r() can use ddr. Adding support for triggering DDR initialization from board_init_f(). Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Lokesh Vutla authored
Considering the boot time requirements, Cortex-A core should be able to start immediately after SPL on R5. Add support for the same. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Lokesh Vutla authored
Update Makefiles to generate: - tiboot3.bin: Image format that can be processed by ROM. Below is the tiboot3.bin image format that is required by ROM: _______________________ | X509 | | Certificate | | ____________________ | | | | | | | u-boot-spl.bin | | | | | | | |___________________| | |_______________________| Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com>
-
Lokesh Vutla authored
Enable MPU regions for AM654 evm: - Region0: 0x00000000 - 0xFFFFFFFF: Device memory, not executable - Region1: 0x41c00000 - 0x42400000: Normal, executable, WB, Write alloc - Region2: 0x80000000 - 0xFFFFFFFF: Normal, executable, WB, Write alloc - region3-15: Disabled With this dcache can be enabled either in SPL or U-Boot. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Lokesh Vutla authored
K3 based AM654 devices has DDR memory subsystem that comprises Synopys DDR controller, Synopsis DDR phy and wrapper logic to intergrate these blocks into the device. This DDR subsystem provides an interface to external SDRAM devices. Adding support for the initialization of the external SDRAM devices by configuring the DDRSS registers and using the buitin PHY routines. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by:
Andreas Dannenberg <dannenberg@ti.com> Signed-off-by:
Keerthy <j-keerthy@ti.com> Signed-off-by:
Schuyler Patton <spatton@ti.com> Signed-off-by:
James Doublesin <doublesin@ti.com>
-
Patrick Delaunay authored
Change static array to const when it is useful to save memory (move stm32f7_setup=0x18 from .data to .rodata section) Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com>
-
Patrick Delaunay authored
Solve alignments issues in the driver to avoid checkpatch error. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com>
-