9
0
Fork 0
Commit Graph

5259 Commits

Author SHA1 Message Date
Sascha Hauer 084df155d3 ARM: Add stack unwinding support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:50:07 +01:00
Sascha Hauer cad14480bf ARM: create a second level page table entry for the exception vectors
Often enough the exception vectors are not on TEXT_BASE (for example
on i.MX SoCs in internal boot mode), so the board specific code did
not map the exception vectors to 0x0 but whatever happens to be on
TEXT_BASE. Also, the current section-only mapping requires the
exception vectors to be on a 1MB boundary.
Instead, create the possibility to create second level tables and
use this to map a copy of the exception vectors in a board
independent way.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:49:47 +01:00
Sascha Hauer c28810e08f ramfs: increase chunk size to 4 kbyte
This greatly increases speed on ramfs.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:48:35 +01:00
Sascha Hauer 006d8373cb ARM scb9328: Add gpio led support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:48:31 +01:00
Juergen Beisert b01ceef2e2 LINUX16: Fix warning
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:15:22 +01:00
Juergen Beisert 263635161c LINUX16: Add selection of the VESA video mode
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:15:18 +01:00
Juergen Beisert 6db768f046 Change 'linux16' command to use getopt()
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:15:13 +01:00
Sascha Hauer b022d61491 Merge branch 'master' into next 2011-03-08 13:02:20 +01:00
Sascha Hauer 1c33aacf8a ARM: use memalign to allocate page table
We have the proper function for getting aligned memory, so use it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:33:20 +01:00
Sascha Hauer acc033704c ARM v7: Fix typos in cache-armv7.S
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:33:16 +01:00
Sascha Hauer 4b74753cce ARM v7: Fix broken mmu initialization
The armv7 specific __mmu_cache_on function accidently sets
the page table pointer with the unitialized value of r3. It seems
that often enough r3 still held the correct value from a previous
call to mmu_init allowing this bug to remain uncovered for longer.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:33:12 +01:00
Sascha Hauer 2870ec475b ARM tx28stk5: limit mmc max frequency to 25MHz
Higher frequencies do not seem to work.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:30:58 +01:00
Sascha Hauer 086b06aa51 mci mxs: no need to call mxs_mci_setup_clock_speed in init
It will be called by set_ios anyway later. Also, do not
alter host->clock field, this is none of our business.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:30:58 +01:00
Sascha Hauer 5259adf5c9 mci mxs: make the mci_host a member of mxs_mci_host
This allows for more type safety. passing a struct device_d
internally in the driver is not a good idea. Also, this
patch adds a void __iomem *regs to mxs_mci_host. dev->map_base
should not be used for register accesses.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:30:58 +01:00
Sascha Hauer 353d1ffa3d mci mxs: rename mci_pdata to host
struct mci_host is named host in the rest of the driver, so
name it like this consistently.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:30:58 +01:00
Sascha Hauer 11acf70800 mci mxs: give functions a uniq mxs_mci_ namespace
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:30:58 +01:00
Sascha Hauer bbee3017c7 mci mxs: put only once used function inline
Also, rename mci_rename after the callback it implements: stm_mci_initialize.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:28:46 +01:00
Sascha Hauer 246dbb3001 mci i.MX23/28: rename driver to mxs.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:28:46 +01:00
Sascha Hauer fdd07ccfd4 ARM Chumby: use a fixed framebuffer address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-08 12:28:12 +01:00
Sascha Hauer a4ad98bfa4 mci stmp378x: remove ifdefed code
There is no need to fill the FIFOs before starting a transfer, so
remove corresponding code which is commented out anyway. Additionally
this fixes a compiler warning with gcc4.5

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Jürgen Beisert <jbe@pengutronix.de>
2011-03-08 12:27:43 +01:00
Sascha Hauer 9e8dd8fd82 ARM tx28: add a bigger delay in display enable
To prevent turning on the display before the signals are stable.
Also, put the LCD_CS pin in the same mode as the kernel does to
prevent flickering.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Eric Bénard c28dbd811e add eukrea_cpuimx51 board
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Eric Bénard d66c359396 iomux-mx51: add more pins definitions
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Eric Bénard ae45bc211b eukrea_cpuimx35: update defconfig
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Eric Bénard 483beac970 eukrea_cpuimx35: use OTG workaround only when gadget is selected
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Eric Bénard 08684b513b eukrea_cpuimx35: switch to default env
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:58 +01:00
Sascha Hauer 5fb8333d34 ARM i.MX: cleanup boot modes
The i.MX Processors support two different boot modes, the internal
boot mode and the external boot mode. Traditionally the external
NAND boot mode is handled in drivers/mtd/nand and the internal
boot mode is handled in arch/arm/mach-imx. This patch consolidates
the handling of both boot modes in arch/arm/mach-imx so that
the user does not have to look in the mtd kconfig section for
booting from NAND. Also, selecting between internal and external
boot mode now is a clear choice.
The external NAND boot mode has been independent of the mtd nand
driver, but as the code was contained in the NAND driver it was
not possible to support booting from NAND without a mtd nand driver.
This is changed with this patch.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:57 +01:00
Sascha Hauer fd5a99267f net: use dev_* for printing network related stuff
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:57 +01:00
Jean-Christophe PLAGNIOL-VILLARD a0c1644d84 dm9000: read the mac address from the register if none are specified
as barebox can be run as a second stage the first stage may have init it
before so re-used it

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Sascha Hauer 065c2b4702 ARM i.MX35 3stack: Switch to default env
Also, enable nand driver and external NAND boot support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Juergen Beisert 1f167559e2 Fix end of expression char (some lines forgotten in v1)
Its not a bug fix, just a clean up.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Sascha Hauer 98894a866d ARM tx25: Add defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Sascha Hauer 9b9e670650 initial karo tx25 board support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Sascha Hauer af7f5e1ca9 ARM i.MX esdctl: Add some missing bitfields
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Juergen Beisert 4f72931ba4 Fix end of expression char
Its not a bug fix, just a clean up.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:56 +01:00
Juergen Beisert 01bad70e64 mini2440: Use generic environment
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:55 +01:00
Juergen Beisert b2afcf9389 mini2440: Remove some A9M2440 platform leftovers
Also adapt the config file to the default environment.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:55 +01:00
Juergen Beisert f7d49a38f1 mini2440: Add booting from NAND support
With this patch barebox can now be booted from RAM, NOR and NAND on the
mini2440 platform. 'CONFIG_S3C24XX_NAND_BOOT' must still be 'y' to be able to
boot from NAND.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:55 +01:00
Juergen Beisert 955f13760b mini2440: Use a flash based BBT as the kernel also does
The default configuration of the mini2440 in the current 2.6.37 kernel uses
a flash based BBT. So, the barebox for the mini2440 must also use one, to be
in sync with the kernel about bad blocks in the flash.

