summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* phytec-som-imx6: ksz8081_phy_fixup: Don't override B-CAST_OFF strap-inJan Remmet2018-12-051-1/+10
| | | | | | | | | | | | As PHY address 0 is not used on PHYTEC i.MX 6 and i.MX 6UL SOMs we do not have to override the B-CAST_OFF strap-in which disables broadcast on PHY address 0. Also add some comments about the magic values. Signed-off-by: Jan Remmet <j.remmet@phytec.de> Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kconfig: include common Kconfig files from top-level KconfigAntony Pavlov2018-12-038-64/+0
| | | | | | | | | | | | | Based on this linux kernel commit: > commit 1572497cb0e6d2016078bc9d5a95786bb878389f > Author: Christoph Hellwig <hch@lst.de> > Date: Tue Jul 31 13:39:30 2018 +0200 > > kconfig: include common Kconfig files from top-level Kconfig Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add Raspberry Pi Zero W BoardChris Fiege2018-11-212-0/+3
| | | | | | | | | | | | The Raspberry Pi Zero W is basically a Raspberry Pi 1 B+ but on a smaller PCB and with Bluetooth and WiFi. See: https://elinux.org/RPi_Hardware This patch adds support for Raspberry Pi Zero W to barebox. Signed-off-by: Chris Fiege <chris@tinyhost.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: boards: phytec-som-am335x: Fix mac overwrite from stateTeresa Remmet2018-11-211-2/+2
| | | | | | | | state_read_mac() returns 0 on success so mac never was overwritten. Fix this and add check for valid mac address. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: stack unwind: Print messages with pr_warningSascha Hauer2018-11-141-2/+2
| | | | | | | print stack traces with pr_err() rather than printf() to make sure they appear in the logs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2018-11-095-266/+94
|\
| * ARM: socfpga: socrates: convert to lowlevel helpersSteffen Trumtrar2018-11-061-67/+4
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: socdk: convert to lowlevel helpersSteffen Trumtrar2018-11-061-66/+3
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfgpa: de0-nano-soc: convert to lowlevel helpersSteffen Trumtrar2018-11-061-66/+3
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: sockit: convert to lowlevel helperSteffen Trumtrar2018-11-061-67/+4
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: add lowlevel header with common codeSteffen Trumtrar2018-11-061-0/+80
| | | | | | | | | | | | | | | | | | | | Apart from the RAM size, all cyclone5-based Socfpga boards use the same lowlevel code. Instead of duplicating it for every board, move it to mach-socfpga and provide a macro to use it in the boardspecific code. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/rpi3'Sascha Hauer2018-11-0920-16/+507
|\ \
| * | ARM: rpi: autosize malloc areaLucas Stach2018-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Autosize the malloc area according to the available RAM size. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: add raspberry pi 3 supportLucas Stach2018-11-056-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds basic support at the same feature level as the other supported raspberry pi boards. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: rpi: add revision IDs for Pi 3 Model B and Pi ZeroEnrico Joerns2018-11-052-0/+6
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Enrico Joerns <ejo@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: install HYP vectors at PBL and Barebox entryLucas Stach2018-11-054-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the CPU was already in HYP mode when entering the PBL, install a simple trap handler to allow to get back from SVC to HYP before switching to HYP mode. As the vectors are part of the currently running binary, we need to do the same setup when starting the real Barebox binary, as the PBL setup vectors might get overwritten. To do this we trap into HYP mode just before jumping to Barebox and then re-do the vector setup and SVC switch as the first thing in Barebox proper. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: default to starting kernel in HYP mode when entered in HYPLucas Stach2018-11-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Barebox has been entered in HYP mode, there is a high chance that the kernel is intended to be started in HYP mode also. Get this default into place. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: don't try to install secure monitor when entered in HYP modeLucas Stach2018-11-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Barebox has been entered in HYP mode, the CPU is already switched to the non-secure world and it's not possible for Barebox to install it's own secure monitor. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: add file for HYP mode related setupLucas Stach2018-11-054-11/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | This adds routines to add hyp mode vectors and switch back to HYP mode from SVC. This is needed in both the PBL and Barebox proper. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: allow secure monitor code to be built without PSCILucas Stach2018-11-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The hyp mode handling added in the secure monitor code is also useful when Barebox doesn't have PSCI control. Allow to build without PSCI. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: safely switch from HYP to SVC mode if requiredLucas Stach2018-11-022-3/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a port of the Linux safe_svcmode_maskall macro to the Barebox lowlevel init. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: import opcode helpers from Linux kernelLucas Stach2018-11-022-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | Those are needed to generate some of the ARM SEC and VIRT opcodes in a portable way. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: pass architecture flag for SMCC also to PBL compilation unitLucas Stach2018-11-021-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/net-switch-mv88e6xxx'Sascha Hauer2018-11-0910-200/+19
|\ \ \
| * | | drivers: Introduce dev_set_name()Andrey Smirnov2018-10-186-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce dev_set_name() in order to hide implementation details of setting device's name so it'd be easier to change it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clocksource: Introduce ARCH_HAS_IMX_GPTAndrey Smirnov2018-10-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all SoCs use i.MX GPT block as a clocksource, so introduce ARCH_HAS_IMX_GPT to mark the ones that do. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | i.MX: Move GPT driver to drivers/clocksourceAndrey Smirnov2018-10-182-193/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move GPT driver to drivers/clocksource and rename it to timer-imx-gpt.c to match Linux kernel as well as to keep all clocksource drivers in a common location. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | VFxxx: Select CLOCKSOURCE_ARM_GLOBAL_TIMERAndrey Smirnov2018-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: Do not expose ARMv8 functions on ARMv7Andrey Smirnov2018-10-181-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Assembly implementing current_el(), read_mpidr(), set_cntfrq(), get_cntfrq() and get_cntpct() is ARMv8 specific, so change #if guard protecting it to reflect that fact. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/missing-prototypes'Sascha Hauer2018-11-0914-13/+36
|\ \ \
| * | | ARM: i.MX: Add missing includeSascha Hauer2018-10-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mach/generic.h provides prototypes for functions that mach-imx/cpu_init.c implements, so include the header file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: unwind: Make locally used function staticSascha Hauer2018-10-231-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: unwind: Provide prototypes for exported functionsSascha Hauer2018-10-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __aeabi_unwind_cpp_prx are provided to make the linker happy. To fix warnings about missing prototypes just provide a prototype in the same file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: legacy Linux support: Make locally used functions staticSascha Hauer2018-10-231-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boards: phytec-som-imx6: Make locally used function staticSascha Hauer2018-10-231-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boards: kontron-samx6i: Add include file to provide prototypeSascha Hauer2018-10-234-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | samx6i_get_size() is declared and used in two different C files. Provide a header file for the prototype instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boards: kindle mx50: Make locally used function staticSascha Hauer2018-10-231-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boards: karo-tx6x: Make locally used function staticSascha Hauer2018-10-231-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boards: GuF Vincell: Make locally used function staticSascha Hauer2018-10-231-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: cache: include mmu.hSascha Hauer2018-10-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mmu.h provides the prototypes for __mmu_cache_* functions, so include it from the file that implements these functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: mmu: include dma.hSascha Hauer2018-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dma.h provides the prototypes for the different dma_alloc_* functions, so we should include it to make sure the prototypes are consistent. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: mmu: rename dma_allocSascha Hauer2018-10-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a function named dma_alloc is already declared in include/dma.h, so when we want to include that file we must rename the function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: Fix missing prototype warningSascha Hauer2018-10-181-0/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes Warnings in usage of ENTRY_FUNCTION whith -Wmissing-prototypes enabled: arch/arm/boards/phytec-som-imx6/lowlevel.c:118:14: warning: no previous prototype for 'start_phytec_phycore_imx6ul_som_512mb' [-Wmissing-prototypes] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2018-11-0918-28/+682
|\ \ \
| * | | ARM: nxp-imx8mq-evk: add barebox and env partitionsLucas Stach2018-11-092-3/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can have a persistent env and a bit safer barebox update. Also switch the environment and update default depending on the bootsource, as this is really helpful on an eval board where one might want to have totally different systems on eMMC and SD card. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: nxp-imx8mq-evk: remove SDRAM reservation for ATFLucas Stach2018-11-091-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent versions of the i.MX8MQ ATF (like the one shipped with Barebox) reside in a part of OCRAM, so there is no need to reserve any part of SDRAM anymore. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: Add liteboard supportMarcin Niestroj2018-11-0911-0/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | liteboard is a development board which uses liteSOM as its base. liteSOM can't exist on its own, but is used as part of other boards - it only contains processor and memory. Hardware specification: * liteSOM: - i.MX6UL - 256M or 512M DDR3 RAM - eMMC (uSDHC2) * Ethernet PHY * USB host (usb_otg1) * MicroSD slot (uSDHC1) Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: rdu1: Implement RDU1 config loadingAndrey Smirnov2018-11-063-0/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RDU1 stores various configuration parameters, including FEC's MAC address, in a configuration blob that can be located in on of three places: SPI NOR, RAVE SP EEPROM or Microwire EEPROM. This patch add an initcall to load those configuration variables from a valid source (CRC8 checked) as well as expose then as "config_<var>" environment variables. This patch also adds appropriate code to register MAC address obtained from config blob. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: rdu1: Add an alias for Microwire EEPROMAndrey Smirnov2018-11-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an alias for Microwire EEPROM to give it a better name in /dev. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: rdu2: fix warnings in Barebox internal DTLucas Stach2018-11-021-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop partially wrong pcie nodes, so we pick up the correct ones from the kernel DT. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>