9
0
Fork 0
Commit Graph

652 Commits

Author SHA1 Message Date
Ivo Clarysse 512a1c80ce Fix nand_imx for i.MX21
Recent changes to the nand_imx driver broke it for i.MX21 systems;
the i.MX21 NAND controller is more akin to the one in i.MX27/i.MX31,
than to the one in i.MX25/i.MX35.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-29 09:33:02 +01:00
Peter Korsgaard 33b842d3ce mach-at91: reset_cpu: fix confusing reference to watchdog
On at91 we talk directly to the reset controller to reset the cpu,
rather than use the watchdog, so update the comment to match.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-26 19:00:45 +01:00
Sascha Hauer 976b4be602 Merge branch 'for-sha-mx35-3-stack-updates' of ssh://git.pengutronix.de/git/mkl/barebox into next 2010-01-19 09:25:26 +01:00
Marc Kleine-Budde 196333c1e5 i.MX35 3stack: update of defconfig
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Eric Benard 21a9d8d87e Add necessary clocks & defines to get I2C support for i.MX27
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-16 12:32:34 +01:00
Juergen Beisert 12769b3b78 Add the whole x86 architecture to the build system
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:17 +01:00
Juergen Beisert 7081093531 Add a special command to load and start a bzImage on x86
Other architectures are supporting the uImage format used by barebox's 'bootm'
command. x86 does'nt. So, we need a special command to be able to boot the
x86 specific bzImage format.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:16 +01:00
Juergen Beisert 835aa6b599 Add a low level disk drive access driver
This is a low level disk drive communication driver. It uses the real mode
BIOS found on most x86 platforms, to read and write sectors. Used by the
generic disk driver.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:16 +01:00
Juergen Beisert c3a99ec501 Bring in the time reference for the x86 platforms
This code uses the always (hopefully) existing PIT device to get the time
reference for barebox.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:16 +01:00
Juergen Beisert 46348b5d65 Add a generic PC platform
This code adds a generic x86 platform, enabling barebox to act as a
bootloader like 'GRUB'. Very minimalistic, yet. Supports only a serial console
and is tested with QEMU only.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:16 +01:00
Juergen Beisert 7dcc15e819 Add functions to be able to boot with BIOSs help
These functions are special: They are running in the 16 bit real mode world
to bring up barebox on an x86 box.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:16 +01:00
Juergen Beisert 2bdd75bd02 Add some generic functions to make x86 work
Add some generic functions to make barebox work on x86.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:15 +01:00
Juergen Beisert c7f2adaf7d Bring in the first x86 specific code
Add some generic required code to make barebox work on x86.
Note: Resetting the CPU is unfinished yet. I need some ideas how to reset
this kind of architecture gracefully.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:15 +01:00
Juergen Beisert acd2bf6bc0 Adding required architecture header files
Add architecture header files. Some of these files are empty, they only must
exists to make the build system happy.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:15 +01:00
Juergen Beisert 2dac49cea0 Adding x86 usage documentation to the tree
Adding x86 usage documentation to the tree

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:06:15 +01:00
Matthias Kaehlcke 6dff4e13a1 Add support for EDB93xx boards
Added support for the following Cirrus Logic EDB93xx boards:

EDB9301
EDB9302
EDB9302A
EDB9307
EDB9307A
EDB93012
EDB9315
EDB9315A

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:04:13 +01:00
Matthias Kaehlcke 80bbe0c66e Add support for EP9xx GPIOs
Added generic GPIO support for EP93xx SoCs

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:04:13 +01:00
Matthias Kaehlcke 3d26aca96d ARM: Add support for EP93xx SoCs
Add support for the Cirrus Logic EP93xx platform

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:04:12 +01:00
Matthias Kaehlcke d7c3ca2623 fix path specs in arch/arm/mach-arm.dox
Fix incorrect path specs in the documentation for adding an ARM based
CPU (MACH) to the tree

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>

