summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* efi: add support for initrd loadingMichael Olbrich2015-07-231-13/+180
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* efi: improve malloc pool allocationMichael Olbrich2015-07-231-3/+17
| | | | | | | | | | Use allocate_pages() instead of allocate_pool(). With allocate_pages() we can specify the address. This way, any address passed to the kernel will never exceed the lower 32 bit. If possible, try to allocate a larger pool. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: omap: xload: Fix func uninitialized warningSascha Hauer2015-07-131-0/+1
| | | | | | | When doing USB boot without having it enabled in the config func is used unitialized. Explicitly set this to NULL so that booting fails in this case. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pwm'Sascha Hauer2015-07-031-0/+1
|\
| * ARM: i.MX28: Add PWM clk supportSascha Hauer2015-06-121-0/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/omap'Sascha Hauer2015-07-0320-89/+378
|\ \ | | | | | | | | | | | | Conflicts: arch/arm/boards/beagle/board.c
| * | ARM: beagleboard: Move to multiimage supportSascha Hauer2015-07-0211-53/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Breathe some life back into the beagleboard: - switch to multiimage support - update config - initialize early UART for debugging Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: add a machine number mechanism for boarddataSascha Hauer2015-07-022-17/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multi machine barebox builds have to pass information on which board we are running on via boarddata. Usually this will be a pointer to a device tree. Some boards might not have a device tree available though because they are either not ported over to device tree yet, or are running in some limited first state environment which does not offer enough space for a device tree. For these cases this patch adds a mechanism to embed a machine number into a struct type along with a magic number. This makes it possible to check for a specific machine later during regular runtime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: OMAP: Add omap3 USB loader toolSascha Hauer2015-07-025-2/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OMAP3 supports uploading the first stage bootloader via USB. The ROM leaves the MUSB controller enabled and it can then be used to upload a 2nd stage image. This patch adds the omap3-usb-loader tool and the necessary barebox support to upload the 2nd stage image. The omap usb loader tool is downloaded from https://github.com/grant-h/omap_loader and changed to also accept CHSETTINGS images. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: OMAP3: Change DSS divider to the one U-Boot usesSascha Hauer2015-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | U-Boot uses 2 as the DSS divider, so do the same in barebox. This shouldn't currently have any effect to barebox, but makes porting some U-Boot code easier which makes assumptions about the DSS clock rate. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: OMAP: remove unused CONFIG_OMAP3_CLOCK_CONFIG optionSascha Hauer2015-06-224-16/+2
| | | | | | | | | | | | | | | | | | | | | All boards have this option enabled and there should be no reason to disable it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mxs'Sascha Hauer2015-07-031-1/+8
|\ \ \
| * | | ARM: MXS: ocotp: Register a separate deviceSascha Hauer2015-06-121-1/+8
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | With device tree the device name starts with a number, so the device parameters are not accessible on the shell. Register a separate device for the ocotp to make the permanent_write_enable variable accessible again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2015-07-0317-94/+92
|\ \ \
| * | | treewide: replace __inline__ with inlineSascha Hauer2015-07-023-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | inline is preferred over __inline__ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | blackfin: replace extern inline with static inlineSascha Hauer2015-07-022-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Replaced in the kernel a long time ago, not compatible with gcc5. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: replace extern inline with static inlineSascha Hauer2015-07-023-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | Replaced in the kernel a long time ago, not compatible with gcc5. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | sandbox: asm/byteorder.h: fix guard macro nameAntony Pavlov2015-07-021-3/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: tegra: jump to maincluster earlierLucas Stach2015-06-292-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no point in repeating the board setup on the main cluster. It is done either in the AVP startup path or from a first stage loader. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: pxa: move lubbock TEXTBASE to KconfigLucas Stach2015-06-262-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can drop it from the defconfig and stop bothering the user with this choice by default. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: add default ARCH_TEXT_BASELucas Stach2015-06-262-36/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As SoCFPGA is multi-image enabled there is no real reason to bother the user with asking for the text base. Fixes a bunch of randcfg failures. Regenerate defconfig to drop the explicit config there, which unfortunately introduces quite a bit of churn. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: OMAP: Add max file size for PBLX imagesWadim Egorov2015-06-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On AM335x SOCs the maximum size of a downloaded MLO/PBLX image is 109 KB. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arch/BCM47xx: remove bogus copy'n'paste commentJuergen Borleis2015-06-261-5/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mach-clps711: call shutdown_barebox instead of arch_shutdown in reset_cpuHerve Codina2015-06-171-1/+1
| | |/ | |/| | | | | | | | | | | | | Signed-off-by: Herve Codina <Herve.CODINA@celad.com> Tested-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx-bbu-nand-fcb'Sascha Hauer2015-07-035-512/+2
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: common/Kconfig
| * | | ARM: i.MX6: bbu nand: Move to common placeSascha Hauer2015-06-124-510/+0
| | | | | | | | | | | | | | | | | | | | | | | | The code can be used on i.MX28 aswell, so move it to a common place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: dts: Karo tx6: increase barebox partition to 4MBSascha Hauer2015-06-121-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | Due to the DBBT, multiple FCBs, two bootloaders and the possibility of bad blocks the bootloader partition needs more space. Increase it to 4MB. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/bbu'Sascha Hauer2015-07-033-59/+9
|\ \ \
| * | | ARM: beagleboard: register update handlers for NANDSascha Hauer2015-07-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make updating barebox to nand easy. To bootstrap from a SD card: barebox_update -t nand-xload /boot/MLO barebox_update -t nand /boot/barebox.bin Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: AM335x: replace specific barebox update handler with generic oneSascha Hauer2015-07-012-59/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The AM335x SPI NOR barebox update handlers only writes a file to a device, so use the generic handler for this purpose. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/am335x'Sascha Hauer2015-07-032-4/+6
|\ \ \ \
| * | | | ARM: dts: am33xx-strip: Strip more unused nodesTeresa Remmet2015-06-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are still some nodes not used in barebox. Removed them. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: dts: am33xx-strip: Keep devices we can boot fromTeresa Remmet2015-06-291-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we can boot from mmc2 don't strip it. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | boards: phytec-som-am335x: Get ready for EMMC bootTeresa Remmet2015-06-291-1/+4
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Select correct instance when booting from a mmc interface. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | ARM: start: Fix code reordering problemSascha Hauer2015-07-021-0/+2
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a barrier after setup_c(). This is necessary because otherwise some global variable assignments may be reordered by the compiler to be executed before setup_c which cannot work. This was observed when doing other unrelated changes to the start function, it seems in current mainline state the compiler does not actually reorder the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | mx53-qsb: Fix boot hang during reboot stress testFabio Estevam2015-07-011-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the DDR init sequence the same way as done by aee0013e53b339a5 from U-boot in order to prevent the boot hang under reboot stress test. Quoting this commit log: "Currently by running the following test: => setenv bootcmd reset => save => reset , we observe a hang after approximately 20-30 minutes of stress reboot test. Investigation of this issue revealed that when a single DDR chip select is used, the hang does not happen. It only happens when the two chip selects are active. MX53 reference manual states at "28.6.2 Memory ZQ calibration sequence": "The controller must keep the memory lines quiet (except for CK) for the ZQ calibration time as defined in the Jedec (512 cycles for ZQCL after reset, 256 for other ZQCL and 64 for ZQCS)." According to the SDE_0 and SDE_1 bit descriptions from register ESDCTL_ESDCTL: "Writing 1 to SDE0 or SDE1 will initiate power up delays as JEDEC defines. Power up delays are a function of the configured memory type (DDR2/DDR3/LPDDR2)" So make sure to activate one chip select at time (CS0 first and then CS1 later), so that the required JEDEC delay is respected for each chip select. With this change applied the board has gone through three days of reboot stress test without any hang." Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/state'Sascha Hauer2015-06-091-0/+1
|\ \
| * | arm/crypto: add generated sha256-core.S to gitignoreMarc Kleine-Budde2015-05-261-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/spi-nor'Sascha Hauer2015-06-097-2/+137
|\ \ \
| * | | ARM: socfpga: xload: support qspi bootsourceSteffen Trumtrar2015-05-293-2/+63
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: sockit: add qspi flashSteffen Trumtrar2015-05-291-0/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: socrates: add qspi flashSteffen Trumtrar2015-05-291-0/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: socfpga: socdk add qspi flashSteffen Trumtrar2015-05-291-0/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: dts: socfpga: add qspi nodeSteffen Trumtrar2015-05-291-0/+14
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/socfpga'Sascha Hauer2015-06-092-234/+61
|\ \ \ \
| * | | | ARM: socfpga: update sdram calibration to 15.0Steffen Trumtrar2015-05-152-234/+61
| |/ / / | | | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/posix_types'Sascha Hauer2015-06-0927-894/+42
|\ \ \ \
| * | | | PPC: asm/bitops.h: drop unused ext2* and minix* stuffAntony Pavlov2015-06-041-63/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | nios2: use generic posix_types.hSascha Hauer2015-06-031-77/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use generic asm-generic/posix_types.h instead of repeating the typedefs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | efi: use generic posix_types.hSascha Hauer2015-06-031-93/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use generic asm-generic/posix_types.h instead of repeating the typedefs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>