9
0
Fork 0
Commit Graph

1340 Commits

Author SHA1 Message Date
Teresa Gámez 420bd69cda ARM pcm043: New RAM timings
Update RAM timings with extended row cycle delay.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 15:05:17 +02:00
Teresa Gámez 140f7dd719 ARM pcm043: Check silicon revision to set up cpu freq correct
Some older pcm043 only work correct when cpu frequency is set up
to 399MHz. All modules with revision >= 1315.4 are equipped
with a i.MX35 TO2.1 and do run with 532MHz.

Check the silicon revision and set up the frequency accordingly.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-23 14:45:19 +02:00
Sascha Hauer 5067d9bcb1 ARM i.MX51: set barebox_loc according to boot source
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
Sascha Hauer d29842a5e0 ARM i.MX25/35: initialize barebox_loc earlier
Now that env_push_context is in a coredevice_initcall
we can initialize barebox_loc earlier so that we can
use it inside later initcalls.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:37:48 +02:00
shc@milas.spb.ru ddbbeee822 I2C support to PCM-038 board
Sascha Hauer <s.hauer@pengutronix.de> wrote ..
> On Thu, Aug 11, 2011 at 02:37:05PM +0400, Alexander Shiyan wrote:
> > Hello.
> >
> > Please review and apply this simple patch.
...
> Please remove the #ifdef CONFIG_I2C
OK.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-17 09:34:55 +02:00
Sascha Hauer 8ddfe5911d ARM i.MX51: Fix gpio1 base address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 10:50:16 +02:00
Sascha Hauer b7a3e55915 Merge branch 'master' into next 2011-08-15 09:47:55 +02:00
Jean-Christophe PLAGNIOL-VILLARD 90c83d13d2 x86/generic_pc: fix missing switch to resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-15 08:57:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4f9ea7ffbd versatile: fix static allocation clkdev
it's DEV_ID not CON_ID

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-12 11:07:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 927f01250e nomadik: fix static allocation clkdev
it's DEV_ID not CON_ID

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-12 11:07:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 1c278e4ced clkdev: factorize macro
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-12 11:07:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0697c6fcc7 versatilek: switch to static allocation clkdev
as we need to register it before the device

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:07 +02:00
Jean-Christophe PLAGNIOL-VILLARD e18df20c90 nomadik: switch to static allocation clkdev
as we need to register it before the device

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:06 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4145244975 at91sam9261ek: fix missing ecc type
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:06 +02:00
Jean-Christophe PLAGNIOL-VILLARD b9605d8a96 at91: swtich to clkdev
this will also fix the clock support as we now switch to allocated generic
device

as we can need to associate the clock and the device but the driver is probe
before the association

we also change the atmel serial name to "atmel_usart" to simplify sharing with
linux

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-10 14:53:06 +02:00
Sascha Hauer fde45de735 ARM: some cleanup in interrupts.c
- Don't call panic with "resetting CPU...". Depending on the
  configuration the system might also hang.
