Jon Loeliger
6cf2bcd1e0
Add copyright. Fix 80-column line.
...
Signed-off-by: Jon Loeliger <jdl@jdl.com>
19 years ago
Jon Loeliger
780c742b14
Remove dead code.
...
Signed-off-by: Jon Loeliger <jdl@jdl.com>
19 years ago
Michael Neuling
38e8f8fd88
dtc: add setting of physical boot cpu
...
dtc always sets the physical boot CPU to 0xfeedbeef. Add a -b option to
set this. Also add warnings when using the wrong property with the
wrong blob version.
Signed-off-by: Michael Neuling <mikey@neuling.org>
19 years ago
Jon Loeliger
05ae3d8eeb
Use .long on high and low halfs of u64s to avoid .quad
...
as it appears .quad isn't available in some assemblers.
19 years ago
Jon Loeliger
f7374f60eb
Don't generate the mem-reserve entry for the blob itself,
...
even for ASM output. It was inconsistent with the binary
output form, and kernel folks decided to have the early
kernel perform the reservation itself.
19 years ago
Mark A. Greer
7a9f663ac7
The problem is that asm_emit_cell() was swapping its asm output when
...
it shouldn't be (because the assembler will do the necessary swapping).
The cell values (asm_emit_cell()) are different from the data values
(asm_emit_data()) because the cell values are generated within the
program and don't get swapped like the data values read from the dts file.
They should be left as they are so that the assembler will swap them,
if necessary. For example, when the property length field was 4,
the asm output contained ".long 0x4000000" and sent the kernel prom.c
dt parsing code into the weeds.
Pointed out by Mark Greer.
19 years ago
David Gibson
f5aa792d81
Add paper on the flattened tree and dtc presented at linux.conf.au 2006 by
...
way of some more documentation.
19 years ago
Becky Bruce
f192a7ae0b
[PATCH] dtc: Update flat OF doc for new mdio properties
...
Add device-type and compatible as required fields for mdio node; add eTSEC
to ethernet model options.
Signed-off-by: Becky Bruce <Becky.bruce@freescale.com>
19 years ago
David Gibson
986c272d66
Added document describing flattened tree format and what properties / nodes
...
the kernel needs. Written by BenH and Becky Bruce.
19 years ago
David Gibson
1ae70562f0
Remove no longer used (and already commented) reserve_data field from boot_info.
19 years ago
David Gibson
712e52e438
Use names for output functions in the form dt_to_*() instead of
...
write_dt_*() for consistency with the dt_from_*() input functions.
19 years ago
David Gibson
f040d95b84
Rework tracking of reserve entries during processing. This is initial work
...
to allow more powerful handling of reserve entries.
19 years ago
David Gibson
fccb194a14
Add a second cpu and a timebase frequency to test.dts.
19 years ago
David Gibson
8f1bc85611
Add a .gitignore file.
19 years ago
David Gibson
740a19a819
Alter add_property() and add_child() functiosn to add to the end of their
...
respective linked lists. This means we no longer reverse the order or
properties and subnodes when in blob or fs input modes.
19 years ago
David Gibson
cba839c728
Reduce message about too-long property names to a mere warning, it causes
...
too much trouble. Still need to fix up error handling in general.
19 years ago
David Gibson
1847d161dc
Update TODO
19 years ago
David Gibson
86dbcbd1e4
Rudimentary support for reporting the line number of syntax errors.
19 years ago
David Gibson
b4ac04952a
Oops avoid using case range gcc extension.
19 years ago
David Gibson
93c82174ea
Use C99 fixed width integer type names in libdt.
19 years ago
David Gibson
c6d036eaec
Oops, use strtoul() instead of strtol() in dtc-lexer.l, so that we
...
correctly handle cell values above 7fffffff. Bug pointed out by Kumar Gala.
19 years ago
David Gibson
b2543fc875
Add ftdump utility, contributed by Pantelis Antoniou.
20 years ago
David Gibson
6c0f36769a
Fix endian problems with handling of memreserve entries (bug pointed out
...
by Pantelis Antoniou). The rule is that the memreserve data in struct
boot_info is always stored big-endian.
20 years ago
David Gibson
230f253e9b
Remove an unused function, mark a bunch of other functions and variables
...
as static. Mostly found by sparse.
20 years ago
David Gibson
41916138dd
Forgot to realign after emitting auto-generated "name" properties. Oops.
20 years ago
David Gibson
dffc2a8972
Add a couple of missing cpu_to_be32() writing the version numbers out.
20 years ago
David Gibson
4ddf7c020c
In flat tree reading, check for (negative) string offsets which underrun
...
the input blob. (Patch from Michael Ellerman).
20 years ago
David Gibson
7f6d12b3a1
Remove unused enum from dtc.h.
20 years ago
David Gibson
f0517db250
Support for specifying memreserve ranges in the source format, based on
...
a patch by Jon Loeliger <jdl AT freescale.com>, although tweaked
substantially.
20 years ago
David Gibson
586606e35d
Oops, fix stupid bug where we emitted padding before, rather than after
...
the blob header.
20 years ago
David Gibson
47f23dee09
Ensure that the reserve map is doubleword aligned in blob and asm output.
20 years ago
David Gibson
a6c69572a3
Remove inaccurate comment.
20 years ago
David Gibson
03a9b9dcdc
Use u8 instead of uint8_t, as we do with the other size types.
20 years ago
David Gibson
7ee3ffd43f
Fix bug in error message.
20 years ago
David Gibson
1cb934b3aa
Add automatic dependency generation.
20 years ago
David Gibson
5a446b0cd8
Add flex option to stop warning about unused yyunput().
20 years ago
David Gibson
c5c437e25b
Oops. Using %{ %} in the rules (rather than definitions) section of a
...
lex file has undefined behaviour. In fact it ends up including the stuff
within the definition of the yylex() function, leading to strange warnings
on gcc-3.4 and compile errors with gcc 4.
20 years ago
David Gibson
363f1ea846
Add missing file.
20 years ago
David Gibson
ab870cadb4
First cut at a "libdt" set of routines for extracting things from the
...
flattened tree. Could be used in firmware.
20 years ago
David Gibson
9ad4587c90
Remove build_empty_property(). It wasn't useful.
20 years ago
David Gibson
81f2e89c75
Rudimentary phandle reference support.
20 years ago
David Gibson
4102d840d9
Initial label support. Also switch to glr-parser mode and get rid of
...
hacks that were necessary without it.
20 years ago
David Gibson
fc14dad769
Initial commit
20 years ago