aboutsummaryrefslogtreecommitdiff
path: root/includes/dt_util.h
AgeCommit message (Collapse)Author
2017-08-09arm: Try to lookup the SOC name from dt/compatibleBurt P
Just ARM for now, but maybe this will become more generic and it will be possible to have the processor package name and description seperate, even for x86 and whatnot. Also perhaps work in Sockets/Threads/Cores information. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-25device tree: silence some warningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-25device tree: fix crash when device tree is not foundBurt P
* check if device tree was found before add_keys() * UNKIFNULL(model) before strcmp * make UNKIFNULL() STRIFNULL() EMPIFNULL() macros more generic Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-22device tree: interrupts-extended and dmas supportBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-22device tree: group interrupt specifiers' values using #interrupt-cellsBurt P
Also, add a message log to the dtr object. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-22device tree: fix bug in dtr_get_parent_obj()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: reg grouping with #address-cells + #size-cellsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: add helper function for appending elementsBurt P
Cleans up code for lists of mixed-type elements. appf() is like h_strdup_cprintf() but with a cute name, logical param order and adds a space when the string is not empty. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: try harder to find device-tree rootBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: decode /__overrides__ fieldsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: special handling gpios and clocksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: display phandle, symbol, and alias mappingsBurt P
* Of course, symbols and aliases are are the same as in /__symbols__ and /aliases. It still helps a bit. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: fixesBurt P
* /aliases/* and /__symbols/* are always strings * phandle ref element bug fix, re-enabled phandle refs * notes on a few more property types Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: add lookup for /__symbols__ valuesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: code comments and tweak dtr_str()Burt P
* dtr_str() requires obj, which knows its dtr. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19device tree: reworked and cleaned upBurt P
* Moved device tree functions to modules/devices/devicetree/dt_util.c * The dtr_* functions usable from outside devicetree.c, for example in get_motherboard(). Must #include "dt_util.h" * Now possible to use an alternate device tree root for testing -DOVRDTRROOT=\"/some/path\" * Alternately, pass dtr_new() an alternate base path. * Abandoned the tuple grouping and inherited properties stuff for now. Signed-off-by: Burt P <pburt0@gmail.com>