summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards
Commit message (Collapse)AuthorAgeFilesLines
...
* | ARM: nxp-imx8mq-evk: Replace trampolineSascha Hauer2019-08-233-33/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When the TF-A finishes it jumps to a hardcoded address in DRAM. We used to put a trampoline there which brings us back to our image in SRAM. Instead of putting a trampoline into DRAM just copy the image there which simplifies things a bit. Note that currently imx8_esdhc_load_piggy() uses that very same address as a temporary buffer. This is changed in the next patch. Currently the board is broken anyway, so we don't break bisectability. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
* | ARM: nxp-imx8mq-evk: Remove duplicate call to imx8mq_cpu_lowlevel_init()Sascha Hauer2019-08-231-2/+0
|/ | | | | | | imx8mq_cpu_lowlevel_init() is called twice. Remove the second call. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
* Merge branch 'for-next/imx8-hab'Sascha Hauer2019-08-154-50/+71
|\
| * boards: nxp-mx8-evk: rework to different boot flowRouven Czerwinski2019-08-074-39/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | Rework the evk boot flow to use the new piggydata load function and install a trampoline for the TF-A setup. This allows the PBL boot process to stay in SRAM up until the verification of the piggydata is done and main barebox can be loaded. The trampoline loads 4 bytes right after the trampoline, we copy the runtime offset there so the trampoline jumps back into the SRAM PBL. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2019-08-1516-437/+88
|\ \
| * | ARM: i.MX: scb9328: refurbish board suportSascha Hauer2019-08-155-119/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | - switch the i.MX1 based scb9328 board to device tree - Remove scb9328_defconfig and enable scb9328 board support in imx_defconfig - Remove old environment and switch to new default environment Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pinctrl: i.MX iomux-v1: Make base address initialization unnecessarySascha Hauer2019-08-148-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far we have imx_gpio_mode() to configure a pinmux entry for the older i.MX pinmuxes. For this to work imx_iomuxv1_init() must be called beforehand to configure the base address. Simplify this by introducing SoC specific variants of imx_gpio_mode() which also pass the base address. This makes initialization of the base address unnecessary and the functions usable for PBL. Consequently also compile the code for PBL. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | arm: port imx28-evk to devicetreeOleksij Rempel2019-07-174-308/+49
| |/ | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: zii-imx8mq-dev: Do setup_c() before accessing global variablesSascha Hauer2019-07-161-26/+33
| | | | | | | | | | | | | | | | The lowlevel board code accesses global variables, so call relocate_to_current_adr() / setup_c() to make sure we have a valid C environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: phyCORE-i.MX8M SOM: Do setup_c() before accessing global variablesSascha Hauer2019-07-161-23/+30
| | | | | | | | | | | | | | | | The lowlevel board code accesses global variables, so call relocate_to_current_adr() / setup_c() to make sure we have a valid C environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: nxp-imx8mq-evk: Do setup_c() before accessing global variablesSascha Hauer2019-07-161-23/+31
|/ | | | | | | | The lowlevel board code accesses global variables, so call relocate_to_current_adr() / setup_c() to make sure we have a valid C environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/zii'Sascha Hauer2019-07-127-54/+114
|\
| * ARM: zii-imx7d-dev: Add support for RMU2 boardAndrey Smirnov2019-06-263-2/+62
| | | | | | | | | | | | | | Add support for Remote Modem Unit i.MX7D board. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: Rename zii-imx7d-rpu2 to zii-imx7d-devAndrey Smirnov2019-06-265-2/+2
| | | | | | | | | | | | | | | | | | To prepare for addition of another ZII i.MX7D based board, i.MX7D RMU2, rename zii-imx7d-rpu2 to zii-imx7d-dev to avoid any image naming confusion. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/stm32'Sascha Hauer2019-07-121-2/+2
|\ \
| * | ARM: stm32mp: stm32mp157c-dk2: compress the DTBAhmad Fatoum2019-06-191-2/+2
| |/ | | | | | | | | | | | | This saves 23K with my configuration (from 250K to 227K). Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/socfpga'Sascha Hauer2019-07-127-86/+92
|\ \
| * | ARM: socfpga: terasic-de0-nano-soc: statify sys_mgr_init_tableGwenhael Goavec-Merou2019-07-021-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: socfpga: terasic-de0-nano-soc: add missing SECT() macro for ↵Gwenhael Goavec-Merou2019-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iocsr_scan_chain3_table Since commit a83c97f2a4065ef7209f123b837fa5103f984c6a SECT() macro is used to reduces image size. This patch add a missing SECT for iocsr_scan_chain3_table. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: socfpga: terasic-de0-nano-soc: update handoff files to 18.1Gwenhael Goavec-Merou2019-07-026-84/+90
| |/ | | | | | | | | | | | | | | | | | | | | xload on de0nanosoc stop to boot after: SDRAM setup... SDRAM calibration... This patch fix SDRAM configuration and updates handoff to quartus2 18.1 Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mvebu'Sascha Hauer2019-07-128-40/+0
|\ \
| * | images/mvebu: Convert Armada machines to mvebuimgUwe Kleine-König2019-06-138-40/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | The results are bytewise identical apart from armada-xp-db where the (AFAIK unused) parameters for the binary header are different (i.e. 0000005b 00000000 instead of 0000005b 00000068 for all other boards). The advantage is that the build system now knows about the binary headers and changes to them result in a rebuild of the images. 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/misc'Sascha Hauer2019-07-122-3/+10
|\ \
| * | ARM: phytec-som-imx6: update automount net entriesMarco Felsch2019-06-181-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that the /mnt/tftp was copied from the defaultenv-2. The defaultenv-2 got a update to make it more robust by enabling all interfaces. During this sync I added a entry to support automount for /mnt/nfs mountpoint. Cc: Stefan Christ <s.christ@phytec.de> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: zii-vf610-dev: Trivial spelling fixCory Tusar2019-06-171-1/+1
| |/ | | | | | | | | | | | | s/Couln't/Couldn't/ Signed-off-by: Cory Tusar <cory.tusar@zii.aero> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: dts: imx6ul: phycore: Add phyCORE-i.MX 6ULL with eMMCStefan Riedmueller2019-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a phyCORE-i.MX 6ULL with eMMC. It has following features: - i.MX 6ULL Y2 792 MHz - 512 MB RAM - 4 GB eMMC - 10/100 MBits Ethernet - USB OTG - USB Host Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: phytec-som-imx: imx6ul: Add eMMC supportStefan Riedmueller2019-07-115-3/+47
| | | | | | | | | | | | | | | | Add initial support for phyCORE-i.MX 6UL/ULL with eMMC. Including board code and default environment. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: imx6ul: phycore: Prepare for eMMC moduleStefan Riedmueller2019-07-112-5/+5
| | | | | | | | | | | | | | | | | | Prepare for the new phyCORE-i.MX 6UL/ULL eMMC module by extending the dts filenames by their boot medium. Also add the boot medium to the compatible to be able to perform boot medium dependent setup code. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: phytec-som-imx6: Add low cost variant for imx6dl phycoreStefan Riedmueller2019-07-111-0/+2
|/ | | | | | | | | | | | | The phyCORE-i.MX 6Solo/DualLight is available with low-cost and full-featured phyBOARD-Mira. One crucial difference is the supported max. ethernet speed. On the full-featured Mira it is 1000 MBit/s but on the low-cost Mira it is only 100 MBit/s. To cover this difference two different images are necessary for low-cost and full-featured. Thus a low-cost variant is added for the phyCORE-i.MX 6Solo with NAND and the phyCORE-i.MX 6 DualLight with eMMC. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* plathome-openblocks-a6: use image format 0Uwe Kleine-König2019-06-131-1/+1
| | | | | | | | This machine is powered by a kirkwood processor which needs version 0. Fixes: 58390878bc30 ("plathome-openblocks-a6: provide a kwbimage.cfg file") 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 Hauer2019-06-1123-7/+263
|\
| * ARM: rdu2: Initialize DEBUG_LL in entry functionAndrey Smirnov2019-06-041-5/+5
| | | | | | | | | | | | | | | | | | | | When bootstrapping Barebox via JTAG rdu2_sram_setup() won't be executed resulting in non functional DEBUG_LL API. Move low-level UART initialization code to be a part of start_imx6_zii_rdu2() to avoid that problem. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: extend boot script for eMMC bootLucas Stach2019-06-041-1/+10
| | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: disable i210 network interfaceLucas Stach2019-06-041-0/+1
| | | | | | | | | | | | | | | | This causes large timeouts when trying to bring it up. The FEC interface is good enough for NFS booting. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu2: extend environment for netbootLucas Stach2019-06-046-1/+41
| | | | | | | | | | | | | | | | This adds the necessary scripts to clear the seat network configuration and reset the switch in the development case. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: rdu3: disable i210 network interfaceLucas Stach2019-06-041-0/+1
| | | | | | | | | | | | | | | | | | This causes large timeouts when trying to bring it up. The FEC interface is good enough for NFS booting. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: zii-imx8mq-dev: add defaultenv with simple boot configurationLucas Stach2019-06-047-0/+43
| | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: zii-imx8mq-dev: add barebox and environment partitionLucas Stach2019-06-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | While barebox itself should be on the eMMC boot partitions eventually it's nice to have this set up, so one can dd a prebuilt SD card image to the eMMC and have something working. A working Barebox env is also very convinient to have around during development. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: zii-common: add missing stddef.h includeLucas Stach2019-06-041-0/+2
| | | | | | | | | | | | | | It's required for size_t types. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: zii-vf610-dev: disable eth1Vivien Didelot2019-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current support for the ZII Dev Boards time out on eth1 when booting from net, which takes a while: Booting entry 'net' eth0: 100Mbps full duplex link detected T T T eth0: DHCP client bound to address 192.168.203.22 WARNING: eth1: No MAC address set. Using random address 3a:e8:f7:52:55:6d T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T Loading ARM Linux zImage '/mnt/tftp/none-linux-zii-dev-rev-b-2' eth1 is the DSA master interface and has no use within barebox, so disable the interface to allow Barebox to boot right away from eth0. Suggested-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX6: add support for Digi CCIMX6UL SBC ProRouven Czerwinski2019-05-175-1/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the Digi CCIMX6UL SBC Pro. It is based on the Digi CCIMX6UL SOM with 256MB RAM and 256MB NAND flash. v2: - fix includes - rename folder to som - switch to compressed dtb - remove the unnecessary get_runtime_offset all from Ahmad Fatoum Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/at91'Sascha Hauer2019-06-116-26/+27
|\ \
| * | ARM: at91: fix at91sama5_get_ddram_size for sama5d4Ahmad Fatoum2019-05-274-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at91sama5_get_ddram_size() is despite the name specific to the sama5d3 which it was added alongside of. sama5d4 board code continues to use it, but accessing SAMA5D3_BASE_MPDDRC (0xffffea00) on a sama5d4 should result in a Data Abort (Datasheet Figure 5-1).. Fix this by giving at91sama5_get_ddram_size the mpddrc base address as argument and migrate users to use one of two helpers that specify the base address. Tested-by: Sam Ravnborg <sam@ravnborg.org> [afa: Sam didn't test this exact change, but tested the use of the critical part: accessing a different register] Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | arm: sama5d4: fix stack setupSam Ravnborg2019-05-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code that configure the stack uses sama5d3 constants. Fix this to use the proper sama5d4 constants. Boot tested on sama5d4_xplained. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: at91: debug_ll: make UART base address configurableAhmad Fatoum2019-05-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in line with other platforms such as i.MX, which allow specifying a debug port. As we can't use port indices because the UARTs aren't mapped consecutively, allow specifying a hex base at configuration time. A side effect of this patch is that sama5d4's HAVE_AT91_DBGU2 is now honored as well. Previously anything besides DBGU0 defaulted to DBGU1. Fixes: 06a0773ee31 ("ARM: at91: add sama5d4 soc support #2") Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Tested-by: Sam Ravnborg <sam@ravnborg.org> [afa: moved base address defaults to common/Kconfig] Signed-off-by: Ahmad Fatoum <afa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: at91: replace __raw_{readl, writel} of peripherals with readl, writelAhmad Fatoum2019-05-241-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the potentially endianness-changing readl, writel and siblings directly. They looks prettier and are the correct thing to do, as even if the CPU is in big-endian mode, the peripherals are little-endian. Unlike Linux, barebox readl,writel are the same Linux' {readl,writel}_relaxed (they don't imply memory barriers) and thus there shouldn't be any functional change. Patch was generated by a mass search and replace. I looked it over, adjust some whitespace and further verified by reviewing the output of git diff HEAD~1 --word-diff | \ perl -pe 's/\[-(.*?)__raw_/{+$1/; s/-\]\{\+/+}{+/;' \ -e 's/(\{\+.*?\+\})\1/__ALL_IS_WELL__/' | grep '+}{+' which filters out the common case of lines where a single __raw_{readT,writeT} had its __raw_ prefix stripped without any further changes. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Tested-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/arm'Sascha Hauer2019-06-115-3/+17
|\ \ \ | |/ / |/| |
| * | plathome-openblocks-a6: provide a kwbimage.cfg fileUwe Kleine-König2019-06-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since support for Openblocks A6 was introduced in 2014 and commit 906afb533186 ("ARM: mvebu: Add Plat'home's Kirkwood Openblocks A6 board support") there is no kwbimage config. This patch guesses such a file that at least makes barebox compile again with CONFIG_MACH_PLATHOME_OPENBLOCKS_A6=y. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Layerscape: Add PPA firmware supportSascha Hauer2019-05-134-3/+14
| |/ | | | | | | | | | | | | | | | | | | | | The "Primary Protected Application" (PPA) is a PSCI compliant firmware distributed by NXP. It is needed to start the secondary cores on Layerscape SoCs. Without it Linux will be started in EL3 and doesn't work properly. The precompiled firmware images can be found on https://github.com/NXP/qoriq-ppa-binary and are not included in barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ARM: boards: kindle mx50: adapt MCI name to DTSAlexander Kurz2019-05-212-2/+2
|/ | | | | | | | The MCI instances got aliases in the DTS from linux upstream which changed the eMMC devicename e.g. from disk0 to mmc2. Adapt to this. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>