--
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-04 11:11:55 +01:00
Robert P. J. Day d092fe6999 Remove PPC support for IDE.
Based on a suggestion from S. Hauer, we don't currently need any IDE
support, but we can always add it back later if we choose.  There
don't appear to be any other IDE-related source files in the tree.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-21 15:25:33 +01:00
Robert P. J. Day 06c5d3d9fa Remove/adjust erroneous references to CONFIG_MODULE.
The correct config variable is CONFIG_MODULES, so tweak any references
to the incorrect CONFIG_MODULE.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-21 14:21:45 +01:00
Sascha Hauer a5bd96de7d Merge branch 'pu' 2009-12-21 11:43:06 +01:00
Robert P. J. Day 0753a77e64 ARM: Correct Kconfig typo, "optimzed" -> "optimized".
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-21 09:48:13 +01:00
Sascha Hauer b6ab79549d omap3_evm: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:04 +01:00
Sascha Hauer 90fb780cf4 beagle board: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:04 +01:00
Sascha Hauer 1944f3a3e5 sdp3430: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:04 +01:00
Sascha Hauer 7657c586e1 i.MX35 3stack: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer a4420cba60 i.MX25 3stack: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer f9050f1b02 Digi a9m2440: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer 3cdd830d96 Digi a9m2410: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer 644143a9fc at91sam9263ek: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer e14b70b502 at91sam9260ek: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer c1de481425 eukrea cpuimx27: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer 5d652ef481 mmccpu: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer e4e59735ab netx: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer 3a0103dfe6 pm9263: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:45:03 +01:00
Sascha Hauer 8ea59559e3 pcm043: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:59 +01:00
Sascha Hauer 873b08971f scb9328: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:59 +01:00
Sascha Hauer 4b8c4a628c ipe337: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:59 +01:00
Sascha Hauer fe9f380406 mx27ads: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:59 +01:00
Sascha Hauer fadfb7b56e pca100: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer c173ec1f0a pcm037: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer 533da0f40f mx21ads: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer 360ecb8cc6 pcm030: Update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer 8ca42160c8 sandbox: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer d8bb33b1c2 imx ipu fb: Make fb_videomode const
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer abb8c0f1d7 fix arch_execute prototype
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-17 13:36:43 +01:00
Sascha Hauer 44738ee7ae i.MX35 3stack: select I2C drivers
Building i.MX35 3stack support without the I2C drivers
does not make much sense as the board will trigger a
watchdog timer soon after start.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-17 13:34:55 +01:00
Sascha Hauer c73c32b72d ppc bitops: Fix compiler warning
Our version of ppc bitops produces the following compiler warnings:

/ptx/work/octopus/WORK_1/sha/u-boot/barebox/arch/ppc/include/asm/bitops.h:
In function 'ext2_find_next_zero_bit':
/ptx/work/octopus/WORK_1/sha/u-boot/barebox/arch/ppc/include/asm/bitops.h:294:
warning: '__swab32p' is static but used in inline function 'ext2_find_next_zero_bit' which is not static

Looking at the kernel ext2_find_next_zero_bit is defined as
generic_find_next_zero_le_bit which is in generic kernel code.

We currently do not need this, so do the very same define to silence the
compiler. If somebody ever needs this function, the resulting error
should give him a hint what to do.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-17 13:30:22 +01:00
Sascha Hauer f6ae481846 Merge branch 'for-sha-eabi-fixes' of git://git.pengutronix.de/git/mkl/barebox 2009-12-17 12:23:48 +01:00
Sanjeev Premi ee44062171 omap3evm: Minimal default configuration
Created a minimal configuration that just gets the
board up and running.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-17 12:13:21 +01:00
Marc Kleine-Budde b72645bfa5 arm/lib: add missing abi helper functions __aeabi_idivmod, __aeabi_uidivmod
With EABI we have two new helper functions __aeabi_idivmod and
__aeabi_uidivmod. This patch adds them to barebox.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-16 15:39:12 +01:00
Marc Kleine-Budde 8fe23d32d9 arm/lib: add eabi names of helper functions
Since commit e2b4a792f8, we don't
undoncitionally link with OABI. If now EABI is selected there are a
number of missing helper functions, because they have new names now.

