summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKane Chen <kane.chen@intel.com>2017-08-22 11:37:18 +0800
committerAaron Durbin <adurbin@chromium.org>2017-08-23 15:52:48 +0000
commit5bddcc48b82c1887c96077c85ba078cd427d1133 (patch)
treece7c00ecf1a043d7c310e8bb7de100df18ed845d
parenta0d31d8d7d1fd7241eef2c15aa73b232c62b6922 (diff)
downloadcoreboot-5bddcc48b82c1887c96077c85ba078cd427d1133.tar.xz
soc/intel/apollolake: Allow overriding dev tree settings by board
This change provides interface to override dev tree settings per board due to many projects share same devicetree.cb. BUG=b:64880573 TEST=Verify that dev tree settings can be overridden in mainboard on coral Change-Id: I349b1678d9e66022b586b6c7f344b831ed631c74 Signed-off-by: Kane Chen <kane.chen@intel.com> Reviewed-on: https://review.coreboot.org/21142 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/soc/intel/apollolake/chip.c7
-rw-r--r--src/soc/intel/apollolake/include/soc/cpu.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c
index af625a1d9e..628304c99d 100644
--- a/src/soc/intel/apollolake/chip.c
+++ b/src/soc/intel/apollolake/chip.c
@@ -497,6 +497,11 @@ static void glk_fsp_silicon_init_params_cb(
silconfig->HdaEnable = 0;
}
+void __attribute__((weak)) mainboard_devtree_update(struct device *dev)
+{
+ /* Override dev tree settings per board */
+}
+
void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
{
FSP_S_CONFIG *silconfig = &silupd->FspsConfig;
@@ -512,6 +517,8 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd)
return;
}
+ mainboard_devtree_update(dev);
+
cfg = dev->chip_info;
/* Parse device tree and disable unused device*/
diff --git a/src/soc/intel/apollolake/include/soc/cpu.h b/src/soc/intel/apollolake/include/soc/cpu.h
index 10e0595900..2d22ae5181 100644
--- a/src/soc/intel/apollolake/include/soc/cpu.h
+++ b/src/soc/intel/apollolake/include/soc/cpu.h
@@ -28,5 +28,6 @@
struct device;
void apollolake_init_cpus(struct device *dev);
+void mainboard_devtree_update(struct device *dev);
#endif /* _SOC_APOLLOLAKE_CPU_H_ */