9
0
Fork 0
Commit Graph

5293 Commits

Author SHA1 Message Date
Sascha Hauer f103a9843e ARM: move bootz code to its own file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:58 +02:00
Sascha Hauer bb7fff04af ARM: move bootm code to its own file
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:57 +02:00
Sascha Hauer 4ade5f8670 ARM: factor out a start_linux function
This can be shared between the different boot commands.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:27:25 +02:00
Sascha Hauer cf76694df6 ARM: Add missing parameter name in armlinux_set_serial
Also, make it a static inline function if compiled without
arm linux support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 16:26:44 +02:00
Sascha Hauer 691dd27f7a Merge branch 'next' 2011-04-04 14:53:08 +02:00
Sascha Hauer 6603a7defe Release v2011.04.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 14:51:51 +02:00
Jean-Christophe PLAGNIOL-VILLARD e9c315ee9e at91sam9263ek: update defconfig
enable nand and ubi support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-04-04 14:50:53 +02:00
Franck JULLIEN 6402171c90 Add a generic board template for the Nios2 arch
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-30 23:22:35 +02:00
Franck JULLIEN ddd06e264a Add Nios2 arch support to barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-30 23:22:35 +02:00
Jon Ringle e9831a6817 defaultenv: fix empty CONFIG_DEFAULT_ENVIRONMENT_PATH
if CONFIG_DEFAULT_ENVIRONMENT_PATH="" then
$(DEFAULT_ENVIRONMENT_PATH) expands to 'defaultenv "" '
The "" would cause every single file found in $(srctree) to be included in
$(ENV_FILES). This would then cause scripts/mod/sumversions.c to get
recompiled using $(CC) and fail compilation if $(CC) points to a newlib
cross compiler

Signed-off-by: Jon Ringle <jon@ringle.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-23 09:46:29 +01:00
Baruch Siach 79c78016c1 mtd/nand_imx: fix read past buffer end
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-18 08:30:05 +01:00
Baruch Siach 4b4958dbb7 mtd/nand_imx: add support for page size of 4k
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-18 08:29:31 +01:00
Baruch Siach c470225100 mtd/nand: increase page and oob size limits
Sync these limits with the Linux kernel. This allows support for NAND devices
with page size of 4k.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-18 08:29:21 +01:00
Juergen Beisert ef552262ab S3C24xx/NFC: Add OOB/ECC handling documentation for different NANDs
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00
Juergen Beisert b31dd110aa S3C24xx/NFC: Setup ECC handling in accordance to the kernel
Do the same ECC handling and ECC size in barebox than the kernel does.
Currently its done for S3C2440 based systems only, as I have no idea how to
manage it on a S3C2410 based system.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00
Juergen Beisert e0965c4d56 S3C24xx/NFC: Consider correct NAND page size for boot.
When booting from NAND, its important to know the correct page size. When
the NAND is used as the boot source, four dedicated pins are used to configure
the correct page size and address cycles. These pins can be read back in one
of the NFC registers to parametrize the load function.

This patch also extends the read routine to support more than four address
cycles on demand.

BTW: At least some mini2440s are misconfigured to use five address cycles for
a NAND device that is known to need only four address cycles. In this case the
vendor is at our side: This NAND simply ignores any additional address cycles
than required.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00
Juergen Beisert a1dd9be4d1 S3C24xx/NFC: Remove double function setup
Three lines above this setting is already done.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00
Juergen Beisert e9b3179177 S3C24xx/NFC: Remove dead code
Something was to be done here. But I do not remember what. As it works also
without it, remove this dead code.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00
Juergen Beisert 1b1eca6b06 S3C24xx/NFC: Re-enable the controller after NAND boot test
After running the 'nand_boot_test' command, any usage of the NAND fails with
a IO error. This happens due to the load routine disables the NAND controller
after loading the image.

This patch re-enables the NAND controller again after running the test.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 12:11:19 +01:00
Jean-Christophe PLAGNIOL-VILLARD 9eac282024 defaultenv: add kernel_loc nfs and tftp support
before we can only support tftp
so keep it as default

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 11:57:11 +01:00
Jean-Christophe PLAGNIOL-VILLARD 88415af7d5 at91sam9261ek: fix env location and size
256k(barebox)ro,128k(bareboxenv),1536k(kernel),-(root)

so we will match the erase block size

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 11:56:55 +01:00
Jean-Christophe PLAGNIOL-VILLARD f8b4f4d3cd at91: fix missing nand_device in board config in board that nand
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-14 11:56:07 +01:00
Sascha Hauer 3e48ef43ed Merge branch 'master' into next 2011-03-10 14:50:25 +01:00
Sascha Hauer f4491d7b04 kallsyms/printk: enable symbol printing support (%pS)
With this kallsyms finally start working at least on ARM. This
enables us resolving addresses into symbols which is particularly
useful in combination with stack unwinding support. As kallsyms
now compile and work we can remove the depends on BROKEN.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:50:16 +01:00
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 4b8ac386b3 trigger command: fix printf format
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:48:53 +01:00
Sascha Hauer 0ed964589c module: CONFIG_COMMAND does not exist anymore, remove ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:48:49 +01:00
Sascha Hauer df850da651 mfd/mc13892: Add missing semicolons
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:48:44 +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
Jean-Christophe PLAGNIOL-VILLARD 90db0bdda3 at91sam9261: set sdram_dev id to -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-03-10 14:47:59 +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
Juergen Beisert 2893bca441 x86 Generic platform: Fix prompt name
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:15:04 +01:00
Juergen Beisert cc543aa478 x86 Generic platform: Fix disk drive name
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:15:00 +01:00
Juergen Beisert 98fe97cde0 x86 Generic platform: Fix some typos
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:14:56 +01:00
Juergen Beisert 3b4859163d x86 ATA: Don't touch the size entry for the BIOS disk based device
Only the platform sets this entry to setup the correct size or
signals the driver to guess the size of the attached disk.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:14:52 +01:00
Juergen Beisert 1126f04e99 x86: Use the generic linker script initializing
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:14:47 +01:00
Juergen Beisert 6ef848c1f7 x86: Remove not used expressions from the makefile
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2011-03-10 11:14:42 +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