9
0
Fork 0
Commit Graph

3407 Commits

Author SHA1 Message Date
Lucas Stach 81726b6c6f ARM: dts: update Tegra20 base dtsi to Linux 3.14
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 08:36:03 +02:00
Wjatscheslaw Stoljarski 9303b17369 imx53: add imx53_add_cspi
Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-07 08:36:03 +02:00
Wjatscheslaw Stoljarski 158050e1cf imx53: add imx53_add_cspi
Signed-off-by: Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-05 18:28:27 +02:00
Sascha Hauer 245bc10ca5 Merge branch 'for-next/misc' 2014-04-04 10:06:22 +02:00
Sascha Hauer 3753efa427 Merge branch 'for-next/imx-phyflex'
Conflicts:
	arch/arm/boards/phytec-phyflex-imx6/board.c
2014-04-04 10:06:20 +02:00
Sascha Hauer 4997646b20 Merge branch 'for-next/imx' 2014-04-04 10:06:14 +02:00
Sascha Hauer 712b555f6c Merge branch 'for-next/davinci' 2014-04-04 10:06:14 +02:00
Sascha Hauer 74b5a3dbb3 Merge branch 'for-next/imx-ipu-v3' 2014-04-04 09:57:30 +02:00
Sascha Hauer 279fb4346b ARM: Phytec phyCORE i.MX35: Update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 08:53:23 +02:00
Sascha Hauer effb814306 ARM: i.MX53 QSB: Remove wrong return
For a version 1.0 board the rest of loco_late_init should be executed
to completely configure the board.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-04 08:46:47 +02:00
Sascha Hauer d70c5a3837 ARM: i.MX6 Sabrelite: Fix ethernet
The board code does a phy reset. This implicitly requests the phy reset
gpio. This gpio is also registered in the devicetree as phy reset gpio,
so the fec driver probe can't request the gpio and bails out with -EBUSY.
Fix this by freeing the phy reset gpio in the board code. While at it use
gpio_request_array for the gpios.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-03 15:36:02 +02:00
Sascha Hauer 10385d70df ARM: i.MX6 Phytec phyFLEX: Add Nand update support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-03 07:56:29 +02:00
Sascha Hauer 964966be6a ARM: i.MX6: Add Nand boot bbu handler
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-04-03 07:56:25 +02:00
Sascha Hauer 709a2e768d ARM: Panda: Fix board selection in panda defconfig files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-31 16:57:21 +02:00
Bo Shen 0d82393094 ARM: at91: add sama5d36 SoC support
SAMA5D36 SoC is a sub type of SAMA5D3 which has two Ethernets

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-31 08:33:10 +02:00
Sascha Hauer d9173efcfa ARM: update imx_v7_defconfig
- Enable loadenv command
- Enable mtd/NAND/UBI/UBIFS support
- Enable IPUv3 support
- Enable splash support

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-29 07:57:53 +01:00
Sascha Hauer 09821fba06 ARM i.MX6q: Mark VPU and IPU AXI transfers as cacheable, increase IPU priority
This is needed so that the IPU framebuffer scanout cannot be
starved by VPU or GPU activity.
Some boards like the SabreLite and SabreSD seem to set this in
the DCD already, but the documented register reset values do not
contain the necessary settings.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-29 07:57:53 +01:00
Sascha Hauer 3868765886 video: Add display timing from devicetree helper
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-29 07:57:47 +01:00
Sascha Hauer ce6755ca1c ARM: i.MX6: Add video clocks
This adds the IPU, LVDS and HDMI clocks. As these are many, depend
on the IPU driver being compiled in.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 21:03:15 +01:00
Sascha Hauer 6d610de61c ARM: i.MX: introduce clk parent rate changes
Let dividers and gates change the parent rates.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 21:03:15 +01:00
Sascha Hauer 3e9a71f78d clk: clk-divider: pass flags to initializers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 21:03:14 +01:00
Sascha Hauer 82163afcf0 clk: clk-fixed-factor: pass flags to initializers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 21:03:14 +01:00
Sascha Hauer f4c7536514 clk: clk-gate: pass flags to initializers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 21:03:02 +01:00
Sascha Hauer b33e5ba246 clk: clk-mux: pass clk flags from initializers
struct clk has a flags field, let the clk-mux initializers set this
field.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 10:51:30 +01:00
Sascha Hauer d9485365b0 ARM: dts: i.MX53: Fix IPU register size
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 08:45:10 +01:00
Sascha Hauer b34eed098b ARM: i.MX6: Add initial variscite VAR-SOM-MX6 CPU support
The VAR-SOM-MX6 is a System on module from Variscite, see:

http://www.variscite.com/products/system-on-module-som/cortex-a9/var-som-mx6-cpu-freescale-imx6

This adds support for this module on the VAR-MX6CustomBoard baseboard.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 08:45:10 +01:00
Sascha Hauer 6676cfcec6 ARM: dts: i.MX6: Add HDMI nodes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 08:45:10 +01:00
Sascha Hauer 355c8611ca ARM: dts: i.MX6: Add IPU aliases
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-28 08:45:10 +01:00
Christian Hemp 4c65c20f10 ARM: pfla02: Set new ethernet phy tx timings
TX_CLK line is approx. 54mm longer than other TX lines which adds
a delay of 0.36ns. RGMII need a delay of min. 1.0ns. This mean we have to add
a delay of 0.64ns. We choose 0.78 to have a little gap. This can be done by
setting GTX pad skew value to 11100
Also add a delay for the RX delay lines, needed for the Duallite variant.
 => Set register 2.8 (RGMII Clock Pad Skew) to 0x039F.

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
2014-03-26 21:07:53 +01:00
Christian Hemp 286314915a ARM: pfla02: Add support for DualLite and Solo core
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
2014-03-26 21:07:53 +01:00
Christian Hemp e237fb57df ARM: pfla02: add 4GB version
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
2014-03-26 21:07:53 +01:00
Sascha Hauer d36eae3c0f ARM: pfla02: Drop unnecessary compilation of flash headers
They are unused.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-26 21:07:53 +01:00
Lucas Stach f20f362a0d arm: imx53: qsb: set hostname from board file
Otherwise it won't get set in a multiimage build.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-23 09:47:52 +01:00
Antony Pavlov e32abecf6d ARM: davinci: add virt2real_defconfig
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 21:42:56 +01:00
Antony Pavlov 7205386c1f ARM: virt2real: add documentation
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 21:42:55 +01:00
Antony Pavlov 911d1ba2fa ARM: davinci: add virt2real board support
The virt2real microcontroller, or virturilka,
is a miniature board for creation of WiFi
or internet controllable smart devices.

