diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2022-12-15 22:12:29 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-05-05 13:56:34 +0000 |
commit | b78e4620375cc5668db668d900340fd89271c330 (patch) | |
tree | b951932efcd181807e749640af9ef546f68ea020 /src/drivers/i2c | |
parent | f574c3305a0db9ba85c257222e03a08455476091 (diff) |
Convert literal uses of CONFIG_MAINBOARD_{VENDOR,PART_NUMBER}
Only expand these strings in lib/identity.o.
Change-Id: I8732bbeff8cf8a757bf32fdb615b1d0f97584585
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74907
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/drivers/i2c')
-rw-r--r-- | src/drivers/i2c/max98390/max98390.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c index 12c8c9da9d..9786e2bc13 100644 --- a/src/drivers/i2c/max98390/max98390.c +++ b/src/drivers/i2c/max98390/max98390.c @@ -6,6 +6,7 @@ #include <device/i2c.h> #include <device/device.h> #include <device/path.h> +#include <identity.h> #include <stdint.h> #include <vendorcode/google/chromeos/chromeos.h> #include "chip.h" @@ -68,8 +69,8 @@ static void max98390_fill_ssdt(const struct device *dev) dp = acpi_dp_new_table("_DSD"); size_t chars = snprintf(dsm_name, sizeof(dsm_name), "%s_%s_%s.bin", - config->dsm_param_file_name, CONFIG_MAINBOARD_VENDOR, - CONFIG_MAINBOARD_PART_NUMBER); + config->dsm_param_file_name, mainboard_vendor, + mainboard_part_number); if (chars >= sizeof(dsm_name)) printk(BIOS_ERR, "String too long in %s\n", __func__); |