summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * ARM i.MX51: Add babbage board supportSascha Hauer2010-10-1111-0/+1093
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM i.MX: Add basic i.MX51 supportSascha Hauer2010-10-1111-5/+1404
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM mmu: Call __mmu_cache_flush instead of hardcoded v4/v5 only functionSascha Hauer2010-10-111-4/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * imx_serial: Add mx51 supportSascha Hauer2010-10-111-1/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * defaultenv: handle disk partitionsSascha Hauer2010-10-111-0/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: align write buffer if necessarySascha Hauer2010-10-111-1/+15
| | | | | | | | | | | | | | | | | | | | Most SD controllers need some kind of alignment for writing blocks. Instead of coding this in every driver, align write blocks to a 4 byte alignment in the mci layer. For DMA accesses we may need bigger alignment, but let's solve this problem when we have it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: handle SD cards < 2.0 correctlySascha Hauer2010-10-111-17/+7
| | | | | | | | | | | | | | | | With SD cards older than 2.0 the sd_send_if_cond() fails. Do not assume it's an MMC card in this case. Instead, assume it's a MMC card if sd_send_op_cond() fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mfd mc13892: support reading the revisionSascha Hauer2010-10-112-1/+83
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mfd mc13892: Add spi supportSascha Hauer2010-10-113-11/+112
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * move include files for mfd drivers to include/mfdSascha Hauer2010-10-1114-10/+18
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Move mfd drivers to drivers/mfdSascha Hauer2010-10-1114-28/+36
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi i.MX: Add i.MX51 supportSascha Hauer2010-10-112-8/+171
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi i.MX: redirect functions to version specific functionsSascha Hauer2010-10-111-10/+62
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * spi i.MX: add spi version namespace to register definesSascha Hauer2010-10-111-58/+58
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: print error code on failureSascha Hauer2010-10-111-4/+3
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mci: Add i.MX esdhc supportSascha Hauer2010-10-114-0/+690
| | | | | | | | | | | | | | | | | | This adds a driver for the esdhc controller found on Freescale i.MX25/35/51 SoCs. This code is based on the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i.MX27: Add support for SDHC pinsSascha Hauer2010-10-111-0/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'getopt' into nextSascha Hauer2010-10-112-11/+125
|\ \
| * | hush: implement getopt builtinSascha Hauer2010-10-082-2/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Positional parameters are not nice, so implement a getopt function. This has to be done as a builtin because otherwise we have no access to the parents argc/argv. getopt works as expected, here is a little example: while getopt "hs:" OPT do if [ $OPT = h ]; then echo "usage" exit 1 else echo "scr: opt: $OPT optarg: $OPTARG" fi done Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | hush: fix nasty memory leak in hushSascha Hauer2010-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix memory leak in globbing part of hush. a simple '[' on the command line was enough to trigger it. We must call globfree() before setting the glob structure to zero. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | hush: pass context around in shellSascha Hauer2010-10-081-9/+9
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Add the i.MX23 based Chumby platform (WIP)Juergen Beisert2010-10-117-0/+329
| | | | | | | | | | | | | | | | | | | | | | | | The so called "chumby one" aka falconwing is an i.MX23 based platform. Note: This is work in progress. Use with care. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* | | Add the i.MX23-EVK platform (WIP)Juergen Beisert2010-10-117-0/+148
| | | | | | | | | | | | | | | | | | Note: This is work in progress. Use with care. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* | | Add the driver for the i.MX23 debug UARTJuergen Beisert2010-10-113-0/+208
| | | | | | | | | | | | | | | | | | | | | The i.MX23 comes with a special UART dedicated for debugging purposes. This one is mostly used for the console the user can reach. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* | | Add the basic files for the i.MX23/i.MX28 familiy of CPUsJuergen Beisert2010-10-1114-0/+1193
| |/ |/| | | | | | | | | | | | | | | These CPUs are called "i.MX", but they are of type STM378x from SigmaTel. They do not share any devices with the other i.MX CPUs, so we need a separate architecute directory to handle them without an ifdef hell in the native i.MX files. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* | ARM pca100: Add mci supportSascha Hauer2010-10-111-0/+15
| | | | | | | | | | | | Add mci support to the PCA100 platform Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci: Add i.MX27/31 driverSascha Hauer2010-10-113-0/+528
| | | | | | | | | | | | Add i.MX27/31 driver Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i.MX27: Add mmc clock support in order to add an i.MX MCI driverSascha Hauer2010-10-112-0/+6
| | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Juergen Beisert <jbe@pengutronix.de>
* | Add S3C2440 MCI card supportJuergen Beisert2010-10-114-0/+871
| | | | | | | | | | | | | | | | | | | | Adding MCI card support for S3C2440 CPUs. This is for reference only, as there is currently no user in the barebox tree. Maybe one with access to the A9M2440 development kit can check it on his/her system. Checked here with my own S3C2440 based system which is not in the barebox tree. Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add i.MX23 MCI card supportJuergen Beisert2010-10-113-0/+707
| | | | | | | | | | | | | | | | | | Adding MCI card support for STM378x/i.MX23 CPUs. This is for reference only, as this architecture is currently not part of barebox (but will coming soon). Its tested on the i.MX23 based ChumbyOne. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add MCI card support to bareboxJuergen Beisert2010-10-116-0/+1605
| | | | | | | | | | | | | | This adds the basic framework to handle MCI cards in barebox. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Don't try to guess the size of a disk if its size value is already givenJuergen Beisert2010-10-112-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Guessing the size of an attached harddisk (access via x86 BIOS) was needed due to the fact, barebox can't query this information from the BIOS easily. But with the SD/MMC cards, there will be a second user of the generic disk handling routines. And with this media it is very easy to know its size. This patch provides a workaround to keep the guessing feature if the size of the registered disk is 0. If it is not 0, the given value will be used instead. Note: This is in preparation to add MCI card support, which can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Don't use a sector buffer on stackJuergen Beisert2010-10-111-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a temp. buffer for a disk sector on the stack, seems not work. Doing so lets the system run crazy (the stack seems to be destroyd). Don't know the correct stack handling on ARM, but (IMHO) I also can exclude any writing across the buffer boundaries. Using a temp. buffer via malloc() runs also on ARM. Note: This patch was required to add MCI card support, which can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Make the disk driver less noisyJuergen Beisert2010-10-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | In real life this output is only a "nice to have", but most of the time its useless and confusing. So, make it a debug feature for the interested developer. Note: This is in preparation to add MCI card support, which mostly come with a partition table and can be handled like a disk drive. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | x-functions do not return in case of failure.Juergen Beisert2010-10-111-4/+0
| | | | | | | | | | | | | | | | Remove error handling, because in case of failure the xzalloc() function does not return. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | MAKEALL: allow CROSS_COMPILE*=""Jean-Christophe PLAGNIOL-VILLARD2010-10-081-3/+5
|/ | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image: factorise image printing contentsJean-Christophe PLAGNIOL-VILLARD2010-10-085-116/+192
| | | | | | Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Replace direct header access with the API routinesJean-Christophe PLAGNIOL-VILLARD2010-10-088-103/+271
| | | | | | Copied from U-Boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* image: rename IH_CPU to IH_ARCH to be more concistantJean-Christophe PLAGNIOL-VILLARD2010-10-084-48/+48
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* image: factorise string helperJean-Christophe PLAGNIOL-VILLARD2010-10-085-201/+175
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Revert "image: factorise string helper"Sascha Hauer2010-10-075-175/+201
| | | | This reverts commit 7bd7d59e60f3f23862ebc09c9f3527ee24b2960f.
* Revert "image: rename IH_CPU to IH_ARCH to be more concistant"Sascha Hauer2010-10-074-48/+48
| | | | | | | | | | This reverts commit aba80a2d2d0f1b25185246925577ce2108247dde. Conflicts: include/image.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "Replace direct header access with the API routines"Sascha Hauer2010-10-078-271/+103
| | | | | | | | | | This reverts commit 0ceafe14be072696eff3e549d8c7b7de8a3e416d. Conflicts: include/image.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "image: factorise image printing contents"Sascha Hauer2010-10-075-188/+116
| | | | This reverts commit d424ce77f5e9295584252452dbd78eea562c9af0.
* imx: fix Internal boot source default choiceJean-Christophe PLAGNIOL-VILLARD2010-10-041-1/+1
| | | | | | | | | | via default ARCH_IMX_INTERNAL_BOOT_NAND and not default y on ARCH_IMX_INTERNAL_BOOT_NAND Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2010-10-04165-7032/+3482
|\
| * MAKEALL: make it genericJean-Christophe PLAGNIOL-VILLARD2010-10-021-59/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it's allow you to compile specific defconfig or ARCH or all as CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL at91sam9263ek_defconfig CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL The cross-compiler can be specify via CROSS_COMPILE default CROSS_COMPILE_<arch> arch default CROSS_COMPILE_<target> deconfig specifc it will be evaluated in the invert order or via config you can specify it via env CONFIG or option -c (overwrite env) CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL at91sam9263ek_defconfig CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL and for all CONFIG=./MAKEALL.cfg ./MAKEALL you can specify via env or option env option ARCH -a arch CONFIG -c config JOBS -j jobs BUILDDIR -O build dir LOGDIR -l log dir Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Update flash headers for boards supporting internal boot.Marc Reilly2010-10-014-36/+38
| | | | | | | | | | Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * imx: Internal boot sources, handle all header offsetsMarc Reilly2010-10-013-15/+53
| | | | | | | | | | | | | | | | | | Makes the internal boot source configurable. Also changes section names slightly so that .flash_header_0x1000 isn't matched to .flash_header_0x100* etc. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i2c-imx: wait for STOP before disabling controllerMarc Reilly2010-10-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | Makes sure that the STOP condition is transmitted before the I2C controller is disabled. This fixes a problem where writing to an external EEPROM was not working because the EEPROM waits until the STOP before initiating the write internally. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>