<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/cmd_fdt.c, branch v1.3.4</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 printf errors.</title>
<updated>2008-07-09T21:55:46+00:00</updated>
<author>
<name>Andrew Klossner</name>
<email>andrew@cesa.opbu.xerox.com</email>
</author>
<published>2008-07-07T13:41:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=dc4b0b38d4aadf08826f6c31270f1eecd27964fd'/>
<id>dc4b0b38d4aadf08826f6c31270f1eecd27964fd</id>
<content type='text'>
The compiler will help find mismatches between printf formats and
arguments if you let it.  This patch adds the necessary attributes to
declarations in include/common.h, then begins to correct the resulting
compiler warnings.  Some of these were bugs, e.g., "$d" instead of
"%d" and incorrect arguments.  Others were just annoying, like
int-long mismatches on a system where both are 32 bits.  It's worth
fixing the annoying errors to catch the real ones.

Signed-off-by: Andrew Klossner &lt;andrew@cesa.opbu.xerox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The compiler will help find mismatches between printf formats and
arguments if you let it.  This patch adds the necessary attributes to
declarations in include/common.h, then begins to correct the resulting
compiler warnings.  Some of these were bugs, e.g., "$d" instead of
"%d" and incorrect arguments.  Others were just annoying, like
int-long mismatches on a system where both are 32 bits.  It's worth
fixing the annoying errors to catch the real ones.

Signed-off-by: Andrew Klossner &lt;andrew@cesa.opbu.xerox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libfdt: Move the working_fdt pointer to cmd_fdt.c</title>
<updated>2008-06-11T02:23:23+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2008-06-11T02:15:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ae9e97fa96f643c8ba2b666b06a026cc8717eb00'/>
<id>ae9e97fa96f643c8ba2b666b06a026cc8717eb00</id>
<content type='text'>
The working_fdt pointer was declared in common/fdt_support.c but was
not used there.  Move it to common/cmd_fdt.c where it is used (it is
also used in lib_ppc/bootm.c).

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The working_fdt pointer was declared in common/fdt_support.c but was
not used there.  Move it to common/cmd_fdt.c where it is used (it is
also used in lib_ppc/bootm.c).

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fdt: unshadow global working fdt variable</title>
<updated>2008-06-11T02:23:17+00:00</updated>
<author>
<name>Kim Phillips</name>
<email>kim.phillips@freescale.com</email>
</author>
<published>2008-06-10T16:06:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e489b9c078e22b0d9e75f002cd2a1bd967e88f5e'/>
<id>e489b9c078e22b0d9e75f002cd2a1bd967e88f5e</id>
<content type='text'>
differentiate with local variables of the same name by renaming the
global 'fdt' variable 'working_fdt'.

Signed-off-by: Kim Phillips &lt;kim.phillips@freescale.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
differentiate with local variables of the same name by renaming the
global 'fdt' variable 'working_fdt'.

Signed-off-by: Kim Phillips &lt;kim.phillips@freescale.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use strncmp() for the fdt command</title>
<updated>2008-06-10T01:13:49+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2008-06-10T01:02:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2fb698bf50f4aff2485581a12fa634a07c040e4a'/>
<id>2fb698bf50f4aff2485581a12fa634a07c040e4a</id>
<content type='text'>
Cleaner than doing multiple conditionals on characters.

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleaner than doing multiple conditionals on characters.

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>The fdt boardsetup command criteria was not unique</title>
<updated>2008-06-10T01:13:44+00:00</updated>
<author>
<name>Gerald Van Baren</name>
<email>vanbaren@cideas.com</email>
</author>
<published>2008-06-07T16:25:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=47abe8ab290d2721a8eeadff65b939e6af8c01b0'/>
<id>47abe8ab290d2721a8eeadff65b939e6af8c01b0</id>
<content type='text'>
It was checking just for "b", which is not unique with respect to the
"boot" command.  Change to check for "boa"[rdsetup].

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was checking just for "b", which is not unique with respect to the
"boot" command.  Change to check for "boa"[rdsetup].

Signed-off-by: Gerald Van Baren &lt;vanbaren@cideas.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Big white-space cleanup.</title>
<updated>2008-05-20T22:14:08+00:00</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2008-05-20T14:00:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=53677ef18e25c97ac613349087c5cb33ae5a2741'/>
<id>53677ef18e25c97ac613349087c5cb33ae5a2741</id>
<content type='text'>
This commit gets rid of a huge amount of silly white-space issues.
Especially, all sequences of SPACEs followed by TAB characters get
removed (unless they appear in print statements).

Also remove all embedded "vim:" and "vi:" statements which hide
indentation problems.

Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit gets rid of a huge amount of silly white-space issues.
Especially, all sequences of SPACEs followed by TAB characters get
removed (unless they appear in print statements).

Also remove all embedded "vim:" and "vi:" statements which hide
indentation problems.

Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</pre>
</div>
</content>
</entry>
<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>
</feed>