- panic does not return, so no need to call reset_cpu afterwards
- bundle show_regs and panic into a seperate functions to not have
  to call both functions from each exception handler

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 19:36:30 +02:00
Sascha Hauer 8ec0f55506 ARM: fix comments in interrupts.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 19:34:43 +02:00
Sascha Hauer 20fbf2a0e2 ARM: remove unused irq enable/disable functions
We do not have irq support in barebox, so remove the unused interrupt
functions.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 19:30:08 +02:00
Sascha Hauer 613e7ffd4e ARM: exceptions: remove unnecessary function declarations
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 19:18:00 +02:00
Sascha Hauer 9fc98211ef ARM: remove unused exception
The exception vector at 0x14 is not used on arm, so no need
to bind this address to a exception handler. Remove the
corresponding code

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 19:17:02 +02:00
Sascha Hauer abcf935ee6 ARM mmu: use high vectors if possible
Using high vectors allows us to map a faulting zero page to
catch NULL pointer dereferences.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 19:00:59 +02:00
Sascha Hauer 606bd7d9ce ARM mmu: fix arm_create_pte
Each section is 1MiB, so we have to shift by 20 to get the ttb
entry corresponding to a section.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 18:54:31 +02:00
Sascha Hauer 5e25c6f975 ARM: add missing volatile in get_cr()
Without it, the compiler optimizes away subsequent reads of the
control register.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-07 18:53:06 +02:00
Antony Pavlov 017d5ca933 MIPS: add draft cpuinfo command
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:30 +02:00
Antony Pavlov 0a0479d426 MIPS: add D-Link DIR-320 documentation
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:30 +02:00
Antony Pavlov ccaeb1a00c MIPS: add initial D-Link DIR-320 wireless router support
Can be started from CFE using tftp, e.g.:

  CFE> ifconfig eth0 -addr=192.168.0.99
  CFE> boot -tftp -addr=a0800000 -raw 192.168.0.1:barebox.bin

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:29 +02:00
Antony Pavlov d507792a51 MIPS: add initial BCM47xx-based boards support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:29 +02:00
Antony Pavlov 44861592ef MIPS: add qemu-malta documentation
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:29 +02:00
Antony Pavlov b12f817f47 MIPS: add qemu malta board support to barebox
The only supported peripheral is ns16550 serial port.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Antony Pavlov de754b69e4 MIPS: add Malta machine support to barebox
The machine uses only big-endian mode.
Only supported peripheral is serial port.
The machine supports only MIPS32 CPUs.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Antony Pavlov 645d26aca3 MIPS: add documentation
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Antony Pavlov d3f66272bf MIPS: add common MIPS stuff
Add start.S, CP0 clocksource, Makefile, linker script and memory
layout function.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Antony Pavlov 9b64050669 MIPS: import header files
from linux-2.6.39:
 * arch/mips/include/asm/*
 * include/asm-generic/int-ll64.h

from barebox-2011.07.0 arch/x86:
 * arch/mips/include/asm/sections.h

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Antony Pavlov 922808aec8 MIPS: import libgcc-related files from linux-2.6.39
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Antony Pavlov aef0d57c79 MIPS: initial commit: add empty but required header files
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-05 18:20:17 +02:00
Sascha Hauer 376a2dbfe0 Merge branch 'pu-defconfig' into next 2011-08-04 09:03:42 +02:00
Sascha Hauer 46a16b72a0 Merge branch 'pu-mmu' into next 2011-08-04 09:03:34 +02:00
Sascha Hauer d64b94a1eb ARM scb9328: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:52 +02:00
Sascha Hauer d85d4562a5 ARM pcm043: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:52 +02:00
Sascha Hauer d3a9c0a3c3 ARM pcm038: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:52 +02:00
Sascha Hauer c9ba5c7414 ARM pcm037: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:51 +02:00
Sascha Hauer 7c968ec0fb ARM pca100: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:51 +02:00
Sascha Hauer 9c0ac28003 ARM cupid: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:51 +02:00
Sascha Hauer e12a0f31be ARM babbage: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:51 +02:00
Sascha Hauer 5628f0837e ARM cupid: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:51 +02:00
Sascha Hauer a2bd44519e ARM scb9328: Add missing env
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:21:51 +02:00
Sascha Hauer 628434ae50 Merge branch 'pu-remove-gd_t' into next 2011-08-03 09:20:29 +02:00
Sascha Hauer 43ebdba64a remove now unnecessary HAVE_MMU from Kconfig
MMU now can be enabled on every ARM board, so remove
the dependency.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:12:16 +02:00
Sascha Hauer 56c379160b ARM mmu: Fix arm_create_pte
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:11:25 +02:00
Sascha Hauer a6c333c7f2 ARM boards: remove now unnecessary mmu calls
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-03 09:11:16 +02:00
Sascha Hauer 3100ea1466 ARM: rework MMU support
In barebox we used 1MiB sections to map our SDRAM cachable. This
has the drawback that we have to map our sdram twice: cached for
normal sdram and uncached for DMA operations. As address space gets
sparse on newer systems we are sometines unable to find a suitably
big enough area for the dma coherent space.

This patch changes the MMU code to use second level page tables.
With it we can implement dma_alloc_coherent as normal malloc, we
just have to remap the allocated area uncached afterwards and map
it cached again after free().

This makes arm_create_section(), setup_dma_coherent() and mmu_enable()
noops.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-03 09:11:10 +02:00
Sascha Hauer f9f35ee938 ARM boards: move sdram setup before mmu setup
The new MMU setup will need SDRAM base addresses and sizes.
For this reason convert the MMU enabled ARM boards:

- move mem setup to mem_initcall. This is early but
  still makes sure that we already have the console available
- move MMU setup in this initcall temporary as after the mmu_init will generic

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:32:00 +02:00
Sascha Hauer 8ba794abd4 ARM: pass size to dma_free_coherent
We'll need it later once we remap dma memory.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:34 +08:00
Sascha Hauer d77ef33347 ARM l2x0: make init function static inline if l2 is not available
So that the ifdeffery can be moved out of the board code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:33 +08:00
Sascha Hauer 5f56079cd5 ARM: move armlinux_add_dram to location which is always compiled
We want to use the memory banks later in the MMU which is
independent of Linux, so move this to a location which is
always compiled.

Also, make the memory bank list global and add an iterator
for it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:33 +08:00
Sascha Hauer aab32057b3 ARM cache l2x0: depend on MMU
l2x0 cache support does not work without MMU, so depend
on it in Kconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 21:49:33 +08:00
Jean-Christophe PLAGNIOL-VILLARD 95067e23ac arm: introduce arm_add_mem_device to register dram device
this will automaticaly register the device to armlinux_add_dram

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 21:49:33 +08:00
Sascha Hauer 147affbd8d remove unused global_data.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 12:00:59 +02:00
Sascha Hauer f6ad18c759 remove unused DECLARE_GLOBAL_DATA_PTR
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-08-01 12:00:59 +02:00
Jean-Christophe PLAGNIOL-VILLARD c71a77ab87 ns16550: switch to resource
use generic read/write depending on the memory size
if no reg_read/write defined

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:33:09 +08:00
Jean-Christophe PLAGNIOL-VILLARD 3f59bab47c nios2: remove dead code in generic board
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-08-01 16:31:56 +08:00
Jean-Christophe PLAGNIOL-VILLARD 4b68e2f5d6 imx: switch remaing board to resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 005b35a13b sandbox: switch to resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 805a4a0c7d netx: switch to resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 535d38b92a edb93xx: switch to resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 931c1cc5a6 ns16550: if not specific f_caps defined use default stdin, stdout, stderr
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 0616e182a5 s3c/boards: switch to resources
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 3d59ba2669 ipe337: switch to resources
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Jean-Christophe PLAGNIOL-VILLARD 08cdbd3ae3 pcm030: switch to resources
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-30 02:05:26 +08:00
Marc Kleine-Budde 5ba0502901 arm: add support for the i.MX53 loco board
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Marc Kleine-Budde 9eaaf1b1ca ARM: add support for the i.MX53
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Marc Kleine-Budde 672b286a7f mx51: rename clock-imx51.h -> clock-imx51_53.h
...and update all users. The header file can be used on mx51 and mx53.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:10:38 +02:00
Sascha Hauer a6aefdeaee Merge branches 'pu-ethaddr', 'pu-fec', 'pu-imx-iim', 'pu-resources' and 'pu-resources1' into next 2011-07-29 12:09:58 +02:00
Sascha Hauer 3d9cd14232 ARM i.MX27: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer 9abfd82817 ARM i.MX IIM: switch to resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer 1bb8f6b047 ARM i.MX51: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer b42dca2df0 ARM i.MX31: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer afa4bff41f ARM i.MX35: Add IIM support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:57 +02:00
Sascha Hauer cd8ab7bd54 ARM i.MX25 IIM: switch IIM support to use resources
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 4e8a62ac61 ARM i.MX IIM: Make explicit sensing the default
The register based fuse readout is not available on i.MX27/31
SoCs, so make explicit sensing the default.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 97c37f4014 ARM i.MX IIM: add support for more SoCs
Do not depend on the specific SoCs for the IIM module, but
instead exclude the one that don't have this unit.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 6b07e264e6 ARM i.MX: IIM rework
The IIM module uses two drivers, one for the general IIM
module and one for the individual banks.
This patch turns this into a single driver to ease registration
of the resources. This changes the user visible behaviour in
the way that the explicit_sense_enable and permanent_write_enable
device parameters are no longer bank specific but for the
whole device. Also, the IIM module supports a maximum of
8 fuse banks, with these patch all of them are registered, even
if they are not present in a SoC.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:06:12 +02:00
Sascha Hauer 00cdd7364c ARM i.MX25 tx25: Add IIM support for MAC address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer e7b995d874 ARM i.MX51 babbage: set fec ethernet address from IIM
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer 2fd4fa2e99 ARM i.MX: rework IIM MAC address setting
Switch to the generic way of setting a MAC address for a
device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer fee474a22e ARM i.MX IIM: Add a iim read function
To allow reading the iim from code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:05:26 +02:00
Sascha Hauer ffcf536cef Merge branch 'pu' into next 2011-07-29 12:03:40 +02:00
Sascha Hauer 5fa7a0e786 ARM i.MX: Add missing cpu_is_mx53()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:03:08 +02:00
Sascha Hauer 90c35f44f1 add a ns16550 registration helper and use it
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer ddf349e011 ARM i.MX pcm037: use device registration helpers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer 5714eb6a84 ARM i.MX21ads : use device registration helpers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer cff8900fcf ARM i.MX35 3stack: use device registration helpers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:41 +02:00
Sascha Hauer c263809afe ARM i.MX scb9328: create uart registration helpers and use them
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Sascha Hauer 930a787982 ARM i.MX pca100: use device registration helpers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Sascha Hauer acbd404f6e ARM i.MX cupid: use device registration helpers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-29 12:00:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD 715b4e7ae3 omap: switch to add_generic_device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:05:24 +08:00
Jean-Christophe PLAGNIOL-VILLARD ee80cbcd61 resource: introduce add_usb_ehci_device to register echi device
pass the hccr and hcor register base via resource

instroduce add_generic_usb_echi_device with hccr = base + 0x100 and
hcor = base + 0x140

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:05:22 +08:00
Jean-Christophe PLAGNIOL-VILLARD 06c36cf09e dm9000: introduce add_dm9000_device to register dm9000 device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:04:24 +08:00
Jean-Christophe PLAGNIOL-VILLARD 3465da7aa8 dm9000: replace DM9000_WIDTH_8/16/32 by IORESOURCE_MEM_8/16/32BIT
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:04:24 +08:00
Jean-Christophe PLAGNIOL-VILLARD 9856df99de eukrea_cpuimx35: fix warning: 'usbotg_dev' defined but not used
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-29 14:04:18 +08:00
Sascha Hauer f59ee4f087 ARM pcm037: Fix wrong sdram base
got broken while switching the boards to sdram registration
helper.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 15:38:04 +02:00
Andre Naujoks 4cc463f942 barebox compilation with gcc 4.5.2 and ptxdist
From 9b3985045da1161a934cba48749fe1759e62dae6 Mon Sep 17 00:00:00 2001
From: Andre Naujoks <nautsch2@googlemail.com>
Date: Wed, 27 Jul 2011 11:29:43 +0200
Subject: [PATCH 2/2] Ported ppc ashrdi3 from linux kernel

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:51:10 +02:00
Andre Naujoks 0947b2edd5 barebox compilation with gcc 4.5.2 and ptxdist
From c479527616c5fc79c608e21573373a5a324f6e9b Mon Sep 17 00:00:00 2001
From: Andre Naujoks <nautsch2@googlemail.com>
Date: Wed, 27 Jul 2011 11:28:35 +0200
Subject: [PATCH 1/2] Ported crtsavres from linux kernel to barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:51:10 +02:00
Sascha Hauer aaf0cbcd65 ARM i.MX51 babbage: remove dead code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 13:02:54 +02:00
Sascha Hauer e7ccf3c979 ARM dma_alloc_coherent: Fix alignment for !MMU case
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-28 12:07:39 +02:00
Franck Jullien 8545b4b386 nios2/generic.c: Add resources for altera TSE
This patch adds resources for the Altera TSE driver as
this driver has been moved to resources usage.

The serial device also uses resources declared with the helps
of add_generic_device.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-27 10:54:13 +02:00
Sascha Hauer 589edb6c06 ARM pcm043: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-25 11:11:30 +02:00
Sascha Hauer 3f57a5e5a5 ARM i.MX35: Fix bogus L2 cache settings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-25 09:59:57 +02:00
Jean-Christophe PLAGNIOL-VILLARD 6dd91ca9b3 nomadik: switch to add_generic_device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-23 09:59:19 +08:00
Jean-Christophe PLAGNIOL-VILLARD c0ff8f7f47 versatile: switch to add_generic_device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-23 09:23:42 +08:00
Jean-Christophe PLAGNIOL-VILLARD 166388bcf6 resource: introduce add_cfi_device to register simple cfi device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-23 09:23:40 +08:00
Jean-Christophe PLAGNIOL-VILLARD 826708d5d8 imx/devices: switch to add_generic_device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-23 09:22:50 +08:00
Jean-Christophe PLAGNIOL-VILLARD 6f3aa82310 at91: switch to add_generic_device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-22 18:30:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD 522af7074a armlinux: mem tag switch to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-20 08:25:45 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4d17abc866 nomadik: add missing IORESOURCE_MEM flags to resources
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-20 08:25:44 +02:00
Jean-Christophe PLAGNIOL-VILLARD bf466e7ad7 dm9000: switch to dev_request_mem_region
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-20 08:25:44 +02:00
Jean-Christophe PLAGNIOL-VILLARD eb18395e07 at91: add missing IORESOURCE_MEM flags to resources
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-20 08:25:43 +02:00
Sascha Hauer d25d0d7293 i.MX devices: convert to struct resource
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-19 00:12:53 +08:00
Sascha Hauer f928efa818 add a add_mem_device function
Add a helper function for boards to register their memory
devices. This makes the board code smaller and also helps
getting rid of map_base and struct memory_platform_data.

And switch all of the memory to it

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 20:32:45 +08:00
Jean-Christophe PLAGNIOL-VILLARD 88618eb5f1 mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLE
we keep struct memory_platform_data for now on we will switch off the memories
resources to struct resource

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 20:31:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD 7ca122a091 nomadik_nand: use "struct resource" instead of platform_data
drop data_va, cmd_va and addr_va in favor of resources

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 07:57:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD d99a3f96a6 nomadik: switch to all resource declaration to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 07:57:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD 23c7b4c4f0 dm9200: use "struct resource" instead of platform_data
drop iobase and iodata in favor of resources

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 07:57:51 +08:00
Jean-Christophe PLAGNIOL-VILLARD 643b2f620f at91: switch to all resource declaration to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-07-18 07:57:50 +08:00
Jean-Christophe PLAGNIOL-VILLARD 5ca80c43a5 at91sam9263ek: fix env location and size
256k(barebox)ro,128k(bareboxenv),1536k(kernel),-(root)

so we will match the erase block size

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-17 17:42:21 +02:00
Franck Jullien d757dd4ad7 Nios2: Compile bootm only if needed
Fix an error when bootm support is not choosen during
the configuration.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-06 10:25:39 +02:00
Antony Pavlov ed66bf2787 x86: fix typo in include/asm/posix_types.h
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-05 09:32:44 +02:00
Jean-Christophe PLAGNIOL-VILLARD 05546b1467 mach-versatile: switch debug_ll.h to GPLv2 or later
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Bahadir Balban <bbalban@b-labs.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-05 07:29:44 +02:00
Antony Pavlov bf2e9c91b8 NiosII: fix typo in cpu/exceptions.S
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-07-04 08:59:39 +02:00
Hubert Feurstein c034843ada atmel-mci: fix initialization of 8bit-bus-width-mode for at91sam9g45
When the bus_width was set to 8, then only one data-line has been initialized.

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-22 00:22:23 +02:00
Sascha Hauer c6abd61fa8 Merge branch 'master' into next 2011-06-20 09:08:13 +02:00
Jan Weitzel fa8aa17710 PANDA: remove CONFIG_FS_RAMFS and CONFIG_FS_DEVFS
MLO is to big (>40000) to save Space disable CONFIG_FS_RAMFS and
CONFIG_FS_DEVFS in defconfig

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-20 09:08:05 +02:00
Sascha Hauer 82ccbb8588 Merge branch 'atmel-mci-support-3' of git://gitorious.org/hfe-repos/barebox into next 2011-06-20 08:47:03 +02:00
Hubert Feurstein cdc578325a macb: add support for board specific get_ethaddr function
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-20 08:46:27 +02:00
Hubert Feurstein f301b386a3 at91sam9m10g45ek: update mci0 support
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-06-16 17:57:59 +02:00
Jean-Christophe PLAGNIOL-VILLARD 39edb3344b at91sam9263ek: add mci1 support
enable fat support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2011-06-16 17:54:26 +02:00
Hubert Feurstein 6cf02124b1 mci: add Atmel AT91 MCI driver
The driver supports push and pull transfers.
Tested on at91sam9m10 SoC.

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
2011-06-16 17:54:12 +02:00
Franck Jullien b4294eb0b7 Disable emitting mul instructions by gcc
If we are using barebox on a NiosII/e variant, the
mul instruction is not supported and causes an exception.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-16 09:49:58 +02:00
Jan Weitzel ffde37400c pcm049: use gpmc_generic_init
If booting from NAND GPMC_IRQ_ENABLE is not cleared, causing crash if kernel
request the gpmc irq. gpmc_generic_init clears GPMC_IRQ_ENABLE

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-11 10:53:04 +02:00
Hubert Feurstein dfa3d6613c at91sam9m10g45ek: add mci0 support
and enable fat support

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-06-11 10:50:30 +02:00
Sascha Hauer 6e27bfb15e Merge branch 'next' 2011-06-06 11:29:45 +02:00
Jean-Christophe PLAGNIOL-VILLARD cbf46b2dad at91: Support for at91rm9200: core chip & board support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-31 08:22:00 +02:00
Alexey Galakhov 1dec194641 Enable display for MINI2440 board.
Also add display modes for usual MINI2440 displays.

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-19 20:37:45 +02:00
Alexey Galakhov 2d88cc4c91 Add support for Samsung S3C24x0 framebuffer.
Heavily based on original Juergen Beisert's code.

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-19 20:37:45 +02:00
Peter Korsgaard c2bd07f6a9 sandbox: allow lseek on host files
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-17 18:56:50 +02:00
Franck JULLIEN de5b1a8ebe Fix dma mapping end address
The flush_dcache_range function takes an absolute end address
so we have to add start address to the second parameter.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-16 08:23:50 +02:00
Franck JULLIEN b76f53378e Change system frequency in generic board
In order to match the example I'll provide on my website,
set the system frequency to 100MHz in the generic board
nios_sopc.h

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-16 08:23:49 +02:00
Franck JULLIEN e0a13e2242 Fix typo in generic.c
The device init function has the name of one of my board (comBoard).
This patch fix the name of the function to generic_device_init.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-16 08:23:49 +02:00
Franck JULLIEN 793b74bc77 Update generic env/config
This adds kernel_loc, kernelimage_type and bootargs to the
generic board environment. This allows the generic board
to boot linux on the example I'll provide on my website.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-16 08:23:49 +02:00
Sascha Hauer 30eb4cdf17 Merge branch 'next' 2011-05-06 11:35:08 +02:00
Sascha Hauer 64476d2177 ARM: compile in image size and magic into barebox image
This is useful to detect a barebox image and to be able
to copy only the image size if barebox is stored on
raw partitions which are bigger than the image.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-06 08:53:26 +02:00
Marek Belisko 9efdd9ee1d arm: karo-tx25: Fix compilation warning.
Fix following warning:
arch/arm/boards/karo-tx25/lowlevel.c: In function 'board_init_lowlevel':
arch/arm/boards/karo-tx25/lowlevel.c:75:6: warning: unused variable 'i'

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-04 08:41:46 +02:00
Marek Belisko 6b3e01a2d5 arm: eukrea: Fix compilation warning.
Fix following warning:
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c: In function 'eukrea_cpuimx35_devices_init':
arch/arm/boards/eukrea_cpuimx35/eukrea_cpuimx35.c:176:15: warning: unused variable 'tmp'

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-04 08:41:46 +02:00
Franck JULLIEN 3b0bf29648 Add bootm support
This patch adds the bootm support to the Nios2 arch.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-04 08:41:02 +02:00
Franck JULLIEN 1ab3e28f67 Add platform data to the mac device
The PHY address must be passed to the driver via platform_data.

Signed-off-by: Franck JULLIEN <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-05-02 09:41:07 +02:00
Sascha Hauer 165a1e91f9 sandbox: make asm/swab.h nonempty
Otherwise it gets erased with make distclean.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-25 12:22:02 +02:00
Sascha Hauer fcad2ff58b sandbox: Fix another uninitialized dev->id case
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-25 11:18:49 +02:00
Jan Weitzel 96d3f6cf1c pcm049: remove unused bootsrc
Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-18 09:27:36 +02:00
Jan Weitzel 61a2ccfbae OMAP4: change boot order
If OMAP4 fall back to MMC1 boot in bootmode 0x39 (NAND,USB,UART,MMC1)
NAND and MMC bit in TRACING_VECTOR3 are set. With changed order it will
detect boot from MMC.

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-18 09:27:36 +02:00
Sascha Hauer 8833ac67b2 ARM beagle board: add xload defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:20 +02:00
Sascha Hauer 47d362ac4c ARM omap beagle: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:20 +02:00
Sascha Hauer 6aa0fba45f ARM omap beagle: Add noshell support for booting from MMC
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:20 +02:00
Sascha Hauer aa2d860dc8 ARM: add pcm049 defconfigs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:19 +02:00
Sascha Hauer 98537dd8cc ARM omap4: Add pcm049 board support
This patch adds support for Phytecs pcm049 board

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:16 +02:00
Sascha Hauer f30d8ba6b1 add panda defconfigs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:16 +02:00
Sascha Hauer a7b2114ad2 ARM omap4: panda board support
This patch adds support for the TI omap4 panda board.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 10:39:12 +02:00
Sascha Hauer 1cf3936829 ARM omap: add xload helper functions
Add some common xload helper functions to determine the boot source
on omap3/4 and to load images from mmc and nand.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 09:54:57 +02:00
Sascha Hauer 0065062124 ARM omap: Add omap4 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 09:54:57 +02:00
Sascha Hauer d0874a846f ARM omap: make sr32 a static inline function
This generates smaller code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 09:54:57 +02:00
Sascha Hauer 802e7d1adf ARM omap: Add omap signGP tool and possibility to build ift images
The tool is needed to build images suitable for omap processors
to load from mmc or nand.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-12 09:54:56 +02:00
Sascha Hauer d332597c7c ARM: make exception handling optional
On several boards without MMU support the vectors cannot be mapped
to 0x0 and exception support is nonfunctional anyway, so make this
configurable.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-11 15:58:21 +02:00
Sascha Hauer 4bfc4b4458 arm: compile icache command only when command support is present
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-11 15:57:51 +02:00
Thomas Mayer bf556ae710 freescale-mx35-3-stack: Add mmc0
Signed-off-by: Thomas Mayer <thomas.mayer@telemotive.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-08 18:24:38 +02:00
Sascha Hauer 2a1e60398d Merge branch 'armlinux' into next
Conflicts:
	arch/arm/include/asm/armlinux.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-06 09:21:27 +02:00
Sascha Hauer 9ba8f95724 Merge branch 'omap-drivers' into next 2011-04-06 09:20:21 +02:00
Sascha Hauer 1c8d6c2f5e Merge branch 'omap-prepare' into next 2011-04-06 09:20:08 +02:00
Sascha Hauer 973069dcaf ARM: move bootu code to its own file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:59 +02:00
Sascha Hauer f103a9843e ARM: move bootz code to its own file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:58 +02:00
Sascha Hauer bb7fff04af ARM: move bootm code to its own file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:57 +02:00
Sascha Hauer 4ade5f8670 ARM: factor out a start_linux function
This can be shared between the different boot commands.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:25 +02:00
Sascha Hauer cf76694df6 ARM: Add missing parameter name in armlinux_set_serial
Also, make it a static inline function if compiled without
arm linux support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:26:44 +02:00
Sascha Hauer 6e7eba2c61 mtd nand omap: Add BCH ecc support
This patch adds BCH ecc support to the omap nand driver. The BCH
error correction allows for up to 8 bit error correction. It is
also needed for booting from nand on omap4.

This is based on code from Sukumar Ghorai <s-ghorai@ti.com>:

[PATCH] omap3: nand: bch ecc support added

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:28:49 +02:00
Sascha Hauer 694363574e mtd nand omap: make ecc mode runtime configurable
On omap we use different ecc modes for different purposes. The initial
boot code has to be written with hardware ecc whereas Linux usually uses
software ecc. To be able to write in both modes with a sinlge barebox
image introduce a eccmode device parameter.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:28:49 +02:00
Sascha Hauer 2a1db7330a mtd nand omap: Pass ecc mode from platform
As we will get more ecc modes pass through the exact mode from
the platform, not only a flag.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:28:49 +02:00
Sascha Hauer 574652f154 ARM omap: make gpio support mandatory
If compiled without gpio support the linker will throw the
gpio functions away anyway, so make the omap kconfig entries
a bit easier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:16 +02:00
Sascha Hauer 85f8ff5abb arm omap: remove unused request/free gpio functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:16 +02:00
Sascha Hauer 819f416b86 omap: rename GPMC Kconfig entry to OMAP_GPMC
Give this omap specific entry an omap namespace. Also, remove
unnecessary dependency to omap2/3 in nand Kconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:16 +02:00
Sascha Hauer 9c04112b7f ARM omap4: fix indention in Kconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:16 +02:00
Sascha Hauer 6546a8eb3e ARM omap: allow to put omap boards into another directory
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:16 +02:00
Sascha Hauer e5482ce76b ARM omap: move architecture specific kconfig entries to arch part
Just like all other architectures do.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:15 +02:00
Sascha Hauer 088591c235 ARM omap: move devices-gpmc-nand.c to omap architecture directory
The original plan was to add all omap devices into the boards/omap
directory. Anyway, there will be reasons to put a board somewhere
else, so move the generic parts into the omap architecture directory.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:15 +02:00
Sascha Hauer 1c83145abf ARM omap: rework gpio support
The current gpio support is derived from the kernel which allows
for support for omap2/3/4 in a single kernel. We do not need this
here, so make it more simple to be able to add omap4 support later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:15 +02:00
Sascha Hauer bd29dfd5f7 ARM omap: move uart access functions to a more generic place
These functions can be used on omap4 aswell, so move them to
omap.c

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:10:15 +02:00
Sascha Hauer ca43e15a57 ARM: Add missing parameter name
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:07:47 +02:00
Sascha Hauer df1ece9b9f arm: update mach-types
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 15:01:48 +02:00
Sascha Hauer 691dd27f7a Merge branch 'next' 2011-04-04 14:53:08 +02:00
Jean-Christophe PLAGNIOL-VILLARD e9c315ee9e at91sam9263ek: update defconfig
enable nand and ubi support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 14:50:53 +02:00
Franck JULLIEN 6402171c90 Add a generic board template for the Nios2 arch
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-30 23:22:35 +02:00
Franck JULLIEN ddd06e264a Add Nios2 arch support to barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-30 23:22:35 +02:00
Juergen Beisert e0965c4d56 S3C24xx/NFC: Consider correct NAND page size for boot.
When booting from NAND, its important to know the correct page size. When
the NAND is used as the boot source, four dedicated pins are used to configure
the correct page size and address cycles. These pins can be read back in one
of the NFC registers to parametrize the load function.

This patch also extends the read routine to support more than four address
cycles on demand.

BTW: At least some mini2440s are misconfigured to use five address cycles for
a NAND device that is known to need only four address cycles. In this case the
vendor is at our side: This NAND simply ignores any additional address cycles
than required.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00