This patch add the abi names to the existing helper functions.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-16 15:39:11 +01:00
Sascha Hauer a5c776de1d Merge branch 'for-sha-collateral' of git://git.pengutronix.de/git/mkl/barebox 2009-12-16 08:39:55 +01:00
Peter Korsgaard cfbcdac01f sandbox: common: fix device names for environment files (-e)
The env%d string got created, but the the hardcoded "env" string was
always used instead, causing errors with loading the env.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-16 08:37:28 +01:00
Marc Kleine-Budde ca8ec6c9d5 Cleanup some more collateral damage from renaming
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-15 21:23:42 +01:00
Juergen Beisert dac84c7b9d documentation updates
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 11:32:02 +01:00
Luca Ceresoli f3d6e2f8f9 Turn on CONFIG_CMD_MEMORY in Beagle Board defconfig.
It would otherwise generate an image whose loadb command is
broken.

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:32:29 +01:00
Sascha Hauer 9491ec7800 Cleanup colleteral damage from renaming
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:19:08 +01:00
Sascha Hauer a3ffa97f40 rename U-Boot-v2 project to barebox
This has been done with the following script:

find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
	-e 's/u2boot/barebox/g' \
	-e 's/U2Boot/barebox/g' \
	-e 's/U-boot V2/barebox/g' \
	-e 's/u-boot v2/barebox/g' \
	-e 's/U-Boot V2/barebox/g' \
	-e 's/U-Boot-v2/barebox/g' \
	-e 's/U_BOOT/BAREBOX/g' \
	-e 's/UBOOT/BAREBOX/g' \
	-e 's/uboot/barebox/g' \
	-e 's/u-boot/barebox/g' \
	-e 's/u_boot/barebox/g' \
	-e 's/U-Boot/barebox/g' \
	-e 's/U-boot/barebox/g' \
	-e 's/U-BOOT/barebox/g'

find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
	xargs -0 -r rename 's/u[-_]?boot/barebox/'

It needs some manual fixup following in the next patch

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Juergen Beisert f522d42597 Some doxygen related fixes
Nishanth Menon wrote:
> no signed off by and no diffstat?

Ups.

> can you use git-format-patch to send please? it is easier to review.

Sure. Here it comes:

jbe

------8<---------8<---------8<---------8<---------8<---------8<----

Subject: [PATCH] Some doxygen related fixes:
  - fix a few doxygen comments that are used in a wrong way
  - move some pages and their content to a better place in the
    generated documentation

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-14 09:43:02 +01:00
Marc Kleine-Budde e2b4a792f8 arm/Makefile: don't set ABI unconditionally to "apcs-gnu"
Since commit 67b2697613 we have
configureable ABI support in the bootloader, so don't set apcs-gnu
unconditionally.

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
CC: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-11 11:49:29 +01:00
Sascha Hauer 899aaa52aa pcm038: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:02 +01:00
Sascha Hauer 21b12270f8 i.MX Nand: fix bit clearing
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:02 +01:00
Sascha Hauer 3111655cb1 i.MX31: Fix CCM_UPCTL register offset
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer f5caf0c5b2 omap: Use correct label in arch/arm/Makefile
Currently all omap boards reside in boards/omap. This is
probably not a good idea as it leaves no good place to
put custom omap boards in. Anyway, make the boards compile
again until someone provides a better solution.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 558c13d29a omap: Add missing include
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 4300cd1729 pcm043: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 85520cc9f6 pcm043: add display support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 8ad5fe6ca4 introduce GENERIC_GPIO label
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer f601b74d01 complete i.MX GPIO support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Sascha Hauer 6bd5caf6c6 i.MX: split out iomux-v1 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-10 12:15:01 +01:00
Juergen nogit Beisert 4f24fe1b52 fb: Add a i.MX IPU framebuffer driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-09 17:05:55 +01:00
Eric Benard cf6399b2aa Fix imx_nand_set_layout for i.MX27
FMCR is (*((volatile u32 *)(x))) (0x10027814) and thus this leads
to a data abort.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-09 15:35:22 +01:00
Sascha Hauer d870137a17 i.MX flash header: make it work on i.MX35
The flash header is used on different i.MXs other than the
i.MX25, so rename it. Also, add a possibility to put a flash
header on different offsets (0x100, 0x400 and 0x1000), needed
for different boot mediums.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 11:12:51 +01:00
Sascha Hauer 6986aa092e i.MX Nand: Set correct datawidth/pagesize in CCM module
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:47 +01:00
Eric Benard 6ba4c11f91 Eukrea CPUIMX27 : update defconfig
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:34 +01:00
Eric Benard 4b3e650d10 Eukrea CPUIMX27 : Add MMU support
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:23 +01:00
Eric Benard 2adeb59c22 Eukrea CPUIMX27 : add console on Quad UART support
The SOM can integrate a 16550 Quad UART which can be used
for serial console.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:18 +01:00
Eric Benard c24fa6b117 Eukrea CPUIMX27 : add NOR flash size configuration
64MB strataflash consist in 2x256Mb flashs. So we must declare
2 cfi_flash in order to have both 256Mb flash geometry properly
detected. For flash <= 32 MB we prefer not to register the second
cfi_flash which would be an alias of the first one.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:13 +01:00
Eric Benard bf33c69764 Eukrea CPUIMX27 : add SDRAM size choice
Add a menu entry and proper settings for 128MB and 256MB
RAM size.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:09 +01:00
Juergen Beisert 81b044f3b6 Adding IPU clock query functions for i.MX31 and i.MX35
Adding IPU clock query functions for i.MX31 and i.MX35
(used to generate their LCD timing).

