summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* 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/socfpga'Sascha Hauer2018-12-0721-88/+109
|\
| * ARM: socfpga: generate smaller images when multiple boards are selectedSascha Hauer2018-11-1918-87/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The socfpga xload images are limited to 64KiB. This doesn't fit if multiple boards are selected. The reason is that we include huge C files and arrays in the early init code which get compiled once for each board. -ffunction-sections is without effect here since all functions have the same name and hence we get the same function multiple times in the same section. To overcome this we surround all function names with a SECT() macro which is used to add a board specific prefix to the section names. This way -ffunction-sections can now do its work and discard unused functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: update defconfigSteffen Trumtrar2018-11-191-1/+9
| | | | | | | | | | | | | | Select some more common drivers in the defconfig. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: select GPIOLIB for non-xloadSteffen Trumtrar2018-11-191-0/+1
| | | | | | | | | | | | | | | | SoCFPGA has GPIOs. Select it for the normal bootloader. For the xload barebox, do not select it to not waste space. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: achilles: enable watchdog1Enrico Jorns2018-11-191-0/+4
| | | | | | | | | | | | | | This one is required for guarding the boot procedure Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/missing-prototypes'Sascha Hauer2018-12-0724-15/+57
|\ \
| * | ARM64: backtrace: fix missing prototypesLucas Stach2018-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Include header for unwind_backtrace prototype and mark dump_backtrace_entry as static. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: add prototype for mmu_early_disableLucas Stach2018-12-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is only provided by aarch64 for now and not actually used, but raher than deleting this potentially useful chunk of code, just provide the prototype to shut up the warning. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: interrupts64: add missing prototypesLucas Stach2018-12-031-0/+10
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: ptrace: add mssing show_regs prototype in aarch64 pathLucas Stach2018-12-031-0/+2
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: nxp-imx8mq-evk: add missing prototype for nxp_imx8mq_evk_ddr_cfg_phyLucas Stach2018-12-031-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: mmu64: include dma.hLucas Stach2018-12-031-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: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Make: Add -Wmissing-prototypesSascha Hauer2018-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Wmissing-prototypes is a useful warning, so add it to the build. With this we can detect conflicting function prototypes. When a file implements a function but doesn't include the header file which provides the prototype for it then conflicting prototypes would go unnoticed without this warning. MIPS already had that warning, so we can remove it from the MIPS Makefile. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: omap: Add missing includesSascha Hauer2018-11-194-0/+4
| | | | | | | | | | | | | | | | | | | | | Include header files that provide the prototypes for functions implemented in that C files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: samsung: Add missing includeSascha Hauer2018-11-191-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: samsung: provide prototype for nand_boot()Sascha Hauer2018-11-191-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: samsung: make locally used function staticSascha Hauer2018-11-191-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: samsung: remove unused functionSascha Hauer2018-11-191-9/+0
| | | | | | | | | | | | | | | | | | s3c24_get_uclk() is unused, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: start: Add missing prototypeSascha Hauer2018-11-191-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX6 usb: Add missing includeSascha Hauer2018-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | include header file providing the protype for functions that usb-imx6.c implements. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX: add missing includeSascha Hauer2018-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | mach/imx-nand.h provides the prototype for imx_nand_set_layout() which this file implements, so include the header file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX27: Add missing prototype for imx27_get_boot_source()Sascha Hauer2018-11-121-0/+1
| | | | | | | | | | | | | | | | | | imx27_get_boot_source() is exported, so add a prototype for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: i.MX50: Make locally used function staticSascha Hauer2018-11-121-1/+1
| | | | | | | | | | | | | | | | | | imx50_init_lowlevel_early() is only used locally, so make it static. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: Add missing prototype for arm_mem_ramoops_get()Sascha Hauer2018-11-121-0/+2
| | | | | | | | | | | | | | | | | | To avoid missing prototype warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: start: Add missing prototypeSascha Hauer2018-11-121-0/+2
| | | | | | | | | | | | | | | | | | | | | start() has no prototype, add it. Since it is not called from anywhere in the barebox binary just add the prototype to the C file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: start: Add missing includeSascha Hauer2018-11-122-0/+4
| | | | | | | | | | | | | | | | | | entry.h provides prototypes for some functions, so include it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: sm: Make locally used function staticSascha Hauer2018-11-121-1/+1
| | | | | | | | | | | | | | | | | | To avoid missing prototype warning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: psci: Avoid missing prototypes warningSascha Hauer2018-11-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Avoid missing prototypes warning by adding prototypes. Since these functions are called from assembly add the prototypes to the C file directly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: interrupts: Avoid missing prototypes warningSascha Hauer2018-11-121-0/+8
| | | | | | | | | | | | | | | | | | | | | Add prototypes for various functions. Since these are called from assembly add the prototype in the C file itself. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2018-12-071-0/+1
|\ \ \
| * | | ARM: at91: add architecture dependecy to KSZ9477_EVB boardLucas Stach2018-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This board is part of the SAMA5D3 architecture. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2018-12-0721-196/+239
|\ \ \ \
| * | | | ARM: imx: select OFDEVICE for VF610Lucas Stach2018-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a dependency for IMX_OCOTP, which is selected by VF610. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: phytec-som-imx6: Add full featured phyCORE-i.MX 6ULLStefan Riedmueller2018-12-064-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The phyCORE-i.MX 6ULL now comes in a full featured (Y2 variant) and a low cost (Y0 variant) version. The main difference for the barebox is the missing second USB OTG port on the Y0 variant and the RAM configuration. So to account for these differences the existing low cost version is renamed and the full featured version added. The results are following phyCORE-i.MX 6ULL modules: phyCORE-i.MX 6ULL low cost: - i.MX 6ULL Y0 - 256 MB RAM - NAND - Ethernet 10/100 MBits - USB OTG phyCORE-i.MX 6ULL full featured: - i.MX 6ULL Y2 - 512 MB RAM - NAND - Ethernet 10/100 MBits - USB OTG - USB Host Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: dts: phyCORE-i.MX 6UL/ULL: Enable USB OTG on port 1Fabian Godehardt2018-12-063-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable USB OTG support on USB OTG port 1 of the phyCORE-i.MX 6UL/ULL. Signed-off-by: Fabian Godehardt <fg@emlix.com> Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: dts: phyCORE-i.MX 6UL: Enable USB host portStefan Riedmueller2018-12-062-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The phyBOARD-Segin baseboard of the phyCORE-i.MX 6UL features a USB type A connector on the second USB OTG port of the i.MX 6UL. So enable this port as a host port. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: images: use piggydataSascha Hauer2018-12-036-44/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The way we assemble the multi images on ARM is rather complicated and error prone. We currently cat the compressed barebox image behind the PBL executable and need some magic to obtain the size of the payload and also have to do tricks to reliably get a pointer to the compressed image. This patch switches over to compile the compressed payload into the PBL image itself which has proven to work for the single PBL case and for the ARM Linux Kernel aswell. The goal is to unify the single PBL and the multi PBL cases together in the future to get an easier startup path for ARM. This patch has been tested on the i.MX53 QSB, i.MX53 Vincell, Beaglebone black (both MLO and 2nd stage) and a Phytec phyFLEX i.MX6 board. SoCFPGA Arria10 has also be changed slightly with this patch. We used to generate a single image (barebox-socfpga-achilles.img) which was used as xload image and full image. We now instead generate two images: barebox-socfpga-achilles-xload.img and barebox-socfpga-achilles.img, the former loaded by the ROM and the latter loaded by the xload image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: Add max_load_size option to boards that will need itSascha Hauer2018-12-034-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The max_load_size option makes sure that only the portion of the image is loaded to SRAM that fits into it. Note this does not cover the whole available SRAM area for all boards, for the bigger SRAM areas only a part is chosen that is enough to fit the initial loader in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | scripts: imx-image: Add support for max_load_size optionSascha Hauer2018-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an image is loaded to SRAM we can normally only load a part of the full image, limited by the available space in SRAM. We currently load the pblb image which is the executable part of the PBL without the compressed barebox payload. We are going to link the compressed barebox image into the pbl image though, so we can't see the desired load size from outside the image anymore. This adds a max_load_size option to set this size explicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: GuF Vincell: Make pbl smallerSascha Hauer2018-11-301-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PBL unnecessarily contains two dtb files when only one is needed. Be a bit more smart and compile in only one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX: GuF Vincell: Use DCD table to setup SDRAMSascha Hauer2018-11-304-140/+128
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the xload mechanism to configure SDRAM and instead installs a DCD table. The DCD table has been generated from the FSL DDR3 script aid Excel sheet (version 0.0.1). The calibration values were taken from a calibration run with the barebox internal functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/checkpatch'Sascha Hauer2018-12-0713-69/+17
|\ \ \ \ | | |/ / | |/| |
| * | | 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>