9
0
Fork 0
Commit Graph

4757 Commits

Author SHA1 Message Date
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 c141e5bdd6 Add the driver for the i.MX23 debug UART
The i.MX23 comes with a special UART dedicated for debugging purposes. This one
is mostly used for the console the user can reach.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2010-10-11 15:42:19 +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 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 5492d01eaa mci: Add i.MX27/31 driver
Add i.MX27/31 driver

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:27 +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
Juergen Beisert 916a1ca70a Add i.MX23 MCI card support
Adding MCI card support for STM378x/i.MX23 CPUs. This is for reference only,
as this architecture is currently not part of barebox (but will coming soon).
Its tested on the i.MX23 based ChumbyOne.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:27 +02:00
Juergen Beisert 7051227d2e Add MCI card support to barebox
This adds the basic framework to handle MCI cards in barebox.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:27 +02:00
Juergen Beisert 63690cc406 Don't try to guess the size of a disk if its size value is already given
Guessing the size of an attached harddisk (access via x86 BIOS) was needed
due to the fact, barebox can't query this information from the BIOS easily.

But with the SD/MMC cards, there will be a second user of the generic disk
handling routines. And with this media it is very easy to know its size.

This patch provides a workaround to keep the guessing feature if the size of
the registered disk is 0. If it is not 0, the given value will be used instead.

Note: This is in preparation to add MCI card support, which can be handled
like a disk drive.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:27 +02:00
Juergen Beisert 5340589afc Don't use a sector buffer on stack
Using a temp. buffer for a disk sector on the stack, seems not work. Doing so
lets the system run crazy (the stack seems to be destroyd). Don't know the
correct stack handling on ARM, but (IMHO) I also can exclude any writing across
the buffer boundaries.

Using a temp. buffer via malloc() runs also on ARM.

Note: This patch was required to add MCI card support, which can be handled
like a disk drive.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:26 +02:00
Juergen Beisert 0a3b615151 Make the disk driver less noisy
In real life this output is only a "nice to have", but most of the time
its useless and confusing. So, make it a debug feature for the interested
developer.

Note: This is in preparation to add MCI card support, which mostly come with
a partition table and can be handled like a disk drive.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:26 +02:00
Juergen Beisert 19b485abbe x-functions do not return in case of failure.
Remove error handling, because in case of failure the xzalloc() function
does not return.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:26 +02:00
Jean-Christophe PLAGNIOL-VILLARD a14c018d11 MAKEALL: allow CROSS_COMPILE*=""
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-08 15:43:09 +02:00
Jean-Christophe PLAGNIOL-VILLARD 24b499f3fe image: factorise image printing contents
Copied from U-Boot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-10-08 00:06:23 +08: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
Jean-Christophe PLAGNIOL-VILLARD 2fbdb02b11 image: rename IH_CPU to IH_ARCH to be more concistant
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-10-08 00:03:56 +08:00
Jean-Christophe PLAGNIOL-VILLARD ad4da3a4a1 image: factorise string helper
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-10-08 00:03:22 +08:00
Sascha Hauer 6d2812b93d Revert "image: factorise string helper"
This reverts commit 7bd7d59e60.
2010-10-07 14:13:21 +02:00
Sascha Hauer 6c4b1b6da0 Revert "image: rename IH_CPU to IH_ARCH to be more concistant"
This reverts commit aba80a2d2d.

Conflicts:

	include/image.h

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-07 14:13:10 +02: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
Sascha Hauer 884f4d47c6 Revert "image: factorise image printing contents"
This reverts commit d424ce77f5.
2010-10-07 14:09:21 +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
Sascha Hauer 43c1881110 Merge branch 'next' 2010-10-04 08:32:52 +02:00
Sascha Hauer 849e910d07 Release v2010.10.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 13:00:45 +02:00
Jean-Christophe PLAGNIOL-VILLARD e9a5beff21 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-10-02 12:56:17 +02:00
Sascha Hauer c7f15e86cf pcm038: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:53:11 +02:00
Sascha Hauer c8d3f5663d pcm043: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:52:54 +02:00
Sascha Hauer 560253bbe1 guf-neso: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:52:40 +02:00
Sascha Hauer a992155c62 twl4030: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:52:26 +02:00
Sascha Hauer bd4ee84b1b scb9328: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:52:12 +02:00
Sascha Hauer fce89665e2 netx eth: Fix compilation
Also, replace __FUNCTION__ with __func__

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:50:05 +02:00
Sascha Hauer ac4c5e36bd ep93xx net driver: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:48:35 +02:00
Marek Belisko e21ff5c394 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-10-02 12:47:43 +02:00
Sascha Hauer d87b8617b1 rename __initdata to __early_initdata
The __initdata define was present before Jean-Christophe
added it as fake value for Linux compatibility. Rename
the previous define to a different name to avoid
clashes

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:46:43 +02:00
Jean-Christophe PLAGNIOL-VILLARD 25c7e9e54a blackfin: remove duplicated PAGE_SIZE define
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:45:51 +02:00
Sascha Hauer b610fbf17d fec_mpc5200: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:45:10 +02:00
Jean-Christophe PLAGNIOL-VILLARD 81d2b141e7 MAKEALL: make it generic
it's allow you to compile specific defconfig or ARCH or all
as

CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL at91sam9263ek_defconfig
CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL

The cross-compiler can be specify via
    CROSS_COMPILE               default
    CROSS_COMPILE_<arch>        arch default
    CROSS_COMPILE_<target>      deconfig specifc

it will be evaluated in the invert order

or via config

you can specify it via env CONFIG or option -c (overwrite env)

CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL at91sam9263ek_defconfig
CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL

and for all

CONFIG=./MAKEALL.cfg ./MAKEALL

you can specify via env or option
env       option
ARCH      -a      arch
CONFIG    -c      config
JOBS      -j      jobs
BUILDDIR  -O      build dir
LOGDIR    -l      log dir

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:43:47 +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 b82ee742d0 i2c-imx: wait for STOP before disabling controller
Makes sure that the STOP condition is transmitted before the I2C
controller is disabled.
This fixes a problem where writing to an external EEPROM was not working
because the EEPROM waits until the STOP before initiating the write
internally.

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
Jean-Christophe PLAGNIOL-VILLARD 5156e781bd import __stringify from linux
update the current code

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-29 09:30:32 +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 a19d7809d7 imx-ipu-fb: set default bits per pixel at 16 for mx3
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 c7173d0f0f mk68: rename macro __M68K__ to __m68k__ as it's prodive by gcc
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 09:51:15 +02:00
Jean-Christophe PLAGNIOL-VILLARD 3531d4acf1 ipe337: fix default env
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 09:51:15 +02:00