summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* efi: add proper reset hookLucas Stach2014-12-091-1/+1
| | | | | | | | This allows to actually reset the system from barebox instead of dropping back into the EFI firmware. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2014-12-0820-351/+1451
|\
| * ARM: socfpga: socrates: update handoff files to 14.0Steffen Trumtrar2014-12-084-133/+242
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: sockit: update handoff files to 14.0Steffen Trumtrar2014-12-088-138/+396
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: update sdram calibration to 14.0Steffen Trumtrar2014-12-082-91/+159
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: move iocsr from mach to board folderSteffen Trumtrar2014-12-088-25/+690
| | | | | | | | | | | | | | | | | | | | The current iocsr-config-cyclone5.c is actually board specific, although the file name suggests otherwise. As the file was generated for the SoCkit, move it there and add a new one for the socrates. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/randconfig-1'Sascha Hauer2014-12-087-12/+13
|\ \
| * | ARM: AM335x: Select OFTREESascha Hauer2014-11-281-0/+1
| | | | | | | | | | | | | | | | | | All AM335x boards are devicetree only, so select support for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rockchip: select PINCTRLSascha Hauer2014-11-281-0/+1
| | | | | | | | | | | | | | | | | | The Rockchip support needs pinctrl support, so select it in Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: AT91: Always provide clk_set_rate stubSascha Hauer2014-11-281-8/+7
| | | | | | | | | | | | | | | | | | | | | Some drivers need clk_set_rate. To be able to link with these drivers enabled provide a clk_set_rate stub. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Let MMU depend on !CPU_ARM946ESascha Hauer2014-11-281-1/+0
| | | | | | | | | | | | | | | | | | | | | CPU_ARM946E is selected by boards, so letting it depend on !MMU leads to broken dependencies. Let MMU depend on !CPU_ARM946E instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: ep93xx: let broken SoCs depend on BROKENSascha Hauer2014-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | Compilation with these SoCs fails with CONFIG_EP93XX_SDRAM_BANK3_SIZE undefined. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: ep93xx: Fix typoSascha Hauer2014-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | Initialize 4th RAM bank with CONFIG_EP93XX_SDRAM_BANK3_SIZE, not CONFIG_EP93XX_SDRAM_BANK2_SIZE. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: friendlyarm-mini2440: fix compilation for some displaysSascha Hauer2014-11-281-2/+0
| |/ | | | | | | | | | | | | struct fb_videomode does not have a flag member, so do not initialize it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/randconfig'Sascha Hauer2014-12-086-0/+18
|\ \
| * | ARM: PBL: Add missing pieces for xz compressed PBL imageSascha Hauer2014-11-273-0/+9
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Don't allow Thumb2 on TegraSascha Hauer2014-11-271-0/+1
| | | | | | | | | | | | | | | | | | | | | Tegra builts its initial code for the v4 CPU which is not Thumb2 capable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Nomadik: Implement a clk_set_rate stubSascha Hauer2014-11-271-0/+6
| | | | | | | | | | | | | | | | | | Some drivers need it, so give it to them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: dts: only build internal dtb when the name is not emptySascha Hauer2014-11-271-0/+2
| |/ | | | | | | | | | | | | Normally this is a configuration error, but it helps building randconfigs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/persistent-vars'Sascha Hauer2014-12-0869-205/+75
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/efika-mx-smartbook/defaultenv-efikasb/config
| * | defaultenv-2: Make use of nonvolatile variablesSascha Hauer2014-11-0669-205/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the variable assignments previously done in /env/config-board to non volatile variables in /env/nv/. This makes the settings adjustable by the user without editing a file. Most of the changes are simple conversions which for many boards makes /env/config-board unnecessary. Some boards had some logic to assign global.boot.default based on the current bootsource. This has been moved to /env/init/bootsource. An additional check is added to not overwrite a nv.boot.default should it exist. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-12-0842-46/+42
|\ \ \
| * | | command: passwd: depend on CMD_LOGIN rather than selecting itSascha Hauer2014-11-2725-0/+25
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | treewide: Reuse init_clock() return value for clocksource driversAlexander Shiyan2014-11-1017-46/+17
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/marvell'Sascha Hauer2014-12-082-0/+12
|\ \ \ \
| * | | | ARM: mvebu: Enable PUP registerEzequiel Garcia2014-11-112-0/+12
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As reported by Sebastian, we need to enable this explicitly for the Tx clock on RGMII. While here, let's enable all the other peripherals. Although this is documented to be required only for Armada XP SoC, it has been found to be harmless on Armada 370, so we do it unconditionally to simplify the code. Reported-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2014-12-0853-129/+1447
|\ \ \ \
| * | | | ARM: imx_v7_defconfig: Enable ubiformatChristian Hemp2014-12-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | i.MX6: phytec: Distil common code pattern into a macroAndrey Smirnov2014-12-041-64/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Distil common code pattern for Phytec entry functions into a macro and use it instead. This way a new board derivateve that differs only in device tree file can be added with just one line. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | i.MX6: phytec: Distil different startup functionsAndrey Smirnov2014-12-041-49/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Distil different startup functions into a generic one, different behavioral aspects of which can be influenced by its parameters. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: update imx_v7_defconfigSascha Hauer2014-11-271-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable support for the i.MX6sx sabresdb and the KaRo Tx6x. The sabresdb needs regulator support, so enable this aswell. Also enable usbserial support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: Add i.MX6sx sabresdb supportSascha Hauer2014-11-278-0/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the Freescale i.MX6sx sabresdb board. Tested are: - UART - The three SD card slots - USB host - USB otg (host and device mode) - FEC (both) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: Add i.MX6sx supportSascha Hauer2014-11-277-0/+510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some cpu type defines and clock support. The clock support is very different from other i.MX variants, so it's a separate file, like done in the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: ocotp: Add i.MX6sx compatible entrySascha Hauer2014-11-271-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: ocotp: Fix MAC address provider for unaligned addressesSascha Hauer2014-11-271-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current algorithm assumes the MAC address starts at a 4 byte aligned address. Unfortunately this is not always the case. On the i.MX6sx the MAC Address for the second FEC starts at offset 0x632. The register space for the fuse map has holes, only the 16 byte aligned words contain data. This means we have to skip the holes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | imx6: clk: Gate off ENFC clock before setting clock rateDmitry Lavnikevich2014-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes NAND initialization issue which appears occasionally on some i.MX6 SoCs (particulary was observed on phyCARD-i.MX6 with i.MX6Solo). Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM i.MX: add 2-bit gate clock supportDmitry Lavnikevich2014-11-243-1/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on kernel clk-gate2 and barebox clk-gate implementations. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | i.MX6: esdctl: Fix a bug in memory probing codeAndrey Smirnov2014-11-201-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Old version of imx6_mmdc_add_mem did not use 64-bit arithmetic and thus was prone to overflow on systems with 4GB of memory. It also did not take into account the fact that i.MX6 does not support more than 3.8GB of memory and would report incorrect memory size. This commit fixes both issues. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51 efikasb: register init callback for PMIC initSascha Hauer2014-11-201-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So that the PMIC initialisation is called once it's available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51 efikasb: Use defaultenv_append_directorySascha Hauer2014-11-209-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To have the smartbook specific env available in the multi image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51: Add pwm aliases to device treeSascha Hauer2014-11-202-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed for accessing the PWMs in barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51: Setup MIPISascha Hauer2014-11-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting up the MIPI unit is necessary for proper IPU support, so set this up here. This is only needed for graphics in barebox, the Kernel repeats this setup during booting. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: print silicon revision with pr_infoSascha Hauer2014-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So that this message can be silenced by reducing the loglevel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | imx6: Add support for phyBOARD-SUBRAChristian Hemp2014-11-203-1/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for phyBOARD-SUBRA which use a phyFLEX-i.MX6 (pfla02) module. - i.MX6 SOLO with 512MB RAM Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | imx6: add support for phyBOARD-ALCORChristian Hemp2014-11-203-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for phyBOARD-ALCOR which use a phyFLEX-i.MX6 (pfla02) module. - i.MX6 Quad with 1GB RAM on two banks Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM:pfla02: Move ethernet phy timings to dtsChristian Hemp2014-11-122-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the ethernet phy timinigs to phyFLEX-i.MX6 devicetree. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: update imx_v7_defconfigChristian Hemp2014-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable micrel phy Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX6 Phytec phyFLEX: Fix imx6_bbu_nand_register_handler prototypeAndrey Smirnov2014-11-121-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | imx6_bbu_nand_register_handler is dependent on CONFIG_BAREBOX_UPDATE_IMX6_NAND. Change the protoype definition such that said function is stubbed-out when CONFIG_BAREBOX_UPDATE_IMX6_NAND is not defined. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: Make NAND related Kconfig options depend on MTDAndrey Smirnov2014-11-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ARCH_IMX_EXTERNAL_BOOT_NAND, BAREBOX_UPDATE_IMX_EXTERNAL_NAND and BAREBOX_UPDATE_IMX6_NAND all enable features that make use of API provided by MTD subsystem, so to prevent those features breaking the build when MTD is disabled make them dependent on it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX6 GuF Santaro: Fix SD cd/wp gpiosSascha Hauer2014-11-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gpios are plain wrong, use the correct ones. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>