Due to the used OOB layout, the generic BBT description coming with the
framework can be used.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:55 +01:00
Juergen Beisert 5aa7b6a683 mini2440: Make it able to save a runtime environment
Without this modification saving a modified environment ends with:

mini2440:/ saveenv
saving environment
could not open /dev/env0: Read-only file system

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:55 +01:00
Juergen Beisert 12ceaff1a0 mini2440: Add MCI support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:54 +01:00
Juergen Beisert 4a10717ca9 mini2440: Add GPIO settings
This is required in order to enable booting from NAND, when there is no
other first level bootlader.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:54 +01:00
Juergen Beisert 1c21bb37bb mini2440: Add SDRAM size autodetection
If the SDRAM type will change in the future, only the 'config.h' must be
adapted to the new settings. The real size will be read back from this setting.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:54 +01:00
Juergen Beisert 018fdf06a2 mini2440: Configure debug UART pins very early
This is required in order to enable booting from NAND and to avoid any visible
garbage on the screen until the pins are really set.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:54 +01:00
Juergen Beisert 29cfc72bd9 mini2440: Add SDRAM config settings
This is required in order to enable booting from NAND and using the generic
S3C2440 setup routines.

Two types of SDRAM devices are known to be shipped by FriendlyARM. This config
should work on both of them. But it is really tested only for the HY57V561620
type.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:54 +01:00
Juergen Beisert 2fbca613d1 mini2440: Add PLL settings
This is required in order to enable booting from NAND and using the generic
S3C2440 setup routines.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:54 +01:00
Juergen Beisert fb14c8683c mini2440: Add some useful documentation
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:53 +01:00
Juergen Beisert 8c9b6ae3a0 mini2440: Fix a runtime warning when '.id=0' is used
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:53 +01:00
Juergen Beisert 70bacdbac7 mini2440: Be a little be pedantic with the include file order
Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:53 +01:00
Juergen Beisert e5902f61fc MACH-S3C2440: Speed up NAND controller for this CPU
The S3C2440 provides 32 bit access to the NAND's data. Add specific read
routines to speed up data reading and writing.

These routines are stolen from the Linux kernel.

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-03 16:15:53 +01:00