<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/cmd_fdt.c, branch v1.3.3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>Fix fdt set command to conform to dts spec</title>
<updated>2008-04-02T15:07:15+00:00</updated>
<author>
<name>Andy Fleming</name>
<email>afleming@freescale.com</email>
</author>
<published>2008-04-01T01:45:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4abd844d8eb108736e1cf8fbf3dbf61f2d5fc11b'/>
<id>4abd844d8eb108736e1cf8fbf3dbf61f2d5fc11b</id>
<content type='text'>
The fdt set command was treating properties specified as &lt;00&gt; and &lt;0011&gt;
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 &lt;&gt; syntax to describe arrays of cells, which are always
32-bits per element.  If we imagine this likely (IMHO) scenario:

&gt; fdt set /ethernet-phy@1 reg &lt;1&gt;

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 (&lt;&gt;)
to conform to C constant standards as they pertain to base.
Take this scenario:

&gt; fdt set /ethernet@f00 reg &lt;0xe250000\ 0x1000&gt;

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:

&gt; fdt set /mydev clock &lt;1f78a40&gt;

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:

&gt; fdt set /ethernet@f00 interrupts &lt; 33 2 34 2 36 2 &gt;
&gt; fdt p /ethernet@f00
ethernet@f00 {
	interrupts = &lt;0x21 0x2 0x22 0x2 0x24 0x2&gt;;
};

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 &lt;afleming@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The fdt set command was treating properties specified as &lt;00&gt; and &lt;0011&gt;
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 &lt;&gt; syntax to describe arrays of cells, which are always
32-bits per element.  If we imagine this likely (IMHO) scenario:

&gt; fdt set /ethernet-phy@1 reg &lt;1&gt;

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 (&lt;&gt;)
to conform to C constant standards as they pertain to base.
Take this scenario:

&gt; fdt set /ethernet@f00 reg &lt;0xe250000\ 0x1000&gt;

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:

&gt; fdt set /mydev clock &lt;1f78a40&gt;

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:

&gt; fdt set /ethernet@f00 interrupts &lt; 33 2 34 2 36 2 &gt;
&gt; fdt p /ethernet@f00
ethernet@f00 {
	interrupts = &lt;0x21 0x2 0x22 0x2 0x24 0x2&gt;;
};

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 &lt;afleming@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove deprecated CONFIG_OF_HAS_UBOOT_ENV and CONFIG_OF_HAS_BD_T</title>
<updated>2008-03-25T23:22:39+00:00</updated>
<author>
<name>Jerry Van Baren</name>
<email>gvb.uboot@gmail.com</email>
</author>
<published>2008-03-22T18:23:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=43ddd9c820fec44816188f53346b464e20b3142d'/>
<id>43ddd9c820fec44816188f53346b464e20b3142d</id>
<content type='text'>
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 &lt;vanbaren@cideas.com&gt;
Acked-by: Kim Phillips &lt;kim.phillips@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;vanbaren@cideas.com&gt;
Acked-by: Kim Phillips &lt;kim.phillips@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix fdt boardsetup command parsing</title>
<updated>2008-03-19T01:03:45+00:00</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2008-02-20T20:32:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fe30a354cdbb808b5f15366a935b151a4ccee74f'/>
<id>fe30a354cdbb808b5f15366a935b151a4ccee74f</id>
<content type='text'>
The introduciton of the 'fdt bootcpu' broke parsing for 'fdt boardsetup'.

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The introduciton of the 'fdt bootcpu' broke parsing for 'fdt boardsetup'.

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add sub-commands to fdt</title>
<updated>2008-03-19T01:03:45+00:00</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2008-02-15T09:34:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=804887e6001e2f00bea11431bf34d6d472512cda'/>
<id>804887e6001e2f00bea11431bf34d6d472512cda</id>
<content type='text'>
fdt header                          - Display header info
fdt bootcpu &lt;id&gt;                    - Set boot cpuid
fdt memory &lt;addr&gt; &lt;size&gt;            - Add/Update memory node
fdt rsvmem print                    - Show current mem reserves
fdt rsvmem add &lt;addr&gt; &lt;size&gt;        - Add a mem reserve
fdt rsvmem delete &lt;index&gt;           - Delete a mem reserves

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fdt header                          - Display header info
fdt bootcpu &lt;id&gt;                    - Set boot cpuid
fdt memory &lt;addr&gt; &lt;size&gt;            - Add/Update memory node
fdt rsvmem print                    - Show current mem reserves
fdt rsvmem add &lt;addr&gt; &lt;size&gt;        - Add a mem reserve
fdt rsvmem delete &lt;index&gt;           - Delete a mem reserves

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve the FDT help message.</title>
<updated>2008-01-08T20:03:18+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2008-01-05T20:33:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=238cb7a423c6eaa36496efb788cfb9798cea7f95'/>
<id>238cb7a423c6eaa36496efb788cfb9798cea7f95</id>
<content type='text'>
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 &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Support setting FDT properties with optional values.</title>
<updated>2008-01-08T20:03:13+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2008-01-05T19:52:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ea6d8be153ceaf16958f8009cea6d75f3ff58d92'/>
<id>ea6d8be153ceaf16958f8009cea6d75f3ff58d92</id>
<content type='text'>
Fix a bug found and documented by Bartlomiej Sieka where the optional
value on "fdt set &lt;path&gt; &lt;prop&gt; [&lt;val&gt;]" wasn't optional.

