summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* tegra: avp_init: write DT address register earlierLucas Stach2015-03-031-3/+3
| | | | | | | | | Otherwise the write would be skipped if we are already running on the main CPU cluster. In practice this means that a second stage barebox will reuse the DT of the first stage, instead of using it's own. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Kconfig: remove stale option CPU_V7_DCACHE_SKIPLucas Stach2015-03-021-8/+0
| | | | | | | | | | | I stumbled across this option a few times already and always found it to be at least confusing when and why it should be enabled. Since commit b7451329b5d2 (ARM: OMAP3: invalidate L2 cache using ROM API) it is actually unused and only adds confusion. Better remove it. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: virt_to_phys should take a volatile ptrLucas Stach2015-02-252-3/+3
| | | | | | | | So users can pass in device memory pointers without provoking warnings. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM Samsung: fix booting from NAND without pblMichael Olbrich2015-02-251-3/+2
| | | | | | | | | This was broken in 558d72dc5116 (ARM Samsung: fix booting from NAND with pbl). '_text' is TEXT_BASE when building without pbl and (TEXT_BASE - SZ_2M) when building with pbl, so this works in both cases. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: atmel: sama5d4 xplained: correc env pathBo Shen2015-02-101-1/+1
| | | | | | | Correct the environment path for sama5d4 xplained board. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: Phytec phyCORE OMAP4460: Split xload defconfigsSascha Hauer2015-02-102-9/+28
| | | | | | | The configs grew too big to support both NAND and MMC at the same time, so split them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/socfpga'Sascha Hauer2015-02-0412-2584/+3750
|\
| * ARM: socfpga: cleanup sequencer warningsSteffen Trumtrar2015-01-132-233/+10
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: Import sequencer code from generated ubootMarkus Pargmann2015-01-136-2566/+3929
| | | | | | | | | | | | | | | | | | This patch imports the sequencer code from uboot using the new script scripts/socfpga_get_sequencer. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: boards: socfpga new mem calibration functionMarkus Pargmann2015-01-132-6/+4
| | | | | | | | | | | | | | | | | | | | Use the new socfpga_mem_calibration function. This is a sideeffect of the new script to import generated sequencer code. The return value of the function is 1 if the calibration succeeds, 0 otherwise. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: clock-manager: set mainnandsdmmcclkSteffen Trumtrar2015-01-131-0/+1
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: clkmgr: bypass debug root clockSteffen Trumtrar2015-01-132-0/+5
| | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: clkmgr: set alteragrp clocksSteffen Trumtrar2015-01-133-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Altera's U-Boot tree has following commit FogBugz #159721: Enhance Arria V MPU clock to 1050MHz It writes to the two undocumented registers CLKMGR_ALTERAGRP_MPUCLK and CLKMGR_ALTERAGRP_MAINCLK to setup the SoC for higher clocks. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: socfpga: avoid using external regulator for PLLSteffen Trumtrar2015-01-132-7/+18
| | | | | | | | | | | | | | | | From Altera U-Boot: FogBugz #210587: Fixing PLL HW configuration issue Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: sockit: Define inst_rom_init staticMarkus Pargmann2015-01-131-2/+2
| | | | | | | | | | Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/raspberry-pi'Sascha Hauer2015-02-045-3/+268
|\ \
| * | ARM: bcm2835: fix checkpatch warningAntony Pavlov2015-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is checkpatch.pl log: WARNING: space prohibited between function name and open parenthesis '(' #134: FILE: arch/arm/mach-bcm2835/core.c:75: +void __noreturn reset_cpu (unsigned long addr) Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | raspberry-pi: mac address detection supportJean-Christophe PLAGNIOL-VILLARD2015-02-043-10/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | increase the mbox timeout as it take more time to retreive the mac fix led register too Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | regulator: add bcm2835 driverJean-Christophe PLAGNIOL-VILLARD2015-02-041-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this will allow to handle IP power automatically and not at board level Mainline kernel need this as they do not have the regulator driver support as some IP such as USB are not power on at boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | raspberry-pi: add leds supportJean-Christophe PLAGNIOL-VILLARD2015-02-041-0/+55
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | raspberry-pi: add board model detectionJean-Christophe PLAGNIOL-VILLARD2015-02-043-1/+122
| | | | | | | | | | | | | | | | | | | | | as the name is very long, return ps1 to the next line Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/pxa'Sascha Hauer2015-02-0437-22/+1603
|\ \ \
| * | | ARM: pxa: add lubbock board supportRobert Jarzmik2015-02-048-0/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the Intel XScale PXA255 development system platform. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: pxa: add pxa25x supportRobert Jarzmik2015-02-0410-2/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the PXA25X SoC family, the oldest of the PXA serie. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: pxa: add the zylonite boardRobert Jarzmik2015-01-1910-1/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the first pxa3xx board, zylonite. Zylonite is the Marvell System Development Platform. Several version are available, based on either : - PXA300 - PXA310 - PXA320 This version was only tested on a PXA310 based board, and uses : - the ethernet controller - the nand controller These drivers seem to be common to all zylonite boards. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: pxa: add pxa3xx architectureRobert Jarzmik2015-01-1914-6/+741
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the pxa3xx architecture, for pxa300, pxa310 and pxa320 SoCs. This includes : - the registers - the cpu type - the reset source handling - a minimal set of clocks - pin control definitions In this last case, the big mfp-pxaxxx.h files were dropped, forcing board developers to use MFP_LPM_* macros cunningly. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: pxa: move pxa2xx functionality to SoC specific fileRobert Jarzmik2015-01-193-14/+20
| |/ / | | | | | | | | | | | | | | | | | | | | | Move reset_source detection and poweroff to pxa2xx.c, to prepare the incoming pxa3xx reset_source detection. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mxs'Sascha Hauer2015-02-0424-278/+582
|\ \ \
| * | | ARM: MXS: Add duckbill board supportSascha Hauer2015-02-038-0/+282
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: power-init: Add parameters to mx28_power_init()Sascha Hauer2015-02-035-33/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of introducing new functions each time a new power supply situation is to be added, this patch adds parameters to mx28_power_init. Right now there are three parameters: - has_battery - true when this board has a battery. - use_battery_input - true when this board is supplied from the battery input, but has a DC source instead of a real battery - use_5v_input - true when this board can use the 5V input The third one is introduced with this patch and allow to boot a board from 5v (USB) source only. The main necessary change this needs is that the DC-DC converter must always be sourced from DCDC_4P2 (DROPOUT_CTRL field of HW_POWER_DCDC4P2) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Add regulator debug printSascha Hauer2015-01-281-0/+37
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Setup vdda in power prepSascha Hauer2015-01-282-15/+15
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: ocotp: Add devicetree supportSascha Hauer2015-01-281-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Add the device tree compatible strings. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Create ocotp device in SoC codeSascha Hauer2015-01-284-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The ocotp device is completely SoC internal, no need to register it from boards. Register it from SoC code instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Make gpio a driverSascha Hauer2015-01-284-60/+9
| | | | | | | | | | | | | | | | | | | | | | | | This turns the MXS gpio support into a driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Do not register devices with device tree supportSascha Hauer2015-01-282-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a device tree is present the SoC internal devices come from it, so do not register them as platform devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MXS: power-init: inline only once used functionsSascha Hauer2015-01-281-93/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | mxs_power_init_4p2_params and mxs_power_init_4p2_regulator are used only once, so inline the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Fix vddd brownout settingSascha Hauer2015-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The brownout setting can be at maximum 7*25mV below the voltage setting of the regulator. Set it to the minimum Voltage which is 1325mV. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: imx28evk: Update environment and configSascha Hauer2015-01-203-68/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the imx28evk to new environment and updates the defconfig file for tons of new features. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: imx28evk: Add lowlevel supportSascha Hauer2015-01-202-2/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the imx28evk to multiimage support and adds the lowlevel initialization to make the bootlets unnecessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2015-02-0413-58/+21
|\ \ \ \
| * | | | nios2: ignore arch/nios2/cpu/barebox.lds by gitMasahiro Yamada2015-02-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | blackfin: fix undefined reference with CONFIG_CMD_MAGICVARMasahiro Yamada2015-02-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For Blackfin, C symbols are prefixed with '_'. If CONFIG_CMD_MAGICVAR is enabled for Blackfin, the following error occurs: commands/built-in.o: In function `do_magicvar': commands/magicvar.c:(.text+0x3326): undefined reference to `__barebox_magicvar_start' commands/magicvar.c:(.text+0x332a): undefined reference to `__barebox_magicvar_end' commands/magicvar.c:(.text+0x332e): undefined reference to `__barebox_magicvar_start' commands/magicvar.c:(.text+0x3332): undefined reference to `__barebox_magicvar_end' make: *** [barebox] Error 1 Add '_' to __barebox_magicvar_start and __barebox_magicvar_end, like the other symbols in this linker script. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | blackfin: consolidate arch/blackfin/include/asm/linkage.hMasahiro Yamada2015-02-023-49/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since include/linux/linkage.h includes <asm/linkage.h>, the basic coding style we should follow is: - <linux/linkage.h> should contain default macro defines - <asm/linkage.h> can define arch-specific macros and override the default ones in <linux/linkage.h> The arch/blackfin/include/asm/linkage.h has redundant defines that are already defined in <linux/linkage.h>. Replace it with the one imported from Linux 3.19-rc6. Generally, <asm/linkage.h> should not be included directly. Fix two files to include <linux/linkage.h> instead. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: fix a wrong comment about relocate_to_adrMasahiro Yamada2015-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The relocated_to_adr does not clear the .bss section. It is done by the setup_c routine. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | sandbox: get malloc_size from .configAntony Pavlov2015-01-212-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | kbuild: add KBUILD_DEFCONFIGMasahiro Yamada2015-01-143-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows "make ARCH=... defconfig". Fox example, you can type "make defconfig" instead of "make sandbox_defconfig". Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | kbuild: arm: Do not define "comma" twiceMasahiro Yamada2015-01-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The definition of "comma" exists in scripts/Kbuild.include. We should not double it. Note: This was already fixed in Linux Kernel too. See commit 226422d08c33 of Linux Kernel. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | powerpc: include <linux/stringify.h> to avoid dupulicated definesMasahiro Yamada2015-01-131-3/+1
| | |_|/ | |/| | | | | | | | | | | | | | Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx'Sascha Hauer2015-02-0411-37/+133
|\ \ \ \