See http://virt2real.com for details.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 21:42:55 +01:00
Antony Pavlov ec27913f08 ARM: davinci: add documentation
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Antony Pavlov fba430a9b9 ARM: dts: Add TI TMS320DM365 devicetree file
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Antony Pavlov ca7340ebaf gpio: add driver for TI DaVinci SoCs
This driver is dts-only version of driver from Linux v3.14-rc5.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Antony Pavlov d8f8ec596a ARM: davinci: add clocksource
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Antony Pavlov 731083a003 ARM: davinci: add DEBUG_LL support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Antony Pavlov 4c1aa10d0f ARM: initial support for TI DaVinci SoCs
This commit adds minimal support for the DaVinci DM365 SoCs
from Texas Instruments.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Antony Pavlov 74f0803993 import _AC and UL macros from linux kernel
This macros are used in exported from linux TI DaVinci code.
Also this macros are used in MIPS cache support code.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 17:28:11 +01:00
Sascha Hauer 5a6410edd7 ARM: MMU: Fix memory reaching to the end of address space
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>
2014-03-18 17:26:23 +01:00
Sascha Hauer 7933e34445 ARM: MMU: Add some debugging aids and hints
- 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>
2014-03-17 08:20:48 +01:00
Alexander Shiyan 298e521b44 ARM: i.MX27: dts: Separate barebox-specific DT changes
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. Additionally, this patch updates i.MX27 DTS tree.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-17 08:05:27 +01:00
Steffen Trumtrar ad0c989072 ARM: socfpga: socrates: fix ENTRY_FUNCTION
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>
2014-03-12 21:29:51 +01:00
Eric Bénard d2bd147847 ARM: mx53-qsb: update defconfig
- enable more commands :
    (menu, password, loadb, let, mm, sha*, bootz, of*, memtest)
- enable led and led triggers
- enable sata support
- enable USB chipidea support
- enable USB network drivers
- enable NFS and DNS support
- enable EXT4 support

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-10 08:06:42 +01:00
Eric Bénard 78e3db3ffa ARM: mx53-qsrb: enable sata
tested on i.MX53 START-R :
barebox@Freescale i.MX53 Quick Start-R Board:/ ata0.probe=1
imx-sata 10000000.sata: port 0: SATA link ok
imx-sata 10000000.sata: port 0: Spinning up device...
imx-sata 10000000.sata: port 0: ok.
ata0: registered /dev/ata0

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-10 08:06:42 +01:00
Eric Bénard 50ed6b485b ARM: mx53-qsrb: enable USB host
- declare the rigth mux for the GPIO used to enable the USB's 5V
- enable USB host controller

tested on i.MX53 START-R :
barebox@Freescale i.MX53 Quick Start-R Board:/ usb -f
USB: scanning bus for devices...
Bus 001 Device 001: ID 0000:0000 EHCI Host Controller
Using index 0 for the new disk
Bus 002 Device 003: ID 0951:1654 DT R500
Bus 002 Device 002: ID 0000:0000 EHCI Host Controller
3 USB Device(s) found

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-10 08:06:42 +01:00
Sascha Hauer cfa9807924 ARM: i.MX53: Rename sata clocks according to Linux dts
I accidently merged the initial data device node which contained
clocks in the sata node which were not compatible to the ones
in the kernel. Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-10 08:06:27 +01:00
Sascha Hauer e0f22f8d43 Merge branch 'for-next/tegra' 2014-03-07 09:25:56 +01:00
Sascha Hauer 3d551bce2b Merge branch 'for-next/spi' 2014-03-07 09:25:56 +01:00
Sascha Hauer 23a8d93c52 Merge branch 'for-next/pwm' 2014-03-07 09:25:56 +01:00
Sascha Hauer 74213ed9a7 Merge branch 'for-next/partitionhelper'
Conflicts:
	fs/devfs-core.c
2014-03-07 09:25:53 +01:00
Sascha Hauer 144358e0aa Merge branch 'for-next/nfs'
Conflicts:
	defaultenv/defaultenv-2-base/bin/ifup
2014-03-07 09:25:44 +01:00
Sascha Hauer a8a08f88cc Merge branch 'for-next/misc'
Conflicts:
	common/environment.c
2014-03-07 09:25:09 +01:00
Sascha Hauer 2331b1d8e8 Merge branch 'for-next/marvell'
Conflicts:
	arch/arm/dts/Makefile
2014-03-07 09:25:02 +01:00
Sascha Hauer 9c2aa61703 Merge branch 'for-next/imx-image'
Conflicts:
	arch/arm/dts/Makefile
2014-03-07 09:24:46 +01:00
Sascha Hauer 048b03641e Merge branch 'for-next/imx' 2014-03-07 09:24:40 +01:00
Sascha Hauer 92ab6b5ea5 Merge branch 'for-next/gpio-keys' 2014-03-07 09:24:40 +01:00
Sascha Hauer 4df69d0b6e Merge branch 'for-next/env' 2014-03-07 09:24:40 +01:00
Philippe Rétornaz 325d844aaa ARM: i.MX31: Add support for mx31moboard board
The mx31moboard is used on the marXbot, Eyebot and Footbot robot.

Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-03 09:09:22 +01:00
Uwe Kleine-König 348deb7f9e ARM: sama5d3xek: convert to devfs_create_partitions
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-28 11:19:10 +01:00
Uwe Kleine-König 1ff88a656f ARM: pcm038: convert to devfs_create_partitions
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-28 11:19:10 +01:00
Uwe Kleine-König 9c872ba3d3 ARM: freescale-mx35-3-stack: convert to devfs_create_partitions
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-28 11:19:10 +01:00
Uwe Kleine-König d2333f6bcc ARM: a9m2410: convert to devfs_create_partitions
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-28 11:19:10 +01:00
Sascha Hauer 7fa10256c3 defaultenv: Allow multiple defaultenvironment overlays
We can compile barebox for multiple boards at once, but currently
they all share a single default environment. This patch adds a
defaultenv_append() which boards can call to customize the default
environment during runtime. Each board now generate default environment
snippets using bbenv-y and add them during runtime with defaultenv_append()

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-28 08:14:14 +01:00
Lucas Stach 8383a659d3 ARM: i.MX: edmqmx6: choose correct env when booting from SD
When booting from SD Card we don't want to load an env
from EMMC.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 20:38:48 +01:00
Michael Olbrich bf34b11773 ARM: i.MX: edmqmx6: set display GPIOs
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 20:38:48 +01:00
Michael Olbrich 71a1a288c9 ARM: i.MX: edmqmx6: choose the environment at the correct time
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 20:38:48 +01:00
Philipp Zabel c5853fbbf5 ARM: i.MX: edmqmx6: correct MMDC init
This is a squashed commit of the following downstream
commits:
- Set CS0_END in MMDC0_MDASP to 32Gb (4GB)T
- Fix writes to MMDC0_MDSCR
- Enable bank interleaving (BI_ON) and set write
  additional latency (WALAT) to 1 cycle in MMDC0_MDMISC