=&gt; fdt mknode / testnode
=&gt; fdt print /testnode
testnode {
};
=&gt; fdt set /testnode testprop
=&gt; fdt print /testnode
testnode {
        testprop;
};

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a bug found and documented by Bartlomiej Sieka where the optional
value on "fdt set &lt;path&gt; &lt;prop&gt; [&lt;val&gt;]" wasn't optional.

=&gt; fdt mknode / testnode
=&gt; fdt print /testnode
testnode {
};
=&gt; fdt set /testnode testprop
=&gt; fdt print /testnode
testnode {
        testprop;
};

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add spaces around the = in the fdt print format.</title>
<updated>2007-12-08T01:51:24+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2007-11-24T00:43:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=28f384b171bbf1fb2dafb1046e6d259a6b2f8714'/>
<id>28f384b171bbf1fb2dafb1046e6d259a6b2f8714</id>
<content type='text'>
Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix fdt printing for updated libfdt</title>
<updated>2007-11-22T22:23:23+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2007-11-22T22:23:23+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9162352817579840d7802da6d85872b3ca003c97'/>
<id>9162352817579840d7802da6d85872b3ca003c97</id>
<content type='text'>
Also improve printing (adopt dtc v1 "c style" hex format), whitespace cleanup.

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also improve printing (adopt dtc v1 "c style" hex format), whitespace cleanup.

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix warnings from import of libfdt</title>
<updated>2007-11-21T20:18:06+00:00</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2007-11-21T20:07:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=dbaf07ce620aab249e3502b20a986234a6af1d3a'/>
<id>dbaf07ce620aab249e3502b20a986234a6af1d3a</id>
<content type='text'>
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 &lt;galak@kernel.crashing.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;galak@kernel.crashing.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update libfdt from device tree compiler (dtc)</title>
<updated>2007-11-21T20:04:05+00:00</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2007-10-24T16:04:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8d04f02f6224e6983f4812ea4da704950ec8539c'/>
<id>8d04f02f6224e6983f4812ea4da704950ec8539c</id>
<content type='text'>
Update libfdt to commit 8eaf5e358366017aa2e846c5038d1aa19958314e from
the device tree compiler (dtc) project.

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update libfdt to commit 8eaf5e358366017aa2e846c5038d1aa19958314e from
the device tree compiler (dtc) project.

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
