summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/ubi'Sascha Hauer2016-07-111-4/+8
|\
| * ARM: am335x_defconfig: Enable ubi fastmap and ubifsTeresa Remmet2016-06-281-4/+8
| | | | | | | | | | | | | | Enable support for ubifs and ubi fastmap. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2016-07-118-95/+125
|\ \
| * | ARM: phytec-som-am335x: Add backup partition for bareboxTeresa Remmet2016-06-304-21/+45
| | | | | | | | | | | | | | | | | | | | | | | | Add a redundant barebox partition to improve nand safety at least a little bit. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | OMAP: am33xx_bbu_nand: Extent barebox update handlerTeresa Remmet2016-06-303-25/+39
| | | | | | | | | | | | | | | | | | | | | | | | Make it possible to write barebox image to multiple partitions like xload partitions. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | OMAP: xload: nand: Check for redundant barebox partitionTeresa Remmet2016-06-303-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | Add a support for a redundant barebox backup partition if loading barebox image from first barebox partitions fails. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | OMAP: xload: Factor out reading image from mtd partitionTeresa Remmet2016-06-301-49/+22
| |/ | | | | | | | | | | | | Remove code duplication of reading images out of mtd partitions. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2016-07-111-1/+1
|\ \
| * | ARM: i.MX: iim: fix potential out of bounds array accessLucas Stach2016-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | The check is off-by-one. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mips'Sascha Hauer2016-07-115-2/+103
|\ \ \
| * | | MIPS: csrc-r4k: get cp0 counter rate from devicetreeAntony Pavlov2016-07-071-2/+22
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: tplink-mr3020: pbl: init WMACYegor Yefremov2016-06-281-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: black-swift: pbl: init WMACYegor Yefremov2016-06-281-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MIPS: ath79: pbl: add pbl_ar9331_wmac_enable macroYegor Yefremov2016-06-282-0/+77
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | AR9331's WMAC module requires triple WMAC reset as also working RTC subsystem. The code is taken as is from upstream U-Boot repository. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2016-07-1148-136/+876
|\ \ \
| * | | ARM i.MX35: Add support for the Amazon Kindle3Alexander Kurz2016-07-1116-0/+603
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Amazon Model No. D00901 Kindle3 is an E-Book reader based on the i.MX35 SOC. The device boots in internal boot mode from a build-in eMMC, alternatively the device may be set into USB-downloader mode when the Vol+ key is pressed on startup. Add support for this device and make barebox a drop-in replacement for the factory shipped u-boot image. Constraints for the use as drop-in replacement: - imximg header (offset 0x400) has a maximum size of 2kB minus 16 byte since the last 16 bytes are used to store a vendor specific hardware desctription identifier - the bootloader space (application plus env) is limited to 256kB minus 16 bytes when installed with offset of 4kB (the u-boot offset was 3kB). A vendor specific device identifier is stored in the gap between application and kernel. The vendor specific identifiers should not be overwritten. Notable features: - Support for eMMC, USB, UART, I2C, SPI and Keys (except keyboard) - Full support for vendor specific ATAGs - usbserial barebox console access by pressing Select button at startup, alternatively full console support on connector J14. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: imx_defconfig: enable NAND_IMX_BBM and NAND_ALLOW_ERASE_BADUwe Kleine-König2016-07-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first is important for imx systems with NAND. The second is a useful debug aid that doesn't change behaviour without being explicitly enabled at runtime. So both should be safe. The other changes result from MFD_MC13XXX and SPI_IMX being selected by MACH_PCM038 since 4bd07a103982 ("arm: imx: select MFD_MC13XXX for all boards that need it") and a move of a few Kconfig definitions in 7839011f61c0 ("bootm: Move bootm options to common/Kconfig"). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mfd: mc13xxx: VGEN1 and VGEN2 voltage bits positioned in "Regulator Setting ↵Alexander Shiyan2016-07-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0" register The bits VGEN10-11 and VGEN20-22 is positioned in the Regulator Setting 0 register. This patch fixes these definitions and board (Efika MX), which uses this voltages. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: karo-tx6: Add support for the 512MiB i.MX6s variantSascha Hauer2016-07-062-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | This adds support for the TX6S-8x35 board variant. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM i.MX31 iomux: remove duplicates with alternate nameAlexander Kurz2016-07-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Three iomux were accessinble with two distinct names, typo? Remove the unused duplicates. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM i.MX31 iomux: remove obvious duplicatesAlexander Kurz2016-07-041-31/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | No need to define some of the iomux twice, remove the duplicates. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | imx35-regs: add and use common CGR element shiftersAlexander Kurz2016-07-044-9/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some missing Clock Gate Register element shifters which were implemented as magic numbers in the arm/boards directory. Use the new shifters for inproved code readability. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | eukrea-cpuimx35: Fix wrong clock gating for ESDHC1Alexander Kurz2016-07-042-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With commit 962d8b89d2ce ("imx35-regs: add defines for USB and SD") the shifter argument for the iMX35 ESDHC1 CGR instance has been erroneously assigned to CGR1 instead of CGR0. Fix this for the eukrea-cpuimx35 board. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM i.MX: de-duplicate PLL initializer macrosAlexander Kurz2016-07-049-33/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Macros for three PLL setups got cloned in different board specific subdirs. Re-unify those macros into a common place and avoid checkpatch 80-char warnings when creating a new board subdir. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: central SOC type definitionAlexander Kurz2016-07-042-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the definition of iMX CPU types to an individual file to allow on-purpose inclusion. Eliminate magic number CPU type encoding in the scripts/imx subdir using the new include file. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX clk-pllv1: Do not use a negative value for the unsigned variableAlexander Shiyan2016-06-301-2/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX clk-pllv2: Do not use a negative value for the unsigned variableAlexander Shiyan2016-06-301-2/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boot: add prepend option for board specific ATAGsAlexander Kurz2016-06-292-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Board specific ATAGs might be passed to vendor provided kernels via the ARM_BOARD_APPEND_ATAG option. In this case, the board specific ATAGs will be appended to the end of the ATAG list. Anyway, some vendor provided kernels might crop the ATAG list at ATAG_MEM, also chopping off the board specific ATAGs, see linux squash_mem_tags() as reference. The Kindle-3 kernel is one example. This conflict might be solved by a) making ATAG_MEM optional which might break the existing behavour around squash_mem_tags() or b) by allowing the insertion of board specific ATAGs in front of ATAG_MEM which violates the requirement from Documentation/arm/Booting to order ATAGs by increasing address. Add option to insert board specific ATAGs in front of ATAG_MEM. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM iMX53: avoid magic number addressing for internal RAMAlexander Kurz2016-06-277-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The imx53 SOC features 128kB of internal SRAM which is commonly used in early stages of barebox to store the stack. Avoid magic numbers while addressing this RAM. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: imx_v7_defconfig: enable LED_GPIO_OFAlexander Kurz2016-06-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GPIO leds are widely used in imx_v7 related dts files. Enable support to parse this data and enable blinking LED by defconfig on e.g. iMX53qsb. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: Remove unused procedure imx25_setup_weimcsAlexander Shiyan2016-06-272-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: boards: variscite-mx6: Remove the excess assignmentAlexander Shiyan2016-06-201-10/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/arm64'Sascha Hauer2016-07-1167-45/+2199
|\ \ \ \
| * | | | arm: include: swab: use rigth assembly for armv8Raphael Poggi2016-07-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: boards: add mach-qemu and virt64 boardRaphael Poggi2016-07-0614-0/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce mach-qemu and add qemu virt64 board which emulates arm64 board. Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: cpu: add basic arm64 mmu supportRaphael Poggi2016-07-066-5/+540
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds basic mmu support, ie: - DMA cache handling is not supported - Remapping memory region also The current mmu setting is: - 4KB granularity - 3 level lookup (skipping L0) - 33 bits per VA This is based on coreboot and u-boot mmu configuration. Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: cpu: disable code portion in armv8 caseRaphael Poggi2016-07-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enclosed by #if directive OMAP specific code and mmu_disable (ARMv8 code will implemented it somewhere else). Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: cpu: cpuinfo: add armv8 supportRaphael Poggi2016-07-061-4/+54
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: include: system_info: add armv8 identificationRaphael Poggi2016-07-061-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: include: bitops: arm64 use generic __flsRaphael Poggi2016-07-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: include: system: add arm64 helper functionsRaphael Poggi2016-07-061-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: cpu: add arm64 specific codeRaphael Poggi2016-07-068-4/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds arm64 specific codes, which are: - exception support - cache support - rework Makefile to support arm64 Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: rework lib directory to support arm64Raphael Poggi2016-07-0635-31/+739
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit create a common directory, lib/, for arm and arm64 common code. It also create lib32/ and lib64/ for 32bit and 64bit code respectively. Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm: Makefile: rework makefile to handle armv8Raphael Poggi2016-07-061-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | arm64: add armv8 Kconfig entriesRaphael Poggi2016-07-062-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/arm'Sascha Hauer2016-07-111-12/+13
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | ARM: start: drop unnecessary variableSascha Hauer2016-06-201-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No need anymore to store arm_head_bottom globally as it's only used in barebox_non_pbl_start(). Also rename the variable to malloc_end which is more meaningful. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: start: simplify board_data sdram allocationSascha Hauer2016-06-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have a pointer for barebox_boarddata, so use it to request the corresponding SDRAM region instead of calculating it again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: start: do not change barebox_boarddataSascha Hauer2016-06-201-2/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | barebox_boarddata should stay the original boarddata and not be modified. Keep a local pointer in barebox_arm_boot_dtb() instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | ARM: bootm: Fix compiler warningSascha Hauer2016-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes: arch/arm/lib/bootm.c:92:137: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>