- Set ARCR_DYN_JMP=1 and ARCR_DYN_MAX=15 in MMDC0_MAARCR

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 20:38:48 +01:00
Lucas Stach b9f2564473 ARM: i.MX: edmqmx6: fix startup
This was broken with commit 2a1f5f802e
"ARM: rename boards to more consistent naming"

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 20:38:48 +01:00
Lucas Stach df1d5326a9 tegra: add Tegra3 startup
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>
2014-02-27 10:42:09 +01:00
Lucas Stach 880869e55f tegra: set AHB clock rate early
Avoids glitches in later starup phases.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 10:42:09 +01:00
Lucas Stach 6350676e55 tegra: add lowlevel DVC
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>
2014-02-27 10:42:08 +01:00
Lucas Stach fbf3afdb2a tegra: add Tegra3 to relevant lowlevel functions
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 10:42:08 +01:00
张忠山 17644b55ca bugfix: don't rely on lr in arm_cpu_lowlevel_init
Signed-off-by: 张忠山 <zzs213@126.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 10:40:32 +01:00
Philipp Zabel 82e69edac7 ARM i.MX6: Gate clocks to graphics processing units
This patch gates the clocks to GPU, IPU, and VPU units by default,
significantly reducing the VDDSOC power draw while barebox is running.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-24 09:29:49 +01:00
Alexander Shiyan d0343211a2 ARM: clps711x: Remove SYSCON3 handling
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>
2014-02-24 09:28:47 +01:00
Sascha Hauer 1ce7999774 ARM: i.MX6: Add Garz+Fricke Santaro board support
Most devices relevant for barebox like sd/emmc/network/uarts
work. Devicetree contains several undefined drive strength settings,
these can be fixed once the kernel has sorted this out.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-24 09:04:47 +01:00
Raphaël POGGI 1d8a49ae88 ARM: add minimal support for the Freescale Quad UDOO Board
Adding minimal support for the UDOO board.

For more information about the board: http://www.udoo.org/

Signed-off-by: Raphael Poggi <poggi.raph@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-24 09:04:47 +01:00
Sascha Hauer 6613e2d8fb ARM: i.MX: Make mxc_iomux_v3_setup_multiple_pads argument const
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-20 14:50:10 +01:00
Lucas Stach c0afc9f425 ARM: i.MX6: sabresd: set USB PHY and DR mode
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-19 11:33:18 +01:00
Lucas Stach d7db7df187 ARM: i.MX6: sabresd: switch to multi-image
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-19 11:25:31 +01:00
Lucas Stach af155f74aa tegra: add lowlevel delay function
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>
2014-02-19 11:03:48 +01:00
Lucas Stach 0de758b2ee tegra: lowlevel: switch to __always_inline macro
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-19 11:03:48 +01:00
Lucas Stach e231d265ea tegra: add -fno-jump-tables to lowlevel code
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>
2014-02-19 11:03:48 +01:00
Sascha Hauer 7e66707c76 input: Add BB_ prefix to KEY_ defines
Our KEY_ defines conflict with the standard Linux KEY_ defines, so
add a BB_ prefix to them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-17 08:23:37 +01:00
Alexander Shiyan 0758c478a6 ARM: socfgpa: Remove redundant assignment
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-17 08:06:11 +01:00
Lucas Stach a8e7944960 tegra: rename board directory for Colibri T20
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>
2014-02-17 07:51:22 +01:00
Sascha Hauer b8c0cc94e3 ARM: dts: i.MX6: Add pwm aliases
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:18:07 +01:00
Sascha Hauer 53bdcd4c54 ARM: i.MX6: Add PWM clk lookups
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:18:07 +01:00
Sascha Hauer 72141fa925 PWM: pxa: use pwmx as devname
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>
2014-02-14 07:17:23 +01:00
Sascha Hauer e73419d1a6 ARM: i.MX53 karo-tx53: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:15:56 +01:00
Sascha Hauer 305d3db1b4 ARM: i.MX35: freescale-mx35-3stack: Switch to imx-image
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:15:54 +01:00
Sascha Hauer 4024e03510 ARM: i.MX35: eukrea-cpuimx35: Switch to imx-image
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:15:11 +01:00
Sascha Hauer c0e66c123b ARM: i.MX25: Eukrea cpuimx25: Switch to imx-image
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:15:11 +01:00
Sascha Hauer 432ac5aef0 ARM: i.MX53: TQ tqma53: Switch to imx-image
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:15:09 +01:00
Sascha Hauer 828c8d348d ARM: i.MX25: freescale-mx25-3stack: Switch to imx-image
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-14 07:14:48 +01:00
Sascha Hauer 98de8b6e5d ARM: i.MX51: Eukrea cpuimx51: Switch to imx-image
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:37:53 +01:00
Sascha Hauer 9bb88c187b ARM: i.MX51 vincell: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:34:30 +01:00
Sascha Hauer bb9e67f398 ARM: i.MX51 karo-tx51: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:34:30 +01:00
Sascha Hauer b59b87ba59 ARM: i.MX51 ccxmx51: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:34:30 +01:00
Sascha Hauer 9f17e0316b ARM: i.MX6 arm2: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:34:30 +01:00
Sascha Hauer 71049c11c7 ARM: i.MX6 sabresd: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:34:29 +01:00
Sascha Hauer 24c5a4077c ARM: i.MX53 SMD: Switch to imximage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-13 11:34:29 +01:00
Sascha Hauer 0d70fb43e0 video: imx: Add a name to perclk
perclk should be named 'per' to make sure we get the correct clock.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 17:06:52 +01:00
Sascha Hauer ef08a80de8 ARM: i.MX25: Fix LCDC clocks
- Make sure the LCDC ipg clock is turned off during startup
- register all LCDC clocks (ahb, ipg, per) and pass them to driver