BTW: All functions are declared with the 'ulong' return type, but some are
defined with 'unsigned long'. And yes, its the same, but IMHO one type should
be used for all.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-25 08:29:40 +01:00
Juergen Beisert 19b98a87fc Adding some documentation
Add some (helpful?) comments about the meaning of 'framebuffer' and
'framebuffer_ovl' structure members.

Signed-off-by: Juergenn Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-25 08:29:40 +01:00
Marc Kleine-Budde 1177321b22 imx35-regs: add CGR1 helper values
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:31 +01:00
Marc Kleine-Budde 3d381d7955 imx35-regs: add base address for I2C1
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:31 +01:00
Marc Kleine-Budde 8dd761338f imx-regs: define IMX_FEC_BASE
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:30 +01:00
Marc Kleine-Budde 590fa6e29c speed-imx35: add function imx_get_i2cclk
Because i2c is connected to ipg_perclk om MX35 it's calls
imx_get_ipg_perclk().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:30 +01:00
Marc Kleine-Budde bb3f431deb speed-imx35: the gptclk is connected to the ipgclk
The gpt clock on MX35 is connected to the ipg clock. But the
implementation uses the ipg_per clock.

This patch lets the gpt use the ipg clock and introduces the
ipg_per clock.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-24 10:01:30 +01:00
Jean-Christophe PLAGNIOL-VILLARD 71306852fd arm: generate mach-types.h instead of static version
mach-types against v2.6.32-rc5

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-03 13:01:46 +01:00
Jean-Christophe PLAGNIOL-VILLARD 67b2697613 arm: add configurable AEABI support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-03 13:01:27 +01:00
Sascha Hauer 73d57b1d35 list: remove duplicated list.h
We accidently have two list implementations in the tree:
include/list.h and include/linux/list.h. This patch moves
the latter (newer one) to include/linux/list.h.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:48:53 +01:00
Jean-Christophe PLAGNIOL-VILLARD 7dcef1bb20 arm: update cpu tunning
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:47:39 +01:00
Jean-Christophe PLAGNIOL-VILLARD a4292fe7cf arm: add endian config support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:47:32 +01:00
Jean-Christophe PLAGNIOL-VILLARD c7ce98dc8d arm: use -marm as default when it's possible
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:47:24 +01:00
Jean-Christophe PLAGNIOL-VILLARD 159c92d140 arm: remove non used cpu-y
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:47:12 +01:00
Jean-Christophe PLAGNIOL-VILLARD d4a54dfa42 arch/arm/Makefile: cleanup
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:46:09 +01:00
Jean-Christophe PLAGNIOL-VILLARD bab3a3b976 arm: introduce CPU CONFIG from linux
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:45:55 +01:00
Jean-Christophe PLAGNIOL-VILLARD eea19dc488 at91: Atmel Ref board fix config MACH to match with mach-types
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 49c95cf86a arm: move config ARCH_TEXT_BASE and BOARDINFO to mach Kconfig
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD be6966d51d netx/kconfig: inverse the board selection
instead of select first the board which will select the arch, now
first choice the arch to filter the possible boards

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 6a55694c03 s3c/kconfig: inverse the board selection
instead of select first the board which will select the arch, now
first choice the arch to filter the possible boards

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 6e8345fc68 imx/kconfig: inverse the board selection
instead of select first the board which will select the arch, now
first choice the arch to filter the possible boards

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD 76f9648ca4 at91/kconfig: use similar kconfig presentation
keep the rm9200 in its own Kconfig until we move it to the at91 API

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD e89a462909 arm/kconfig: inverse the board selection
instead of select first the board which will select the arch, now
first choice the arch to filter the possible boards

