| 75e73afd | 04-Jul-2010 |
Kumar Gala <galak@kernel.crashing.org> |
fdt: Add fdt_node_offset_by_compat_reg helper
Given a compatible string and physical address try and find a node that matches. This is useful when we want to find a specific device node to update (
fdt: Add fdt_node_offset_by_compat_reg helper
Given a compatible string and physical address try and find a node that matches. This is useful when we want to find a specific device node to update (for example if we have multiple PCI nodes we can use the physical address to distinguish them when trying to update the device tree).
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
show more ...
|
| a0342c08 | 16-Jun-2010 |
Kumar Gala <galak@kernel.crashing.org> |
fdt: Add fdt_translate_address to convert reg node to cpu phys addr
This code is extracted out of the Linux Kernel code from arch/powerpc/kernel/prom_parse.c.
We maintain some of the same structure
fdt: Add fdt_translate_address to convert reg node to cpu phys addr
This code is extracted out of the Linux Kernel code from arch/powerpc/kernel/prom_parse.c.
We maintain some of the same structure to support multiple bus types even though we only have one in the current code. In the future we might want to translate across a PCI bus and thus it will be easier to add that functionality back in.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
show more ...
|
| 0fe247b9 | 05-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
Drop support for GTH board
The board maintainer states:
The GTH board is obsolete and has not been manufactured for several years. To my knowledge, no recent U-Boot build has been teste
Drop support for GTH board
The board maintainer states:
The GTH board is obsolete and has not been manufactured for several years. To my knowledge, no recent U-Boot build has been tested on that card.
So drop support for this board.
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Thomas Lange <thomas@corelatus.se> Acked-by: Thomas Lange<thomas@corelatus.se>
show more ...
|
| b6c208ab | 16-Jul-2010 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx |
| 199e262e | 17-Jun-2010 |
Becky Bruce <beckyb@kernel.crashing.org> |
mpc85xx: Add reginfo command
The new command dumps the TLBCAM, the LAWs, and the BR/OR regs. Add CONFIG_CMD_REGINFO to the config for all MPC85xx parts.
Signed-off-by: Becky Bruce <beckyb@kernel.cr
mpc85xx: Add reginfo command
The new command dumps the TLBCAM, the LAWs, and the BR/OR regs. Add CONFIG_CMD_REGINFO to the config for all MPC85xx parts.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
show more ...
|
| 5d0c3b57 | 28-May-2010 |
Kim Phillips <kim.phillips@freescale.com> |
fdt: move fsl specific code from common fdt area to mpc8xxx/fdt.c
Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> |
| 8c35d0c5 | 28-Nov-2009 |
Marek Vasut <marek.vasut@gmail.com> |
Enable PXAFB for PXA27X and PXA3XX |
| 53504a27 | 12-Jul-2010 |
Scott Wood <scottwood@freescale.com> |
NAND: formatting cleanups from env.oob support
Change if (ok) { bunch of stuff } else { error }
to
if (error) { get out }
proceed with bunch of stuff
Plus a few whitespace cleanups.
Signed-o
NAND: formatting cleanups from env.oob support
Change if (ok) { bunch of stuff } else { error }
to
if (error) { get out }
proceed with bunch of stuff
Plus a few whitespace cleanups.
Signed-off-by: Scott Wood <scottwood@freescale.com>
show more ...
|
| c9f7351b | 05-Jul-2010 |
Ben Gardiner <bengardiner@nanometrics.ca> |
NAND: environment offset in OOB (CONFIG_ENV_OFFSET_OOB)
This is a re-submission of the patch by Harald Welte <laforge@openmoko.org> with minor modifications for rebase and changes as suggested by Sc
NAND: environment offset in OOB (CONFIG_ENV_OFFSET_OOB)
This is a re-submission of the patch by Harald Welte <laforge@openmoko.org> with minor modifications for rebase and changes as suggested by Scott Wood <scottwood@freescale.com> [1] [2].
This patch enables the environment partition to have a run-time dynamic location (offset) in the NAND flash. The reason for this is simply that all NAND flashes have factory-default bad blocks, and a fixed compile time offset would mean that sometimes the environment partition would live inside factory bad blocks. Since the number of factory default blocks can be quite high (easily 1.3MBytes in current standard components), it is not economic to keep that many spare blocks inside the environment partition.
With this patch and CONFIG_ENV_OFFSET_OOB enabled, the location of the environment partition is stored in the out-of-band (OOB) data of the first block in flash. Since the first block is where most systems boot from, the vendors guarantee that the first block is not a factory default block.
This patch introduces the 'nand env.oob' command, which can be called from the u-boot command line. 'nand env.oob get' reads the address of the environment partition from the OOB data, 'nand env.oob set {offset,partition-name}' allows the setting of the marker by specifying a numeric offset or a partition name.
[1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/43916 [2] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/79195
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca> Acked-by: Harald Welte <laforge@gnumonks.org>
show more ...
|
| 54841ab5 | 28-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
Make sure that argv[] argument pointers are not modified.
The hush shell dynamically allocates (and re-allocates) memory for the argument strings in the "char *argv[]" argument vector passed to comm
Make sure that argv[] argument pointers are not modified.
The hush shell dynamically allocates (and re-allocates) memory for the argument strings in the "char *argv[]" argument vector passed to commands. Any code that modifies these pointers will cause serious corruption of the malloc data structures and crash U-Boot, so make sure the compiler can check that no such modifications are being done by changing the code into "char * const argv[]".
This modification is the result of debugging a strange crash caused after adding a new command, which used the following argument processing code which has been working perfectly fine in all Unix systems since version 6 - but not so in U-Boot:
int main (int argc, char **argv) { while (--argc > 0 && **++argv == '-') { /* ====> */ while (*++*argv) { switch (**argv) { case 'd': debug++; break; ... default: usage (); } } } ... }
The line marked "====>" will corrupt the malloc data structures and usually cause U-Boot to crash when the next command gets executed by the shell. With the modification, the compiler will prevent this with an error: increment of read-only location '*argv'
N.B.: The code above can be trivially rewritten like this:
while (--argc > 0 && **++argv == '-') { char *arg = *argv; while (*++arg) { switch (*arg) { ...
Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| b218ccb5 | 22-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
Redundant environment: move flag definitions to header file
Instead of defining the flags sevaral times in different source files (which is error prone), move them to a central place in a header fil
Redundant environment: move flag definitions to header file
Instead of defining the flags sevaral times in different source files (which is error prone), move them to a central place in a header file.
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| d9c27253 | 20-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
Make *printf() return "int" instead of "void"
Change the return type of the *printf() functions to the standard "int"; no changes are needed but returning the already available length count.
This w
Make *printf() return "int" instead of "void"
Change the return type of the *printf() functions to the standard "int"; no changes are needed but returning the already available length count.
This will save a few additional strlen() calls later...
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| c0c15379 | 20-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
exports.c: fix warning: 'dummy' defined but not used
Also get rid of the #ifdef's while doing this.
Suggested-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Wolfgang Denk <wd@denx.de> |
| cd47a83b | 20-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
cmd_ide.c: fix unused variable warning for SC3 board
Signed-off-by: Wolfgang Denk <wd@denx.de> |
| 0e70aaa4 | 20-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
shannon/INFERNO: fix special handling of environment configuration
Remove some INFERNO related #ifdef's from common environment code by fixing the board configuration settings (add CONFIG_ENV_SECT_S
shannon/INFERNO: fix special handling of environment configuration
Remove some INFERNO related #ifdef's from common environment code by fixing the board configuration settings (add CONFIG_ENV_SECT_SIZE).
While we are at it, fix comment which incorrectly talks about 4 KB environment size, while it's actually 0x4000 = 16 KiB.
Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Rolf Offermanns <rof@sysgo.de>
show more ...
|
| 7319bcaf | 23-Apr-2010 |
Wolfgang Wegner <w.wegner@astro-kom.de> |
add redundant environment for env_sf.c
This patch adds redundant environment for environment in SPI flash. I took env_flash.c as an example and slightly modified it. Apart from adapting things to SF
add redundant environment for env_sf.c
This patch adds redundant environment for environment in SPI flash. I took env_flash.c as an example and slightly modified it. Apart from adapting things to SF, I also slightly changed the decision logic to use area 2 as a default in case the flags are wrong because not having a default path worried me.
I did not add a section for CONFIG_ENV_IS_IN_SPI_FLASH in environment.h because I did not understand if this is desired and/or needed. So to use the feature, one has to set CONFIG_ENV_OFFSET_REDUND _and_ CONFIG_SYS_REDUNDAND_ENVIRONMENT.
I checked it by powering off my board several times during flash erase or write, because I do not know if there are other stress test scenarios.
Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 0a9463e9 | 29-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' into next |
| c99ea790 | 06-Jun-2010 |
Reinhard Meyer <info@emk-elektronik.de> |
Fix #if chain and added AVR32 case in cmd_bdinfo.c
AVR32 case was missing in cmd_bdinfo, resulting in compiler warning (bd->bi_baudrate declared unsigned int at AVR32, but printf used %d)
At the sa
Fix #if chain and added AVR32 case in cmd_bdinfo.c
AVR32 case was missing in cmd_bdinfo, resulting in compiler warning (bd->bi_baudrate declared unsigned int at AVR32, but printf used %d)
At the same time slightly reordered #if #elif #endif to make ARM one of the cases and not an extra case surrounding all others
Signed-off-by: Reinhard Meyer <info@emk-elektronik.de> Tested-by: Andreas Bießmann <biessmann@corscience.de>
show more ...
|
| 3bf74a41 | 18-Jun-2010 |
Anton Vorontsov <avorontsov@mvista.com> |
hwconfig: Add some unit tests
I use this for testing, and I think this might be useful in the future.
Signed-off-by: Anton Vorontsov <avorontsov@mvista.com> |
| 81f8d3b0 | 18-Jun-2010 |
Anton Vorontsov <avorontsov@mvista.com> |
hwconfig: Fix stop characters parsing for subkeys
For the following hwconfig string:
key1:subkey1=value1,subkey2=value2;key2:value3
The subkey2 cannot be extracted correctly. The parsing code lo
hwconfig: Fix stop characters parsing for subkeys
For the following hwconfig string:
key1:subkey1=value1,subkey2=value2;key2:value3
The subkey2 cannot be extracted correctly. The parsing code looks for comma as a stopch, but there may be two kind of stop characters: a comma and a semicolon.
Currently the code would return "value2;key2:value3", while just "value2" is the correct answer.
This patch fixes the issue by making the code aware of multiple stop characters.
For old U-Boots, the issue can be workarounded by placing a comma before a semicolon, i.e.:
hwconfig=key1:subkey1=value1,subkey2=value2,;key2:value3
Reported-by: York Sun <yorksun@freescale.com> Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
show more ...
|
| 1f9d10f6 | 17-Jun-2010 |
Remy Bohmer <linux@bohmer.net> |
Fix console_buffer size conflict error.
The console_buffer size is declared in common/main.c as -- char console_buffer[CONFIG_SYS_CBSIZE + 1]; so this extern definition is wrong.
Signed-off-by:
Fix console_buffer size conflict error.
The console_buffer size is declared in common/main.c as -- char console_buffer[CONFIG_SYS_CBSIZE + 1]; so this extern definition is wrong.
Signed-off-by: Remy Bohmer <linux@bohmer.net>
show more ...
|
| 953b7e62 | 13-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
Remove AmigaOneG3SE board
The AmigaOneG3SE board has been orphaned or a very long time, and broken for more than 12 releases resp. more than 3 years. As nobody seems to be interested any more in th
Remove AmigaOneG3SE board
The AmigaOneG3SE board has been orphaned or a very long time, and broken for more than 12 releases resp. more than 3 years. As nobody seems to be interested any more in this stuff we may as well ged rid of it, especially as it clutters many areas of the code so it is a continuous pain for all kinds of ongoing work.
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| 482126e2 | 23-Jun-2010 |
Wolfgang Denk <wd@denx.de> |
Prepare v2010.06-rc3
Signed-off-by: Wolfgang Denk <wd@denx.de> |
| 3057c6be | 23-Apr-2010 |
Kim Phillips <kim.phillips@freescale.com> |
fdt_support: add entry for sec3.1 and fix sec3.3
Add sec3.1 h/w geometry for fdt node fixups.
Also, technically, whilst SEC v3.3 h/w honours the tls_ssl_stream descriptor type, it lacks the ARC4 al
fdt_support: add entry for sec3.1 and fix sec3.3
Add sec3.1 h/w geometry for fdt node fixups.
Also, technically, whilst SEC v3.3 h/w honours the tls_ssl_stream descriptor type, it lacks the ARC4 algorithm execution unit required to be able to execute anything meaningful with it. Change the node to agree with the documentation that declares that the sec3.3 really doesn't have such a descriptor type.
Reported-by: Haiying Wang <Haiying.Wang@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
show more ...
|
| 1117cbf2 | 28-May-2010 |
Thomas Chou <thomas@wytron.com.tw> |
nios: remove nios-32 arch
The nios-32 arch is obsolete and broken. So it is removed.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> |