This is necessary because the LCDC doesn't have an enable bit. It just
starts working once the clocks are turned on. If the registers have
invalid values at that time the controller goes into some error state.
So we have to make sure the clocks are turned off during startup and
only turned on in the driver.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 17:06:36 +01:00
Eric Bénard 9c08524f8a ARM: mx53-qsrb: enable sata
tested on i.MX53 START-R :
barebox@Freescale i.MX53 Quick Start-R Board:/ ata0.probe=1
imx-sata 10000000.sata: port 0: SATA link ok
imx-sata 10000000.sata: port 0: Spinning up device...
imx-sata 10000000.sata: port 0: ok.
ata0: registered /dev/ata0

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 09:44:34 +01:00
Eric Bénard c65ac4d991 ARM: mx53-qsrb: enable USB OTG in host mode
tested on i.MX53 START-R :
barebox@Freescale i.MX53 Quick Start-R Board:/ usb -f
USB: scanning bus for devices...
Using index 0 for the new disk
Bus 001 Device 002: ID 0951:1654 DT R500
Bus 001 Device 001: ID 0000:0000 EHCI Host Controller
Bus 002 Device 003: ID 0000:0000 EHCI Host Controller
3 USB Device(s) found

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 09:43:33 +01:00
Eric Bénard 9eaee0bb72 ARM: mx53-qsrb: enable USB host
- declare the rigth mux for the GPIO used to enable the USB's 5V
- enable USB host controller

tested on i.MX53 START-R :
barebox@Freescale i.MX53 Quick Start-R Board:/ usb -f
USB: scanning bus for devices...
Bus 001 Device 001: ID 0000:0000 EHCI Host Controller
Using index 0 for the new disk
Bus 002 Device 003: ID 0951:1654 DT R500
Bus 002 Device 002: ID 0000:0000 EHCI Host Controller
3 USB Device(s) found

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 09:13:59 +01:00
Eric Bénard b43dee1a43 ARM: mx53-qsrb: fix USB
- configure the MC34708 properly so that USB can work
(the sequence is taken from u-boot)
- add the required defines to the mc13xxx include file

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 09:13:31 +01:00
Eric Bénard 1c15af075f ARM: i.MX53: Add sata to devicetree
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 09:13:31 +01:00
Sebastian Hesselbarth b3cd257855 ARM: dove: sync with DT files from Linux
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>
2014-02-10 09:09:49 +01:00
Sebastian Hesselbarth fc146460e3 ARM: dove: separate barebox-specific DT changes
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>
2014-02-10 09:09:49 +01:00
Sebastian Hesselbarth 695060fb1a bus: mvebu: add mbus driver
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>
2014-02-10 09:08:51 +01:00
Uwe Kleine-König f97f4b6571 mount: support filesystem options passed via -o
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>
2014-02-10 09:02:21 +01:00
Sascha Hauer 0ad1e8d8df spi: imx: Use device ids
To let the driver work on all SoCs without the use of cpu_is_*()

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-10 08:41:25 +01:00
David Vincent 34ab8ddd04 Load PBL into SRAM
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>
2014-02-09 09:43:33 +01:00
Cristiano De Alti 1515c7f091 i.MX21 ADS defconfig: set CONFIG_NAND_IMX since this board has a 64MBi NAND flash
Signed-off-by: Cristiano De Alti <cristiano_dealti@hotmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-04 08:24:31 +01:00
Sascha Hauer 1debe41a93 ARM: omap3: Add missing include
omap3-generic.h needs memcpy, include linux/string.h for this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-03 15:12:56 +01:00
Sascha Hauer 1130a8b16f ARM: i.MX21 ads: remove garbage at end of #ifdef
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-03 15:12:29 +01:00
Sascha Hauer 2a1f5f802e ARM: rename boards to more consistent naming
This renames the Freescale and Phytec board directories and defconfig
files to a common naming scheme. The board directories are named
<vendor>-<board> and the defconfig files are named
<vendor>-<board>_defconfig. Also the DataModul realq7 is renamed to its
Marketing Name eDM-QMX6.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-03 15:09:14 +01:00
Sascha Hauer 46c034db92 Merge branch 'for-next/tegra' 2014-02-03 09:55:55 +01:00
Sascha Hauer adbf51abde Merge branch 'for-next/pxa' 2014-02-03 09:55:55 +01:00
Sascha Hauer 601bf0fcc6 Merge branch 'for-next/misc' 2014-02-03 09:55:54 +01:00
Sascha Hauer d3c96d6522 Merge branch 'for-next/mci'
Conflicts:
	arch/arm/boards/tqma53/board.c
2014-02-03 09:55:52 +01:00
Sascha Hauer 4a53361beb Merge branch 'for-next/iomem'
Conflicts:
	arch/arm/mach-imx/external-nand-boot.c
2014-02-03 09:55:41 +01:00
Sascha Hauer c224cd3161 Merge branch 'for-next/imx'
Conflicts:
	arch/arm/boards/dmo-mx6-realq7/lowlevel.c
