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>
This commit is contained in:
parent
a0d31d8d7d
commit
5bddcc48b8
2 changed files with 8 additions and 0 deletions
|
@ -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*/
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in a new issue