9
0
Fork 0
Commit Graph

4432 Commits

Author SHA1 Message Date
Ivo Clarysse f5ad08466d MX21ADS: Support LCD panel
This patch enabled support for the Sharp QVGA LCD panel of the MX21ADS board.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-02 12:07:56 +02:00
Ivo Clarysse 2b7effde81 i.MX21: support framebuffer
This patch allows using the i.MX (LCDC) framebuffer driver on boards
using an i.MX21 SoC.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-02 12:07:56 +02:00
Sascha Hauer c1894b4bc7 Merge branch 'pu' into next 2010-04-02 12:07:48 +02:00
Ivo Clarysse d15dd50c5c MX21ADS: Support booting from NAND
Support booting an MX21ADS system from NAND.

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-31 08:25:30 +02:00
Sascha Hauer 0b54f2cdb1 nand_imx: clear INT_MSK to fix i.MX21 nand boot
For some weird reason this fixes nand boot on i.MX21. Since
interrupts are globally disabled it doesn't hurt on other
SoCs.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-31 08:24:20 +02:00
Uwe Kleine-König f4a5a39663 trivial: fix command case for erase usage line
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:27:04 +02:00
Sascha Hauer e3b2046685 netx eth driver: remove local definition of ARRAY_SIZE
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer 844ca16e1f pcm043: enable l2x0 cache
Also, initialize the MMU in a postcore_initcall to enable
it earlier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer be00ed538c add l2x0 cache support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer bcaabae0f6 ARM: Add a wrapper around dma_* functions
This is a preparation to add second level cache support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:04 +02:00
Sascha Hauer 6f5a6b591a pass arguments to dma_* as unsigned long as the kernel does
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer cf2703a6fb ARM: replace cleanup_before_linux with the generic shutdown_barebox function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 56299cc7fd remove now unused arch_execute
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 524e5c3d15 go command: shutdown barebox before calling an application
Also, do not allow to continue barebox after returning from the
application since we don't know anything about the state we are in.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 2bd7418a04 blackfin: implement arch_shutdown call
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer edf4e51a82 introduce a arch_shutdown call and call it from shutdown_barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer e723f79cb7 make panic and hang __noreturn functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer e11c07c339 make reset_cpu a __noreturn function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 6eb741a2e1 hush: allow fancy prompts
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 66e4e9242b hush: only remove backslashes introduced from glob
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer a9ff0c8e8b echo: add -e option support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:59 +02:00
Sascha Hauer adaffb5b0c add process_escape_sequence function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer 362d6375aa add snprintf function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer 6d079ae2ca add unlzo support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer 3348c81992 add unaligned access support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer d03831887e imx_nand: use memcpy for copying from/to buffer
We do not need to use memcpy32 in read_buf/write_buf because
in these functions we only access SDRAM and not the internal SRAM
buffer.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer d5578b8179 nand_imx: Speed up sequential read
When reading a page from nand prefetch the next page afterwards to
keep the controller busy. This way we can improve sequential reading
from NAND which is the common case for barebox.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer 9d9be6ba9b nand_imx: use optimized memcpy
The internal SRAM buffer of the i.MX NAND controller does not
allow byte accesses. We use the memcpy32 function to handle this.
If we have assembler optimized string functions we can do better
because they won't do byte accesses when source and target are word
aligned.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer 2477fb12e9 hush: Fix return code when calling 'exit' inside loops
v2: Do not exit from all scripts but only the current one

This fixes the case:

barebox:/ cat /test
if [ 0 = 0 ]; then
	exit 1
fi
barebox:/ /test
barebox:/ echo $?
0
barebox:/

Also, remove code to not allow exit from main shell. The for(;;) loop
in common/startup.c will bring us back anyway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 12:51:44 +02:00
Márton Németh c46c96b0cd u-boot-v2: fix typos in documentation
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-29 11:37:37 +02:00
Wolfram Sang 2a9b63f283 Documentation: fix typos & correct symlink
I found the wrong symlink and activated the spell-checker while I was here.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-25 08:40:34 +01:00
Sascha Hauer c6cdbe71c9 Merge branch 'master' into next 2010-03-22 09:20:34 +01:00
Eric Benard ce2411432e i.MX25 : fix define name for clock frequency
CONFIG_MX35_HCLK_FREQ -> CONFIG_MX25_HCLK_FREQ

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-22 09:20:07 +01:00
Eric Benard 994f82bf9a i.MX25 : change IOMUX for LD16 and LD17
This allows the iomux to reconfigure these pins which are opendrain at
power on and thus can't drive the LCD.

Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-22 08:35:01 +01:00
Eric Benard 8d6577aeb2 i.MX25 : add lcdc clock support
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-22 08:35:01 +01:00
Sascha Hauer 78127b0a97 remove unused file arch/arm/cpu/cache.S
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-18 08:14:03 +01:00
Sascha Hauer a5189af297 armv5: use proper cache flush function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-18 08:12:19 +01:00
Juergen Beisert c6f4ea0dcf Make some help comments less confusing
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-18 08:11:06 +01:00
Jaccon Bastiaansen d1e82845b3 Barebox does not boot on iMX21ADS board
Barebox crashes during startup, because the SDRAM controller has not been
initialized.

Signed-off-by: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-11 14:54:43 +01:00
Sascha Hauer 9569fc3670 Merge branch 'next' 2010-03-03 08:59:11 +01:00
Sascha Hauer af0ee369c1 barebox-2010.03.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-03 08:49:01 +01:00
Sascha Hauer 3b9f0a6869 pcm038: initialize PLLs from internal RAM
The PLL setup occasionally fails when the setup code runs
from SDRAM, so copy a little assembler helper function to
SRAM and execute it there.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-03 08:41:07 +01:00
Matthias Kaehlcke 53eaaf0f82 edb93xx: Fix SDRAM precharge
edb93xx SDRAM initialization: Issue a precharge all command before forcing the
precharge of all SDRAM banks. Write to the SDRAM in order to force a precharge,
reading causes the edb93xx boards to hang

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-26 08:23:30 +01:00
Sascha Hauer 7736782fef Merge branch 'nor' into next 2010-02-18 08:30:45 +01:00
Marc Kleine-Budde 6351ff2eff common.h: add compile time check helper functions
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:33 +01:00
Marc Kleine-Budde aadc4c2990 io.h: update definitions of __raw_{read,write}*
This patch updates the definitions of the __raw_read and __raw_write
functions so that "sparse" doesn't complain.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:33 +01:00
Marc Kleine-Budde 8beeb199d7 import recent include/linux/compiler*.h
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:33 +01:00
Marc Kleine-Budde 9762ce53b2 ioreadsb: put the whole ioreadsb function into the .text.readsb section
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:33 +01:00
Marc Kleine-Budde ccc2adda4c i2c.h: fix typo in copyright
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:33 +01:00
Marc Kleine-Budde 75478b15bf start-arm: cleanup: proper indention
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:29 +01:00