summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* edit: Add proper screen size handlingSascha Hauer2012-04-301-30/+20
| | | | | | | | | | We used to have a quite slow algorithm to detect the screen size which was unused for long time. This patch changes this to first set the cursor to x=999, y=999 and the read back the actual cursor position. Since I am not confident that this works on all terminals this is only used when edit is called as 'sedit'. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MIPS: start.S: clean up whitespacesAntony Pavlov2012-04-261-1/+1
| | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* dev_add_param: check if param exists alreadySascha Hauer2012-04-241-0/+4
| | | | | | | Before adding a new parameter to a device we should check if it already exists. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devinfo: use accessor function for parametersSascha Hauer2012-04-241-1/+1
| | | | | | | Instead of directly accessing the struct member of struct param_d use the provided getter function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* param: make return value of param getter function constSascha Hauer2012-04-242-8/+8
| | | | | | | The string returned by the getter function should not be changed. Make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM mxs: Add cpu_is_mx* macros for drivers shared with i.MXSascha Hauer2012-04-241-0/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'pu/mx6-v2' into nextSascha Hauer2012-04-2427-10/+7909
|\ | | | | | | | | | | | | | | Conflicts: arch/arm/Makefile arch/arm/mach-imx/Kconfig Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM Freescale i.MX6 Armadillo2: Add defconfigSascha Hauer2012-04-241-0/+69
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: initial Freescale i.MX6q Armadillo2 supportSascha Hauer2012-04-247-0/+411
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net mii: Add mii_open/mii_close functionsSascha Hauer2012-04-242-0/+25
| | | | | | | | | | | | | | | | Some phys need board specific fixups. To be able to do this from board code add mii_open/mii_close functions so that the board can use the regular mii_read/mii_write functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mmc i.MX esdhc: Add i.MX6 supportSascha Hauer2012-04-241-3/+12
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * net fec: Add i.MX6 supportSascha Hauer2012-04-242-3/+23
| | | | | | | | | | | | | | Currently only 100Mb/s is tested. Freescale's U-Boot suggests that there are some additional adjustments necessary for Gigabit support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * serial i.MX: i.MX6 supportSascha Hauer2012-04-241-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: add initial i.MX6 supportSascha Hauer2012-04-2414-3/+7368
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | menu: fix menu alloc initJean-Christophe PLAGNIOL-VILLARD2012-04-231-0/+1
| | | | | | | | | | | | The auto_select is supposed to be set to -1. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | menu: fix support for "\n", "\n\r" and "\r"Jean-Christophe PLAGNIOL-VILLARD2012-04-231-1/+7
| | | | | | | | | | | | If "\n\r" or "\r\n" is ignore one. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | menu: fix non command management supportJean-Christophe PLAGNIOL-VILLARD2012-04-231-8/+9
| | | | | | | | | | | | the auto select is always available Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | usb: fix driver nameJean-Christophe PLAGNIOL-VILLARD2012-04-232-1/+1
| | | | | | | | | | | | | | | | use the usb_driver name otherwise we will have a NULL driver entry in devinfo Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | netX: ignoring temporary netx build toolMichael Trensch2012-04-231-0/+1
| | | | | | | | | | | | Signed-off-by: Michael Trensch <MTrensch@gmail.com> Acked-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | netX: make the host interface macros compileJuergen Beisert2012-04-231-1/+1
| | | | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | netX: add more common permissionsJuergen Beisert2012-04-231-1/+2
| | | | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | netX: adapt it to the current boot specJuergen Beisert2012-04-231-7/+11
| | | | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | netX: use correct sized pointersJuergen Beisert2012-04-231-3/+3
| | | | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | netX: just a style fixJuergen Beisert2012-04-231-9/+9
| | | | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge silicon definitions i.MX35, i.MX51 and i.MX53Alexander Shiyan2012-04-196-24/+17
| | | | | | | | | | | | | | | | | | Also definition can be modified in arch/arm/boards/pcm043/lowlevel.c, but I am not sure is we can call imx_silicon_revision() from board_init_lowlevel(). Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Allow use platform_ide driver without ALT-registersAlexander Shiyan2012-04-181-4/+10
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'binfmt' of git://git.jcrosoft.org/barebox into nextSascha Hauer2012-04-1810-13/+200
|\ \
| * | defaultenv: add binfmt supportJean-Christophe PLAGNIOL-VILLARD2012-04-181-0/+4
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | arm: bootm: add barebox, zImage and aImage binfmt supportJean-Christophe PLAGNIOL-VILLARD2012-04-181-1/+21
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | bootm: add uimage binfmt supportJean-Christophe PLAGNIOL-VILLARD2012-04-181-0/+12
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | Introduce binfmt supportJean-Christophe PLAGNIOL-VILLARD2012-04-185-12/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow to execute any file and detect it's type to handle it. This will allow to use shell for bootp bootfile or dfu. You can register multiple hook for the same filetype. They will be execute in the invert order of register. If a hook does not handle the file you just return -ERESTARTNOHAND; This is only available with hush parser. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | filetype: add Bourne Shell supportJean-Christophe PLAGNIOL-VILLARD2012-04-182-0/+4
| | | | | | | | | | | | | | | | | | Put it at first as it's the most likely to detect Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | | bootm: Align oftreeSteffen Trumtrar2012-04-181-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Arm needs 64-Bit alignment of the oftree as mentioned in the documentation Documentation/arm/Booting. Other architectures may need a bigger alignment so align to 4K. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | bootm: Fix check for ret-valueSteffen Trumtrar2012-04-181-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | The intention of this code was to check the return value of fdt_open_into. Fix this. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | config: fix missing switch machine to hostname during mergeJean-Christophe PLAGNIOL-VILLARD2012-04-181-7/+7
| | | | | | | | | | | | | | | | | | | | | So we can use it for dhcp request too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | dhcp: fix typo introduce during rebase of hostname patchJean-Christophe PLAGNIOL-VILLARD2012-04-181-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | arm: bootm: zImage: add error message when can not request the memoryJean-Christophe PLAGNIOL-VILLARD2012-04-181-0/+2
|/ / | | | | | | | | | | | | This will allow to understand what happened. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | config: switch machine to hostnameJean-Christophe PLAGNIOL-VILLARD2012-04-1825-168/+168
| | | | | | | | | | | | | | So we can use it for dhcp request too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | net: dhcp: add support to send the hostname to the dhcp serverJean-Christophe PLAGNIOL-VILLARD2012-04-181-2/+12
| | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2012-04-176-35/+58
|\ \
| * | mtd: docg3 fixes backport from Linux kernelRobert Jarzmik2012-04-171-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport 2 fixes back from Linux kernel (title verbatim from Linux kernel log) : - docg3 fix in-middle of blocks reads - docg3 reduce read alignment burden These 2 enable partial reads from the MTD (ie. read only the 111 first bytes), which enable linux kernel booting or UBIFS from barebox. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci poweron ramp delayRobert Jarzmik2012-04-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per MMC spec, once power has been applied to an SD card, the card can take as much as 250ms to complete its power-up cycle, and become responsive to CMD0. When this delay was not in place, activating the SD card in the env init failed sometimes. With it, no more failure are observed. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci fix R1b responsesRobert Jarzmik2012-04-171-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pxamci driver was not waiting for the BUSY line to be deasserted. This was specifically breaking the CMD12 at the end of block multiple writes, when the SD card had not time enough to commit the last write. Fix it by waiting for PRG_DONE bit (which is actually the busy signal end condition). Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci fix CMD12 handlingRobert Jarzmik2012-04-172-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pxamci requires a bit to be set in the command control register when a CMD12 is sent. Set it, as required in the PXA Developer Manuel, chapter "Stop Data Transmission Command (CMD12 or IO/Abort with CMD52)". Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci fix response typeRobert Jarzmik2012-04-171-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | When preparing a command, apply a mask so that only the command part will be used for the switch case. This will be more robust for future command response types. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci change clocks handlingRobert Jarzmik2012-04-171-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix clock handling accordingly to PXA manual : - enable the MMC controller clock once and for all - only disable the MMC bus clock when changing the MMCLK by adjusting the clock ratio, else let the controller and SD card shut down the clock as the see fit. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: pxamci define timeoutsRobert Jarzmik2012-04-171-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using hard encoded values in the code, use defines to setup the timeouts of reads/writes/commands. Fix the read timeout as defined in the PXA Developer Manual. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | filetype: Make it work on files < 512 bytesSascha Hauer2012-04-171-2/+2
| | | | | | | | | | | | | | | | | | | | | This is a brown paper bag type of bugs. Do not assume that a file has to be at minimun 512 bytes to be detectable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | addpart: remove duplicate line in help textSascha Hauer2012-04-141-1/+0
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | menuconfig: Show "Barebox", not "Linux" at the top.Uwe Hermann2012-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The menuconfig configures Barebox, not the Linux kernel, so no reason to print "Linux" there. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>