summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* make: fix searchpath of generated autoconf.hSilvio Fricke2014-04-231-1/+1
| | | | | | | | | | | | If barebox is builded out-of-tree we don't find the autogenerated autoconf.h because we search in the srctree. With this patch we don't get this error message: cc1: fatal error: /[...]/barebox/include/generated/autoconf.h: No such file or directory Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: loady: fix Y-Modem/G option name in help messageAntony Pavlov2014-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | Actually loady command uses '-g' option for Y-Modem/G mode selection; see loady() function: while ((opt = getopt(argc, argv, "b:t:g")) > 0) { switch (opt) { ... case 'g': is_ymodemg = 1; break; By mistake help message show '-y' option for Y-Modem/G mode selection. This patch fixes the problem. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix AT91 UDC driver on boards without vbus.Owen Kirby2014-04-231-8/+10
| | | | | | | | | | | | | | From 4ea2bd2e1ca18136d7cfd61643bc8d8187b1495f Mon Sep 17 00:00:00 2001 From: Owen Kirby <osk@exegin.com> Date: Wed, 16 Apr 2014 17:45:18 -0700 Subject: [PATCH] Fix AT91 UDC driver on boards without vbus. While porting Barebox to one of our boards, we found that the AT91 UDC driver will fail to connect to USB hosts, and will spam the console with errors if the VBUS pin isn't connected. Signed-off-by: Owen Kirby <osk@exegin.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: uimage: remove redundant error messageLucas Stach2014-04-231-5/+2
| | | | | | | | | uimage_verify already prints an error message if the CRC is wrong. Romove the never reached redundant message in the caller. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* don't cast negative error codes to unsigned size_tLucas Stach2014-04-232-4/+4
| | | | | | | The cast prevents us from doing proper error checking. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* video: imx-ipu-v3: remove unneeded 'dmfc' checkSascha Hauer2014-04-231-3/+0
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Suggested-by: Fabio Estevam <festevam@gmail.com>
* video: displaytimings: remove two broken error messagesLucas Stach2014-04-231-6/+2
| | | | | | | | | The error messages would dereference the just checked NULL ptr. As those messages don't add much value without further info just remove them. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx-image: don't leak file handleLucas Stach2014-04-231-4/+6
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: fix signedness mixups in printf format specifiersLucas Stach2014-04-2314-18/+18
| | | | | | | | | This most likely doesn't fix any real bugs, but it's the right thing to do and reduces the noise level with static checkers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: at91: add missing breakLucas Stach2014-04-231-0/+1
| | | | | | | | Otherwise SAM A5d35 would be detected as A5d36. Signed-off-by: Lucas Stach <dev@lynxeye.de> Acked-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devfs-core: return new cdev also for mtd partitionsSascha Hauer2014-04-091-1/+1
| | | | | | | __devfs_add_partition returns the newly created cdev, but in case of mtd partitions it accidently returns 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of_gpio: return error if no device foundSascha Hauer2014-04-091-3/+3
| | | | | | | of_get_named_gpio_flags used to return 'ret' when no device is found, but 'ret' is zero here. Return an error instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* loadenv: detect truncated environment filesSascha Hauer2014-04-091-7/+24
| | | | | | | | Properly detect when an environment file is truncated. This can happen when a previous saveenv failed because the environment partition is too small. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* saveenv: Properly detect write errorsSascha Hauer2014-04-091-6/+14
| | | | | | | | | | | The return value check of the write call is completely bogus. We check if we have written at minimum sizeof(struct envfs_super) bytes instead of all bytes. Properly check for all bytes written instead and allow write to write less bytes than requested. Do not use write_full because this file is compiled for userspace aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* loadenv: ignore -ENOENT when removing /envSascha Hauer2014-04-091-1/+1
| | | | | | | With the -s option loadenv first removes /env. Ignore it when this directory does not exist. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* unlink_recursive: return negative error valueSascha Hauer2014-04-091-1/+1
| | | | | | | In case of an error unlink_recursive returns errno which is positive. Return -errno instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fb: Fix use of unitialized variableSascha Hauer2014-04-081-8/+7
| | | | | | | | 'ret' is only initialized when info->fbops->fb_activate_var exists, so only use it in this case. Reported-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* spi: i.MX: Fix direction for CS GPIOsAlexander Shiyan2014-04-081-2/+2
| | | | | | | | Direction for CS GPIOs (for some targets) is undefined. This patch fixes this issue. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts: edmqmx6: add SPI SCLK pinmuxLucas Stach2014-04-081-0/+1
| | | | | | | | Otherwise reading or writing to the SPI flash doesn't work. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ppc'Sascha Hauer2014-04-0440-120/+1633
|\
| * ppc: P2020RDB: add environment partition supportRenaud Barbier2014-04-034-5/+29
| | | | | | | | | | | | | | | | Add an environment partition and support commands so that the system configuration can be permanent. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: P1022DS: update Kconfig and MakefileRenaud Barbier2014-03-192-9/+25
| | | | | | | | | | | | | | | | Kconfig and make files are updated to build the Freescale P1022DS image. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: mpc85xx: add stashing supportRenaud Barbier2014-03-191-0/+8
| | | | | | | | | | | | | | | | | | | | The eTSEC 2.0 devices found on the 85xx family of SoCs support stashing buffer descriptors in the L2 cache. This updates the device tree fixup for these devices to ensure that the stashing related properties used by Linux are initialised correctly. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: add Freescale P1022DS board supportRenaud Barbier2014-03-1915-4/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the Freescale P1022DS. Driver support is limited to: - I2C - Ethernet - Serial - NOR flash - PIXIS FPGA System clock configuration is read from the FPGA but has only been tested using a 133MHz system clock and 100MHz DDR clock. Boot arguments are defined in the environment to boot over NFS with a console configured at 115200 bauds. Enabling branch prediction is moved from board support to the platform support for all boards as it is a CPU feature. Some the code is from U-Boot version git-be937b5. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: mpc8xxx: add DDR3 supportRenaud Barbier2014-03-1912-100/+811
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DDR3 support into the MPC8xxx DDR driver. To avoid confusion, the function set_ddr_sdram_mode is renamed set_ddr2_sdram_mode. Checking for errors is simplified in the DDR2 DIMM parameters computation to be consistent with DDR3. This code is derived from the files found in directory drivers/ddr/fsl from U-Boot version git-be937b5. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * common: DDR3 SPD verification supportRenaud Barbier2014-03-183-0/+141
| | | | | | | | | | | | | | | | | | Add DDR3 SPD verification support for use by the PPC 8xxx DDR driver. This is based on the equivalent files from U-Boot version git-be937b5. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: add SoC support for Freescale P1022Renaud Barbier2014-03-185-3/+45
| | | | | | | | | | | | | | CPU, DDR, and LBC definitions are added to support the Freescale P1022. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/mtd'Sascha Hauer2014-04-0414-35/+74
|\ \
| * | nand: mxs: Fix for calculating ecc strength on some types of NAND flashDmitry Lavnikevich2014-03-121-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was tested on NAND with {writesize=4096, oobsize=224} and {writesize=2048, oobsize=64}. This patch will not break any NAND that was working before. Implemented calculation way may be used for other NAND chips with writesize == 2048 but oobsize != 64. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | nand: mxs: Check for up to 4 NAND chipsDmitry Lavnikevich2014-03-121-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since i.MX6 has only one R/B actual pin, if there are several R/B signals (from different NAND chips) they must be connected to this pin. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ubi: Fix for creating ubi volumes with 64bit sizeDmitry Lavnikevich2014-03-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since MTD is already supports >= 4GB device sizes it is better to allow ubi valumes also be created of larger sizes. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: Support for 4GB partitionsDmitry Lavnikevich2014-03-123-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements correct way of creating partitions on mtd devices with size >= 4GB. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: Update internal API to support 64-bit device sizeDmitry Lavnikevich2014-03-1210-20/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MTD internal API presently uses 32-bit values to represent device size. This patch updates them to 64-bits but leaves the external API unchanged. In general, changing from 32-bit to 64-bit values cause little or no changes to the majority of the code with the following exceptions: - printk message formats; - division and modulus of 64-bit values (mtd_div_by_wb, mtd_div_by_eb may be used in some of such cases). Was tested on phyFLEX i.MX6. Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com> Signed-off-by: Grigory Milev <g.milev@sam-solutions.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2014-04-0418-56/+209
|\ \ \
| * | | param: Add dev_add_param_macSascha Hauer2014-04-043-11/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a convenience function to register a MAC address device parameter. The only current user is converted to use it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: omap gpmc: Turn debug message into dev_dbgSascha Hauer2014-04-041-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | drivers: treewide: Kill empty remove() implementationsAlexander Shiyan2014-04-026-31/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | of: Add support for "stdout-path" propertySascha Hauer2014-03-311-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ePAPR 1.1 specifies the "stdout-path" property, but barebox currently only handles the "linux,stdout-path" property. Add parsing for the new property name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: at91: add sama5d36 SoC supportBo Shen2014-03-313-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SAMA5D36 SoC is a sub type of SAMA5D3 which has two Ethernets Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | OMAP4_USBboot: Change output text formattingVicente Bergas2014-03-241-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic console used for USBboot has two different formattings, one for text coming from the host and another for text coming from the target. This change makes both formattings readable regardless of the console background color. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | clocksource: add dummy software-only clocksourceAntony Pavlov2014-03-193-0/+80
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver is very handy for initial barebox porting. It was used for running barebox on DiGiC2-based camera and initial porting barebox to Loongson-1 and ar9331. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Reported-by: Alexander Aring <alex.aring@gmail.com> Reported-by: Alexander Shiyan <shc_work@mail.ru>
* | | Merge branch 'for-next/menutree'Sascha Hauer2014-04-0437-150/+347
|\ \ \
| * | | defenv-2: replace menu with menutreeSascha Hauer2014-03-2829-150/+49
| | | | | | | | | | | | | | | | | | | | | | | | This makes the menu easier to extend and to maintain. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | add menutree commandSascha Hauer2014-03-287-0/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating menus from the shell using the regular 'menu' command is rather complicated. This adds a 'menutree' command which creates a menu from a directory structure. In the directory structure each directory corresponds to a single menu entry. The directory contains the following files: title - A file containing the title of the entry as shown in the menu box - If present, the entry is a 'bool' entry. The file contains a variable name from which the current state of the bool is taken from and saved to. action - if present this file contains a shell script which is executed when when the entry is selected. If neither 'box' or 'action' are present this entry is considered a submenu containing more entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add shell_expand functionSascha Hauer2014-03-282-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | shell_expand expands shell variables in a string. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/imx-phyflex'Sascha Hauer2014-04-0421-236/+544
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/phytec-phyflex-imx6/board.c
| * | | | ARM: pfla02: Set new ethernet phy tx timingsChristian Hemp2014-03-261-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TX_CLK line is approx. 54mm longer than other TX lines which adds a delay of 0.36ns. RGMII need a delay of min. 1.0ns. This mean we have to add a delay of 0.64ns. We choose 0.78 to have a little gap. This can be done by setting GTX pad skew value to 11100 Also add a delay for the RX delay lines, needed for the Duallite variant. => Set register 2.8 (RGMII Clock Pad Skew) to 0x039F. Signed-off-by: Christian Hemp <c.hemp@phytec.de>
| * | | | ARM: pfla02: Add support for DualLite and Solo coreChristian Hemp2014-03-2616-230/+494
| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
| * | | | ARM: pfla02: add 4GB versionChristian Hemp2014-03-266-3/+30
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Christian Hemp <c.hemp@phytec.de>
| * | | | ARM: pfla02: Drop unnecessary compilation of flash headersSascha Hauer2014-03-261-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are unused. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>