coreboot-kgpe-d16/util/sconfig
Furquan Shaikh 931982600d util/sconfig: Re-factor device structure in parse tree
This change re-factors the device structure in parse tree to be able
to support multidev devices just like non-multidev devices.

With this change, every device has a bus under it which is the parent
of all devices that fall on the bus. If there are duplicate entries in
the devicetree, then there will be multiple buses under the device and
each bus will have its own set of children.

The tree starts out with a root device which has a root bus under
it. This is a special device which is created statically and its
parent is its own root bus. When parsing the device tree file, devices
get added under the root bus as children.

Since this change re-organizes the way devicetree is represented, it
gets rid of latestchild and next_sibling pointers from struct
device. Also, the tree traversal to generate static.c is changed to
breadth-first walk instead of using the next_sibling.

BUG=b:80081934
TEST=Verified using abuild that all boards compile successfully.

Change-Id: Ic8c8a73a247e8e992ab6b1b2cc3131e06fa2e5a1
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/26800
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-06-08 23:36:02 +00:00
..
Makefile.inc util/blobtool & sconfig: Update GENPARSER Kconfig question 2017-04-14 17:26:48 +02:00
lex.yy.c_shipped devicetree: Add USB device type 2018-05-11 08:59:51 +00:00
main.c util/sconfig: Re-factor device structure in parse tree 2018-06-08 23:36:02 +00:00
sconfig.h util/sconfig: Re-factor device structure in parse tree 2018-06-08 23:36:02 +00:00
sconfig.l devicetree: Add USB device type 2018-05-11 08:59:51 +00:00
sconfig.tab.c_shipped util/sconfig: Re-factor device structure in parse tree 2018-06-08 23:36:02 +00:00
sconfig.tab.h_shipped util/sconfig: Re-factor device structure in parse tree 2018-06-08 23:36:02 +00:00
sconfig.y util/sconfig: Re-factor device structure in parse tree 2018-06-08 23:36:02 +00:00