summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | clarify strim function descriptionAleksey Kuleshov2016-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: phy: of_phy_register_fixed_link(): drop redundant initializationAntony Pavlov2016-08-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The phy_device_create() function makes all necessary phydev initialization so we can drop phydev->pause and phydev->link initialization in the of_phy_register_fixed_link() function. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mfd mc13xxx: add MC13892_REVISION_2_4Alexander Kurz2016-08-182-6/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | An MC13892CJ having REV[4:0]=0x14 can be found in the kindle-d01100. Add the revision to the list to support this device. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mips'Sascha Hauer2016-09-131-67/+1
|\ \ \
| * | | MIPS: dts: reuse TP-LINK MR3020 dts file from linuxAntony Pavlov2016-08-181-67/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment barebox tplink-mr3020.dts file has almost the same content as linux ar9331_tl_mr3020.dts file so we can reuse linux dts-file and drop duplicated lines from barebox dts-file. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/menu'Sascha Hauer2016-09-135-20/+109
|\ \ \
| * | | rework menu so that it can support multiline titlesAleksey Kuleshov2016-09-055-19/+108
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | properly remove menu entryAleksey Kuleshov2016-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fix double freeAleksey Kuleshov2016-08-181-1/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | it already gets free in bootentries_free no need to do this in ->release method Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imx'Sascha Hauer2016-09-1331-121/+2034
|\ \ \
| * | | ARM i.MX50: Add iomux definitions for non-DT board implementationsAlexander Kurz2016-09-121-0/+943
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add non-DT IOMUX definitions for the i.MX50 SOC by converting linux dts/imx50-pinfunc.h by script. perl -we 'while(<>) { next unless /^#define MX50_PAD/; @in=split "[[:space:]]+", uc($_); @out=(); @out[0..4]=@in[3, 2, 5, 4, 6]; $out[2] =~ s/0X//; $out[4] =~ s/0X//; $out[3] = "__NA_" if $out[3] eq "0X000"; push @out, $in[1] =~ /__UART/? "MX50_UART_PAD_CTRL": "NO_PAD_CTRL"; $out=join(", ", @out); $out =~ s/0X/0x/g; print "#define $in[1]\t\t\tIOMUX_PAD($out)\n"; }' < dts/src/arm/imx50-pinfunc.h Additional changes: * typical PAD settings for UART, SPI, I2C and ESDHC * SION bits set for all I2C MUX options Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add i.MX50 supportAlexander Kurz2016-09-1213-0/+492
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX drivers: enable i.MX50 where already supportedAlexander Kurz2016-09-123-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The i.MX50 SOC includes one ESDHCv3, three ESDHCv2, one cspi and two ecspi instances which are supported by existing drivers. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX clock: cleanup imx50 incompatibilitiesAlexander Kurz2016-09-121-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move all MX5 clock functionality which does not apply to i.MX50 to a new mx51_mx53 related function. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: imx: add support for i.MX50Alexander Kurz2016-09-123-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add imximg support for i.MX50 processors which use the i.MX flash header v2 format. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: add common definitions for i.MX50 SOCAlexander Kurz2016-09-123-0/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: i.MX chipidea: Enable VBUS regulator when neededSascha Hauer2016-09-051-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We should enable VBUS only in host mode, not unconditionally during probe(). Fix that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: imx-usb-loader: cleanup DCD v2 processingAlexander Kurz2016-09-052-47/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-Implement the DCD v2 processing. Processing for the DCD write command went into a separate function enabling the over-all DCD processing to handle check, nop and unlock commands as well. The trivial NOP command is supported right away. Further changes: put in some data consistancy checks and error handling, do structured member access and proper endianess handling and direct error messages to stderr. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX6 Santaro: Add PBL console supportSascha Hauer2016-08-291-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be able to use PBL console do the usual relocate_to_current_adr()/setup_c() dance and call pbl_set_putc() to tell the PBL console where the UART is. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX6 Santaro: Add USB supportSascha Hauer2016-08-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Enable usbotg and usbh1 devices to gain USB support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX6 Santaro: Add enable-delay for the displaySascha Hauer2016-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The display needs a time to settle, set an enable-delay of 200ms to avoid flickering. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | usb: chipidea i.MX: Do not return unnecessary errorSascha Hauer2016-08-291-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only allow to setup the host/peripheral role once, when it's already set then we return -EBUSY. Return 0 instead when we set the same role again and only return -EBUSY when we actually try to change the role. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: imx-usb-loader: structured DCD v1 element accessAlexander Kurz2016-08-222-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | DCD v1 elements are encoded little endian. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: imx-usb-loader: enable DCD 16-bit write for hdr v1Alexander Kurz2016-08-221-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Do some cleanup which enables DCDv1 16 bit write access as side effect. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: imx-image: DCD check command for v2 onlyAlexander Kurz2016-08-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DCD check command is currently implemented for imximg v2 only. This command may also be available for v1 as mentioned in IMX35RM as DCD-address-type "wait/read", but due to the lack of further details it will be not supported. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: imx-usb-loader: do DCD only once, cleanupAlexander Kurz2016-08-221-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only the first encountered DCD block should be processed, optional DCD processing may be switched off by command option. Clean up the corresponding logic. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: nand-imx: Optimize timing for i.MX25Sascha Hauer2016-08-181-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far we relied on the clock rate as configured by reset default or board code. Also we did not touch the symmetric mode bit. Use the ONFI provided timing parameters to configure the clock rate for the Nand controller. Also symmetric mode (EDO mode) when needed. This is done for v2 controllers (i.MX25/35) only, other controllers need other setup code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX25: Provide a clock for the nand controllerSascha Hauer2016-08-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The clock is needed to configure optimized timings, so provide one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: nand-imx: split preset_v1_v2 into two functionsSascha Hauer2016-08-181-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | preset_v1_v2() still needs to distinguish between v1 and v2 and the shared code is not very big. Since we need another v2 only addtion in the next patch split the function into a v1 and a v2 specific function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: nand: add ONFI timing mode to nand_timings converterSascha Hauer2016-08-183-1/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported from Linux commit 974647e: | Add a converter to retrieve NAND timings from an ONFI NAND timing mode. | At the moment, only SDR NAND timings are supported. | | Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> | Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: nand: define struct nand_timingsSascha Hauer2016-08-181-0/+49
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported from Linux commit bb5fd0b6da: | Define a struct containing the standard NAND timings as described in NAND | datasheets. | | Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com> | Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/defenv-2'Sascha Hauer2016-09-1338-202/+0
|\ \ \
| * | | defaultenv-2: remove unused *-menu-add-entry callsSascha Hauer2016-08-2634-170/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The *-menu-add-entry functions no longer exist in defaultenv-2, so remove the calls to these functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | defaultenv-2: remove ps1 duplicatesSascha Hauer2016-08-264-32/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | Some boards duplicate the PS1 initialization to add a '#' at the end of the prompt. It's not worth duplicating this for this purpose. Remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Release v2016.09.0v2016.09.0Sascha Hauer2016-09-131-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | xstrdup: don't panic on xstrdup(NULL)Uwe Kleine-König2016-09-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead return just NULL. This matches the behaviour of kstrdup in the kernel and xstrdup in busybox. This fixes a panic with CONFIG_CMD_MAGICVAR=y and CONFIG_CMD_MAGICVAR_HELP unset in magicvar_add() where description is always NULL. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Documentation: aarch64-qemu-virt: fix sphinx issuesAntony Pavlov2016-09-091-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch fixes these sphinx issues: barebox/Documentation/boards/aarch64-qemu-virt.rst:7: WARNING: Title underline too short. Running barebox on QEMU aarch64 virt machine ^^^^^^^^^^^^^^^^^^^^^^^ barebox/Documentation/boards/aarch64-qemu-virt.rst:1: ERROR: Document or section may not begin with a transition. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Raphael Poggi <poggi.raph@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Documentation: usb: fix sphinx warningAntony Pavlov2016-09-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch fixes this sphinx warnings: barebox/Documentation/user/usb.rst:61: WARNING: Could not lex literal_block as "c". Highlighting skipped. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | commands: ubiupdatevol: confirm success with return value 0Ulrich Ölmann2016-09-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Treat the write() case analogously to the read() case and do not return the number of most recently written bytes as the status of sucessful command execution. Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | commands: ubiupdatevol: store return value of read() in a signed intUlrich Ölmann2016-09-061-2/+1
| | | | | | | | | | | | | | | | | | | | | With an unsigned int test for errors from read() can never become true. Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | i.MX: scripts: Fix a bug in imx-imageAndrey Smirnov2016-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to clear a bitmask, "Set" bit has to be '0' and "Mask" bit '1'. Since "Set" is bit 4 and "Mask" is bit 3 this leaves us with a overal or-mask of 1 << 3. Orginal code was doing the inverse and setting bit #4 to '1' bit #3 to '0'. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | of_unflatten_dtb(): Check return value with IS_ERRAndrey Smirnov2016-09-056-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | Of_unflatten_dtb returns a ERR_PTR value so checking it against NULL is incorrect. Fix it in all of the places where this was happening. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | blspec: Handle nfs:// pathes from bootSascha Hauer2016-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: cb47dde boot: Call blspec_scan_directory() only on strings containing an absolute path This commit introduced a check if the path contains a '/' at the beginning. For booting a bootloader spec entry from NFS we have to test the path for starting with "nfs://" aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | commands: usbgadget: Fix -d option help textSascha Hauer2016-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | The -d option disables any currently active gadget, it does not necessarily have to be a serial gadget. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | video: backlight: fix the value of 'brightness_max'Sascha Hauer2016-08-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 87c6a88 video/backlight-pwm: fix the value of 'brightness_max'. brightness_max should really contain the number of brightness steps, so the number of elements in the brightness array. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | ARM: vector_table: Fix creation of second level page tableSascha Hauer2016-08-261-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second level page tables can only start at a 1MiB section boundary, so instead of calling arm_create_pte() with the high vector address (which is 0xffff0000, not 1MiB aligned) we have to call it with 0xfff00000 to correctly create a second level page table. The old values broke SoCs which have peripherals in the upper 1MiB area, like for example the Atmel AT91RM9200. On these Socs we correctly created the vector page, but the pages around it did not have a 1:1 mapping anymore which led to unreachable peripherals. Fixes: f6b77fe9: ARM: Rework vector table setup Reported-by: Peter Kardos <kardos.peter.sk@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Peter Kardos <kardos.peter.sk@gmail.com>
* | scripts: socfpga_get_sequencer: convert potential CRLF to LFSteffen Trumtrar2016-08-181-0/+2
| | | | | | | | | | | | | | | | | | | | If u-boot was generated under a DOS system, the sequencer files will have CRLF linebreaks. The indent-tool has problems with this and as a result the code will not compile anymore. Fix up any CRLFs prior with the dos2unix tool. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | bbu: parameters are inverted in error messageRenaud Barbier2016-08-181-2/+2
| | | | | | | | | | | | | | | | | | The error message warning the user that the image is too big for the device has its parameters in the wrong order. Swap the two parameters so that the output makes sense. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Documentation: variables: fix error in "code-block" directiveAntony Pavlov2016-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch fixes this sphinx error: barebox/Documentation/user/variables.rst:79: ERROR: Error in "code-block" directive: maximum 1 argument(s) allowed, 15 supplied. .. code-block:: sh barebox@Phytec phyCARD-i.MX27:/ nv dev.nand0.partitions: 4M(barebox),1M(barebox-environment),-(root) barebox@Phytec phyCARD-i.MX27:/ devinfo nand0 Parameters: [...] partitions: 4M(barebox),1M(barebox-environment),8M(kernel),1011M(root) [...] Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Documentation: barebox: fix 'Could not lex literal_block as "c"' warningAntony Pavlov2016-08-151-15/+45
| | | | | | | | | | | | | | | | | | | | | | | | The patch fixes these sphinx warnings: barebox/Documentation/user/barebox.rst:19: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:33: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:186: WARNING: Could not lex literal_block as "c". Highlighting skipped. barebox/Documentation/user/barebox.rst:205: WARNING: Could not lex literal_block as "c". Highlighting skipped. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>