9
0
Fork 0
Commit Graph

557 Commits

Author SHA1 Message Date
Eric Bénard e9ff34657a eukrea_cpuimx35: update board support
- support NAND external boot
- update internal boot init sequence
- unbreak flash_header using magic values ...
- LCD enable
- add I2C
- add SDCard
- add USB Host
- add DFU on USB OTG

Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:03 +02:00
Eric Bénard 220eec272b iomux-mx35: fox IOMUX for SDHC1's pins
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:02 +02:00
Eric Bénard f1bb21aa4f speed-imx35: add support for SDHC1
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:02 +02:00
Eric Bénard 962d8b89d2 imx35-regs: add defines for USB and SD
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:03:02 +02:00
Eric Bénard 5eaffc4326 eukrea_cpuimx25: update board support
- support NAND external boot
- enable only used clocks
- LCD fix in /env/bin/init
- I2C support
- SDCard support
- USB Host 1 support
- DFU support on OTG port
- update defconfig

Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 16:02:55 +02:00
Eric Bénard 5842345358 MX25: fix IOMUX for ESDHC1 pins
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 13:07:14 +02:00
Eric Bénard 46a19d3ddd mx25: add MMC clock support
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-14 13:07:14 +02:00
Eric Bénard 049d7a6fa5 imx/clocksource: enable GPT1 before using it on CPUIMX25
Signed-off-by: Eric Bénard <eric@eukrea.com>
2010-10-13 22:34:35 +02:00
Eric Bénard 72daaebbcf eukrea_cpuimx27: update board support
- fix for LCD support
- environment update (last one before trying to use the generic env)

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-13 17:41:18 +02:00
Sascha Hauer a64c756ad9 image: remove confusing image_check_* functions
The function names do not make it clear what return value
is expected and do not save a single line of code. Put
the code inline and unbreak the wrong checks introduced
with a3c1e5d888.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Eric Bénard <eric@eukrea.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-10-13 17:39:49 +02:00
Juergen Beisert b531c53e74 Switch the i.MX27's PLL in a safe manner
Changing PLL settings is somehow tricky on the i.MX27: Whenever the clock
speed of the main PLL is changed, the clock stops for about 100 us until the
PLL locks into the new frequency. While this clock stop, also the SDRAM
controller cannot refresh the memory, because it uses the same clock source.
This can lead into data loss and random system crashes.

This patch divides the PLL setting in two steps. First step is to re-program
the PLL and clock settings to values possible at a core supply of 1.25 V.
Second step is to increase the core power supply to 1.45 V and switch the
CPU clock to the specified 400 MHz.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-12 22:10:35 +02:00
Jean-Christophe PLAGNIOL-VILLARD 857b9f558b nhk8815: use defaultenv
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-12 21:32:45 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4dfd5b5c62 defaultenv: introduce CONFIG_DEFAULT_ENVIRONMENT_GENERIC to enable it
this will we usefull to enable functionnality if used

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-12 21:32:44 +02:00
Sascha Hauer 23e13992c8 Merge branch 'mx51' into next
Conflicts:
	arch/arm/Makefile

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-12 21:31:38 +02:00
Juergen Beisert 5c2248228a Add the i.MX23 based Chumby platform (WIP)
The so called "chumby one" aka falconwing is an i.MX23 based platform.

Note: This is work in progress. Use with care.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2010-10-11 15:43:48 +02:00
Juergen Beisert 7648762e0c Add the i.MX23-EVK platform (WIP)
Note: This is work in progress. Use with care.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2010-10-11 15:43:05 +02:00
Juergen Beisert 7f12b3aa68 Add the basic files for the i.MX23/i.MX28 familiy of CPUs
These CPUs are called "i.MX", but they are of type STM378x from SigmaTel. They
do not share any devices with the other i.MX CPUs, so we need a separate
architecute directory to handle them without an ifdef hell in the native i.MX
files.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2010-10-11 15:42:18 +02:00
Sascha Hauer f550cfe4e1 ARM i.MX51: Add babbage board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:14 +02:00
Sascha Hauer fbad06735b ARM i.MX: Add basic i.MX51 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:14 +02:00
Sascha Hauer cdd5db42ef ARM mmu: Call __mmu_cache_flush instead of hardcoded v4/v5 only function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:14 +02:00
Sascha Hauer 44f3c38d95 mfd mc13892: Add spi support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:13 +02:00
Sascha Hauer 17f799e6ab move include files for mfd drivers to include/mfd
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:22:13 +02:00
Sascha Hauer e1cd8358d5 i.MX27: Add support for SDHC pins
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:10:39 +02:00
Sascha Hauer 3eec12c24a ARM pca100: Add mci support
Add mci support to the PCA100 platform

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:28 +02:00
Sascha Hauer 5d502f0a7a i.MX27: Add mmc clock support in order to add an i.MX MCI driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Juergen Beisert <jbe@pengutronix.de>
2010-10-11 13:08:27 +02:00
Juergen Beisert 3bf1bd9b33 Add S3C2440 MCI card support
Adding MCI card support for S3C2440 CPUs. This is for reference only, as there
is currently no user in the barebox tree. Maybe one with access to the A9M2440
development kit can check it on his/her system.
Checked here with my own S3C2440 based system which is not in the barebox tree.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:27 +02:00
Jean-Christophe PLAGNIOL-VILLARD a3c1e5d888 Replace direct header access with the API routines
Copied from U-Boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-10-08 00:04:28 +08:00
Sascha Hauer f7403928a9 Revert "Replace direct header access with the API routines"
This reverts commit 0ceafe14be.

