summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* ARM: MMU: Fix memory reaching to the end of address spaceSascha Hauer2014-03-181-1/+1
| | | | | | | | | For memory reaching the end of the address space phys + bank->size overflows to 0. Fix this by right shifting phys and bank->size before adding them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sean Cross <xobs@kosagi.com>
* ARM: MMU: Add some debugging aids and hintsSascha Hauer2014-03-171-2/+55
| | | | | | | | | | | | | - If we have no memory registered in mmu_init() it's a critical bug. panic in this case. - If we do not have a ttb when dma_alloc_coherent or remap_range is called it's also a critical bug. Panic in this case. - if find_pte is called with an address outside our memory banks dump the memory banks and the address to give more clue what went wrong. Also add some hints what might went wrong to the code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: socfpga: socrates: fix ENTRY_FUNCTIONSteffen Trumtrar2014-03-121-2/+0
| | | | | | | | | | | The commit ARM: Make ENTRY_FUNCTION more robust changed the behaviour of the ENTRY_FUNCTION. For the Socrates the call to __barebox_arm_head() was not removed. Do so now otherwise the Socrates will not be able to boot barebox. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/tegra'Sascha Hauer2014-03-0713-19/+254
|\
| * tegra: add Tegra3 startupLucas Stach2014-02-273-1/+91
| | | | | | | | | | | | | | | | Sets up MSELECT to let main CPUs talk to peripheral devices and starts high performance A9 CPU cluster. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: set AHB clock rate earlyLucas Stach2014-02-272-0/+7
| | | | | | | | | | | | | | Avoids glitches in later starup phases. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: add lowlevel DVCLucas Stach2014-02-273-1/+86
| | | | | | | | | | | | | | Allows to talk to external PMIC devices to bring up CPU rail. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: add Tegra3 to relevant lowlevel functionsLucas Stach2014-02-271-2/+5
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: add lowlevel delay functionLucas Stach2014-02-192-0/+49
| | | | | | | | | | | | | | | | | | For proper startup we need to give clocks and IO signals some time to stabilize. Tegra2 got away without them, but Tegra3 seems to be a bit pickier. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: lowlevel: switch to __always_inline macroLucas Stach2014-02-191-8/+9
| | | | | | | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: add -fno-jump-tables to lowlevel codeLucas Stach2014-02-191-2/+2
| | | | | | | | | | | | | | | | | | Lowlevel code runs when not relocated yet, so we have to make extra sure not to emit jump-tables with absolute adresses when evaluating switch statements. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * tegra: rename board directory for Colibri T20Lucas Stach2014-02-176-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | For computer modules the naming standard is to have a single board directory named after the module and have all the baseboard support beneath it. Also change the CONFIG name, as we may want to build all the baseboards at once. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/spi'Sascha Hauer2014-03-079-23/+35
|\ \
| * | spi: imx: Use device idsSascha Hauer2014-02-109-23/+35
| | | | | | | | | | | | | | | | | | To let the driver work on all SoCs without the use of cpu_is_*() Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/pwm'Sascha Hauer2014-03-073-1/+9
|\ \ \
| * | | ARM: dts: i.MX6: Add pwm aliasesSascha Hauer2014-02-141-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX6: Add PWM clk lookupsSascha Hauer2014-02-141-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | PWM: pxa: use pwmx as devnameSascha Hauer2014-02-141-1/+1
| |/ / | | | | | | | | | | | | | | | | | | As this changes the name of the pwm we also have to adjust it in pwm_request. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/ppc'Sascha Hauer2014-03-0716-14/+127
|\ \ \
| * | | ppc: P2020RDB and DA923RC configurationRenaud Barbier2014-03-033-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable memtest, MMU and iomem support on the P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ppc: add support for memtest with cache disabledRenaud Barbier2014-03-035-1/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to enable caching on a memory region during the memory test. Tested on P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | MPC85xx: fix memory layout to prevent corruption during memtestRenaud Barbier2014-03-036-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Memory regions on MPC85xx boards are incorrectly defined leading to corruption when running memory tests. This patch updates the memory layout of MPC85xx boards so that critical memory regions can be correctly reserved during the memory test. Tested on the P2020RDB and DA923RC. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | DA923RC: increase malloc sizeRenaud Barbier2014-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase the malloc size so that larger debug Linux image can be loaded. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | DA923RC: add boot scriptRenaud Barbier2014-02-042-0/+19
| |/ / | | | | | | | | | | | | | | | | | | | | | A boot script is added to load DTB and Linux images for booting. The init script starts the boot script after a 5s timeout window. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/partitionhelper'Sascha Hauer2014-03-074-31/+126
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: fs/devfs-core.c
| * | | ARM: sama5d3xek: convert to devfs_create_partitionsUwe Kleine-König2014-02-281-8/+33
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: pcm038: convert to devfs_create_partitionsUwe Kleine-König2014-02-281-10/+37
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: freescale-mx35-3-stack: convert to devfs_create_partitionsUwe Kleine-König2014-02-281-6/+36
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: a9m2410: convert to devfs_create_partitionsUwe Kleine-König2014-02-281-7/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/nfs'Sascha Hauer2014-03-074-5/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: defaultenv/defaultenv-2-base/bin/ifup
| * | | | mount: support filesystem options passed via -oUwe Kleine-König2014-02-104-5/+5
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in the next commit to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/misc'Sascha Hauer2014-03-073-4/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: common/environment.c
| * | | | ARM: clps711x: Remove SYSCON3 handlingAlexander Shiyan2014-02-241-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SYSCON3 register is not used in the barebox, so remove driver for this register entirely. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: socfgpa: Remove redundant assignmentAlexander Shiyan2014-02-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | Load PBL into SRAMDavid Vincent2014-02-091-0/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to load all the lowlevel init code, including the uncompressor, inside SRAM and not just the bare init part. This is useful when pbl is used as a first-stage bootloader but is loaded by an external firmware. Signed-off-by: David Vincent <freesilicon@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/marvell'Sascha Hauer2014-03-076-282/+622
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile
| * | | | ARM: dove: sync with DT files from LinuxSebastian Hesselbarth2014-02-102-278/+599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This re-syncs Marvell Dove and Solidrun CuBox DT files with current files from Linux v3.14. Since barebox specific properties are now kept separated, we don't need to tweak them anymore. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: dove: separate barebox-specific DT changesSebastian Hesselbarth2014-02-103-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To ease DT import from Linux, which is still maintained in-tree, we separate barebox-specific changes by including the original dts in a separate DT file. This allows to overlay modifications and keep clean DT history. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | bus: mvebu: add mbus driverSebastian Hesselbarth2014-02-101-0/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This imports the Marvell mbus driver from Linux. The mbus is the main downstream bus found on all Marvell Orion SoCs. The driver deals with re-configurable address windows which are currently parsed from DT. Also enable the driver as default on all MVEBU SoCs. While at it, also reorder drivers/bus/{Kconfig,Makefile} alphabetically. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx-image'Sascha Hauer2014-03-0745-1064/+910
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/dts/Makefile
| * | | | ARM: i.MX6: sabresd: switch to multi-imageLucas Stach2014-02-1910-32/+47
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX53 karo-tx53: Switch to imximageSascha Hauer2014-02-144-73/+226
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX35: freescale-mx35-3stack: Switch to imx-imageSascha Hauer2014-02-144-74/+35
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX35: eukrea-cpuimx35: Switch to imx-imageSascha Hauer2014-02-145-45/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX25: Eukrea cpuimx25: Switch to imx-imageSascha Hauer2014-02-144-62/+17
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX53: TQ tqma53: Switch to imx-imageSascha Hauer2014-02-142-0/+67
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX25: freescale-mx25-3stack: Switch to imx-imageSascha Hauer2014-02-143-61/+43
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51: Eukrea cpuimx51: Switch to imx-imageSascha Hauer2014-02-134-84/+60
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51 vincell: Switch to imximageSascha Hauer2014-02-134-42/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | ARM: i.MX51 karo-tx51: Switch to imximageSascha Hauer2014-02-134-53/+14
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>