Boot interface for device trees on ARM
M. Warner Losh
imp at bsdimp.com
Thu May 20 03:32:01 EST 2010
In message: <AANLkTinzTKkSIwGemGJ-gI0DSD-ANOSePkdwFZhMwFnM at mail.gmail.com>
Grant Likely <grant.likely at secretlab.ca> writes:
: > They could also settle on a
: > fixed R1 value meaning "devtree platform".
: >
: > Or if a fixed "devtree platform" R1 is used, R2 could point directly
: > at the DT, no atag list in that specific case.
:
: My sticking point is I want there to be exactly one method of passing
: the device tree blob. I don't see any advantage in having more than
: one mechanism for passing the dtb pointer. Whether it be ATAG or bare
: DT pointer, we should be able to choose a single method now that is
: suitable for the foreseeable future.
The gain from having a shortcut is small (maybe a dozen instructions
at most saved). I'd rather see an interface compatible with old ATAG
boot loaders that would allow for easy selection, inside the kernel,
of which information to believe.
The biggest concern that I have with this is to make sure that it is
unambiguous what the kernel should do with the data. Eg, the DT takes
precedence over the rest of the ATAG list, but the two are required to
be 100% consistent (with all the mappings between ATAG and DT well
defined). The only time things should vary is when DT is more
expressive than ATAG, and even then kernels relying on the old
interface should do a sensible thing...
Warner
More information about the devicetree-discuss
mailing list