Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/27209
Change subject: util/sconfig: Get rid of ops from struct device
......................................................................
util/sconfig: Get rid of ops from struct device
"ops" field was used in device structure only to add
default_dev_ops_root for root device. It was always set to NULL for
all other devices. This change gets rid of ops field from struct
device and instead hardcodes default_dev_ops_root in pass1 for root
device.
BUG=b:80081934
TEST=Verified that static.c generated with and without this change is
exactly the same.
Change-Id: I0848788610c2ed27274daf4920de3068a9784d4c
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M util/sconfig/main.c
M util/sconfig/sconfig.h
2 files changed, 9 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/27209/1
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 6b4809c..cf09937 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -98,7 +98,6 @@
.id = 0,
.chip_instance = &mainboard_instance,
.path = " .type = DEVICE_PATH_ROOT ",
- .ops = "&default_dev_ops_root",
.parent = &base_root_bus,
.enabled = 1,
.bus = &base_root_bus,
@@ -120,7 +119,6 @@
*/
.chip_instance = &mainboard_instance,
.path = " .type = DEVICE_PATH_ROOT ",
- .ops = "&default_dev_ops_root",
.parent = &override_root_bus,
.enabled = 1,
.bus = &override_root_bus,
@@ -761,7 +759,15 @@
fprintf(fil, "static ");
fprintf(fil, "DEVTREE_CONST struct device %s = {\n", ptr->name);
fprintf(fil, "#if !DEVTREE_EARLY\n");
- fprintf(fil, "\t.ops = %s,\n", (ptr->ops) ? (ptr->ops) : "0");
+
+ /*
+ * ops field is set to default_dev_ops_root only for the root
+ * device. For all other devices, it is set by the driver at runtime.
+ */
+ if (ptr == &base_root_dev)
+ fprintf(fil, "\t.ops = &default_dev_ops_root,\n");
+ else
+ fprintf(fil, "\t.ops = 0,\n");
fprintf(fil, "#endif\n");
fprintf(fil, "\t.bus = &%s_links[%d],\n", ptr->parent->dev->name,
ptr->parent->id);
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h
index 63b65fd..8a9437c 100644
--- a/util/sconfig/sconfig.h
+++ b/util/sconfig/sconfig.h
@@ -104,9 +104,6 @@
int subsystem_device;
int inherit_subsystem;
- /* Name of ops structure for the device. */
- char *ops;
-
/* Name of this device. */
char *name;
--
To view, visit https://review.coreboot.org/27209
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0848788610c2ed27274daf4920de3068a9784d4c
Gerrit-Change-Number: 27209
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Hello Subrata Banik, Maulik V Vaghela, Bora Guvendik, build bot (Jenkins), Hannah Williams, Kin Wai Ng, Krzysztof M Sywula,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/27180
to look at the new patch set (#2).
Change subject: fsp/fsp2_0/coffeelake: Update Coffeelake FSP Headers
......................................................................
fsp/fsp2_0/coffeelake: Update Coffeelake FSP Headers
Header file based on FSP revision 7.x.35.24.
BUG=None
Change-Id: I69e40aaddd05c0f866ca7ed7248c98a3ded13a89
Signed-off-by: Lijian Zhao <lijian.zhao(a)intel.com>
---
M src/vendorcode/intel/fsp/fsp2_0/coffeelake/FspmUpd.h
M src/vendorcode/intel/fsp/fsp2_0/coffeelake/FspsUpd.h
M src/vendorcode/intel/fsp/fsp2_0/coffeelake/MemInfoHob.h
3 files changed, 201 insertions(+), 109 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/27180/2
--
To view, visit https://review.coreboot.org/27180
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I69e40aaddd05c0f866ca7ed7248c98a3ded13a89
Gerrit-Change-Number: 27180
Gerrit-PatchSet: 2
Gerrit-Owner: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Kin Wai Ng <kin.wai.ng(a)intel.com>
Gerrit-Reviewer: Krzysztof M Sywula <krzysztof.m.sywula(a)intel.com>
Gerrit-Reviewer: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>