2014-02-03 09:55:13 +01:00
Sascha Hauer f4cece7db5 Merge branch 'for-next/clps711x' 2014-02-03 09:52:34 +01:00
Sascha Hauer ca10989374 Merge branch 'for-next/bootm' 2014-02-03 09:52:34 +01:00
Sascha Hauer fd6fe68e95 Merge branch 'for-next/arm' 2014-02-03 09:52:34 +01:00
Sascha Hauer cc66cf109b ARM: i.MX: Add lowlevel gpio functions
Some boards need gpio functions very early and also sometimes
is useful to toggle gpios during early code debug. This adds a header
file for setting i.MX gpios early.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-01 18:51:32 +01:00
Sascha Hauer 021890a39e ARM: i.MX: Karo TX25: Switch to multiboard support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-01 18:51:28 +01:00
Sascha Hauer 0e80f5b4cc ARM: i.MX: cleanup bootmode selection
Which bootmode is selected has no longer to be chosen by Kconfig. The
boards can decide themselves which bootmode they want to support. This
makes it unnecesary to ask the user which bootmode shall be supported,
so the "Select boot mode" becomes invisible and both support will be
compiled in as needed by the boards. NAND_IMX_BOOT goes away and the
already existing ARCH_IMX_EXTERNAL_BOOT_NAND can now be used for the
boards to depend on external nand boot.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer 23f23a7224 ARM: i.MX25: Karo TX25: Switch to devicetree support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer 2cca917c48 ARM: dts: Karo TX25: add barebox specifics
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer 895f43dc9a ARM: dts: Karo TX25: add phy supply for fec
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer 5519f7dd72 ARM: dts: Karo TX25: add missing nfc properties
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer ae0afcb155 ARM: dts: Karo TX25: Add phy-reset-gpio
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer 7b7f56fe69 ARM: dts: Karo TX25: Add pinctrl nodes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:32 +01:00
Sascha Hauer a1b5185793 ARM: dts: i.MX25: Add iram to devicetree
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:31 +01:00
Sascha Hauer 936161bff9 ARM: dts: Add i.MX25 Karo TX25 dts
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:30:31 +01:00
Sascha Hauer 45c5110587 ARM: i.MX25: Add missing GPT clock lookups
Only one GPT will be used, but with devicetree support we can't predict
which one it is, so we need the clock lookup for all GPTs to ensure
that the timer gets its clock.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 21:29:34 +01:00
Sascha Hauer fe0a08f1a1 ARM: dts: i.MX25: remove disabled status of usbmisc unit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:51:53 +01:00
Sascha Hauer 8d60419b0c ARM: dts: i.MX25: Add mmc aliases
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:51:53 +01:00
Sascha Hauer 0ac7bd5e90 ARM: dts: Add i.MX25 devicetree files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:51:53 +01:00
Sascha Hauer 7ebb5fbb58 ARM: i.MX: external NAND boot: make dtb boarddata work
If we are running from NFC SRAM and we are passed boarddata
containing a devicetree pointer then it point to an address relative
to the NFC SRAM start. First thing we do is to copy the initial
binary to SDRAM and jump there. The devicetree pointer has to be
adjusted by this offset.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:51:53 +01:00
Sascha Hauer 3711a1d8e7 ARM: i.MX: external NAND boot: use image size from image header
When compiling with multiimage support ld_var(_barebox_image_size) only
contains the length of the PBL image, but not including the appended
compressed data. With this patch the image size is read from the barebox
header instead which contains the correct size, either from the linker
or from the fix_size tool.
This makes the external_nand_boot compatible with multiimage support.

Tested on Phytec phyCARD-i.MX27 with and without PBL.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:51:53 +01:00
Sascha Hauer e3ed260db7 scripts: fix_size: check magic
Instead of passing the offset to the fix_size tool check the image to
fixup for a valid header so that only recognized files are fixed up.
This makes the usage of this tool safer.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:51:49 +01:00
Sascha Hauer b5aea925a3 ARM: i.MX: edmqmx6: update defconfig
on the edmqmx6 barebox is loaded into SRAM, so it must not get
too big. Disable some stuff to make the image fit into SRAM again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:46:57 +01:00
Sascha Hauer 223af73a24 ARM: i.MX: edmqmx6: Copy fdt to SDRAM
barebox only recognizes boarddata as dtb if it is inside SDRAM, so
copy the dtb there if necessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-31 18:46:53 +01:00
Sascha Hauer 0099a887c0 reset_source: rename set_reset_source to reset_source_set
To get all reset source related functions into the same function
namespace.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 12:12:17 +01:00
Sascha Hauer 2af8bdd369 ARM: i.MX53: tqma53: Switch to devicetree and multiboard support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:51:23 +01:00
Sascha Hauer e0316b4dd7 ARM: dts: i.MX53: tqma53: Add barebox specifics
- add chosen node with
  - environment
  - linux,stdout-path
- add dsr value to eMMC
- add provide-mac-address property to iim node
- set memory size in memory node to 0 since we have two different
  memory sizes which have to be handled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:51:23 +01:00
Sascha Hauer 92cfd4dc8e ARM: dts: Add TQ tqma53/mba53 dts files
Directly taken from Linux-3.13.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:51:23 +01:00
Sascha Hauer 4da8bcc25b ARM: imx_v7_defconfig: Enable new boards
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:51:23 +01:00
Sascha Hauer 747b71b1fc ARM: phyCARD-i.MX27: Switch to devicetree probe support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:51:19 +01:00
Sascha Hauer dcb8a8b1a6 ARM: dts: phycard-i.MX27: Add sdhc2 pinctrl
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer ab0ee012a1 ARM: dts: phycard-i.MX27: Add environment and NAND partitioning
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer c812fd20fe ARM: phycard-i.MX27: Add stdout-path property
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer f8ad3a8859 ARM: phycard-i.MX27: Add NAND support to dts
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer 14bb8cc21b ARM: i.MX clocksource: return successful for multiple instances
With multiple instances we returned -EBUSY which will provoke a
log message. Return successful instead since the i.MX27 has multiple
GPTs in the devicetree.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer c5b7986089 ARM: i.MX: external NAND boot: pass boarddata
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer 0895a9ad1c ARM: dts: Add Phytec phyCARD-i.MX27 devicetree files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer 1f8618db7f ARM: dts: Add i.MX27 devicetree files
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:31 +01:00
Sascha Hauer 35ae916ecf ARM: i.MX: external NAND boot: do not depend on cpu_is_*
With multiboard support the cpu_is_* macros are no longer compile time
generated and do not work in early code, so pass a v1 variable around.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:31:30 +01:00
Sascha Hauer f77e5b9385 ARM: i.MX: external NAND boot: make it work with relocatable PBL
We used to copy the initial binary portion from NFC SRAM to TEXT_BASE
and jumped there. With relocatable PBL TEXT_BASE becomes 0, so this
doesn't work. This is changed to copy the initial binary portion
to the beginning of SDRAM instead.

