- Apr 02, 2008
-
-
Andy Fleming authored
The fdt set command was treating properties specified as <00> and <0011> as byte streams, rather than as an array of cells. As we already have syntax for expressing the desire for a stream of bytes ([ xx xx ...]), we should use the <> syntax to describe arrays of cells, which are always 32-bits per element. If we imagine this likely (IMHO) scenario: > fdt set /ethernet-phy@1 reg <1> With the old code, this would create a bad fdt, since the reg cell would be made to be one byte in length. But the cell must be 4 bytes, so this would break mysteriously. Also, the dts spec calls for constants inside the angle brackets (<>) to conform to C constant standards as they pertain to base. Take this scenario: > fdt set /ethernet@f00 reg <0xe250000\ 0x1000> The old fdt command would complain that it couldn't parse that. Or, if you wanted to specify that a certain clock ran at 33 MHz, you'd be required to do this: > fdt set /mydev clock <1f78a40> Whereas the new code will accept decimal numbers. While I was in there, I extended the fdt command parser to handle property strings which are split across multiple arguments: > fdt set /ethernet@f00 interrupts < 33 2 34 2 36 2 > > fdt p /ethernet@f00 ethernet@f00 { interrupts = <0x21 0x2 0x22 0x2 0x24 0x2>; }; Lastly, the fdt print code was rearranged slightly to print arrays of cells if the length of the property is a multiple of 4 bytes, and to not print leading zeros. Signed-off-by:
Andy Fleming <afleming@freescale.com>
-
- Mar 25, 2008
-
-
Jerry Van Baren authored
These defines embedded the u-boot env variables and/or the bd_t structure in the fdt blob. The conclusion of discussion on the u-boot email list was that embedding these in the fdt blob is not useful: there are better ways of passing the data (in fact, the fdt blob itself replaces the bd_t struct). The only board that enables these is the stxxtc and they don't appear to be used by linux. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com> Acked-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Mar 19, 2008
-
-
Kumar Gala authored
The introduciton of the 'fdt bootcpu' broke parsing for 'fdt boardsetup'. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
fdt header - Display header info fdt bootcpu <id> - Set boot cpuid fdt memory <addr> <size> - Add/Update memory node fdt rsvmem print - Show current mem reserves fdt rsvmem add <addr> <size> - Add a mem reserve fdt rsvmem delete <index> - Delete a mem reserves Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Jan 08, 2008
-
-
Gerald Van Baren authored
Add a note that "fdt copy" makes the new address active. Remove most of the extra hints at the end of the fdt help. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
Gerald Van Baren authored
Fix a bug found and documented by Bartlomiej Sieka where the optional value on "fdt set <path> <prop> [<val>]" wasn't optional. => fdt mknode / testnode => fdt print /testnode testnode { }; => fdt set /testnode testprop => fdt print /testnode testnode { testprop; }; Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Dec 08, 2007
-
-
Gerald Van Baren authored
Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Nov 22, 2007
-
-
Gerald Van Baren authored
Also improve printing (adopt dtc v1 "c style" hex format), whitespace cleanup. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Nov 21, 2007
-
-
Kumar Gala authored
cmd_fdt.c: In function fdt_print: cmd_fdt.c:586: warning: assignment discards qualifiers from pointer target type cmd_fdt.c:613: warning: assignment discards qualifiers from pointer target type cmd_fdt.c:635: warning: assignment discards qualifiers from pointer target type cmd_fdt.c:636: warning: assignment discards qualifiers from pointer target type Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Update libfdt to commit 8eaf5e358366017aa2e846c5038d1aa19958314e from the device tree compiler (dtc) project. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Grant Likely authored
Modify common/Makefile to conditionally compile the cmd_*.c files based on the board config. Signed-off-by:
Grant Likely <grant.likely@secretlab.ca>
-
- Aug 10, 2007
-
-
Kim Phillips authored
protect fdt_env and fdt_bd_t invocations, fix codingstyle while in the area. Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
Gerald Van Baren authored
In the patch titled "Create new fdt boardsetup command..." I removed the call to ft_board_setup() from the routine fdt_chosen(), but I forgot to add a direct call back into cmd_bootm.c This fixes the oversight by adding the direct call to the bootm command. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
Gerald Van Baren authored
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>
-
Gerald Van Baren authored
Also removes the special case root path detection in cmd_fdt.c since it is no longer necessary. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
Gerald Van Baren authored
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>
-
Gerald Van Baren authored
Break lines that were greater than 80 characters in length. Move the fdt print and property parsing code to separate static functions to reduce coding clutter in the fdt_cmd handling body. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
Gerald Van Baren authored
Fix "fdt set" so that it will create a non-existing property. Add "fdt mknode" to create nodes. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
Gerald Van Baren authored
Make the length parameter optional: if not specified, do the move using the current size unchanged. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Apr 06, 2007
-
-
Gerald Van Baren authored
...in preparation for improving the bootm command's handling of fdt blobs. Also cleaned up some coding sloppiness.
-
- Mar 31, 2007
-
-
Gerald Van Baren authored
The fdt command uses David Gibson's libfdt library to manipulate as well as print the flattened device tree. This patch is the new command, the second part is the modifications to the existing code.
-