summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2019-04-0910-41/+44
|\
| * ARM: rpi: add board revision for Compute Module 3+Tomaz Solc2019-03-272-0/+3
| | | | | | | | | | | | | | | | | | | | | | Raspberry Pi Compute Module 3+ was released in January 2019. Source for the new board revision code: https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md Signed-off-by: Tomaz Solc <tomaz.solc@tablix.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * treewide: surround Kconfig file paths with double quotesMasahiro Yamada2019-03-218-40/+40
| | | | | | | | | | | | | | | | | | Based on Linux commit 8636a1f9677db4f883f29a072f401303acfc2edd This will be needed when you sync Kconfig with Linux 5.0 or later. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/lseek'Sascha Hauer2019-04-083-10/+14
|\ \
| * | ARM: i.MX: bbu: Fix variable type in imx_bbu_internal_v2_write_nand_dbbt()Andrey Smirnov2019-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | MEMGETBADBLOCK returns loff_t, so that's the type we should use to store its result. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: bbu: Fix lseek error check in imx_bbu_internal_v2_write_nand_dbbt()Andrey Smirnov2019-03-111-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use 'int' to store lseek()'s return value to avoid problems with large seek offsets. While at it, make sure to populate return error code from 'errno'. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: bbu: Fix lseek error check in imx_bbu_external_nand_update()Andrey Smirnov2019-03-111-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use 'int' to store lseek()'s return value to avoid problems with large seek offsets. While at it, make sure to populate return error code from 'errno'. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: bbu: Fix variable type in imx_bbu_external_nand_update()Andrey Smirnov2019-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | MEMGETBADBLOCK returns loff_t, so that's the type we should use to store its result. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: ath79: Use errno to get error code from open_and_lseek()Andrey Smirnov2019-03-111-2/+2
| |/ | | | | | | | | | | | | | | Open_and_lseek() return actual error code via errno, so change the code to use it instead of return value. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/layerscape'Sascha Hauer2019-04-0849-1/+2278
|\ \
| * | ARM: Add layerscape_defconfigSascha Hauer2019-03-131-0/+111
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Layerscape: Add TQ TQMLS1046a board supportSascha Hauer2019-03-1318-0/+888
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the TQ TQMLS1046a board. Currently supported: - UART - SD/MMC - Network on eth3, eth2 currently not working for unknown reasons First stage support exists but is currently untested. Serdes ports are not yet supported. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Layerscape: Add LS1046a RDB board supportSascha Hauer2019-03-1317-0/+464
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RDB is the Freescale LS1046a reference board. This patch adds support for it. Currently supported: - DDR4 RAM as read from SPD EEPROM - UART - SD/MMC - RGMII network ports The Serdes ports are currently not supported. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: Add Layerscape clk supportSascha Hauer2019-03-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the clock controller found on Layerscape SoCs. This is mostly an adoption of the corresponding Linux driver. This is tested on the LS1046a SoC. Other ARM based Layerscape SoCs should work aswell, support for the PowerPC based SoCs has been removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Add basic Layerscape supportSascha Hauer2019-03-1312-0/+777
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds basic Layerscape support: - Makefile/Kconfig - Register maps - errata workarounds Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | esdhc-xload: Add support for LayerscapeSascha Hauer2019-03-131-0/+6
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Add arm64 pbl udelaySascha Hauer2019-03-132-1/+18
| | | | | | | | | | | | | | | | | | | | | PBL often needs a way to udelay execution. Since we have a generic timer in ARMv8 we can implement a generic udelay. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pbl multiimage: Allow to check image sizesSascha Hauer2019-03-132-0/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PBL images are often constrained in size by limitations exposed by the SoCs SRAM size or partition sizes on the boot device. So far we tried to configure these limits in Kconfig, but with PBL multi images and thus different limitations for the different supported images this no longer works. This patch has another approach for it: During build time make variables containing the relevant sizes for each image are created. These are: PBL_CODE_SIZE_$(symbol) PBL_MEMORY_SIZE_$(symbol) PBL_IMAGE_SIZE_$(symbol) PBL_CODE_SIZE_$(symbol) contains the pure code size of the PBL, it should be smaller than the available SRAM during boot. Normally the PBL's bss segment also needs to be in the initial SRAM, for this case PBL_MEMORY_SIZE_$(symbol) is the relevant variable. PBL_IMAGE_SIZE_$(symbol) contains the full size of the PBL image including the compressed payload (but without any image headers created later by SoC specific image tools). $(symbol) is a placeholder for the start symbol used for this PBL image, thus for the i.MX53 QSB with entry start_imx53_loco PBL_CODE_SIZE_start_imx53_loco will be created. The images/Makefile.* can use these variables directly to check sizes or specify the same variables with a "MAX_" prefix. So when images/Makefile.imx specifies MAX_PBL_CODE_SIZE_start_imx53_loco = 0x10000 then the build system will make sure that the PBL code for the QSB will not get bigger than 64KiB. Also included in this patch are the size restrictions for the i.MX8MQ images as an example how to use this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2019-04-0821-514/+1075
|\ \
| * | ARM: zii-common: reuse i210 config check for RDU3Lucas Stach2019-03-272-29/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | The i210 on the RDU3 must be configured in the same way as on RDU2. Move the config check/patching to the common directory and add the compatible of the RDU3 boards. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: extend kindle-mx50 defconfigAlexander Kurz2019-03-181-17/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current defaultenv-kindle-mx50 requires MCI_STARTUP to boot the installed linux. CMD_LOADY is mentioned in the doc for barebox update purposes. FS_EXT4, FS_FAT and FS_FAT_WRITE gives users file system access. Also enable CMD_MEMTEST, CMD_CLK, CMD_REGULATOR and CMD_EDIT for interested users. The extended image will consume 195kB of available 253kB. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM Kindle3: switch on pull-ups for fiveway deviceAlexander Kurz2019-03-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Without the pullups enabled, the GPIO change after a button release took some hundered milliseconds. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM Kindle3 defconfig: enable MMUAlexander Kurz2019-03-181-1/+2
| | | | | | | | | | | | | | | | | | | | | With the MMU enabled, a memtest runs 14 times faster. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: mx8mq-phytec-phycore-som: Add watchdogChristian Hemp2019-03-181-0/+13
| | | | | | | | | | | | | | | | | | | | | Add watchdog support for imx8mq-phytec-phycore-som. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rdu2: patch DSA configAndrey Smirnov2019-03-181-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patches the DSA switch config in the kernel DT if the unit is a 12.1" one, which doesn't have the FEC wired up to the switch. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> [andrew.smirnov@gmail.com: Ported the patch to use p/n fixups] Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rdu2: Add p/n based fixups for touchscreen and display panelLucas Stach2019-03-182-1/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RDU1 devices come in different varietes and, depending on particular configuration, certain device tree nodes need to be adjusted accoringly. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: fetch network config from SPLucas Stach2019-03-182-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | On both RDU1 and RDU2 the seat notwork configuration is stored in a configuration EEPROM accessible via the RAVE SP. Add an initcall to fetch this configuration and add it to the kernel command line. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: introduce RDU part-number based fixup abstractionAndrey Smirnov2019-03-183-1/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiple generation of RDU boards from ZII come with slight hardware variation that can be detected and fixed-up correctly based on part number stored in EEPROMs that are accessible via RAVE SP. In order to reduce common boilerplate between various RDU boards introduce a bit of abstraction to allow declaring part-number specific fixup in RDU board code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-common: add support for switch reset on RDU1Lucas Stach2019-03-182-7/+32
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: add Zii common directory and move switch reset commandLucas Stach2019-03-185-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | The Zii boards share some functionality across different boards. Add a common directory, so we can implement this once and use across different boards. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Switch SCU4 AIB board to use upstream DTSAndrey Smirnov2019-03-134-462/+24
| | | | | | | | | | | | | | | | | | | | | | | | Barebox now has a copy of upstream DTS file for SCU4 AIB board, so convert corresponding code to use it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Add ZII SPB4 boardAndrey Smirnov2019-03-135-2/+391
| |/ | | | | | | | | | | | | Add support for Zodiac's VF610 based SPB4 board. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | dts: update to v5.1-rc1Sascha Hauer2019-04-087-170/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Revert "fix zbarebox linking with new ld"Sascha Hauer2019-03-181-1/+1
| | | | | | | | | | | | | | | | | | --no-dynamic-linker is already added just a few lines below, do not add the option twice. This option also needs to be embedded in a test if the linker supports this option which we already have in the other place adding this option. This reverts commit 25de30638a2859f9e07c61821cdc71906b7169b8.
* | ARM: Makefile: restore kindle3 imxcfg-y settingAlexander Kurz2019-03-181-0/+1
|/ | | | | | | | | Commit 45f38c1a846f ("ARM: Makefile: Drop unnecessary imxcfg-y settings") dropped the imximg generation for the kindle3. This device is not covered within multiimage support and can be configured with kindle3_defconfig. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spd'Sascha Hauer2019-03-073-10/+10
|\
| * ddr_spd: Update from U-BootSascha Hauer2019-03-043-10/+10
| | | | | | | | | | | | | | | | | | | | | | This updates the ddr_spd.h header file from U-Boot-2019.01 with some small changes: - typedefs are removed - "_s" suffix from struct types removed - remove unnecessary "extern" from function declarations Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rpi'Sascha Hauer2019-03-0717-73/+243
|\ \
| * | ARM: rpi: Add mini UART debug_ll supportSascha Hauer2019-03-061-0/+37
| | | | | | | | | | | | | | | | | | | | | The raspberry pi 3 comes up with the mini UART as default, so allow to use it for debug_ll output. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: move debug UART Kconfig settingsSascha Hauer2019-03-062-24/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In contrast to other architectures, R.Pi debug UART config was placed under the "System Type" menu, not under the "Debugging -> low-level debugging port". This made this setting easy to miss when enabling low level debug mesages. While at it use the existing base address defines rather than defining them again in Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | debug_ll: Move pl011 header file to architecture independent placeSascha Hauer2019-03-066-30/+5
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: Move UART base address definitions to header fileSascha Hauer2019-03-062-4/+5
| | | | | | | | | | | | | | | | | | Move defines to header file to make them reusable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: save bootargs from VC FDT to vc.bootargsTomaz Solc2019-03-041-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When booting a Raspberry Pi, it is useful to extract bootargs from the device tree that was created by the VideoCore firmware. These bootargs contain for example settings for the framebuffer that the kernel needs to properly set the video output. This commit extracts the bootargs in the board initialization code and saves them to the vc.bootargs global variable. For example, a bootloader environment can then add the contents of this variable to linux.bootargs.vc, which then gets included into the final bootargs for the kernel using CONFIG_FLEXIBLE_BOOTARGS. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: save fdt that was passed from VideoCoreTomaz Solc2019-03-043-19/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Raspberry Pi, VideoCore firmware creates a device tree that contains information about peripherals that were initialized by VideoCore based on settings in config.txt. Normally this device tree is passed to the Linux kernel via a pointer in the r2 register. A bootloader needs to pass this device tree to the kernel, or some peripherals will not work correctly. Since the VideoCore device tree is not compatible with barebox, we can't just pass it to barebox_arm_entry() as the internal barebox device tree. This commit makes the prebootloader code copy the device tree from VideoCore into a scrap RAM area just above the area reserved for the bootloader. Board initialization code in the bootloader proper then copies it into a file /vc.dtb. The bootloader environment is then free to pass this file to the kernel at boot (e.g. via bootm -o). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: start: save end of memory passed to start.Tomaz Solc2019-03-042-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Knowing the address of the end of the memory area used by Barebox is useful if PBL stores some extra data after it, so that board init code can later retrieve it from there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: add CONFIG_PINCTRL to rpi_defconfig.Tomaz Solc2019-02-191-1/+1
| | | | | | | | | | | | | | | | | | Required for emmc pin function switching on Raspberry Pi 3. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: Add device tree for Compute Module 3.Tomaz Solc2019-02-194-0/+35
| | | | | | | | | | | | | | | | | | | | | Compute Module needs "no-sd" property on the MMC interface otherwise mci-bcm2835 hangs on SD card probe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: bcm2835: move existing code from gpio.Tomaz Solc2019-02-191-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: switch emmc from sdhost to sdhciTomaz Solc2019-02-191-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BCM2837 has two mmc interfaces: sdhost and sdhci. On Raspberry Pi 3, sdhost is normally used for SD card/MMC flash and sdhci for the wireless interface. Barebox currently only has a driver for sdhci, so we disable the sdhost interface and remap the pins so that the sdhci has access to the SD card/MMC flash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2019-03-078-8/+674
|\ \ \