9
0
Fork 0
Commit Graph

4506 Commits

Author SHA1 Message Date
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
Sascha Hauer 7ca411ecd2 Merge branch 'next' 2010-02-01 16:16:12 +01:00
Sascha Hauer dc6550ed3b v2010.02.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 16:09:07 +01:00
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 b6e633482c remove obsolete comment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-25 08:30:53 +01:00
Sascha Hauer d2a58c2173 remove unused cdp code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-25 08:30:53 +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
Marc Kleine-Budde 860566557a i.MX35 3stack: update environemnt to support jffs and ubi/ubifs
ubifs from nand is default

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde 695539fd76 i.MX35 3stack: increase env partition to hold splash image
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde 5f2afc699b i.MX35 3stack: clean up indention of lowlevel_init
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde 884d875fb8 i.MX35 3stack: clean up indention
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde c23a05d01d i.MX35 3stack: adopt board to new mc13892 and mc9sdz60 driver interface
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde 23f4449b78 mc13892: clean up driver interface
Export mc13892_reg_read, mc13892_reg_write and mc13892_set_bits
function instead of exposing the i2c interface.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde fc268d5584 mc9sdz60: clean up driver interface
Export mc9sdz60_reg_read, mc9sdz60_reg_write and mc9sdz60_set_bits
function instead of exposing the i2c interface.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-01-18 12:19:28 +01:00
Eric Benard bc31ee222c Eukrea CPUIMX27 : add I2C and LP3972 support
This allows to properly setup the voltage on LCD pins at boot.

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
Eric Benard f8dc81ba5a I2C : add NS LP3972 PMIC support
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
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
Eric Benard e5b873753d eukrea_cpuimx27 : update timings
use optimized DDR, NOR & QuadUART timings

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
Peter Korsgaard 0dde20da20 documentation: It's U-Boot that doesn't have getopt, not Barebox
Commit a3ffa97f (rename U-Boot-v2 project to barebox) also changed the
U-Boot references to Barebox in the getopt description, which doesn't
make much sense.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-16 12:30:39 +01:00
Peter Korsgaard d8a014ccdf addpart: support @<offset>
We claim to be compatible with the kernel's cmdlinepart parser, so
support <size>@<offset> like the kernel does.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-16 12:25:13 +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 bb0d24d5b4 Add the main disk driver
This is the generic disk driver. It does not know how to access the drives.
Other low level drivers are required for this.

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 2264ac8e65 Start to add ATA support to barebox
Add the basic files, declarations and folders to bring in ATA support.

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
Juergen Beisert ae2afbb2db Consider real and protected mode in the dump file
On x86 'objdump' does not know which parts of the image are 16 bit code and
32 bit. As the default is 32 bit, it will output garbage from the 16 bit parts
(due to 16/32 bit ops are sharing the same opcodes).

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 5d591e14ef Add a tool to activate barebox as a boot loader on x86 architectures
To use barebox as a BIOS based bootloader for x86 architectures, the binary
must be patched to get it bootstrapped at runtime. The 'setupmbr' tool installs
the barebox-binary to the given device node or image file and patch it in
accordance to the needed sector information at runtime.

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 f13033d938 Add PrimeCell PL010 serial driver
Added driver for ARM PrimeCell PL010 UART

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 6f4ed9536d Add EP93xx ethernet driver
Added ethernet driver 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