diff options
author | David Wu <david_wu@quanta.corp-partner.google.com> | 2019-07-18 17:23:13 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-07-21 18:47:10 +0000 |
commit | 2de57585a0a357e55dbbb9bca2b2db84abf1c98c (patch) | |
tree | 69b419829c6e037b2c12e5e3afa3c27dc9556d7e /src/mainboard/google/hatch/ramstage.c | |
parent | 19dca2b046d7acba126ee4403fd4c26df945d11c (diff) | |
download | coreboot-2de57585a0a357e55dbbb9bca2b2db84abf1c98c.tar.xz |
mb/google/hatch: Add support for variant_devtree_update()
This change adds support for variant_devtree_update()
that allows variant to update device tree.
BUG=None
TEST=emerge-hatch coreboot chromeos-bootimage
Change-Id: I0e9ad360b6c02c83fe49387ce7bc66d56448ffb9
Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34399
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/hatch/ramstage.c')
-rw-r--r-- | src/mainboard/google/hatch/ramstage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/hatch/ramstage.c b/src/mainboard/google/hatch/ramstage.c index 3436007252..04e1bc10ea 100644 --- a/src/mainboard/google/hatch/ramstage.c +++ b/src/mainboard/google/hatch/ramstage.c @@ -28,6 +28,7 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params) size_t base_gpios; size_t override_gpios; + variant_devtree_update(); base_table = base_gpio_table(&base_gpios); override_table = override_gpio_table(&override_gpios); @@ -37,6 +38,11 @@ void mainboard_silicon_init_params(FSP_S_CONFIG *params) override_gpios); } +void __weak variant_devtree_update(void) +{ + /* Override dev tree settings per board */ +} + static void mainboard_enable(struct device *dev) { mainboard_ec_init(); |