summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* poller: Give pollers a nameSascha Hauer2020-05-202-2/+2
| | | | | | It helps debugging when pollers have a name, so give them one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/stm32'Sascha Hauer2020-05-143-11/+136
|\
| * stm32mp: init: fix up st, package into stm32mp pinctrl nodesAhmad Fatoum2020-05-121-15/+48
| | | | | | | | | | | | | | | | | | | | | | Since Linux v5.1, the pinctrl driver can use the st,package property if provided to validate whether the ball to be configured exists on the package. The upstream device trees provide this property, but if we'll want barebox to supply it instead, so we can use the same barebox binary for different SoC variants. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * nvmem: bsec: remove wrongly named bsec_field typeAhmad Fatoum2020-05-081-3/+3
| | | | | | | | | | | | | | | | | | BSEC_SMC_READ_SHADOW and BSEC_SMC_WRITE_SHADOW aren't fields, but operations to apply on fields. Rename it accordingly and fix up instances where it was used wrongly. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: stm32mp: init: fix up CPU device tree nodesAhmad Fatoum2020-05-081-0/+45
| | | | | | | | | | | | | | | | To facilitate using the same barebox binary for multiple variants of the STM32MP15x, have it fix up the CPU device tree nodes. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: stm32mp: init: detect Revision Z and 800 MHz profilesAhmad Fatoum2020-05-082-6/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revision A was 0x1000 and B was 0x2000, so I assumed the next would be revision C valued 0x3000. Alas, it's revision Z with 0x2001... Change the code accordingly and add detection for the new 800Mhz profiles. Code taken from U-Boot commit cf0818b477 ("stm32mp1: support of STM32MP15x Rev.Z") and Patch[1] "stm32mp1: add 800 MHz profile support". [1]: https://st-md-mailman.stormreply.com/pipermail/uboot-stm32/2020-February/002170.html Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: stm32mp: init: don't cast signed error to unsignedAhmad Fatoum2020-05-081-2/+2
| | | | | | | | | | | | | | | | | | bsec_read_field returns a negative value on error, pass it along signed. This doesn't matter now, because we ignore the error code, but it's the correct thing to do. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/powerpc'Sascha Hauer2020-05-1413-5/+761
|\ \
| * \ Merge branch 'for-next/mxs' into nextSascha Hauer2020-04-301-0/+8
| |\ \
| | * | clk: mxs: Use device tree provided clock lookupsSascha Hauer2020-04-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When probing from the device tree use the device tree provided clock lookups. So far we only used the clock lookups based on the physical base address of the device, but these should go sooner or later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | arm: mxs: Add Kconfig option for device tree boardsSascha Hauer2020-04-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Boards supporting device tree have to make sure OFTREE and OFDEVICE are selected. Add a convenience option pulling in the right options and select it from the boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Merge branch 'for-next/misc' into nextSascha Hauer2020-04-301-7/+0
| |\ \ \
| * \ \ \ Merge branch 'for-next/kconfig' into nextSascha Hauer2020-04-308-44/+3
| |\ \ \ \
| * \ \ \ \ Merge branch 'for-next/stm32' into nextSascha Hauer2020-04-2810-5/+750
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| | * | | | ARM: stm32mp: expand stm32mp_defconfig for new drivers and boardAhmad Fatoum2020-04-281-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While some support is still missing (USB, LCD), we already have some prerequisites in place like USB PHY and PWM (for backlight). We also have gained one new board and some other new drivers since the last time the defconfig was touched, so enable them all, as well as some possibly useful commands. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM: stm32mp: lxa-mc1: break reg_3v3 dependency on PMICAhmad Fatoum2020-04-281-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the regulator is indeed powered by the PMIC, basically the whole system is, and it's always on. Linux doesn't handle this specially however and will defer SDMMC probe till after the PMIC is probed costing us some valuable boot time. Fix this up. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | | | ARM: stm32mp: add Linux Automation MC-1 supportAhmad Fatoum2020-04-289-0/+700
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the Linux Automation GmbH MC-1 board built around the Octavo Systems OSD32MP157C-512M SiP. The device tree is based on the one in linux-stm32/stm32-next, which will probably be merged for Linux v5.8-rc1. Instead of waiting that long, we import it here with some stuff removed/changed, so it's usable for both barebox and Linux, without the prerequisite patches. The non-barebox specific parts have been moved into separate DTSIs (arch/arm/dts/stm32mp{157c-lxa-mc1,15xx-osd32}.dtsi), so both can be dropped after the v5.8-rc1 sync with only include path change necessary in arch/arm/dts/stm32mp157c-lxa-mc1.dts. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | Merge branch 'for-next/sdhci' into nextSascha Hauer2020-04-283-0/+11
| |\ \ \ \
| | * | | | ARM: at91: dts: specify aliases for sdmmc nodesAhmad Fatoum2020-04-273-0/+11
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With Atmel SDHCI support incoming, we'll want the cards to have predictable names. Extend the sama5d2.dtsi with an /aliases node. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | Merge branch 'for-next/misc' into nextSascha Hauer2020-04-28189-541/+0
| |\ \ \ \
* | \ \ \ \ Merge branch 'for-next/mxs'Sascha Hauer2020-05-143-3/+23
|\ \ \ \ \ \
| * | | | | | ARM: i.MX28: Update defconfigSascha Hauer2020-05-071-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable more features: - USB support - wd command - ubiformat - regulator command Changes: - Disable all consoles (they are enabled using stdout-path property) - Do not probe MMC/SD cards during probe Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | ARM: mxs: Increase VDDD voltage to match specificationSascha Hauer2020-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adoption of U-Boot commit: | commit b4a2cdc13ed886b981e8fcd3087293ba9296f17f | Author: Marek Vasut <marex@denx.de> | Date: Tue Oct 15 18:26:57 2019 +0200 | | arm: mxs: Increase VDDD voltage to match specification | | According to IMX28CEC rev. 4, 10/2018, Table 15. Recommended Operating | Conditions, page 16, the VDDD should be set to 1.55V when the CPU is | operating at 454MHz. This is the case in U-Boot, hence increase the | VDDD voltage. This fixes instability when performing TFTP transfers. | Increase the brownout threshold to 1.4V. The documentation recommends | 1.45V setting for the brownout, however, this triggers failure during | power block init, so keep the brownout slightly lower. | | Signed-off-by: Marek Vasut <marex@denx.de> | Cc: Stefano Babic <sbabic@denx.de> | Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | clk: mxs: Use device tree provided clock lookupsSascha Hauer2020-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When probing from the device tree use the device tree provided clock lookups. So far we only used the clock lookups based on the physical base address of the device, but these should go sooner or later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | arm: mxs: Add Kconfig option for device tree boardsSascha Hauer2020-05-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Boards supporting device tree have to make sure OFTREE and OFDEVICE are selected. Add a convenience option pulling in the right options and select it from the boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | | | Merge branch 'for-next/misc'Sascha Hauer2020-05-14220-732/+68
|\ \ \ \ \ \ \
| * | | | | | | ARM: dts: vexpress-v2p-ca9: adapt fixed NOR flash partition setupRoland Hieber2020-05-121-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream DTS commit 62a5017bf825c9e4d317 ("ARM: dts: vexpress: specify AFS partition") [1] introduced an empty node at /smb@4000000 /motherboard/flash@0,00000000/partitions, which is preferred by the OF partitions parser over the single partition nodes. In the same commit, upstream set the compatible to "arm,arm-firmware-suite", which barebox does not know about. Adapt our fixed partition setup accordingly by wrapping all partitions in an extra "partitions" node with the correct compatible. [1]: https://git.kernel.org/linus/62a5017bf825c9e4d3176eb975a01c329a9f36 Fixes: 6940ba22c66ac1c71350 ("dts: update to v5.3-rc1") Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | ARM: i.MX6: boot: handle i.MX6UL differencesAhmad Fatoum2020-05-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The i.MX6UL differs from the i.MX6Q in the interpretation of the first two values for BOOT_CFG(7, 4): +--------------+----------+----------+ |BOOT_CFG1(7,4)| 0x01 | 0x02 | |==============+==========+==========| | MX6Q | reserved | SATA | |--------------+----------+----------| | MX6UL | QSPI | reserved | +--------------+----------+----------+ The reserved (forced serial) values are handled in the previous commit. Add QSPI boot source detection now. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | ARM: i.MX: boot: interpret reserved boot as forced serialAhmad Fatoum2020-05-122-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `mw 0x20d8040 0x00000010; mw 0x20d8044 0x10000000; reset` issued on an i.MX6Q forces serial download mode, but there is no indication of that in the sbmr2 register, so barebox reports $bootsource=unknown. Similarly, `mw 0x20d8040 0x00000020; mw 0x20d8044 0x10000000; reset` forces an i.MX6UL into recovery mode after reset. Do as U-Boot does and interpret the (reserved) value in BOOT_CFG1(7, 4) for each SoC as serial download. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | ARM: i.MX: boot: correctly handle SRC_SBMR1 override via SRC_GPR9Ahmad Fatoum2020-05-081-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `mw 0x20d8040 0x08000030; mw 0x20d8044 0x10000000; reset` issued on an i.MX6Q forces boot from the ecspi1. This is because the BootROM reads the boot mode out of SRC_GPR9 instead of SRC_SBMR1 whenever SRC_GPR10 has its 28th bit set. Teach barebox about this, so we don't end up with a wrong $bootsource when putting SRC_GPR9 into use. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | ARM: i.MX: configurable Super Root Key indexRouven Czerwinski2020-05-083-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the configuration of the Super Root Key Index, to let the user select another key if a previous key has been revoked. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | MIPS: dlink-dir-320: remove useless board fileAntony Pavlov2020-05-072-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The board file calls only barebox_set_hostname(). Since we can extract host name from devicetree, we can drop board file. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | arm/boards: drop various empty board filesUwe Kleine-König2020-05-0516-96/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | nios2: include <asm-generic/io.h> from asm/io.hMasahiro Yamada2020-05-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <asm-generic/io.h> is a collection of default of various accessors. All the other architectures include <asm-generic/io.h> as a fallback. Do likewise for NIOS2. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | arm: zylonite: drop empty headerUwe Kleine-König2020-05-042-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | | arm: remove empty config.hMasahiro Yamada2020-05-046-30/+0
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are not included by anyone because these boards are not added to board-y. The top Makefile creates the empty include/config.h if a board-specific config.h deos not exist. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | | x86: delete X86_NATIVE_BRINGUP in choiceAhmad Fatoum2020-04-281-7/+0
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12769b3b7871 ("Add the whole x86 architecture to the build system") added the configuration option 10 years ago, but no backing code has been contributed meanwhile. Drop the option. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | treewide: remove references to CREDITSUwe Kleine-König2020-04-27189-541/+0
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CREDITS file was removed from barebox in 2015 by commit 6570288f2d97 ("Remove the CREDITS file"). Remove references to it from several files. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/kconfig'Sascha Hauer2020-05-148-44/+3
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | PPC: remove unused left-over Kconfig optionAhmad Fatoum2020-04-291-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5e50ab4f ("pcm030: cleanup config.h") removed the last reference to MACH_PHYCORE_MPC5200B_TINY_REV_1 (The current name is a typo), so the Kconfig option hasn't been serving a purpose for 7 years. Drop it. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | x86: mach-i386: remove unused X86_GENERIC_HAS_{ISA, PCI, USB} optionsAhmad Fatoum2020-04-291-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Out of the four options in the file, only X86_GENERIC_HAS_VIDEO is used. The others have been without backing code for 10 years, so drop them. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | treewide: Kconfig: remove some unused symbolsAhmad Fatoum2020-04-293-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All these symbols are defined, but unused anywhere in the barebox tree. Remove them. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | MIPS: ath79: define used, but undefined, Kconfig optionAhmad Fatoum2020-04-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SOC_QCA_QCA4531 is selected, but defined no where. fix this. Cc: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | lib: bch: define referenced but undefined Kconfig optionAhmad Fatoum2020-04-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BCH_CONST_PARAMS is used, but undefined. Defining it would change MACH_MIOA701 behavior, so define it but remove the select Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: socfpga: remove duplicate ARCH_TEXT_BASEAhmad Fatoum2020-04-291-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have one ARCH_TEXT_BASE in the file, which sets a value of zero. MACH_SOCFPGA_CYCLONE5 and MACH_SOCFPGA_ARRIA10 aren't defined anywhere and are listed in no defconfigs, thus drop the duplicate option. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: at91: remove undefined Kconfig symbolAhmad Fatoum2020-04-291-1/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symbol used to exist, but was replaced by DEBUG_AT91_UART_BASE in common/Kconfig. Remove last trace of it. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/kbuild'Sascha Hauer2020-05-14173-199/+89
|\ \ \ \
| * | | | arch: remove KBUILD_SRC checks from arch MakefileMasahiro Yamada2020-05-127-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can always add $(srctree)/ to the mach include path. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | kbuild: do not delete $@ explicitly on failureMasahiro Yamada2020-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The .DELETE_ON_ERROR special target is specified in scripts/Kbuild.include You do not need to delete $@ explicitly when the command fails. GNU Make automatically does it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | mips: remove unused board/debug_ll.hMasahiro Yamada2020-05-043-61/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no way to include <board/debug_ll.h>. These three files are dead code. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>