summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2019.08.1v2019.08.1Sascha Hauer2019-08-211-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: socfpga: fix xload on arria10Steffen Trumtrar2019-08-212-52/+13
| | | | | | | | | | | | | Since the commit 5a1a5ed2537d7d12f851f3778707681d6c08d6e8 ARM: images: use piggydata the loading mechanism in the arria10 xload is neither functional nor needed. Now, barebox has/can be loaded like a normal image, so the filesize, that is written to the barebox header, can be evaluated. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Makefile: we are on 2019.08Sascha Hauer2019-08-211-1/+1
| | | | | | | I forgot to increase the version in the Makefile for the last release. Increase the version now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge https://github.com/robostac/bareboxv2019.08.0Sascha Hauer2019-08-121-1/+1
|\
| * IMX: do_hab calls strcat on uninitialised memoryRob Stacey2019-08-091-1/+1
|/
* Merge branch 'for-next/zii'Sascha Hauer2019-07-1219-892/+666
|\
| * ARM: zii-imx7d-dev: Add support for RMU2 boardAndrey Smirnov2019-06-266-3/+432
| | | | | | | | | | | | | | Add support for Remote Modem Unit i.MX7D board. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: imx7d-zii-rpu2: Switch to using kernel DTSAndrey Smirnov2019-06-261-601/+7
| | | | | | | | | | | | | | Now that it is availible, switch to using kernel DTS. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: Rename zii-imx7d-rpu2 to zii-imx7d-devAndrey Smirnov2019-06-2611-12/+12
| | | | | | | | | | | | | | | | | | To prepare for addition of another ZII i.MX7D based board, i.MX7D RMU2, rename zii-imx7d-rpu2 to zii-imx7d-dev to avoid any image naming confusion. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Documentation: zii: Fix buggy check_bits_set_32Andrey Smirnov2019-06-262-2/+2
| | | | | | | | | | | | | | | | | | Fix a buggy while loop expression, that, due to '==' operator's precedence (higher than that of '&') was always evaluating to false rendering busy loop into a no-op. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Documentation: zii-vf610-dev: Reconcile DDR setup with DCDAndrey Smirnov2019-06-261-143/+151
| | | | | | | | | | | | | | | | | | Reconcile DDR setup code with corresponding DCD line by line, to avoid having any doubts if the two are identical (there wer some minor differences). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Documentation: zii-vf610-dev: Add necessary post reset delayAndrey Smirnov2019-06-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As observed on CFU1 board, without this delay we interrupt mask ROM code execution even before it sets up any PLLs correctly preventing Barebox from correctly starting up. Fixing this by adding PLL setup code to OpenOCD script helps somewhat and Barebox starts, howerver CPU started this way ends up being unstable crashing randomly during further Barebox use. Adding a simple 100 ms post reset delay resolves all of the described issues. This is also consistent with how other ZII boards are set up. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: zii-vf610-dev-rev-c: Fix DTS warningAndrey Smirnov2019-06-261-0/+3
| | | | | | | | | | | | | | Add missing #address-cells and #size-cells to fix a warning Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: zii-vf610-dev-rev-b: Fix DTS warningAndrey Smirnov2019-06-261-0/+3
| | | | | | | | | | | | | | Add missing #address-cells and #size-cells to fix a warning Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: zii-vf610-dev-rev-c: Use SPDX tag in DTSAndrey Smirnov2019-06-261-40/+2
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX: zii-vf610-dev-rev-b: Use SPDX tag in DTSAndrey Smirnov2019-06-261-40/+2
| | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/stm32'Sascha Hauer2019-07-1230-107/+1013
|\ \
| * | watchdog: stm32_iwdg: remove left-over commentAhmad Fatoum2019-07-111-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | The reset reason part of the code is based on the i.MX6's and duplicated a comment from there, which isn't applicable to the STM32. Delete it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: stm32: fix error path when gpio chip is not foundAhmad Fatoum2019-07-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current error path has two issues: - PTR_ERR is applied to a NULL pointer, so even error conditions return zero, which is a valid successful return. - The return value is stored into an unsigned integer which is checked to be less than zero, so the error is never handled. Fix both issues. Fixes: f4f933a64 ("pinctrl: add driver for STM32 GPIO and pin multiplexer") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: stm32: add debug output in set_state callbackAhmad Fatoum2019-07-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | There's already a debug output whenever a pin is configured, extend this by printing a "header" with the node name and how many pins configurations will follow. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: sm: move get_gicd_base_address to header for reuseAhmad Fatoum2019-07-042-28/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | Incoming PSCI implementation for the STM32MP1 needs to get_gicd_base_address as well, so move it to gic.h to avoid code duplication. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: psci: fix erroneous call of ->system_reset on system_offAhmad Fatoum2019-07-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both psci_system_reset and psci_system_off call psci_ops->system_reset, which seems like a copy-paste error as there is an unused ->system_off as well. Adjust psci_system_off to use ->system_off instead. This won't matter for the existing i.MX7 PSCI implementation because it defines neither callback, but it will for the upcoming STM32MP PSCI support. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: stm32mp: turn on GPIO related optionsAhmad Fatoum2019-06-201-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Now with pinctrl/GPIO support, enable some useful GPIO-related drivers and commands. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: stm32mp157a-dk1: enable heartbeat and error LEDsAhmad Fatoum2019-06-201-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | Now that we have GPIO support, add the red LED to the barebox device tree and override the blue one's default state. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: add driver for STM32 GPIO and pin multiplexerAhmad Fatoum2019-06-206-0/+568
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds driver support for the 12 GPIO banks on the STM32MP157. As they are accessible to both the Cortex-A cores as well as the Cortex-M core, modifications to these are protected by a hardware spinlock and clocks are enabled/disabled as required. All register fiddling done by the driver is collected in <soc/stm32/gpio.h>, so future PBL code may make use of it as well to chainload barebox proper. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | driver: add stubs for hardware spinlocksAhmad Fatoum2019-06-201-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some STM32MP Linux drivers, which could be ported to barebox as part of improved second stage barebox support, are using hardware spinlocks to coordinate access between the three processors. While barebox only uses one of the two Cortex-A cores, spin locks may still be necessary because of firmware loaded unto the Cortex-M. To ease porting these drivers, without having to import the hw spinlock driver now, add stubs for the functions. The stubs will we be reused when CONFIG_HWSPINLOCK is introduced, but is disabled in config. The API is oriented after the implementation in U-Boot. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | gpiolib: add gpio_get_chip helperAhmad Fatoum2019-06-202-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pinctrl nodes adhering to the generic pinctrl bindings may contain properties like input-low/input-high, which require pinctrl_ops.set_state to have a handle on the relevant gpio chip. Currently this would lead to code duplication: Both the pinctrl driver and gpiolib will need to store a list of registered gpiochips. Avoid this by providing a helper to query the registered gpio_chip given a gpio's number. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: stm32mp: factor out common DK nodes into dtsiAhmad Fatoum2019-06-203-64/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DK2 appears to be just the DK1 with a display, thus factor out the barebox-specifics into a new stm32mp157a-dk1.dtsi, which we can include in both device trees after including the upstream device tree. As the updated device tree introduced new nodes, the now duplicates (&ethernet0, &uart4, /chosen and /aliases) are dropped from the barebox device as part of this commit as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: stm32mp157a-dk1.dts: include upstream dts before barebox'Ahmad Fatoum2019-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | To allow "stm32mp157c.dtsi" to extend nodes in <arm/stm32mp157c.dtsi>, it should be included after it. Do this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: stm32mp: enable watchdog in defconfigAhmad Fatoum2019-06-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | With the IWDG driver implemented in barebox, have it be part of the default configuration. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | watchdog: add stm32 watchdog and reset driverAhmad Fatoum2019-06-193-0/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The driver supports setting watchdog timeout, system reset and querying reset reason. Disabling watchdog isn't possible in hardware, thus users should either only enable it before boot or have the poller take care of feeding it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Documentation: reset-reason: document new BROWNOUT reasonAhmad Fatoum2019-06-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Now that enum reset_src_type has been extended by BROWNOUT as a reason, add it to the user documentation. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: stm32mp: add entry point, not point.pblb to pblb-yAhmad Fatoum2019-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other images/Makefile.${arch}s, e.g. images/Makefile.imx, populate pblp-* with the entry points to build, not the pbl file that's generated. Adjust the images/Makefile.stm32mp to do the same. Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: stm32mp: stm32mp157c-dk2: compress the DTBAhmad Fatoum2019-06-193-3/+3
| | | | | | | | | | | | | | | | | | | | | This saves 23K with my configuration (from 250K to 227K). Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | reset_source: add new Brownout reset (BOR) sourceAhmad Fatoum2019-06-132-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The STM32MP1 can report brown out as reason for a reset, which doesn't fit into existing reasons. Thus add a new one to the enumeration. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: stm32mp1: rename to stm32mpAhmad Fatoum2019-06-139-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Serial and clk driver both depend on CONFIG_ARCH_STM32MP1, so either the Kconfig symbol or their depend needs to change. Patches posted by the vendor to Linux, U-Boot and their BSP Yocto-Layer speak of a STM32MP-Family of which the STM32MP1 is the first series, thus rename the arch by dropping the 1. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/socfpga'Sascha Hauer2019-07-129-97/+101
|\ \ \
| * | | scripts: socfgpa_import_preloader: simplify procedureSteffen Trumtrar2019-07-042-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of jumping through hoops using the bsp-editor gui, just use the underlying python script for importing. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: terasic-de0-nano-soc: statify sys_mgr_init_tableGwenhael Goavec-Merou2019-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: terasic-de0-nano-soc: add missing SECT() macro for ↵Gwenhael Goavec-Merou2019-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iocsr_scan_chain3_table Since commit a83c97f2a4065ef7209f123b837fa5103f984c6a SECT() macro is used to reduces image size. This patch add a missing SECT for iocsr_scan_chain3_table. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: terasic-de0-nano-soc: update handoff files to 18.1Gwenhael Goavec-Merou2019-07-026-84/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xload on de0nanosoc stop to boot after: SDRAM setup... SDRAM calibration... This patch fix SDRAM configuration and updates handoff to quartus2 18.1 Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/sandbox'Sascha Hauer2019-07-125-5/+3
|\ \ \ \
| * | | | sandbox: drop blank lines at EOFAntony Pavlov2019-07-112-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | sandbox: eliminale no previous prototype for ‘sandbox_add_device’ warningAntony Pavlov2019-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch fixes the following gcc-8.3.0 warning: arch/sandbox/board/devices.c:13:5: warning: no previous prototype for ‘sandbox_add_device’ [-Wmissing-prototypes] int sandbox_add_device(struct device_d *dev) ^~~~~~~~~~~~~~~~~~ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | sandbox: prevent segfault in tap_alloc()Antony Pavlov2019-07-112-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tap network interface initialization in sandbox barebox leads to segfault under Debian Buster/Sid. The problem is that strcpy(dev, ifr.ifr_name) inside tap_alloc() tries to alter read-only data passed by tap_probe() and barebox receives SIGSEGV. Nobody uses network interface name returned by tap_alloc() so we can drop this strcpy(). Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/pstore'Sascha Hauer2019-07-124-88/+32
|\ \ \ \ \
| * | | | | pstore: remove unused codeSascha Hauer2019-07-093-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pstore_info->write() is unused, remove the code implementing it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | pstore: Only capture log messagesSascha Hauer2019-07-093-60/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this pstore only captures barebox log messages printed with pr_* and dev_*, but no longer anything printed with printf and friends. When capturing the barebox output with pstore only the log messages are of interest, but not the ones printed with printf and certainly not the things typed interactively on the command line. These are logged currently because we register pstore as a barebox console. Instead, hook into pr_puts which only outputs the barebox log messages. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | | Merge branch 'for-next/mvebu'Sascha Hauer2019-07-1212-77/+630
|\ \ \ \ \ \
| * | | | | | images/mvebu: use space before = instead of tabUwe Kleine-König2019-06-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>