summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: at91: Move mci platform data to include/Sascha Hauer2020-05-081-10/+1
| | | | | | | | To be able to add the Atmel mci driver to COMPILE_TEST move the definition of struct atmel_mci_platform_data to include/ where it can be reached from foreign SoCs as well. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Phytec phyFLEX i.MX6: delete wrong memory nodeSascha Hauer2020-04-301-4/+1
| | | | | | | | | | | | | | The phyFLEX i.MX6 has two memory nodes in the device tree. /memory comes from the barebox dtsi file and contains dummy values. This is unnecessary, barebox will create a memory node when booting the kernel. The other one comes from the Kernel dtsi and causes more harm. The memory in the node has a size of 2GiB. Not all boards have so much memory, since 8226f7f909 ("of: base: parse all available memory nodes") this node is no longer ignored and now all boards are assumed to have 2GiB of memory. Remove the node using /delete-node/ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Stefan Riedmüller <s.riedmueller@phytec.de>
* ppc: Test for compiler optionsSascha Hauer2020-04-271-1/+4
| | | | | | | The -mno-spe and -mspe=no options are not available on all compilers. Call cc-option to set them only when they exist. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts. i.MX7: add stopgap solution for barebox UART clock breakageAhmad Fatoum2020-04-204-0/+49
| | | | | | | | | | | | | | | | | | | | | | Commit 8b2104d740 ("driver: Call of_clk_set_defaults for each probed device") made barebox act on the assigned-clock-parents property everywhere, not only for clock provider nodes. This breaks at least the serial console on the i.MX7 SabreSD board; only garbage is output if the patch is not reverted. As stopgap measure, override these properties for all enabled uart nodes in the barebox i.MX7 device tree. This reverts the behavior to what it was like before the offending commit. This is of course no real solution, as obviously Linux was fine dealing with these properties before. But this hack should at least fix the serial console for the boards that were broken in v2020.03.0. When a proper fix follows, this patch can be reverted. Cc: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/zynq'Sascha Hauer2020-04-161-3/+22
|\
| * arm: avnet zedboard: turn on mio7 led on startupMichael Graichen2020-04-141-0/+10
| | | | | | | | | | | | | | Turns on the LED on MIO7 on the Zedboard to have a signal Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: avnet zedboard: add fpga and pcap clock controlMichael Graichen2020-04-141-0/+9
| | | | | | | | | | | | | | Added the configuration for FPGA an PCAP clock control Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: avnet zedboard: fix gem0 mio settingsMichael Graichen2020-04-141-3/+3
| | | | | | | | | | | | | | fixed GEM0 MIO Settings according to what Vivado says Signed-off-by: Michael Graichen <michael.graichen@hotmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/zii'Sascha Hauer2020-04-1619-574/+149
|\ \
| * | ARM: zii-common: Gate rdu_i210_invm() call with CONFIG_PCI_IMX6Andrey Smirnov2020-04-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | There's no reason to have rdu_i210_invm() initcall if CONFIG_PCI_IMX6 is not selected. Add appropriate ifdef to handle that. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-rmu2: Add boot source infoAndrey Smirnov2020-04-031-0/+18
| | | | | | | | | | | | | | | | | | | | | Add boot source info so that RAVE SP driver could query it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-rmu2: Add SPI NOR partition infoAndrey Smirnov2020-04-031-0/+17
| | | | | | | | | | | | | | | | | | | | | Add SPI NOR partition info necessary for SPI BBU target to work. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-dev: Drop redundant RMU2 .dtsiAndrey Smirnov2020-04-032-362/+1
| | | | | | | | | | | | | | | | | | | | | The file has made it upstream so we can drop our local copy. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Drop redundant "stdout-path"Andrey Smirnov2020-04-031-2/+0
| | | | | | | | | | | | | | | | | | | | | Drop redundant "stdout-path" since it already present in upstream DT. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Add boot source infoAndrey Smirnov2020-04-031-0/+9
| | | | | | | | | | | | | | | | | | | | | Add boot source info so that RAVE SP driver can properly query it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx8mq: Drop redundant DT nodesAndrey Smirnov2020-04-031-97/+0
| | | | | | | | | | | | | | | | | | | | | | | | Drop all of the aliases and themrmal-zone nodes in imx8mq.dtsi since those nodes are now present in upstream DT file. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx8mq: Drop trailing whitespaceAndrey Smirnov2020-04-031-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rdu2: Drop redundant USB GPIO hog nodesAndrey Smirnov2020-04-031-36/+0
| | | | | | | | | | | | | | | | | | | | | All of those nodes are already present in upstream DT. Drop them. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Add newline to end of board.cAndrey Smirnov2020-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Add newline to end of board.c so that git doesn't complain. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Register SD card slot with BBUAndrey Smirnov2020-04-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Register SD card slot with BBUAndrey Smirnov2020-04-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx6q-rdu2: Register SD card slot with BBUAndrey Smirnov2020-04-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Register SD card slot with BBU. This is really useful for development since this allows to update the bootloader on SD card without having to take it out of the device. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Add common environment directoryAndrey Smirnov2020-04-0310-50/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Establish a common environment directory between all ZII boards, so that we could share common bits and pieces. As a first step, get rid of board scecific net boot scripts and replace them with a single shared one. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx8mq-dev: Differentiate between Zest and RMB3Andrey Smirnov2020-04-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Add code to configure hostname so we could differentiate between the two in scripts. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-dev: Differentiate between RPU2 and RMU2Andrey Smirnov2020-04-011-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Add code to configure hostname so we could differentiate between the two in scripts. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx6q-rdu2: Differentiate between RDU2 and RDU2+Andrey Smirnov2020-04-011-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | Add code to configure hostname so we could differentiate between the two in scripts. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Support rave_switch_reset on ZII UltraAndrey Smirnov2020-04-014-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | ZII Ultra boards implement switch watchdog the same way as ZII RDU2. Add necessary code to make rave_switch_reset availible. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Find switch watchdog via DTAndrey Smirnov2020-04-011-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use of_find_i2c_device_by_node() in swith reset code in order to be able to support other devices that have this MCU on a different I2C busses. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: Check for I2C errors in do_rdu2_switch_reset()Andrey Smirnov2020-04-011-3/+17
| | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-imx7d-dev: Fix compatible nameAndrey Smirnov2020-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix compatible name use in zii_imx7d_rpu2_coredevices_init(). Upstream uses "zii,imx7d-rpu2" and so should we. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: imx7d-zii-rpu2: Drop redundant chosen nodeAndrey Smirnov2020-04-011-9/+0
| |/ | | | | | | | | | | | | | | This code is no longer necessary. Upstream DT code has all the necessary bits. Remove it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/pwm'Sascha Hauer2020-04-161-0/+12
|\ \
| * | PWM: add support for STM32Ahmad Fatoum2020-03-311-0/+12
| |/ | | | | | | | | | | | | | | This driver adds support for PWM driver on STM32 platform based on the Linux v5.4 support. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2020-04-1615-16/+44
|\ \
| * | ppc,riscv: set something to KBUILD_DEFCONFIGMasahiro Yamada2020-04-152-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'make ARCH=riscv defconfig' ends up with endless recursion. Users may get upset with it. In Linux, every architecture does something for 'make defconfig'. Set something to KBUILD_DEFCONFIG to make it work for riscv and ppc. There is only one file in arch/riscv/configs/, so there is no choice but erizo_generic_defconfig for riscv. There are some choices for ppc, but I am not sure what is appropriate. I just picked something. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | arm: omap: Fix no previous prototype warningsSascha Hauer2020-04-0112-15/+40
| | | | | | | | | | | | | | | | | | | | | | | | The board's set_muxconf_regs is declared in the C file using it and defined in another file without a header file providing the prototype. Add a header file to avoid compiler warnings. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | arm: rk3288-phycore-som: Fix memory nodeSascha Hauer2020-04-011-1/+1
| |/ | | | | | | | | | | | | | | Upstream arm/rk3288.dtsi specifies #address-cells = <2> and #size-cells = <2> for the root node, so we have to use 64bit addresses and sizes in the memory node as well. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/layerscape'Sascha Hauer2020-04-161-2/+4
|\ \
| * | ARM: Layerscape: Be less noisy when no iommu node foundSascha Hauer2020-03-241-2/+4
| |/ | | | | | | | | | | | | The IOMMU node is not present in the upstream dts files. Do not complain too loudly when we are presented such a device tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/kalray-coolidge'Sascha Hauer2020-04-1636-0/+6425
|\ \
| * | watchdog: kvx: Add kvx watchdog supportClement Leger2020-04-151-0/+3
| | | | | | | | | | | | | | | | | | | | | Add a watchdog for kvx architecture based on core watchdog. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clocksource: kvx: Add kvx clocksource supportClement Leger2020-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a clocksource for kvx architecture based on core performance counter. This performance counter is configured to count cycles and as such can be used to be a clocksource. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | kvx: Implement reset source and resetClement Leger2020-04-155-1/+95
| | | | | | | | | | | | | | | | | | | | | | | | Implement reset and reset source handling using ftu. This support uses regmap to access the ftu easily using "kalray,kvx-syscon" compatible. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | kvx: Add support for device treeClement Leger2020-04-154-0/+144
| | | | | | | | | | | | | | | | | | | | | Add dts folder with minimal device tree for kalray K200 board. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | kvx: Add processor definitionsClement Leger2020-04-151-0/+5029
| | | | | | | | | | | | | | | | | | | | | | | | This file is generated from processor description and is used to access and modify processor registers. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | kvx: Initial Kalray Coolidge (kv3) architecture supportClement Leger2020-04-1531-0/+1154
| | | | | | | | | | | | | | | | | | | | | Add kalray coolidge arch/ support. Signed-off-by: Clement Leger <cleger@kalray.eu> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/at91-clk'Sascha Hauer2020-04-163-135/+21
|\ \ \
| * | | clk: at91: port Linux v5.6 SAM9X60 (new ARM926EJ-S) clock supportAhmad Fatoum2020-04-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During a bug hunt that ultimately turned out unrelated to the state of the barebox at91 clk driver, I synchronized its state with Linux v5.6. Bug fixes and clean up to minimize the diff were split out in separate prior commits. This last commit imports the rest, which is basically support for Microchip's new ARM926EJ-S SoC, the SAM9x60. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clk: at91: add sama5d2 audio PLL supportAhmad Fatoum2020-04-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 7310b976 ("clk: at91: fix compilation errors in sama5d2.c") and follow-up commit ca3077068c ("clk: at91: delete dead i2s/audio code") had deleted the i2s/audio clock related parts of the upstream driver. This was mostly due to unwillingness on my part to understand the code enough for porting them and because I deemed them unnecessary to support in barebox. The former has changed and the latter is not totally true as audio PLL derived clocks may be muxed as inputs for programmable and generated clocks. Port them over and mimize the diff to upstream. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | treewide: use cpu_relax() where appropriateAhmad Fatoum2020-04-151-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of doing /* cpu_relax(); */ barrier(); on upstream uses of cpu_relax(), just use the new cpu_relax() #define directly. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>