Merge tag 'tag-chrome-platform-firmware-for-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
Pull chrome platform firmware updates from Tzung-Bi Shih: - Allow userspace to automatically load coreboot modules by adding modaliases and sending uevents - Make bus_type const * tag 'tag-chrome-platform-firmware-for-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux: firmware: coreboot: Replace tag with id table in driver struct firmware: coreboot: Generate aliases for coreboot modules firmware: coreboot: Generate modalias uevent for devices firmware: coreboot: make coreboot_bus_type const
This commit is contained in:
@@ -274,5 +274,8 @@ int main(void)
|
||||
DEVID(vchiq_device_id);
|
||||
DEVID_FIELD(vchiq_device_id, name);
|
||||
|
||||
DEVID(coreboot_device_id);
|
||||
DEVID_FIELD(coreboot_device_id, tag);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1494,6 +1494,15 @@ static int do_vchiq_entry(const char *filename, void *symval, char *alias)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Looks like: coreboot:tN */
|
||||
static int do_coreboot_entry(const char *filename, void *symval, char *alias)
|
||||
{
|
||||
DEF_FIELD(symval, coreboot_device_id, tag);
|
||||
sprintf(alias, "coreboot:t%08X", tag);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Does namelen bytes of name exactly match the symbol? */
|
||||
static bool sym_is(const char *name, unsigned namelen, const char *symbol)
|
||||
{
|
||||
@@ -1575,6 +1584,7 @@ static const struct devtable devtable[] = {
|
||||
{"ishtp", SIZE_ishtp_device_id, do_ishtp_entry},
|
||||
{"cdx", SIZE_cdx_device_id, do_cdx_entry},
|
||||
{"vchiq", SIZE_vchiq_device_id, do_vchiq_entry},
|
||||
{"coreboot", SIZE_coreboot_device_id, do_coreboot_entry},
|
||||
};
|
||||
|
||||
/* Create MODULE_ALIAS() statements.
|
||||
|
||||
Reference in New Issue
Block a user