summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: boards: phytec-som-am335x: Revert unified MLO for 1GBDaniel Schultz2018-01-051-0/+1
| | | | | | | | | | | There is a problem in the data path between 1GB RAM devices and the core, which leads to wrong read operations after DDR initialization in soft resets. This needs more investigation, but until we didn't found the problem, we will return to the origin MLO for 1GB RAM devices with static RAM timings and without memory access. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/wd'Sascha Hauer2018-01-053-0/+17
|\
| * MIPS: ar9331: add watchdog supportOleksij Rempel2018-01-051-0/+6
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: tl_wdr4300: enable watchdog nodeOleksij Rempel2018-01-051-0/+4
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * MIPS: dts: ar9344: add watchdog nodeOleksij Rempel2018-01-051-0/+7
| | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/net'Sascha Hauer2018-01-059-96/+9
|\ \
| * | net: environment: update automountsSascha Hauer2017-12-155-41/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using "ifup ethx" use "ifup -a" which works with all network interfaces. Also replace "$ethx.serverip" with "$global.net.server". This makes the automount independent of the actual network interface. Remove all board specific /env/init/automount files which were only there to use eth1 instead of the previously hardcoded eth0. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: environment: remove ethx setup filesSascha Hauer2017-12-143-54/+0
| | | | | | | | | | | | | | | | | | | | | Network configuration is now done with nvvars, so /env/network/eth* files are no longer needed. Remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: dhcp: reworkSascha Hauer2017-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DHCP code is a mess. It is not clear which options are sent to the server and which options are returned from the server. Also environment variables are read from and written to all over the place. This patch cleans this up. There now is struct dhcp_req_param which is used for options sent to the server and struct dhcp_result which contains the values sent from the server. The values from the server are written to the barebox variables in a single place. Also it's now possible to call the dhcp code without modifying barebox variables at all, storing the result only in the dhcp result struct. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: dhcp: Allow to specify network deviceSascha Hauer2017-12-141-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of allowing to DHCP only on the "current" network device, allow to specify the desired network device. This is a first step to get rid of the concept of a "current" network device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mips'Sascha Hauer2018-01-058-4/+227
|\ \ \
| * | | MIPS: add support for DPTechnics DPT-Module v1Oleksij Rempel2018-01-055-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This product can be found here: https://dptechnics.com/en/products/dpt-module-v1.html Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: ath79: ar9331: add ar9331_pbl_generic_start macroOleksij Rempel2018-01-051-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of ar9331 boards have identical PBL. So we can sync the code to single macro. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: ath79: ar9331: add generic RAM macroOleksij Rempel2018-01-052-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with this macro, we should be able to cover most of existing ar9331 based boards. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: provide HAS_NO_BOARD_HL_CODEOleksij Rempel2018-01-052-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some boards have PBL code, but no board specific high level code. Instead of creating dummy.c files, better provide config to avoid compiling of board code. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/mii'Sascha Hauer2018-01-058-1133/+11
|\ \ \ \
| * | | | i.MX: imu-bbu-internal: Make use of devpath_to_name()Andrey Smirnov2017-12-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the code to use shared function from fs.h Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | zii_vf610_dev_defconfig: Select MDIO bus GPIO multiplexerAndrey Smirnov2017-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Select MDIO bus GPIO multiplexer to support hardware present on the board. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: vybrid: zii: Make use of DT code from Linux kernelAndrey Smirnov2017-12-066-1131/+9
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that vf610-zii-dev.dts, vf610-zii-dev-rev-b.dts and vf610-zii-dev-rev-c.dts made their way from Linux to Barebox, convert all relevant code to make use of them. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2018-01-056-245/+273
|\ \ \ \
| * | | | ARM: i.MX: bbu-internal: fix typosUlrich Ölmann2017-11-281-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: bbu-internal: fix commentUlrich Ölmann2017-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: rdu2: build a single image for both Quad and QuadPlus variantsLucas Stach2017-11-244-238/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for easier deployments on the different units, as there is no need to flash different images to the Quad and QuadPlus units anymore. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | boards/zii-vf610-dev: Do not keep 'SOC_SW_RSTN' lowAndrey Smirnov2017-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From users feedback, it's not very practical keep 'SOC_SW_RSTN' low and corresponding Ethernet switch it controls in reset. Change the code to keep the line high by default. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/dts'Sascha Hauer2018-01-051-1/+1
|\ \ \ \ \
| * | | | | dts: update to v4.15-rc1Sascha Hauer2017-11-281-1/+1
| |/ / / / | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/doc'Sascha Hauer2018-01-051-2/+3
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | ARM: psci command: Add to misc groupSascha Hauer2017-12-011-2/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Explicitly add psci command to the misc group to get rid of the warning that the command has no group. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / | | 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>