summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: imx7: sabreSD: remove duplicate DT nodesLucas Stach2017-08-151-40/+0
| | | | | | | | The latest upstream DTs have been merged, so remove the now duplicate DT nodes. Fixes: a0a5a7b84ff8 (ARM: i.MX: Add support for NXP i.MX7 SABRESD board) Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: add stub for imx7_uart_setup_llLucas Stach2017-08-151-0/+1
| | | | | Fixes: 28e8db159f25 (ARM: i.MX: Add imx7_uart_setup_ll()) Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: ccmx53: select I2CLucas Stach2017-08-151-0/+1
| | | | | | The board file needs i2c support to enable a regulator. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: build imx6.o as ARMv7Lucas Stach2017-08-151-0/+1
| | | | | | | Otherwise the WFI instruction might not be available in a multi-image build. Fixes: 1e9458720a23 (ARM: i.MX: provide handler for power off over standby) Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* ARM: imx: fix phyBOARD-Zeta pinfunc typoLucas Stach2017-08-151-1/+1
| | | | | | | This has been resolved upstream, now the barebox private DTs need to follow. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* Merge branch 'for-next/nvmem'Lucas Stach2017-07-311-0/+5
|\
| * dts: arm: imx6qdl: provide snvs-lpgpr deviceOleksij Rempel2017-07-061-0/+5
| | | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* | Merge branch 'for-next/misc'Lucas Stach2017-07-314-0/+9
|\ \
| * | ARM: at91: animeo: depend on !CONSOLE_NONELucas Stach2017-07-311-0/+1
| | | | | | | | | | | | | | | | | | The board file configures the consoles, so need console support. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: hab: depend on OFDEVICELucas Stach2017-07-311-0/+1
| | | | | | | | | | | | | | | | | | The selected OCOTP driver requires OFDEVICE support. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: kindle: select ARM_LINUXLucas Stach2017-07-311-0/+1
| | | | | | | | | | | | | | | | | | The already selected ARM_BOARD_APPEND_ATAG depends on it. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | MIPS: add 74Kc infoOleksij Rempel2017-07-312-0/+6
| |/ | | | | | | | | | | | | This patch is preparation for SoC QCA AR9344 Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* | Merge branch 'for-next/imx'Lucas Stach2017-07-3176-2641/+5263
|\ \
| * | ARM: i.MX: Add support for NXP i.MX7 SABRESD boardAndrey Smirnov2017-07-308-1/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add minimal code to support NXP i.MX7 SABRESD board. Tested to have working SD card and first Ethernet port as well as being able to boot upstream Linux kernel (4.12+). Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX: Add ARCH_HAD_FEC_IMX to ARCH_IMX7Andrey Smirnov2017-07-301-0/+1
| | | | | | | | | | | | | | | | | | Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX: Add minimal imx7-ccm-regs.hAndrey Smirnov2017-07-301-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add minimal imx7-ccm-regs.h that contains bare minimum definitions needed for early UART setup. Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX: Add imx7_uart_setup_ll()Andrey Smirnov2017-07-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add imx7_uart_setup_ll() for setting up UART selected for DEBUG_LL. Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX: Add mx7_setup_pad()Andrey Smirnov2017-07-301-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add mx7_setup_pad() low-level convenience function for setting up pinmux in PBL code. Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX: Import mx7d_pins.h from U-BootAndrey Smirnov2017-07-302-0/+1310
| | | | | | | | | | | | | | | | | | | | | | | | | | | Import mx7d_pins.h from U-Boot and rename it to iomux-mx7.h for consistency. Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX7: Warp7: Add some code commentsUwe Kleine-König2017-07-301-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | This makes it easier to understand what is done and adapt this code for other boards. My editor also added a newline at eof which is good. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX7: drop now useless imx7s.dtsiUwe Kleine-König2017-07-303-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file was introduced in commit 55eed47d8515 ("ARM: i.MX7: Add imx7s.dtsi") because the imx clocksource driver picked the wrong clock to determine the parent frequency. As this is fixed since commit "ARM: imx: clocksource: Use per clock for determining parent freq" this file can go away. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: clocksource: make warning a bit more helpfulUwe Kleine-König2017-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When getting the clk for the gpt fails, the driver assumes a fixed rate. Add this rate to the warning that is emitted in this case. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: clocksource: error out if clk freq is 0Uwe Kleine-König2017-07-301-0/+4
| | | | | | | | | | | | | | | | | | | | | If instead this isn't checked this results in a division by zero later. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: clocksource: Use per clock for determining parent freqUwe Kleine-König2017-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For imx1, imx25, imx27, imx31, imx35 and imx5x this doesn't make a difference because clk_get(dev, NULL) returns the same clock as clk_get(dev, "per") because the id parameter isn't checked at all and the per clock is returned unconditionally. For imx6sl, imx6sx and imx6ul different clocks are returned, but both are gates for "perclk". For imx6qdl clk_get(..., NULL) returns IMX6QDL_CLK_GPT_IPG which is a gate of "ipg", while clk_get(..., "per") returns IMX6QDL_CLK_GPT_IPG_PER which is a gate of "ipg_per" which in turn is a divider of "ipg" with a boot-up default value of 1 which isn't touched in barebox. So the only SoC where this change matters is imx7 where clk_get(dev, NULL) returns a dummy clk while clk_get(dev, "per") returns the right clk to use. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: use register defines in the dcd table of the WaRP7Uwe Kleine-König2017-07-301-50/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was generated with the following command after adding the include directive to the file: scripts/regsubst.pl -I arch/arm/mach-imx/include arch/arm/boards/element14-warp7/flash-header-mx7-warp.imxcfg Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX7: provide DDR register definitionsUwe Kleine-König2017-07-301-0/+174
| | | | | | | | | | | | | | | | | | | | | | | | This was created using cut'n'paste from the i.MX7D reference manual (rev 0.1, 08/2016). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx6: add static annotation to locally used functionsLucas Stach2017-07-202-4/+3
| | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx6: move MX6UL enet setup out of CPU string settingLucas Stach2017-07-201-1/+4
| | | | | | | | | | | | | | | | | | | | | This is not a good place to do this ENET setup. Call the function like all the other setup functions and bail out if the SoC is not a i.MX6UL/ULL. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: remove DCD files from MakefilesLucas Stach2017-07-2018-42/+13
| | | | | | | | | | | | | | | | | | | | | | | | The current multi-image mechnism builds them as needed, so there is no reason to include them in the Makefiles. Remove them before this spreads even more. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: rdu2: include defaultenv from boardLucas Stach2017-07-202-0/+4
| | | | | | | | | | | | | | | | | | Makes it available without the need for a spacial barebox config. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: rdu2: remove unecessary includesLucas Stach2017-07-201-18/+2
| | | | | | | | | | | | | | | | | | | | | The board file has many more includes than what is really needed, clean this up. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: rdu2: remove USB VBUS GPIO initLucas Stach2017-07-201-5/+0
| | | | | | | | | | | | | | | | | | This is handled by a fixed regulator in the upstream DT. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: rdu2: use the upstream accepted DTLucas Stach2017-07-201-450/+68
| | | | | | | | | | | | | | | | | | We now only need to carry the Barebox specific parts of the DT. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: phyCORE i.MX7 on phyBOARD-Zeta supportSascha Hauer2017-07-2013-1/+1099
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds preliminary support for the phyCORE i.MX7 module on a phyBOARD-Zeta baseboard. The DTs will likely change in the future when PHYTEC finalizes their BSP. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: imx: use register defines in imxcfg files instead of plain numbersUwe Kleine-König2017-07-0724-2061/+2135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the imxcfg files more readable and also makes it possible to share more assignments between machines that just differ by the used SoC. (Though I have to admit that in the cases converted here it just more easily allows to see that the RAM config differs more than probably necessary.) This change is intended to have no effect on the built artifacts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: i.MX: provide handler for power off over standbyOleksij Rempel2017-07-072-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the Freescale recommended sequences for power off with external PMIC is the following: ... 3. SoC is programming PMIC for power off when standby is asserted. 4. In CCM STOP mode, Standby is asserted, PMIC gates SoC supplies. See: http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6DQRM.pdf page 5083 This patch implements step 4. of this sequence. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
| * | ARM: riotboard: provide standby on power off optionOleksij Rempel2017-07-071-0/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | This board, as well as some other boards with i.MX6 and a PMIC, uses a "PMIC_STBY_REQ" line to notify the PMIC about a state change. The PMIC is programmed for a specific state change before triggering the line. In this case, PMIC_STBY_REQ can be used for stand by, sleep and power off modes. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* | Merge branch 'for-next/efi'Lucas Stach2017-07-311-1/+2
|\ \
| * | efi_defconfig: enable STATESteffen Trumtrar2017-07-111-1/+2
| |/ | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* / arm: at91 bootstrap: declare local function staticSam Ravnborg2017-07-201-1/+1
|/ | | | | | | | Function is only used in this file and no prototype exist in any header. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* Merge branch 'for-next/mvebu'Sascha Hauer2017-06-309-0/+68
|\
| * ARM: mvebu: Add initial support for Turris OmniaUwe Kleine-König2017-06-198-0/+62
| | | | | | | | | | | | | | | | Up to now only 2nd stage booting is tested and boots up to a prompt. i2c and spi are working, ethernet, usb and sata don't. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: mvebu: initial support for Armada 38xUwe Kleine-König2017-06-192-0/+6
| | | | | | | | | | | | | | | | This SoC is similar enough to Armada 380/XP to make use of the code supporting these without further adaption. 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/imx'Sascha Hauer2017-06-3010-40/+35
|\ \
| * | arm: boards: phytec-som-am335x: Update boot scriptsDaniel Schultz2017-06-309-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expand the boot scripts by eMMC and clean them up. Add NV variable files and removed unnecessary kernel bootargs from the boot scripts. Add "rootflags='data=journal'" bootarg to SD card boot script. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Update zii_vf610_dev_defconfigAndrey Smirnov2017-06-201-30/+9
| |/ | | | | | | | | | | | | | | | | Update zii_vf610_dev_defconfig to add needed and remove unused features. Signed-off-by: Chris Healy <cphealy@gmail.com> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/arm'Sascha Hauer2017-06-303-23/+15
|\ \
| * | ARM: socfpga: remove unused fpgaintf setupSteffen Trumtrar2017-06-301-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The disable bits for the ethernet interfaces between FPGA and HPS are read and configured, but never written back. The configuration itself doesn't make that much sense however. So instead of writing it back to the register, remove the whole read-modify operation altogether. Reported-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: omap: Fix error printingSascha Hauer2017-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Presumably the code wanted to print the error with the %d format specifier. Actually pass the error code by using PTR_ERR() and not IS_ERR(). While at it use %ld to print a unsigned long variable to get rid of a compiler warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: omap: phytec-phycore-omap4460: Fix compiler warningSascha Hauer2017-06-271-13/+13
| |/ | | | | | | | | | | | | Use IS_ENABLED() rather than #ifdef to get rid of unused variable warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>