summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* console: fix console without CONFIG_PARAMETERJan Luebbe2013-08-261-2/+6
| | | | | | | If CONFIG_PARAMETER is not set, dev_set_param() does not call the setter function. Call it directly instead in this case. Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* uimage: fix: fill size when no compression is usedJean-Christophe PLAGNIOL-VILLARD2013-08-121-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* uimage: fix: always support multi image supportJean-Christophe PLAGNIOL-VILLARD2013-08-121-7/+0
| | | | | | | drop ifdef CONFIG_UIMAGE_MULTI as the Kconfig option is not present anyway Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/of'Sascha Hauer2013-08-052-6/+16
|\ | | | | | | | | | | Conflicts: arch/arm/boards/freescale-mx53-loco/board.c drivers/of/Makefile
| * devfs: let devfs_add_partition return the new partitionSascha Hauer2013-07-152-6/+16
| | | | | | | | | | | | Useful for unregistering later or for adding addional flags. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-08-053-15/+34
|\ \
| * | resurrect CONFIG_PANIC_HANG optionAntony Pavlov2013-08-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CONFIG_PANIC_HANG a part of the U-Boot heritage. It is used in the barebox code, but there is no mention of this option in Kconfig files. Sometimes this option is very helpful, so let's resurrect it. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | memory_display: Change address pointer to type const void *Sascha Hauer2013-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | No need to force a width of the pointer, so use void *. Also it's not modified in memory_display, so also add a const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Force set console baudrate at enable timeAlexey Galakhov2013-07-101-2/+11
| | | | | | | | | | | | | | | Signed-off-by: Alexey Galakhov <agalakhov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | common: console: Fix possible null pointer dereferenceAlexander Shiyan2013-07-091-14/+13
| |/ | | | | | | | | | | | | | | doing a 'cs0.active=' on the command line crashed barebox. Fix this by not dereferencing val when it's NULL. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/lz4'Sascha Hauer2013-08-051-0/+4
|\ \
| * | lib: Add support for LZ4-compressed kernelKyungsik Lee2013-07-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. This depends on the patch below decompressor: Add LZ4 decompressor module Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/imagesize'Sascha Hauer2013-08-051-0/+3
|\ \ \
| * | | block: shortcut writebuffer_flush if writing is disabledSascha Hauer2013-07-221-0/+3
| |/ / | | | | | | | | | | | | | | | Saves a few bytes of binary space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / / of: Use correct devicetree in of_print_cmdlineSascha Hauer2013-07-271-1/+1
|/ / | | | | | | | | | | | | | | of_print_cmdline() is passed a devicetree, so use this one instead of the internal devicetree. This fixes the cmdline printout when bootm on ARM is used with an external devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / ARM: i.MX: Fix i.MX27 debug uart Kconfig entriesSascha Hauer2013-07-151-2/+3
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next-manual/oftree-linux-sync'Sascha Hauer2013-07-021-1/+1
|\
| * OF: base: sync of_find_node_by_path with linux OF APISebastian Hesselbarth2013-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Barebox of_find_node_by_path requires a node to be passed as start node to start searching. Linux OF API does not pass this node and no current user of it in barebox is passing anything else than the root node. Therefore, we rename current function to of_find_node_by_path_from and introduce a Linux OF API compatible of_find_node_by_path that always passes the current root_node. Also, all current users of that function are updated to reflect the API change. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ppc'Sascha Hauer2013-07-012-0/+40
|\ \
| * | common: DDR2 SPD checksum.Renaud Barbier2013-06-272-0/+40
| |/ | | | | | | | | | | | | | | | | | | | | The code calculates the DDR2 SPD checksum as per JEDEC standard No 21-C Appendix X (revision 1.2) The code is based on the equivalent files from U-Boot version git-a71d45d. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2013-07-013-12/+18
|\ \
| * | add function to get boardinfo stringSascha Hauer2013-06-242-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | When using devicetrees the boardinfo (or model) can be obtained from the devicetree. Add a function to get the boardinfo so that we have a chance to add information from the devicetree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | module: remove duplicate ALIGN and __ALIGN_MASK definitionSascha Hauer2013-06-211-3/+0
| | | | | | | | | | | | | | | | | | This is already defined in include/common.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/menu'Sascha Hauer2013-07-011-7/+8
|\ \ \
| * | | menu: Make action callback optionalSascha Hauer2013-06-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Someone calling menu_show might only be interested in the entry the user selected without having something in the action callback. Make it optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Fix gotoXY argument orderSascha Hauer2013-06-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gotoXY has the argument order (y, x). Change this so that usage of this function feels more natural. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | menu: Align entriesSascha Hauer2013-06-191-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More than 9 menu entries in are single menu are not aligned anymore, like this: 8 entry8 9 entry9 10 entry10 Use %2d in the printf format specifier to align more than 9 entries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/memtest'Sascha Hauer2013-07-012-0/+314
|\ \ \
| * | | common: add memtest.c with mem_test routineAlexander Aring2013-06-052-0/+314
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add mem_test routine. Useful to detect timing problems if someone porting a new device to barebox. This test includes a data bus test, address bus test and integrity check of memory. This mem_test routine has as parameter start and end address of testing space. The last parameter can skip the integrity check. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/debug'Sascha Hauer2013-07-012-18/+93
|\ \ \
| * | | startup: Add initcall tracing debug optionSascha Hauer2013-06-252-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Being able to trace initcall is very useful when trying to find out where startup hangs. This adds a kconfig option for it to make it easier to access. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: Make debug UART selectable from KconfigSascha Hauer2013-06-251-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To make early debugging on i.MX a bit simpler. This uses a similar magic than the kernel does. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | remove unused debug Kconfig optionsSascha Hauer2013-06-231-18/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | ENABLE_DEVICE_NOISE is used only in two network drivers and is otherwise unused. ENABLE_FLASH_NOISE is completely unused. ENABLE_PARTITION_NOISE enables DEBUG in the partition command, but this code has no debug messages at all. Remove all this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/bootm'Sascha Hauer2013-07-013-0/+307
|\ \ \ | |/ / |/| |
| * | bootm: factor out code to make it usable from CSascha Hauer2013-06-193-0/+307
| |/ | | | | | | | | | | | | Much of the bootm code is implemented in the command itself. Move it to a common place to be able to call it from C aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / partitions: dos: fix memory leak in nt disk signatureSascha Hauer2013-06-191-0/+2
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/of'Sascha Hauer2013-06-021-6/+15
|\
| * bootm: print Kernel commandline in verbose modeSascha Hauer2013-05-311-0/+15
| | | | | | | | | | | | | | Without devicetree support we print the Kernel commandline in verbose mode. Do the same with devicetree boot aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * of: remove unused defineSascha Hauer2013-05-311-6/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/block'Sascha Hauer2013-06-025-11/+122
|\ \
| * | partition: DOS: Add parameter for the NT disk SignatureSascha Hauer2013-06-021-0/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NT disk Signature is a unique 32-bit value in the MBR allowing to identify a MSDOS partitioned disk. The signature can be used to specify the Linux rootfs. This patch adds support for the NT disk Signature in the form of a device parameter which can both be read and written. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | partitions: Add missing depends on BLOCKSascha Hauer2013-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | The disk partitions use blockdevice functions, so add the corresponding depends on BLOCK. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | block: implement block_read/block_write functionsSascha Hauer2013-05-313-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some drivers use blk->ops->read/write. This bypasses the caching block layer and was never intended like this. The upper API to the block layer is the cdev layer. This patch adds block_read and block_write functions and uses them where appropriate. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | block: rename file operation functionsSascha Hauer2013-05-311-8/+8
| | | | | | | | | | | | | | | | | | | | | block_read and block_write collide with a to-be-introduced global function, so rename the file operation functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2013-06-022-3/+3
|\ \ \ | |/ / |/| |
| * | treewide: Fix typo seperate -> separateSascha Hauer2013-05-212-3/+3
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / make: Add barebox_default_env.* to targetsSascha Hauer2013-05-251-0/+2
|/ | | | | | Otherwise it gets rebuilt everytime. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/param'Sascha Hauer2013-05-061-18/+8
|\ | | | | | | | | Conflicts: drivers/mci/mci-core.c
| * console: Use dev_add_param_int for baudrate parameterSascha Hauer2013-04-111-18/+8
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/memory-commands'Sascha Hauer2013-05-062-0/+65
|\ \