9
0
Fork 0
Commit Graph

4506 Commits

Author SHA1 Message Date
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
Marc Kleine-Budde 1568957050 drivers/video/Makefile: cleanup proper indention
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:25 +01:00
Marc Kleine-Budde d6f04bf3c8 arm/cpu/Makefile: cleanup: proper indention
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:18 +01:00
Marc Kleine-Budde d9cdb7fb8c arm/Makefile: keep list of boards sorted
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 15:22:42 +01:00
Marc Kleine-Budde fda86e70c8 arm/Kconfig: removed unused TAG options
The tags for the command line parameters are not used, so let's remove them:
- CMDLINE_TAG
- SETUP_MEMORY_TAGS
- INITRD_TAG

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 15:22:42 +01:00
Marc Kleine-Budde 16a14a7b81 arm/Kconfig: delete trailing whitespace
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 15:22:42 +01:00
Juergen Beisert 2e6eb64a39 Fix compile time errors when DEBUG is defined
If the DEBUG macro is defined the compiler complains about a missing
'ipu_base' variable.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-12 08:30:58 +01:00
Matthias Kaehlcke fbff75575d edb9302(a): Tweak PLL settings
Previous code ran the edb9302(a) boards with the PLL same settings as the
edb9301, at 166MHz core and 66MHz system bus clock. In difference to the edb9301
board the edb9302(a) is equipped with an EP9302 processor, which can be clocked
at higher rates than the EP9301. Therefore we can configure the edb9302(a) with
the same PLL settings as the other non-edb9301 boards, namely at 200MHz for
the core and 100MHz for the system bus clock.

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-12 08:16:21 +01:00
Matthias Kaehlcke c5b99bce5d edb93xx: Fix SDRAM initialization
Before programming the SDRAM mode registers, mode register update mode must be
selected by setting the MRS bit and clearing INIT in GlConfig

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-12 08:03:26 +01:00
Matthias Kaehlcke 8676736218 EP93xx: Fix system controller register definitions
EP93xx: The system controller register definition doesn't take into account a 4
byte gap between ChipId and SysCfg, in consequence all accesses to syscon registers
ahead of ChipId fail. Fix this by inserting a filler field

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:42:06 +01:00
Matthias Kaehlcke 63c194ad57 edb93xx: Avoid stack usage in early_udelay()
edb93xx: The purpose of early_udelay() is to provide delay functionality in the
early board setup, when the stack isn't set up yet. With some compiler versions
the current implementation makes use of the stack and ends up crashing. Fix this
by removing an explicit division from early_udelay()

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:42:06 +01:00
Matthias Kaehlcke 796bb21f59 edb93xx: Enable UART1
edb93xx: according to the datasheet UART1 needs to be enabled explicitly

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:42:06 +01:00
Sascha Hauer e6b8bdc0c5 cfi_flash: move include/cfi_flash.c next to driver
This file has no useful things for others than the driver,
so move it next to the driver and remove the corresponding
include from other files.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:37:50 +01:00
Sascha Hauer 582da05383 cfi_flash: remove old driver and switch to new one
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:37:49 +01:00
Sascha Hauer 8b82899341 cfi_flash_new: make code more readable, return is not a function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:37:49 +01:00
Sascha Hauer 089066237d cfi_flash_new: generate flash erase dots in common function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:37:49 +01:00
Sascha Hauer 146ba46d41 cfi_flash_new: Safe indention level by bailing out earlier in error case
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:37:49 +01:00
Sascha Hauer 4e459d98ef cfi_flash_new: Fix Intel chips
There was some mixup when to to a full status check and
when to do a status check only. Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-08 14:37:49 +01:00
Sascha Hauer 0c116854b7 remove outdated MAINTAINERS file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-04 09:44:26 +01:00
Matthias Kaehlcke e1e9fc4ce9 ep93xx eth driver: dump_xxx() cleanup
ep93xx eth driver dump_xxx() functions: Use %p to print pointer values,
remove unnecessary parentheses and declare as static

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-03 12:12:25 +01:00
Matthias Kaehlcke 7f9bde68aa ep93xx eth driver: Remove unnecessary parentheses in constant definitions
ep93xx eth driver: Remove unnecessary parentheses in definition of the constants
MII_ADDRESS_MAX and MII_REGISTER_MAX

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-03 12:12:25 +01:00
Matthias Kaehlcke e1cd82c07e ep93xx eth driver: Reorder functions to eliminate need for prototypes
ep93xx eth driver: Define ep93xx_eth_send_packet() and ep93xx_eth_rcv_packet()
before ep93xx_eth_probe(), and eliminate their prototype declarations

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-02 08:34:57 +01:00
Matthias Kaehlcke 0e46c2673e ep93xx eth driver: Fix dump_xxx_queue() parameter list
ep93xx eth driver: Add missing parameter to dump_rx_status_queue(),
dump_tx_descriptor_queue() and dump_tx_status_queue()

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-02 08:34:57 +01:00
Sascha Hauer 6cbf70a01a Merge branch 'pu' 2010-02-01 17:25:59 +01:00
Sascha Hauer 7d3da14a7e i.MX: select armv6 for i.MX31/35
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer e304879aba add armv6 support to the konfig system
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 42f4ca1c85 put only once used function inline
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00