Tested on Phytec phyCARD-i.MX27 and Karo TX25 with and without
relocatable pbl.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 11:25:05 +01:00
Sascha Hauer b35e927f7f ARM: mode cpu_architecture() to common.c
It might be needed in pbl code, so move it to a file which is
compiled in pbl mode.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:31:02 +01:00
Sascha Hauer 8aba2cbd93 ARM: Do not use BUG() in pbl code
BUG() uses printf which is not available in pbl, so do not use it here.
This becomes necessary when multiple CPU architectures are compiled in.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:30:56 +01:00
Sascha Hauer 932d0cc9a3 ARM: Pass armv7-a AFLAGS to cache-v7
The cache-v7 code uses assembler instructions which do not
exist on before v7, so explicitely pass armv7-a to this file
to make the compiler happy.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:30:51 +01:00
Sascha Hauer fd2f50212e ARM: Make thumb2 compilation only visible on CPUs that support it
Thumb2 can't be used if one of CPU_32v4T, CPU_32v5 or CPU_32v6 is
selected.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:30:46 +01:00
Lucas Stach 7a2fe46680 ARM: dts: pull in complete DTs from Linux 3.13
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:28:50 +01:00
Alexander Shiyan f986b95735 ARM: i.MX: esdctl-v4: Use __iomem specifier for memory pointer
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:18:42 +01:00
Alexander Shiyan 1a1c929ee9 ARM: i.MX: esdctl: Use __iomem specifier for memory pointer
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:18:42 +01:00
Alexander Shiyan fb2b6d0d0b ARM: i.MX: external_nand_boot: Use __iomem specifier for memory pointer
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:18:42 +01:00
Alexander Shiyan 44cd317378 ARM: at91: irq_fixup: Use __iomem specifier for memory pointer
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:18:42 +01:00
Alexander Shiyan e5d31a7efd ARM: animeo_ip: Use __iomem specifier for memory pointer
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:18:42 +01:00
Alexander Shiyan 7f035323eb ARM: uncompress: Remove unused variable
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-29 10:16:32 +01:00
Sascha Hauer a211494c23 ARM: i.MX53: fix bootsource_instance detection
Bootsource instance is encoded in bit 21:20 of the SBMR register,
not in bit 22:21.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-27 10:38:49 +01:00
Sascha Hauer 25cee7ec17 environment: Use accessor functions for default environment path
default_environment_path only exists when CONFIG_ENV_HANDLING is enabled.
Boards would have to #ifdef this if they wanted to use
default_environment_path. Use accessor functions instead which can
be ifdeffed on a single place.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-27 09:27:02 +01:00
Alexander Shiyan 32d6d2ae76 serial: clps711x: Update driver
This patch updates the CLPS711X UART driver.
The update adds support for use with devicetree and
makes driver comatible with current driver from kernel.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-24 23:10:04 +01:00
Alexander Shiyan 624454160b ARM: clps711x: Remove the special name for the syscon driver
No reason to make SYSCON driver name unique to that processor.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-24 23:10:04 +01:00
Sascha Hauer 9399c7444d ARM: i.MX: external NAND boot: create function macro for different SoCs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:43 +01:00
Sascha Hauer f1d83fad06 ARM: i.MX: external NAND boot: factor out a 2k pagesize detection function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:43 +01:00
Sascha Hauer 53f7c5ccaf ARM: Fix image size calculation for CONFIG_PBL_RELOCATABLE
TEXT_BASE - SZ_2M is only used for non relocable pbl images.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:43 +01:00
Sascha Hauer a1aa3d96de ARM: phyCARD-i.MX27: Update defconfig
This enables a lot of new features in the defconfig:
- Image compression
- FAT support
- Ext4 support
- UBIFS support
- more commands

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:43 +01:00
Sascha Hauer 084a994466 ARM: i.MX27: Add missing MPLL clock sources
The MPLL can be driven from the low frequency reference clock. This
is the reset default. Currently the clock code assumes this has been
changed from the lowlevel code. If that didn't happen we get wrong
clock rates. This adds the missing clocks so that we get correct
clock rates.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:43 +01:00
Sascha Hauer f80282bf85 ARM: phyCARD-i.MX27: convert lowlevel init to c code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Sascha Hauer 00bd286477 ARM: phyCARD-i.MX27: switch to new environment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Sascha Hauer a7a7d6bbb1 ARM: phyCARD-i.MX27: register barebox update handler
To update barebox with the barebox_update command.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Sascha Hauer 66d409dfac ARM: phyCARD-i.MX27: increase barebox and kernel partition
More place for barebox and the kernel as both have the tendency to
get bigger.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Sascha Hauer 5a325e5580 ARM: phyCARD-i.MX27: remove unused variable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
reported-by: Alexander Aring <alex.aring@gmail.com>
2014-01-23 08:15:42 +01:00
Sascha Hauer ecf4da52b0 ARM: Karo TX25: register external NAND boot update handler
To be able to update barebox with the barebox_update command.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Lucas Stach eeac3b7b67 hummingboard: fix entryfunction for real
The entry function wasn't changed properly when the
prototype changed.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Steffen Trumtrar bfcdd2ddef ARM: i.MX53: dts: add support for MCIMX53-START-R
The start-r QSB has a different pmic than the older start QSB.
Add a new dts for the QSRB and let barebox generate two images when
LOCO is selected.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Steffen Trumtrar d662a22491 ARM: i.MX53: dts: move QSB pmic to own file
There are two versions of the i.MX53 LOCO:
	- the MCIMX53-START board
	- the MCIMX53-START-R board

The MCIMX53-START-R has a mc34708 pmic and is otherwise the similar to the
MCIMX53-START. To prepare for the START-R, move all common nodes to a new
	imx53-qsb-common.dtsi