Conflicts:

	include/image.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-07 14:11:38 +02:00
Jean-Christophe PLAGNIOL-VILLARD 656f0370c1 imx: fix Internal boot source default choice
via
default ARCH_IMX_INTERNAL_BOOT_NAND

and not default y on ARCH_IMX_INTERNAL_BOOT_NAND

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-04 08:35:49 +02:00
Marc Reilly f6c9a98079 Update flash headers for boards supporting internal boot.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:14 +02:00
Marc Reilly 5785072b37 imx: Internal boot sources, handle all header offsets
Makes the internal boot source configurable.
Also changes section names slightly so that .flash_header_0x1000 isn't
matched to .flash_header_0x100* etc.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:14 +02:00
Marc Reilly 056dd7906f imx35: add base addresses for I2C and SDHC
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:10 +02:00
Juergen Beisert 683e4ef357 Fix watchdog's register size for the i.MX27 CPU
commit 5bd9c57d575126448c7d325547538a55e5cd81d6
Author: Juergen Beisert <jbe@pengutronix.de>
Date:   Fri Sep 24 14:51:42 2010 +0200

    Fix watchdog's register size for the i.MX27 CPU

    The watchdog registers on the i.MX27 CPU are 16 bit registers. This patch
    just fixes the access macro.

    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:23:34 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4bdfe4df0a pcm038: fix initialization makes pointer from integer without a cast
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD c16ec1f886 imx/fb: struct imx_ipu_fb_platform_data remove const for mode
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Juergen Beisert a3b1c7de3b The i.MX27 has no second level cache, remove include file (Subject fixed)
commit 60b66d0c59013da3294d0b5fb09b937a8b73cf14
Author: Juergen Beisert <jbe@pengutronix.de>
Date:   Fri Sep 24 15:00:04 2010 +0200

    The i.MX27 has no second level cache, remove include file

    Just a little bit cleanup.

    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0ceafe14be Replace direct header access with the API routines
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 08:46:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD fa1b191b4d nhk8815: rename nand parts uboot as barebox
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-23 09:55:49 +02:00
Jean-Christophe PLAGNIOL-VILLARD b41f4ffdac nhk8815: update defconfig
fix env patch
enable cramfs, ubi, login/password and menu

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-22 10:32:58 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0eb8686dc2 arm: allow to overwrite the system_rev via bootm
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-22 10:32:12 +02:00
Sascha Hauer 1e559dfdf1 scb9328: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:42:48 +02:00
Sascha Hauer e6bfa1174f guf-neso: Update defconfig (fix env path)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:36:31 +02:00
Sascha Hauer 6bf3b065d9 guf-neso: Update defconfig (add nand and ubi)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:34:54 +02:00
Sascha Hauer f89f81995e guf-neso: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:33:42 +02:00
Marek Belisko fc2c1660f1 mach-s3c24xx: Fix compilation problem when make a9m2410 or a9m2440 defconfig
Following steps lead to compilation error (barebox v2010.09.0):

1. make a9m2440_defconfig (or a9m2410) ARCH=arm
2. make CROSS_COMPILE=arm-linux- ARCH=arm

This patch should fix problems.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:20:04 +02:00
Sascha Hauer 6f14f046fd pcm038: Update defconfig (add nand and ubi)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:11:38 +02:00
Sascha Hauer 2d2274015c pcm038: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:10:47 +02:00
Sascha Hauer aca7d68372 pcm043: Update defconfig (add nand and ubi)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:06:21 +02:00
Sascha Hauer 3f624056fd pcm043: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:03:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD d8f3ee103a Support for the at91sam9g20 : Atmel 400Mhz ARM 926ej-s SOC.
AT91sam9g20 is an evolution of the at91sam9260 with a faster clock
speed.
We created a new board for this device but based the chip support
directly on 9260 files with little updates.
Here is the chip page on Atmel wabsite:
http://atmel.com/dyn/products/product_card.asp?part_id=4337

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>
2010-09-20 08:58:53 +02:00