as it's already done for omap

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-11-02 14:44:43 +01:00
Jean-Christophe PLAGNIOL-VILLARD af88baca30 at91: add support for the at91sam9263ek board of Atmel
Here is the page on Atmel website:
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4057

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice VILCHEZ <patrice.vilchez@atmel.com>
Cc: Sedji Gaouaou <sedji.gaouaou@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-02 08:31:52 +01:00
Jean-Christophe PLAGNIOL-VILLARD 2e092539f5 pm9263: add nand support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Ilko Iliev <iliev@ronetix.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-02 08:23:02 +01:00
Sascha Hauer 78c8011603 i.MX1: do not try to print non existent reg CID
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:19:36 +01:00
Sascha Hauer e05858f009 i.MX21: fix compiler warning
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:19:10 +01:00
Sascha Hauer 40a5f3de4e Merge branch 'for-sascha' of git://uboot.jcrosoft.org/u-boot-v2 into from-jean
Conflicts:
	board/a9m2440/a9m2440.c
	board/pcm043/pcm043.c
	drivers/nand/nand_imx.c

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:10:56 +01:00
Juergen Beisert f5194c3a3e A9M2440: Be able to configure things baseboard dependent
There is no really generic way to configure the S3C2440 CPU with fits to all
possible baseboards. This patch separates things into the CPU card related and
baseboard related things. This ensures to be able to configure things for
each possible baseboard without modifying/patching the main card source.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
2009-10-28 09:44:42 +01:00
Juergen Beisert 8a7f837355 A9M2440: Use external GPIO settings to setup the SDRAM
The generic A9M2440 comes in many SDRAM variantes. Two GPIO pins describing
the populated SDRAM devices. This patch adds some code to query the setting
and setup a correct SDRAM configuration out of four possible variants.

Due to the lack of hardware the 16 MiB and 128 MiB case is untested yet.

