summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2012.04.0v2012.04.0Sascha Hauer2012-04-051-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* x86 linker script: Add missing _textSascha Hauer2012-04-051-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mips: Fix compiler warningsSascha Hauer2012-04-051-0/+4
| | | | | | | | | | Fixes: arch/mips/lib/lshrdi3.c:6: warning: no previous prototype for '__lshrdi3' arch/mips/lib/ashrdi3.c:6: warning: no previous prototype for '__ashrdi3' arch/mips/lib/ashldi3.c:6: warning: no previous prototype for '__ashldi3' Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* USB gadget pxa: Fix compiler warningSascha Hauer2012-04-051-1/+1
| | | | | | | | Fixes: drivers/usb/gadget/pxa27x_udc.c:1263:13: warning: 'pxa27x_change_interface' defined but not used [-Wunused-function] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: fix compiler warningSascha Hauer2012-04-051-0/+2
| | | | | | | | | Fixes: drivers/mtd/core.c: In function 'mtd_ioctl': drivers/mtd/core.c:122:24: warning: unused variable 'ecc' [-Wunused-variable] Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* string: remove unused bcopy functionSascha Hauer2012-04-051-24/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pxa27x_udc: Fix compilation warning.Marek Belisko2012-03-231-2/+2
| | | | | | | | Fix following: drivers/usb/gadget/pxa27x_udc.c:1482:1: warning: initialization from incompatible pointer type Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pcm038: increase size of barebox partitionTeresa Gámez2012-03-152-6/+11
| | | | | | | | The image built with pcm038_defconfig is >256k so increase the size of the barebox partition. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial S3: fix local structure mallocJuergen Beisert2012-03-131-1/+1
| | | | | | | | | Patch 2c5404651091e985c9009aa417d80fdaf50d7a68 introduces a private structure for the S3C based UARTs but still reserves the memory for the smaller structure which fails at runtime. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-03-06244-1112/+4781
|\
| * macb: fix mmu supportJean-Christophe PLAGNIOL-VILLARD2012-03-061-3/+5
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * macb: add timeout on sendJean-Christophe PLAGNIOL-VILLARD2012-03-061-0/+5
| | | | | | | | | | | | | | This will ensure that we send an other packet only when the first one is send. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'work/thumb2' into nextSascha Hauer2012-03-0622-36/+164
| |\
| | * ARM: use unconditional branch in exception vectorsSascha Hauer2012-03-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | If we want to trap the processer in the exception vectors we have to use unconditional branch instructions. I don't know what I thought when using bne :-/ Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ARM: Allow to compile in thumb-2 modeSascha Hauer2012-03-0611-8/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | This shrinks the resulting binary size by ~25%. Exceptions are still handled in arm mode, so we have to explicitely put .arm directives into the exception code. Thumb-2 mode has been tested on i.MX51 Babbage board. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ARM: get runtime offset of board_init_lowlevel_return by using separate sectionSascha Hauer2012-02-283-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | We used to get the runtime offset of the board_init_lowlevel_return by doing a &board_init_lowlevel_return. This does not work in thumb-2 mode, so use a separate linker section for this function instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * ARM: move exception vectors away from start of binarySascha Hauer2012-02-2813-18/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Traditionally U-Boot and barebox have the exception vectors at the start of the binary. There is no real reason in doing so, because in the majority of cases this data will not be at 0x0 where it could be used as vectors directly anyway. This patch puts the vectors into a separate linker section and defines an head function which is placed at the start of the image instead. Putting this in a separate function also has the advantage that it can be placed at the start of images which require an additional header like several Freescale i.MX images. As the head function contains the barebox arm magic those images can now also be detected as barebox images. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mach-omap: add HAS_DEBUG_LLJan Weitzel2012-03-052-0/+55
| | | | | | | | | | | | | | | | | | | | | Add support for debug_ll Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | pca-a-l1: remove duplicate includesTeresa Gámez2012-03-041-3/+0
| | | | | | | | | | | | | | | | | | | | | Removed duplicate includes from phyCARD-A-L1 board code. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers/mci: fix read/write stallingRobert Jarzmik2012-02-291-21/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a read or write operation encounters an error, the card might stay in "recv" or "data" state, and never get back to "tran" state. In these cases, the host is required to send a CMD12 (end transmission) to switch the FSM of the card back to "tran" state, as described in MMC Specification, chapter "Data Transfer Mode". Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Merge branch 'pu/command' into nextSascha Hauer2012-02-2991-143/+121
| |\ \
| | * | remove unused variable from struct driver_dSascha Hauer2012-02-271-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | commands: remove struct command pointer from commandsSascha Hauer2012-02-2790-115/+114
| | | | | | | | | | | | | | | | | | | | | | | | This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | ARM boot[zu]: return COMMAND_ERROR_USAGE instead of calling barebox_cmd_usageSascha Hauer2012-02-272-8/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * | command: do not allow abbreviated commands anymoreSascha Hauer2012-02-271-19/+3
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | abbreviated commands are derived from U-Boot and are only partly useful. Noone expects from a shell to support this, also we have tab completion. They also have some funny side effects. For example we have a 'time' command. If this command is not compiled in, the time command is interpreted as an abbreviated version of the 'timeout' command. So remove support for abbreviated commands and safe the binary space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | arm/mach-pxa: add mioa701 boardRobert Jarzmik2012-02-2912-0/+528
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Mitac MioA701 board initial support. The support provides basic boot and : - a console over USB (serial gadget). - the SD card support - the MTD docg3 support - the LCD support Add a check in the default environment for a barebox.env file on the first partition (FAT). If the file exists, source it instead of the normal boot procedure. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers/serial: trivial regression fixRobert Jarzmik2012-02-291-1/+1
| |/ | | | | | | | | | | | | | | Fix commit "serial pxa: fix unregister", which forgot a semicolon, breaking serial_pxa compilation. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mx53-loco: update defconfigEric Bénard2012-02-271-1/+4
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mx53-loco: add board revision supportEric Bénard2012-02-271-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - this is taken from freescale-mx35-3-stack/3stack.c and allows this board to run Freescale's kernel which relies on the system revision to configure the correct PMIC. - On rev0 boards (with DA9053), the log is : detected i.MX53 rev 2.1 MCIMX53-START board 1.0 On newer boards (rev A or B with MC34708), the log is : mc34708-i2c@mc34708-i2c0: MC34708 ID: 0x0014 detected i.MX53 rev 2.1 MCIMX53-START-R board 1.0 rev B Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mx53-loco: add i2c supportEric Bénard2012-02-271-0/+15
| | | | | | | | | | | | | | and register mc34708 which is present on MCIMX53-START-R board Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i.MX53: enable pull up on I2C0 pinsEric Bénard2012-02-271-3/+5
| | | | | | | | | | | | | | | | this allows I2C to work on boards which don't have external pull up (like LOCO board) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * i.MX53: add silicon revision functionsEric Bénard2012-02-272-1/+51
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mfd: add mc34708 driverEric Bénard2012-02-274-0/+401
| | | | | | | | | | | | | | this driver is a copie of the mc13892 one Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add i2c clock supportEric Bénard2012-02-271-0/+26
| | | | | | | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add unaligned.h to sandbox archLars Poeschel2012-02-271-0/+19
| | | | | | | | | | | | | | | | To be able to use the sandbox with fat filesystem support unaligned.h is needed. It tries to be general in selecting little endian or big endian on a gcc macro. Signed-off-by: Lars Poeschel <lars@kiwigrid.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * cp: fix memory leakSascha Hauer2012-02-271-1/+1
| | | | | | | | | | | | | | dst is an allocated string, we have to free it also when copy_file fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * getopt: save and restore contextSascha Hauer2012-02-274-13/+50
| | | | | | | | | | | | | | | | | | | | | | | | execute_command is the single point where commands are executed and thus a new getopt context is needed. currently we call getopt_reset here to reset the context. This breaks though when a command tries to run a command itself by calling execute_command or run_command. In this case we have to store the context and restore it afterwards. The same is necessary in builtin_getopt. Currently noone does this so this one shouldn't fix a bug, but merely allows us to do such things later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * getopt: turn commented out printf into debug()Sascha Hauer2012-02-271-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * driver: remove unused type_data field from struct driver_dSascha Hauer2012-02-251-6/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net fec_mpc5200: drop type_data usageSascha Hauer2012-02-251-6/+6
| | | | | | | | | | | | Also, clean some whitespace damage. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net fec_imx: drop type_data usageSascha Hauer2012-02-251-3/+3
| | | | | | | | | | | | Store the private data pointer in dev->priv as it's intended. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net drivers: remove unused type_dataSascha Hauer2012-02-259-10/+0
| | | | | | | | | | | | | | Many net drivers set dev->type_data without ever using it, so just remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net: use container_of instead of dev->type_dataSascha Hauer2012-02-253-4/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial s3c: add a driver private structSascha Hauer2012-02-251-19/+28
| | | | | | | | | | | | | | Do not use dev->priv as a register base, but use a driver private struct instead. Also, remove usage of dev->type_data Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial stm: fix unregisterSascha Hauer2012-02-251-3/+6
| | | | | | | | | | | | | | - Add missing console_unregister call - use dev->priv instead of dev->type_data Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial imx: fix unregisterSascha Hauer2012-02-251-3/+5
| | | | | | | | | | | | | | - Add missing console_unregister call - use dev->priv instead of dev->type_data Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial pxa: fix unregisterSascha Hauer2012-02-251-2/+5
| | | | | | | | | | | | | | - Add missing console_unregister call - use dev->priv instead of dev->type_data Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial drivers: remove unused type_dataSascha Hauer2012-02-2511-12/+1
| | | | | | | | | | | | | | Several serial drivers set the type_data field without ever using it, so just remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * console: use container_of instead of type_dataSascha Hauer2012-02-251-3/+4
| | | | | | | | | | | | This reduces the usage of type_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * fs: get fs device using container_ofSascha Hauer2012-02-257-11/+6
| | | | | | | | | | | | This reduces the usage of dev->type_data. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>