just curious, do you have a specific use-case in mind for this?

Ah, plenty ;) There has a pattern evolved (I've seen mostly in soc/
intel/common/) where chip specific code is often coupled with
generic drivers just to provide configuration information from the
devicetree. It adds lots of odd boilerplate. What finally made me
write this was `soc/intel/common/blocks/graphics/` where I wanted
to consolidate existing and add more panel configuration. Eventually,
that driver would be standalone then without any soc hooks. The
same probably applies to many more drivers.

There's another, potential long-term idea. I would like to have an
ABI for drivers. For instance, a binary module that could be placed
in CBFS just like an option ROM, that can override `struct device_
operations` functions. That might need more fine-grained configu-
ration too.

View Change

To view, visit change 41745. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I25f46e774bb6d26d0e6b77f9bd96d80581412655
Gerrit-Change-Number: 41745
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: Aaron Durbin <adurbin@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Kyösti Mälkki <kyosti.malkki@gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-CC: Tim Wawrzynczak <twawrzynczak@chromium.org>
Gerrit-Comment-Date: Sat, 11 Jul 2020 15:09:18 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment