summaryrefslogtreecommitdiff
path: root/common/fdt_support.c
Commit message (Collapse)AuthorAgeLines
...
* fdt: suppress unused variable 'bd' warningKim Phillips2007-08-16-1/+0
| | | | Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
* Improve error print messages.Gerald Van Baren2007-08-10-31/+21
| | | | Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* Create new fdt boardsetup command, fix bug parsing [] form of set values.Gerald Van Baren2007-08-10-15/+0
| | | | | | | | | | | | Previously ft_board_setup() was called by fdt_chosen() which was not really correctly structured. This splits ft_board_setup() out by creating a new fdt boardsetup command. Fix a bug when parsing fdt set command values which have the square bracket form [00 11 22 33] - the length was updated incorrectly in when parsing that form. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* Tighten up the error messages.Gerald Van Baren2007-08-10-22/+11
| | | | Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* Fix fdt_chosen() to call ft_board_setup(), clean up long lines.Gerald Van Baren2007-08-10-39/+74
| | | | | | | | | The fdt_chosen() function was adding/seting some properties ad-hoc improperly and duplicated (poorly) what was done in ft_board_setup() Clean up long lines (setting properties, printing errors). Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* Replace fdt_node_offset() with fdt_find_node_by_path().Gerald Van Baren2007-08-10-5/+5
| | | | | | | | The new name matches more closely the kernel's name, which is also a much better description. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
* Minor code clean up.Gerald Van Baren2007-08-10-0/+5
| | | | | | | | Declare the variable fdt properly as extern. Call the "set_fn" function pointer the "short way" without the full dereferencing syntax. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* Improve error messages, more informative.Gerald Van Baren2007-08-10-13/+14
| | | | | | | | Print more than the raw libfdt error message strings. This is especially useful for cluing in the user when the bootm command aborts due to blob problems. Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
* Fix serious pointer bug with bootm and reserve map.Gerald Van Baren2007-04-19-2/+2
| | | | | | | What was suppose to be a stack variable was declared as a pointer, overwriting random memory. Also moved the libfdt.a requirement into the main Makefile. That is The U-Boot Way.
* Improve the bootm command for CONFIG_OF_LIBFDTGerald Van Baren2007-04-14-5/+29
| | | | | | In bootm, create the "/chosen" node only if it doesn't already exist (better matches the previous behavior). Update for proper reserved memory map handling for initrd.
* Moved fdt command support code to fdt_support.cGerald Van Baren2007-04-06-0/+323
...in preparation for improving the bootm command's handling of fdt blobs. Also cleaned up some coding sloppiness.