and remove everything but the board name and pmic from the imx53-qsb.dts.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Sascha Hauer a59a7e7ae7 ARM: dts: change dmo,imx6q-realq7 compatible to dmo,imx6q-edmqmx6
To use the same compatible as the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:42 +01:00
Sascha Hauer 19b62c6dd2 ARM: dts: rename imx6q-dmo-realq7.dts to imx6q-dmo-edmqmx6.dts
As this name is used in the Kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach 67221982b3 ARM: imx6: rename Carrier-1 to Hummingboard
Solidrun has renamed the Carrier-1 to Hummingboard.
This is also the name that is used in upstream Linux,
change barebox to be in line with that.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach 3c3e99d6ac ARM: imx6: add initial support for Nitrogen6X boards
Only the 1GB variant is supported for now, as I don't
have anything other to test with.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach c06522e88e ARM: imx6: add support for DL variant of SabreLite Board
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach a1cb05072a ARM: imx6: split sabrelite DT
Split out common QDL parts into shared include file.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach a2d6081c56 ARM: imx6: update base DTs
Upgrade to linux-next version.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach 6267173673 ARM: imx6: update pin related DT headers
Needed to be able to update other i.MX 6 DTs properly.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Lucas Stach cda7fb110f ARM: imx53: guard voipac vmx53 init function
Otherwise we end up doing the VMX53 board init for
unrelated boards when using a multiimage build.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:41 +01:00
Sascha Hauer e6201db24d ARM: i.MX DFI FS700-M60: Update for new boards
This adds support for new board variants. Now Supported are:

- i.MX6q module with 1GiB Micron RAM
- i.MX6d/q modules with 1GiB/2GiB Nanya RAM
- i.MX6s modules with 512MiB/1GiB Nanya RAM

This has been tested on:

- i.MX6q module with 1GiB Micron RAM
- i.MX6d module with 2GiB Nanya RAM
- i.MX6s module with 1GiB Nanya RAM

The possible RAM equipment is:

- For the 512MiB module: 2x Nanya nt5cb128m16fp-di
- For the 1GiB modules: 2x Nanya nt5cc256m16cp or 4x Micron MT41K128M16JT-125
- For the 2GiB module: 4x Nanya nt5cc256m16cp

The 512MiB Nanya board is assumed to work with the same DCD table
as the 1GiB Nanya board. The variant is detected by mirroring at
512MiB, but this hasn't been tested by Pengutronix.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-23 08:15:37 +01:00
Sascha Hauer 42193d5b66 ARM: i.MX6 Sabrelite: add missing of_machine_is_compatible checks
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-22 08:03:29 +01:00
Sascha Hauer 0c66005aea ARM: bootm: pass free memory to __do_bootm_linux
This improves the initrd/devicetree placement in the bootm code.
We used to put the initrd at the start of the kernel + 8MiB. This
of course fails once the kernel gets bigger than 8MiB. Also the
place for the devicetree was allocated using malloc(). This can
lead to the problem that the devicetree is outside of the kernels
lowmem and thus not reachable for the kernel.
With this patch __do_bootm_linux gets a pointer to free space where
the devicetree and the initrd can be safely put.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-22 08:01:02 +01:00
Sascha Hauer cf3e82b35b ARM: bootm: locate zImage higher into RAM
The zImage should be placed where it won't be overwritten by the
uncompressed image, otherwise the kernel decompressing code has
to relocate the zImage before decompression. As Kernels tend to
become bigger put it into 32MiB into RAM if we have enough RAM
available.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-22 08:01:02 +01:00
Robert Jarzmik b34140af5b ARM: mioa701: poweroff the board on long power press
When the board is on console, a way is added to manually power off the
board, on a long power key press (4s).

This enables to be able to poweroff the board whatever the state, and is
the only manual way (no mechanical possibility).

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-20 16:38:08 +01:00
Robert Jarzmik 24b22cf0e8 ARM: mioa701 change MTD layout
As barebox has grown up in size, because UBI support is now embedded in
barebox, and because the IPL is at least rewritten to be fully GPL,
modify mioa701 support to take into account this new layout :
 - IPL is version 0.5
 - MTD layout is fully changed
 - the boot sequence is rewritten :
   - the volume up button triggers console mode
   - upon PowerOn or Sleep exit, power key is debounced and if not
   help board is powered off back
   - sdcard environment override can now stop the autoboot sequence
   - mtd environment override can now stop the autoboot sequence

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-20 16:36:56 +01:00
Robert Jarzmik 924e5ba7d4 ARM: mioa701 defconfig update
Update mioa701 board for new setup :
 - double the barebox size to 524288 bytes
 - add new commands
 - add device tree support, for future PXA port to devicetree
 - add reset source

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-20 16:36:56 +01:00
Robert Jarzmik 1f1396804f ARM: pxa: add poweroff capability
Add the capability for the PXA architecture to poweroff.

As there is no true poweroff, ie. the power regulator is not available
for shut off from the core, the poweroff puts the SoC into a deep sleep
mode (mode 7), where almost no current is sunk.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-20 16:36:56 +01:00
Robert Jarzmik 1d2c68babb ARM: pxa: add reset source detection
Use PXA register RCSR to detect which is the reset cause.  When
triggering a reset, clear the former reset source first.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-20 16:36:56 +01:00
Robert Jarzmik 6b07bf28cd ARM: mioa701: fix frequence speedup code
As barebox has become the true SPL of mioa701 board (no intermediate
SPL), a bug was uncovered in the init procedure, where the CPU voltage
was to be increased by commanding the I2C voltage regulator, while the
I2C was shut down.

Fix it by unclock-gating the power I2C bus before using it.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-20 16:36:56 +01:00
Markus Niebel 6b5f0d4c9a boards: tqma53: add DSR support for eMMC
all eMMC cards with DSR support used on different
revisions of TQMa53 needs the same DSR value.
just apply it.

Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-15 15:22:56 +01:00
Markus Niebel fa5bdb30ee mci: imx-esdhc: add DSR support
having DSR support in mci-core we need a way to
forward the DSR value to the driver. Add it to
platform data for imx-esdhc

TODO: implement the same for other host controller
drivers

Signed-off-by: Markus Niebel <Markus.Niebel@tqs.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-15 15:22:56 +01:00
Sascha Hauer c8156afa22 ARM: i.MX DFI FS700-M60: Add SPI NOR flash update handler
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Conflicts:
	arch/arm/boards/dfi-fs700-m60/board.c
