sconfig: Add a new generic device type

Hardware / Coreboot - Duncan Laurie [chromium.org] - 16 May 2016 12:49 UTC

Add support for a basic generic device in the devicetree to bind to a device that does not have a specific bus, but may need to be described in tables for the operating system. For instance some chips may have
various GPIO connections that need described but do not fall under any other device.

In order to support this export the basic 'scan_static_bus()' that can be used in a device_operations->scan_bus() method to scan for the generic devices.

It has been possible to get a semi-generic device by using a fake PNP device, but that isn't really appropriate for many devices.

Also Re-generate the shipped files for sconfig. Use flex 2.6.0 to avoid everything being rewritten. Clean up the local paths that leak into the generated configs.

Change-Id: If45a5b18825bdb2cf1e4ba4297ee426cbd1678e3

4650f5b sconfig: Add a new generic device type
src/device/device_util.c | 12 ++
src/device/root_device.c | 2 +-
src/include/device/device.h | 1 +
src/include/device/path.h | 11 +-
util/sconfig/lex.yy.c_shipped | 230 +++++++++++++++++++-----------------
util/sconfig/main.c | 4 +
util/sconfig/sconfig.l | 1 +
util/sconfig/sconfig.tab.c_shipped | 32 ++---
util/sconfig/sconfig.tab.h_shipped | 3 +-
util/sconfig/sconfig.y | 2 +-
10 files changed, 173 insertions(+), 125 deletions(-)

Upstream: review.coreboot.org


  • Share