9
0
Fork 0
Commit Graph

4546 Commits

Author SHA1 Message Date
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
Sascha Hauer 8f0d0f25ed replace ET_DEBUG with pr_debug
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer b407cda60b pcm043: initialize cpufreq to 532MHz
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 922bb41a47 remove typedef cmd_tbl_t and replace it with struct command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 88351d2e4b Move tftp/nfs specific code to net/*
This adds a few bytes of binary space but is done to put
the code where it belongs to.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:31 +01:00
Sascha Hauer 085e30b4b0 remove unused file common/flash.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:31 +01:00
Sascha Hauer 426de4405c remove unused NETCONSOLE stuff
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:31 +01:00
Sascha Hauer 3f1bf1f058 Use cache functions from kernel
These cache functions have been extracted from
arch/arm/boot/compressed/head.S. The old code only worked
properly on ARMv4. Tested on ARMv4, ARMv5, ARMv6 hardware.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:23:40 +01:00
Juergen Beisert e4ee34a829 i.MX35: Fix pad control bit positions
Using these macros simplify the configuration for special GPIO usage. But they
should use correct bit positions for usage in the IOMUX_PAD() macro.

Note: These are the bit positions of the i.MX35 CPU. Not checked for the other
i.MX3x CPUs.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 16:28:06 +01:00
Marc Kleine-Budde 1e658639f1 cfi_flash: fix alignment problem
This patch fixes a alignment problem which may show during this
scenario:
- 32 or 64 attached NOR flash
- flashing an image directly from network to the nor flash

The involved network driver is "smc9111.c".

The data that comes from the network stack and should be written into
the flash isn't 32 bit alligned (at least with this network driver).
This is probably due to the 48 bit wide ethernet addresses.

However the "cfi_flash.c" driver doesn't handle this situation, and
accesses the not-alligned address with a 32 bit pointer.

This patch fixes the problem by reducing the access width if an
alligment problem between source and destination is found.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 16:27:35 +01:00
Marc Kleine-Budde 4903636f98 smc91111: fix odering of mac address read from EEPROM
On my little endian PXA270, the ethernet address is byte swapped:

correct ethernet address: 00:50:c2:80:a7:bd
broken  ethernet address: 50:00:80:c2:bd:a7

The correct value is what the sticker on the baoard and the linux driver
says. This patch fixes the problem by reading the ethaddr byte-wise from
the eeprom.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 16:27:35 +01:00