summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2019-01-155-4/+7
|\
| * arm: at91: fix clock to mci1 for at91sam9263Sam Ravnborg2019-01-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | at91_add_device_mci() was missing configuration of PIOA6 when configuring mci1. With this fix we can read data from SD card with at91sam9263ek, when built without DT. Building without a DT is required when we do a bootstrap build. The other at91samxxx_devices was checked - only the 9263 was missing the CLK configuration for mci1. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * at91sam9263ek: fix build of of_initSam Ravnborg2019-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix mistake in Makefile that prevented build of of_init.o With this fix smc shows up in iomem like this: 0xffffe400 - 0xffffe5ff (size 0x00000200) at91sam9-smc0 0xffffea00 - 0xffffebff (size 0x00000200) at91sam9-smc1 And we get access to the files from defaultenv provided by the board Fixes: b467c262b5a7 (at91sam9263ek: enable DT support) Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: clps711x: Increase boot spaceAlexander Shiyan2018-12-173-3/+3
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mips'Sascha Hauer2019-01-15131-1781/+596
|\ \
| * | MIPS: update to GPL-2.0-or-later for files copyrighted by meOleksij Rempel2019-01-035-5/+5
| | | | | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: convert files with not precise GNU version to SPDXOleksij Rempel2019-01-0319-78/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Default barebox license is GPL-2.0-only. Set it to the files with the missing one. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: migrate all files to SPDXOleksij Rempel2019-01-0365-717/+65
| | | | | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: remove useless board filesOleksij Rempel2018-12-1714-182/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | In most cases we was executing only barebox_set_hostname(). Since we can extract host name from devicetree, we can drop all of this board files. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: remove HAS_NO_BOARD_HL_CODE supportOleksij Rempel2018-12-173-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | With multiimage support it makes no more sense, every board should have Makefile and some lowlevel code. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: port all mach* to multiimageOleksij Rempel2018-12-1751-613/+219
| | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: put main_entry to __bare_init sectionOleksij Rempel2018-12-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | To make disassambly easier to read. With this patch main_entry will be at the start of the text section and not in the middle. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: mutliimage: pass devicetree from PBL to the main_entryOleksij Rempel2018-12-134-12/+31
| | | | | | | | | | | | | | | | | | | | | We need it for multiimage support. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: multiimage: add ENTRY_FUNCTION macrosOleksij Rempel2018-12-131-0/+29
| | | | | | | | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: start: preserve DTB pointer for later useOleksij Rempel2018-12-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | We will get DTB pointer in a0 register. Since a0 is used as argument by other functions, we need to preserve it and then pass as argument to the main_entry(). Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | MIPS: add arch/mips/lib/pbl.lds.SOleksij Rempel2018-12-131-0/+53
| |/ | | | | | | | | | | | | we need it for multiimage support. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/kconfig'Sascha Hauer2019-01-152-3/+0
|\ \
| * | treewide: remove blank textsMasahiro Yamada2019-01-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These should be fixed before the Kconfig resync because Linux 4.16 or later warns it. Refer to Linux commit 1b9eda2e4892 ("kconfig: Warn if help text is blank"). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | kbuild: add .SECONDARY special targetMasahiro Yamada2019-01-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the following Linux commits: - 54a702f70589 ("kbuild: mark $(targets) as .SECONDARY and remove .PRECIOUS markers") - 8e9b61b293d9 ("kbuild: move .SECONDARY special target to Kbuild.include") This consolidates those two commits and adjusts commit log for barebox. GNU Make automatically deletes intermediate files that are updated in a chain of pattern rules. Example 1) %.dtb.o <- %.dtb.S <- %.dtb <- %.dts Example 2) %.o <- %.c <- %.c_shipped arch/arm/crypto/Makefile marks such targets as .PRECIOUS to prevent Make from deleting them, but the correct way is to use .SECONDARY. .SECONDARY Prerequisites of this special target are treated as intermediate files but are never automatically deleted. .PRECIOUS When make is interrupted during execution, it may delete the target file it is updating if the file was modified since make started. If you mark the file as precious, make will never delete the file if interrupted. Both can avoid deletion of intermediate files, but the difference is the behavior when Make is interrupted; .SECONDARY deletes the target, but .PRECIOUS does not. The use of .PRECIOUS is relatively rare since we do not want to keep partially constructed (possibly corrupted) targets. .SECONDARY with no prerequisites causes all targets to be treated as secondary. This agrees the policy of Kbuild. scripts/Kbuild.include seems a suitable place to add it because it is included from almost all sub-makes. I deleted 'SECONDARY' (no dot) from images/Makefile, which I guess a typo. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2019-01-1525-2496/+476
|\ \ \
| * | | ARM: imx8mq: use upstream devicetreeLucas Stach2019-01-153-1734/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic DT is upstream now, so we can now reuse this in Barebox. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX8MQ: Add alias for ECSPI1Andrey Smirnov2019-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add alias for ECSPI1. Without it, the driver will fail to probe due to: c6ded00cbd ("spi: i.MX: Fix wrong bus nubering with devicetree") Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: nitrogen6x: remove conflicting upstream SPI NOR partitionsPhilipp Zabel2019-01-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since kernel commit 44eac6ef3779 ("ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions"), included in barebox commit a9c5f6b9ec88 ("dts: update to v4.16-rc1"), the upstream device tree contains partition definitions that conflict with preexisting barebox partitions: ERROR: m25p0.env: New partition m25p0.env conflicts with m25p0.barebox ERROR: m25p0.splash: New partition m25p0.splash conflicts with m25p0.barebox Remove them so we can add the larger barebox and barebox-environment partitions that are used since commit 3fb70de496b3 ("ARM: i.MX: increase barebox partition sizes"). Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: imx7: missing config for AIPS3 bridge addedLukasz Madej2019-01-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Access priviledges for AIPS3 bridge have been configured so peripherals connected to it (like SDMA, SAI etc.) can work properly. Signed-off-by: Lukasz Madej <l.madej@grinn-global.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: CCMX51: Switch to multiimage supportAlexander Shiyan2019-01-0315-643/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a cumulative patch for the Digi ConnectCore CCMX51 SOM. It includes: - Switch board to devicetree probe. - Add MMC update handler. - Switch to multiimage support. - Cleanup and optimize board code. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mfd: mc13892: MC13892_POWER_MISC bits revisionAlexander Shiyan2019-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch revises the bits for register MC13892_POWER_MISC. - Added definition for one missing bit (0). - Changed the name for bit 21 for accordance with the datasheet. - Updated affected board that uses these definitions. - Replaced spaces with tabs for the remaining bits. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: remove efika-mx-smartbook_defconfigSascha Hauer2018-12-141-106/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The smartbook is covered by imx_v7_defconfig, no need for a separate config. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: rdu2: add command to reset network switchLucas Stach2018-12-132-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command allows to reset the network switch on the DEB, clearing any DSA configuration, which may still be present from a prior boot. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | phycard-imx27: add support for 64MB RAM variantsBaeuerle, Florian2018-12-101-11/+41
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Some older pca100 boards were available with 64MB RAM. The chips require a slightly different sdram controller initialization. Support this by building bootloader images for both variants. Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/am35xx'Sascha Hauer2019-01-1530-242/+1383
|\ \ \
| * | | arm: boards: phytec-som-am335x: Add bootchooser to bootsourceDaniel Schultz2019-01-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add bootchooser as primary boot source for NAND and eMMC. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: dts: am335x-phytec-state: Add state partition for bootchooserDaniel Schultz2019-01-081-2/+55
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: dts: am335x-phytec-state: Reduce partition sizeDaniel Schultz2019-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partition size was not calculated correct. Set the correct size. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: configs: omap_defconfig: Add bootchooserDaniel Schultz2019-01-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: am33xx_defconfig: Enable more boards and renameSascha Hauer2019-01-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable more boards in am33xx_defconfig. Since this now also supports omap3 and am35xx boards rename it to omap_defconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: Add board support for WAGO pfc200 platformSascha Hauer2019-01-0710-0/+950
| | | | | | | | | | | | | | | | | | | | | | | | This adds support for the AM3517 based WAGO pfc200 SPS. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: AM3517: Change default clock rate for AM3517Heinrich Toews2018-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an adoption of U-Boot commit: | commit c8e5ba8034ad2a961782a092498f6ea71237c63f | Author: Schuyler Patton <spatton@ti.com> | Date: Wed Feb 1 07:31:44 2012 +0000 | | AM3517: Changed default clock rate for AM3517 | | Changed #define MPU_M_13_ES2 from 0x1F4 to 0x258, this allows | the AM3517 to boot up at 600MHz instead of 500 MHz | | Signed-off-by: Schuyler Patton <spatton@ti.com> | CC: Tom Rini <tom.rini@gmail.com> | CC: Simon Schwarz <simonschwarzcor@gmail.com> | CC: Stefano Babic <sbabic@denx.de> Signed-off-by: Heinrich Toews <heinrich.toews@wago.com>
| * | | ARM: omap: Add emif4 support for AM3517Sascha Hauer2018-12-203-1/+191
| | | | | | | | | | | | | | | | | | | | | | | | This adds support for the SDRAM controller found on AM3517. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: Add AM3517 specific mux configurationSascha Hauer2018-12-201-1/+48
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap3: Add support for reset reason detectionOleg Karfich2018-12-201-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the Errata i520, the reset code in the linux kernel aswell in barebox triggers a cpu reset by setting the bit RST_DPLL3 in the PRM_RSTCTRL register. This induces a global cold reset on the chip. So we will always detect a POR as reset source when a reboot of the chip is triggerd. Other states like WDG, JTAG were tested successfully. Signed-off-by: Oleg Karfich <oleg.karfich@wago.com>
| * | | ARM: omap: enable am33xx_uart_soft_reset for AM35xxSascha Hauer2018-12-204-28/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | am33xx_uart_soft_reset() can be used on AM35xx aswell, so move it to a more generic place where it can be added to am35xx compilation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: Add AM35XX supportSascha Hauer2018-12-205-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | Not much to be done here. The AM35xx is very similar to OMAP3. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: 32ktimer: Turn into a driverSascha Hauer2018-12-205-94/+10
| | | | | | | | | | | | | | | | | | | | | | | | Turn OMAP 32KHz timer into a driver and move to drivers/clocksource. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: dmtimer: Turn into a driverSascha Hauer2018-12-204-104/+5
| | | | | | | | | | | | | | | | | | | | | | | | Turn OMAP dmtimer into a driver and move to drivers/clocksource. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: dts: am335x strip: Don't strip timer2 anymoreTeresa Remmet2018-12-202-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dmtimer has been converted to a real driver and needs a device now. am335x devices are taken from dt also in mlo. Don't strip the dmtimer device from the include as we need it now. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: boards: vscom-baltos: Run environment_initcall only on correct boardTeresa Remmet2018-12-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for the correct hardware before reading the eeprom. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: omap: Add missing includeSascha Hauer2018-12-201-0/+1
| |/ / | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | / imx6ul-phytec-phycore-som: don't use fsl, no-blockmark-swap for the NANDUwe Kleine-König2019-01-111-1/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | barebox doesn't honor that property which yields to inconsitencies between Linux and barebox after for example filling an UBI with a file system with barebox and then trying to mount that from Linux. Note this is an interruptive change as it requires to rewrite the flash to make it working with Linux again. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: fix setup_c when runtime offset is != 0Sascha Hauer2018-12-141-4/+4
|/ | | | | | | | | | | | | | | | | The runtime offset has to be added to the memcpy source address and substracted from the return address. This should have been changed in a43e2bbc46 which changed from returning the negative runtime offset into changing the positive runtime offset. Instead a43e2bbc46 only changed a zero substraction ("subs r4, r0, #0") into a zero addition ("adds r4, r0, #0") which was used as a equal to zero test and changed nothing. This part is reverted here. Fixes wrong copy / return locations when setup_c is called with different runtime and link addresses. fixes: a43e2bbc46 ("ARM: return positive offset in get_runtime_offset()") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2018-12-0721-88/+109
|\