summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release v2015.02.0v2015.02.0Sascha Hauer2015-02-021-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: atmel: sama5d4: nand: add has_pmecc parameterBo Shen2015-01-292-0/+2
| | | | | | | Add the missing has_pmecc parameter for sama5d4 based boards. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix spelling: pathes -> pathsWadim Egorov2015-01-289-19/+19
| | | | | Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* boards: remove hardcoded MAC addressesSascha Hauer2015-01-286-6/+6
| | | | | | | There should be no hardcoded MAC addresses in the default environments. Remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands/splash: fix '-y' option handlingAntony Pavlov2015-01-261-0/+1
| | | | | | | | The '-y' and '-o' options are independent, so just add missing 'break'. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: atmel: sama5d3xek: fix conflict between w1 and ledBo Shen2015-01-211-0/+8
| | | | | | | | As the 1-wire and LED d2 use the same pin (PE25) on the EK board. So, make LED enable only when the 1-wire is disabled. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: atmel: sama5d4 xplained: fix mci1 power pinBo Shen2015-01-211-1/+1
| | | | | | | Correct the mci1 power pin from PE15 to PE4. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: board: virt2real: build lowlevel in proper targetLucas Stach2015-01-191-1/+2
| | | | | | | Fixes build with PBL enabled. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb: musb-dsps: select OFDEVICELucas Stach2015-01-191-0/+1
| | | | | | | | Fixes: In function `dsps_probe': undefined reference to `of_usb_get_dr_mode' Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common: console_console: put functions under correct ifdefLucas Stach2015-01-191-35/+35
| | | | | | | | | | So they aren't build when no console support is selected. Fixes: In function `console_get_by_dev': undefined reference to `console_list' Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* docs: fix broken referenceLucas Stach2015-01-191-2/+2
| | | | | Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* docs: fix missing newlines in codeblocksLucas Stach2015-01-191-0/+2
| | | | | | | | Those cause a warning while generating the docs as well as misrendering of the generated docs. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* defaultenv-2: fix misplace NV dir in envJean-Christophe PLAGNIOL-VILLARD2015-01-133-0/+0
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: fix a warning in help.cMasahiro Yamada2015-01-131-1/+1
| | | | | | | | | | | | | Fix the following warning: commands/help.c: In function ‘list_group’: commands/help.c:57:4: warning: format not a string literal and no format arguments [-Wformat-security] printf(cmdtp->name); ^ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* command/splash: fix return valueJean-Christophe PLAGNIOL-VILLARD2015-01-131-4/+6
| | | | | | | | | return errno when possible otherwise return 0 for ok or 1 for error Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* kconfig/menu.c:590: fix warning: ‘jump’ may be used uninitialized in ↵Jean-Christophe PLAGNIOL-VILLARD2015-01-131-1/+1
| | | | | | | this function [-Wmaybe-uninitialized] Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pbl-console'Sascha Hauer2015-01-090-0/+0
|\
| * ARM: uncompress.c: Add some debugging messagesSascha Hauer2014-12-091-0/+9
| | | | | | | | | | | | | | | | Now that we have printf support in the PBL we can use it right after setup_c(). Add some debug messages to the early PBL code to make it more clear what is happening there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: start.c: Add some debugging messagesSascha Hauer2014-12-091-0/+11
| | | | | | | | | | | | | | | | pr_debug can now be used right after setup_c(), so add some debug messages to the early startup code to make it a bit more clear what is happening there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * console: Make sure xzalloc is only used when it's availableSascha Hauer2014-12-091-1/+1
| | | | | | | | | | | | | | | | To make it possible to call the pr_* functions very early before malloc is initialized test if malloc is available before using it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * malloc: Add a function to detect if malloc pool is already initializedSascha Hauer2014-12-092-0/+10
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add PBL console supportSascha Hauer2014-12-097-14/+79
| | | | | | | | | | | | | | | | | | | | | | This adds simple console support to the PBL which makes it possible to print more complex messages in the PBL than just strings or hex numbers. For now puts_ll is used to print the messages, so it depends on CONFIG_DEBUG_LL which makes it more a debugging option. However, this could be extended later to get regular output from the PBL if desired. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * printf: use local isdigit/isalnum implementationSascha Hauer2014-12-091-3/+5
| | | | | | | | | | | | | | To be independent of the _ctype array. This makes it possible to add printf support to the PBL without adding _ctype aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * printf: move simple_strto*() functions to separate fileSascha Hauer2014-12-093-66/+69
| | | | | | | | | | | | These are not needed in the PBL, so move them to a separate file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * printf: move panic() to common/misc.cSascha Hauer2014-12-092-21/+22
| | | | | | | | | | | | | | | | panic() is not really a printf like function, so move it to common/misc.c. This is done because we want to have printf support in the PBL, but PBL has it's own panic() implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * PBL: Add strnlen, needed for printf supportSascha Hauer2014-12-091-0/+14
| | | | | | | | | | | | | | vsprintf needs strnlen, so in oder to add console support to the PBL we need a strnlen implementation. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/netconsole'Sascha Hauer2015-01-094-24/+45
|\ \
| * | netconsole: fix DocumentationJean-Christophe PLAGNIOL-VILLARD2014-12-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since commit 8eacfa71abcba857ab9aa1dcad49e2ba7d83406b Refs: v2014.07.0-156-g8eacfa7 Author: Sascha Hauer <s.hauer@pengutronix.de> the netconsole device have a static device name 'netconsole' Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | netconsole: activate in set_active callbackSascha Hauer2014-12-171-21/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Activate the netconsole in the set_active callback. Add proper checks there for port and ip address, print an error when the network hasn't been configured and finally print when the netconsole has been enabled successfully. This makes using of the netconsole easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | console: Add set_active callbackSascha Hauer2014-12-172-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | The netconsole needs to be able to deny activation when the network has not been enabled. Add an optional callback to the console for this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mxs'Sascha Hauer2015-01-0974-382/+7576
|\ \ \
| * | | ARM: imx233-olinuxino: update defconfigJan Luebbe2015-01-071-28/+72
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: imx233-olinuxino: update defaultenvJan Luebbe2015-01-0711-87/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: imx233-olinuxino: use LED1 as heartbeatJan Luebbe2015-01-071-0/+11
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: imx233-olinuxino: generate complete bootstreamJan Luebbe2015-01-054-63/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enable multi-image support to generate bootstream, sd-card and 2nd stage images. - Handle pin-mux in lowlevel.c only. - Use fine-tuned memory setup from u-boot. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | arm: mxs: fix pin voltage register value for EMIJan Luebbe2015-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EMI pins are documented in the reference manual as using value 0 for both 1.8V and 2.5V. Value 1 is reserved. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Documentation: Add documentation for booting Freescale MXS SoCsSascha Hauer2015-01-051-0/+119
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Update Karo TX28 board supportSascha Hauer2015-01-056-83/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - enable multiimage support to generate bootstream, sd-card and 2nd stage images - Enable new defaultenv support - Enable more features Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Add multiimage supportSascha Hauer2015-01-055-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Freescale MXS SoCs have a multi staged boot process which needs different images composed out of different binaries. The ROM executes a so called bootstream which contains multiple executables. The first one is executed in SRAM and the purpose of this binary is to setup the internal PMIC and the SDRAM. The second image is usually the bootloader itself. In case of barebox the bootstream is composed out of the self extracting barebox image (pblx) and the prepare stage for setting up the SDRAM. The bootstream image itself is useful for USB boot, but for booting from SD cards or NAND a BCB header has to be prepended to the image. In case of SD boot the image has the .mxssd file extension in barebox. Since the bootstream images are encrypted they are not suitable for 2nd stage execution. For this purpose the 2nd stage images are generated. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Enable iomux support for pblSascha Hauer2015-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Upcoming lowlevel code for MXS needs the iomux setup functions Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: Add more base address definesSascha Hauer2015-01-052-0/+6
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: Add get_sp() and get_lr() functionsSascha Hauer2015-01-051-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | In case it's needed for some early code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: mxs: Add lowlevel setup from U-BootSascha Hauer2015-01-0511-0/+3236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | U-Boot has code to replace the infamous Freescale bootlet code. This patch adds this for barebox with some changes: - Separate it more into mx23/mx28 functions instead of mxs functions with #ifdefs for the actual SoC - Add mx2x_power_init_battery_input() power entry point for boards which have a regulated input on the battery pin to supply the board. - Export more functions to be more flexible when boards need non standard setup. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: Add U-Boot specific io functionsSascha Hauer2015-01-051-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | To make it easier to adopt code from U-Boot. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: MXS: remove unnecessary mach/imx-regs.h includeSascha Hauer2015-01-057-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | And replace the ones needed with the SoC specific header. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | drivers: remove unnecessary mach/imx-regs.h includeSascha Hauer2015-01-057-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | And replace the ones needed with the SoC specific header. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: Add mxs-usb-loader toolSascha Hauer2015-01-053-0/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is directly taken from the rockbox projects sbloader tool, just renamed to mxs-usb-loader to avoid confusion with bareboxes several different image tools. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: Add mxsboot toolSascha Hauer2015-01-053-1/+643
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Copied from U-Boot v2014.10 and changed to use getopt instead of handcrafted parsing. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | scripts: add mxsimage toolSascha Hauer2015-01-053-0/+2564
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is copied from U-Boot v2014.10 and modified for use with barebox: - Add a main() function to make it a standalone tool - Add option to pass in the prepare stage and bootloader image as options. If the config file contains @PREP@ or @BOOTLOADER@ the string will be replaced with the actual image file passed via the -p and -b options. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: uncompress.c: Add some debugging messagesSascha Hauer2015-01-051-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have printf support in the PBL we can use it right after setup_c(). Add some debug messages to the early PBL code to make it more clear what is happening there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>