summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: dts: bcm2835-rpi: re-enable booting from SD cardRoland Hieber2017-12-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | Kernel commit a19adf8d86e822eba502486524127595372c85f6 [0] changed the RPi1 device tree from &sdhci to &sdhost, which was imported in barebox commit d14b844b08635c717fb52a294ed8d6872e260315. It seems that barebox does not have a driver for brcm,bcm2835-sdhost (yet), which resulted in barebox unable to boot from SD card. However, the driver for brcm,bcm2835-sdhci worked fine in the past. Although the upstream change was made for good reasons, the simplest change for barebox for now is to revert to using &sdhci and disable &sdhost. Thanks to Alexander Dahl for raising this issue on the DistroKit mailing list! [0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a19adf8d86e822eba502486524127595372c85f6 Cc: Alexander Dahl <post@lespocky.de> Signed-off-by: Roland Hieber <rohieb@rohieb.name> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: imx: santaro: select i2cLucas Stach2017-11-211-0/+2
| | | | | | | | The board support tries to access a i2c bus to find out which touchscreen is connected. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: boards: phytec-som-am335x: Fix SPI boot scriptDaniel Schultz2017-11-211-1/+1
| | | | | | | | | | | | Because our SPI NOR flashes are too small, we require a root filesystem in a NAND media. The kernel bootargs has a wrong parameter and lead to: VFS: Cannot open root device "ubi0:root" or unknown-block(0,0): Changed 'ubi.mtd=nand0.root' to 'ubi.mtd=root'. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2017-11-1310-18/+253
|\
| * ARM: phytec-som-am335x: Add autoenableDaniel Schultz2017-11-073-0/+28
| | | | | | | | | | | | | | | | Add autoenable for components, which can be populated on an AM335x phyCORE SoM. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: AM335x: Add dummy i2c nodesDaniel Schultz2017-11-071-0/+14
| | | | | | | | | | | | | | | | | | These i2c nodes are needed for autoenable of i2c clients, because the autoenable API searches for device tree nodes to get the client address. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: phytec-som-am335x: Set MAC addresses from stateDaniel Schultz2017-11-071-0/+21
| | | | | | | | | | | | | | | | If a state with the name 'am335x_phytec_mac_state' is available, valid MAC addresses from this state get registerd to their ethernet device. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: configs: am335x_defconfig: Add state configDaniel Schultz2017-11-071-0/+3
| | | | | | | | | | | | Enable the state framework for all AM335x boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: dts: AM335x: Add state frameworkDaniel Schultz2017-11-074-0/+55
| | | | | | | | | | | | | | | | | | This patch adds the state framework with an EEPROM partition and two nodes for MAC addresses. It will be available for all phycore AM335x images with EEPROMs. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: boards: phytec-som-am335x: Add unified MLODaniel Schultz2017-11-071-18/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PCM-060 modules only have one-bank RAMs populated, which allows us to find out the populated RAM size at run-time. Therefore, a new entry point was create 'PHYTEC_ENTRY_UNIFIED_MLO'. This creates a MLO for all modules of one family and all existing PCM-060 MLOs were replaced with this new entry point. To provide backward compatibility for older modules, these were not affected. In the first step generic RAM timings for the module family get loaded, because RAM accesses are only possible with an initialized controller. After that, the RAM size will be calculated and the RAM controller gets reinitialized with the correct RAM timings. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2017-11-134-18/+115
|\ \
| * | usb: imx: implement support for "over-current-active-high" propertyUwe Kleine-König2017-10-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property is already documented in the bindings and supported by Linux. As on i.MX25 the HW default is active high and up to now barebox didn't force this to low (which is the default for e.g. i.MX6), add the property to barebox' imx25.dtsi to keep existing behaviour. If on a board the OC pin is active low, you need to add /delete-property/ over-current-active-high; in the board.dts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: bbu-internal: update tqma6x to make use of new bbu handlerUwe Kleine-König2017-10-241-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: bbu-internal: new handler to make use of mmc boot partitionsUwe Kleine-König2017-10-241-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | This handler updates the non-active MMC boot partition and after a successful update makes the updated partition the active one. This way the machine should continue to be bootable when the update fails. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: bbu-internal: make filename for device to write to adaptableUwe Kleine-König2017-10-242-17/+30
| |/ | | | | | | | | | | | | | | | | | | | | | | This is a preparatory for the next patch that autodetects the device to write to. To not have to modify the callback data for each call, some static functions get an additional parameter to allow that. This doesn't affect boards making use of the file's function and doesn't change behaviour. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / EFI: add poweroff supportJean-Christophe PLAGNIOL-VILLARD2017-10-271-0/+1
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: bootm: don't fall over if image is padded with less than 40 bytesLucas Stach2017-10-231-1/+3
| | | | | | | | | | | If the zImage has a padding, which is less than 40 bytes (sizeof struct fdt_header) the amount of read bytes would be propagated as an error code. Fix this by only propagating real errors and treating failure to read less than the expected amount as no concatenated DT being present. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mips'Sascha Hauer2017-10-196-20/+86
|\
| * MIPS: dts: ar9344: add pll nodeOleksij Rempel2017-10-061-0/+11
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: ar9344: add APB busOleksij Rempel2017-09-201-17/+25
| | | | | | | | | | | | | | and move nodes which belong to APB. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: tplink-wdr4300_defconfig: add network supportOleksij Rempel2017-09-201-3/+7
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: rename it to tl_wdr4300 v1.7Oleksij Rempel2017-09-202-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The minor version of TP-Link are usually big enough that it need extra vendor partition on the flash with additional configurations like PLL, CPU and RAM freqs. Visually I was able to confirm at least different SPI Flash and RAM chips. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: remove RO flag from barebox partitionOleksij Rempel2017-09-181-1/+0
| | | | | | | | | | | | | | we need it RW for barebox updates. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: add alias for spiflashOleksij Rempel2017-09-181-0/+1
| | | | | | | | | | | | | | to unify the naming with TP-Link TL-MR3020. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: enable mac0Oleksij Rempel2017-09-181-0/+4
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: ar9344: add mac0 nodeOleksij Rempel2017-09-181-0/+10
| | | | | | | | | | | | | | this node is supported by ag71xx driver Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add ar9331.dtsi and enable mac0Oleksij Rempel2017-09-182-0/+17
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: ath79: add ag71xx Ethernet driverYegor Yefremov2017-09-181-0/+12
| | | | | | | | | | | | | | Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2017-10-1922-29/+271
|\ \
| * | ARM: Add i.MX6ull evk supportSascha Hauer2017-10-179-0/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The i.MX6ull-EVK is a evaluation board for the i.MX6ull from NXP. The upstream DTS is used, support should be fairly complete: - 2x fec ethernet - 1x USB Host - 1x USB OTG - 2x SD Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX6ul: Add SoC specific lowlevel_init functionSascha Hauer2017-10-176-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On i.MX6ul(l) (Cortex A7) We have to set the SMP bit before enabling the caches, otherwise they won't work. Add a SoC specific lowlevel_init function to be called by the i.MX6ul(l) boards. Since this is a quirk of the Cortex A7 core we put the functionality into a separate function to be reused by other Cortex A7 cores. Change existing i.MX6ul(l) boards to use the new initialisation function. It seems this is only needed when booting from USB, in other boot modes the ROM will already have done the initialisation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rename flush_icache to icache_invalidateSascha Hauer2017-09-275-5/+5
| | | | | | | | | | | | | | | | | | | | | flush_icache is a misnomer since the icache is invalidated, not flushed. Rename the function accordingly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: cache-armv7: Use designated instructions for isb/dsb/dmbSascha Hauer2017-09-271-11/+11
| | | | | | | | | | | | | | | | | | | | | armv7 has designated instructions for the barrier operations, so use these rather than cp15 operations. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX53 QSB: drop phy reset handling in board fileUwe Kleine-König2017-09-261-11/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | Since commit 5c1846b62524 ("ARM: i.mx53: Parse Reset GPIO pin in FEC driver from Devicetree") the fec driver ensures a phy reset. As there is little use in resetting twice, drop the reset from the board file. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: socfpga: dts: sockit: remove upstreamed nodesSteffen Trumtrar2017-10-171-108/+0
| | | | | | | | | | | | | | Remove devicetree entries that are already in the upstream devicetree. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: vexpress: add fixup handler for 'virtio, mmio' devicesMichael Olbrich2017-10-171-0/+29
| | | | | | | | | | | | | | | | | | | | | | Qemu adds 'virtio,mmio' nodes to the device tree. Before passing it to the bootloader or the Linux kernel. This fixup handler copies these nodes to the new device tree. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | vexpress: add bootstate node to the device treeMichael Olbrich2017-10-171-0/+63
| | | | | | | | | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | vexpress: use device tree provided by QEMU if availableMichael Olbrich2017-10-171-2/+18
| | | | | | | | | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: vexpress: regenerate configLucas Stach2017-10-171-3/+13
| | | | | | | | | | | | | | | | Enable some more features, so the default configuration gets more in line with other platforms. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: vexpress: switch to DT probe and multi-image buildLucas Stach2017-10-1712-285/+80
| | | | | | | | | | | | | | | | | | | | This switches the VExpress support to use an internal DT, instead of probing the peripherals from a board file. It also switches to a multi-iamge build with both CA9 and CA15 variants of the VExpress board being supported. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: versatile: add basic clocksLucas Stach2017-10-171-0/+1
| | | | | | | | | | | | | | | | This adds the necessary basic clocks used on the ARM versatile platforms. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: vexpress: always build relocatable imageLucas Stach2017-10-163-53/+3
|/ | | | | | | | | This allows to make more space available for the malloc area and allows us to drop the special CA9 defconfig, which had a different text base. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/omap'Sascha Hauer2017-09-089-8/+87
|\
| * arm: configs: AM335x: Enable mmc-extcsd commandDaniel Schultz2017-09-061-0/+1
| | | | | | | | | | | | | | This tool is for setting up eMMC devices. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: dts: am335x: Add phycore emmc device treeDaniel Schultz2017-09-063-0/+37
| | | | | | | | | | | | | | | | Add a new device tree for phyCORE SOMs with EMMC enabled and NAND disabled. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: dts: Enable NAND in DTS instead of DTSIDaniel Schultz2017-09-067-8/+25
| | | | | | | | | | | | | | | | | | Starting with PCM-062, NAND isn't the main non-volatile memory for the AM335x. Because that, NAND has be disabled in the SOM dtsi file and will be enabled in a specific NAND SOM file. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * arm: dts: am335x: Add emmc node to phycore-somDaniel Schultz2017-09-061-0/+24
| | | | | | | | | | | | | | | | Add the EMMC node to the phycore-som device tree. It's by default disabled, because NAND is the primary boot device. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mvebu'Sascha Hauer2017-09-082-0/+47
|\ \
| * | ARM: mvebu: armada-xp: configure PLL and PHY registerJan Luebbe2017-08-152-0/+47
| |/ | | | | | | | | | | | | | | | | The PLL setup is needed to use the USB ports in Linux. This code is ported from mainline U-Boot arch/arm/mach-mvebu/cpu.c. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2017-09-084-3/+21
|\ \