2014-01-15 08:25:19 +01:00
Sascha Hauer ffc386d06f ARM: i.MX DFI FS700-M60: Add SPI NOR flash support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-15 08:25:16 +01:00
Jesús Guitarte f1f6d76370 ARM: i.MX6: correct work flow of PFDs from uboot-sources
PFDs need to be gate/ungate after PLL lock to reset PFDs to right state.
Otherwise PFDs may lose correct state in state-machine, then no output
clock.
For i.MX6DL and i.MX6SL, ROM have taken care of PFD396 already since the
bus clock needs it.

This patch is backported from
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/cpu/arm_cortexa8/mx6/generic.c?h=imx_v2009.08_3.0.35_4.1.0&id=b7c5badf94ffbe6cd0845efbb75e16e05e3af404

And resolve issues with booting from MMC/SD cards

Signed-off-by: Jesús Guitarte <jguitarte@data-modul.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-14 17:01:33 +01:00
Sascha Hauer 764ae1647c ARM: i.MX: Add correct SoC type detection for i.MX6
Using the ANATOP_SI_REV register we can only distinguish between
i.MX6q/d and i.MX6dl/s SoCs. Take the number of cores into account
to get the exact SoC type.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-14 17:01:33 +01:00
Lucas Stach c4a311dc0e ARM: imx6: remove old pingroups
Keeps the size of the compiles DTs down.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-14 17:01:33 +01:00
Lucas Stach 653c53c298 ARM: imx6: update DFI FS700 M60 DT
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-14 17:01:33 +01:00
Lucas Stach 20df62d33f ARM: imx6: update DMO RealQ7 DT
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-14 17:01:33 +01:00
Sascha Hauer 76ccd96f4a bootm: introduce bootm_load_initrd helper
Make the bootm handlers simpler by factoring out an initrd load
function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-14 12:36:03 +01:00
Sascha Hauer 1984af4f28 ARM: bootm: move os loading to do_bootm_linux
__do_bootm_linux is called from the uImage, zImage and raw handlers.
In case of the zImage handler the kernel will already be loaded and
the kernel load code in __do_bootm_linux will do nothing. Move the
loading code to do_bootm_linux so that __do_bootm_linux will always
be called with the kernel already loaded.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 11:53:19 +01:00
Sascha Hauer 9bd67f5e61 bootm: introduce bootm_load_os helper
The common bootm code used to load uImage contents to SDRAM
before calling into the handlers if possible. This makes the
handlers complicated since they have to handle many cases. Instead,
introduce a helper to load the os after the handlers have figured
out a good load address.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 11:53:18 +01:00
Lucas Stach 7fd511c677 ARM: imx6: update GK802 DT
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:21:45 +01:00
Lucas Stach c5ce8af318 ARM: imx6: update TQ DTs
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:21:45 +01:00
Lucas Stach c47c67f895 ARM: imx6: update Carrier-1 DTs
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:18:56 +01:00
Lucas Stach 05e961b92b ARM: imx6: update phytec-pfla02 DT
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:18:56 +01:00
Lucas Stach 300f2ee5ab ARM: imx6: update SabreSD DTs
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:18:56 +01:00
Lucas Stach 503cba5b37 ARM: imx6q: update sabrelite DT
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:18:56 +01:00
Lucas Stach 0a9514b0cc ARM: imx6: pull imx6qdl-pingrp.h from linux
This makes it possible to pull other DT changes from
the linux kernel repo. Plus it will make it possible
to slim down the i.MX6 dtbs at a later point.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 09:18:56 +01:00
Alexander Shiyan c81f103887 ARM: freescale-mx51-pdk: Remove FEC GPIO handling
Reset GPIO now handled from DTS, no need to touch this in the board.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 08:21:51 +01:00
Alexander Shiyan 0039821dca ARM: i.MX51: Sync DT files with kernel
This patch includes update i.MX51 template and porting some barebox
DTS files to use new template.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-10 08:21:51 +01:00
Sascha Hauer 29b6d429f6 Merge branch 'for-next/video' 2014-01-07 11:57:52 +01:00
Sascha Hauer aebde15776 Merge branch 'for-next/socfpga' 2014-01-07 11:57:51 +01:00
Sascha Hauer 9d8c0841d2 Merge branch 'for-next/imx' 2014-01-07 11:57:51 +01:00
Sascha Hauer 8720919039 Merge branch 'for-next/arm-barebox-bootm' 2014-01-07 11:57:51 +01:00
Sascha Hauer 8e3ddc13eb ARM: boot barebox with kernel calling convention
Start a 2nd stage barebox with the Linux Kernel calling convention.
Right now barebox does not interpret ATAGs or devicetree passed
to it, but it doesn't hurt to pass parameters so that future bareboxes
can use them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-06 14:25:06 +01:00
Sascha Hauer cee2a60c56 ARM: remove armlinux_set_bootparams() calls from boards
As the place for the atags now is determined automatically the call
from the boards can be removed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-06 14:25:05 +01:00
Sascha Hauer eb959e1bdf ARM: start kernel: find a valid address for the atags list automatically
If a board does not specify a place for the atags list default to
SDRAM start + 0x100. The vast majority of boards uses this place
anyway, so the call to armlinux_set_bootparams() can be removed
for most boards.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-06 14:24:57 +01:00
Sascha Hauer a76f3d9535 video: imx-ipu-fb: Allow to specify framebuffer memory size via platform_data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-12-20 11:32:07 +01:00
Sascha Hauer 4e64bcac45 video: ipufb: Allow to disable fractional pixelclock divider
The IPU has a fractional pixelclock divider. When used, this produces
clock jitter which especially LVDS transceivers can't handle. Allow
to disable it via platform_data.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-12-20 09:35:38 +01:00
Sascha Hauer 135d77b491 ARM: i.MX: bbu external nand: Fix uninitialized variable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-12-18 16:50:50 +01:00
Sascha Hauer 68a6fedcd4 video: ipufb: make disp_data_fmt configurable
With the IPU the way the display is connected is completely independent
of the framebuffer pixel format. So instead of specifying a pixel width
in platform_data we have to specify how the display is connected.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-12-18 16:38:05 +01:00
Jan Weitzel 537c4abb6f ARM: OMAP: early call am33xx_register_ethaddr
am33xx_register_ethaddr must be called before cpsw driver start.
Move it from devices_initcall to coredevice_initcall.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-12-12 09:09:06 +01:00