Due to the 32 MiB configuration we must link the u-boot-v2 always to
address 0x31fc0000. Even for the 64 MiB and 128 MiB configuration.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
2009-10-28 09:44:42 +01:00
Juergen Beisert afae995ef9 S3C24xx: Provide a generic way to detect memory size
This patch adds code to determine the current available SDRAM size. It relies
on other routines setting up the SDRAM controller, because it only read back
their settings.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
2009-10-28 09:44:41 +01:00
Jean-Christophe PLAGNIOL-VILLARD daad436bf7 [M68K] Move include/asm-m68k/{arch,proc}-* to arch/m68k/*/include/{mach,proc}
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:23:26 +02:00
Jean-Christophe PLAGNIOL-VILLARD 139b569c07 [M68K] move include/asm-m68k to arch/m68k/include/asm
Move platform independent header files to arch/m68k/include/asm, leaving
those in asm/arch* and asm/proc*.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:30 +02:00
Jean-Christophe PLAGNIOL-VILLARD e988d5d990 [PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:30 +02:00
Jean-Christophe PLAGNIOL-VILLARD abd9cd4945 [PPC] move include/asm-ppc to arch/ppc/include/asm
Move platform independent header files to arch/ppc/include/asm, leaving
those in asm/arch*.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD b4521685bf [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD e2a7b79cfc [SANDBOX] move include/asm-sandbox to arch/arm/include/sandbox
Move platform independent header files to arch/sandbox/include/asm, leaving
those in asm/arch*.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD 37e96f83bc [BLACKFIN] move include/asm-blackfin to arch/blackfin/include/asm
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:28 +02:00
Jean-Christophe PLAGNIOL-VILLARD f6a579da9c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:25 +02:00
Jean-Christophe PLAGNIOL-VILLARD 9956bdf77d arm: merge proc-armv/ptrace.h and ptrace.h in one file
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 12:12:48 +02:00
Jean-Christophe PLAGNIOL-VILLARD 67254a403f [ARM] move include/asm-arm to arch/arm/include/asm
Move platform independent header files to arch/arm/include/asm, leaving
those in asm/arch* and asm/proc* alone.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 12:12:47 +02:00
Jean-Christophe PLAGNIOL-VILLARD a08615b2da at91sam9: switch to the same api as the kernel
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD 7ac3805353 at91: add cpu devices common api
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD 81362c2b2a at91sam9: move to at91
this will allow to add at91rm9200 with the same api as done in the kernel

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:36 +02:00
Sascha Hauer 420a3173f0 commands: remove maxargs
No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 16:18:33 +02:00
Sascha Hauer 63e01b4969 call getopt_reset only once
instead of calling getopt_reset in each command,
call it only once before calling the command.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer 87e01f28cc commands: return COMMAND_ERROR_USAGE
instead of calling u_boot_cmd_usage in each command to safe
space.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer c67926c239 pcm038 defconfig update
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-12 15:29:32 +02:00
Sascha Hauer 2dbb2d1f09 sandbox: update defconfig
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-12 14:17:15 +02:00
Sascha Hauer c1cf740bec sandbox: use libc ioctl for os part
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-12 14:14:53 +02:00
Sascha Hauer d13f32d50a imx: replace imx specific gpio functions with generic ones
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-02 15:34:03 +02:00
Sascha Hauer 3820307eb0 rename dma macros
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:57 +02:00
Sascha Hauer 24c51dfb3a mx25: remove duplicate function, fix perclk values
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:11 +02:00
Sascha Hauer 6e44db23fe mx25: implement clko command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:34:06 +02:00
Sascha Hauer 019b16fd5f pca100: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-09 11:51:00 +02:00
Sascha Hauer e6615c5e32 add mx25 3ds defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:56 +02:00
Sascha Hauer 55e94293d5 add Freescale MX25 3stack board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:56 +02:00
Sascha Hauer 13d3db22d3 Add MX25 support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer fd18bc87c2 use _stext instead of TEXT_BASE
When checking if we have to relocate ourselves, use _stext instead
of TEXT_BASE. TEXT_BASE might be the location of a pre image header.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer 222abdccec i.MX: Use more accurate decode pll function from kernel
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:51 +02:00
Sascha Hauer ef523775df i.MX: Do not dump clocks on startup.
Instead, add a command dump_clocks to print the clocks during
runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:52:00 +02:00
Sascha Hauer e2c8e8a180 Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:51:30 +02:00
Sascha Hauer 49ff3691b4 arm: Add bootu command
bootu command to start raw (uncompressed) Linux images

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:51:01 +02:00
Sascha Hauer 5db3059ebc arm: make 'bootz' configurable
also, fix compilation with bootm disabled

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:50:31 +02:00
Sascha Hauer 6df1e4b20a armlinux.c: refactor
- remove ifdeffery
- make locally used functions static
- coding style cleanup

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:27:46 +02:00
Sascha Hauer 5e1067792b armlinux: remove unused atags
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:27:46 +02:00
Sascha Hauer 270c2673a1 arm: implement optimized string functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-18 15:45:00 +02:00
Sascha Hauer 66457f42e4 return is not a function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-18 15:44:53 +02:00
Sascha Hauer 224d499e7e bootz: Speed up bootz command
We used to read the whole file with zImage booting. When the
file is really a device which is much bigger than the zImage
it's quite slow. Read the image size from the image instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-13 10:43:20 +02:00