coreboot/src/soc
Zheng Bao bdd5031ad2 soc/amd/common: Only set write_acpi_tables if ACPI table is enabled
In ./include/device/device.h, the struct device_operations is defined
as below.
------------------------------------
   #if CONFIG(HAVE_ACPI_TABLES)
   	unsigned long (*write_acpi_tables)(const struct device *dev,
   		unsigned long start, struct acpi_rsdp *rsdp);
   	void (*acpi_fill_ssdt)(const struct device *dev);
   	void (*acpi_inject_dsdt)(const struct device *dev);
   	const char *(*acpi_name)(const struct device *dev);
   	/* Returns the optional _HID (Hardware ID) */
   	const char *(*acpi_hid)(const struct device *dev);
   #endif
------------------------------------
So we also need to add the same #if in the C source.

Change-Id: I488eceacb260ebe091495cdc3448c931cc4a1ae3
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49928
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
2021-01-27 15:24:58 +00:00
..
amd soc/amd/common: Only set write_acpi_tables if ACPI table is enabled 2021-01-27 15:24:58 +00:00
cavium cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
example arch/x86: Move prologue to .init section 2021-01-07 11:02:03 +00:00
intel ACPI: Separate device_nvs_t 2021-01-27 10:25:03 +00:00
mediatek soc/mediatek/mt8192: pmic: Set efuses manually 2021-01-22 14:26:08 +00:00
nvidia soc/nvidia/tegra124/spi.c: Remove repeated word 2021-01-18 07:35:02 +00:00
qualcomm cbfs: Simplify load/map API names, remove type arguments 2020-12-02 22:13:17 +00:00
rockchip drivers: Replace set_vbe_mode_info_valid 2020-12-17 06:21:56 +00:00
samsung soc/samsung/exynos5250/dp-reg.c: Use __func__ 2021-01-24 21:15:31 +00:00
sifive cbfs: Enable CBFS mcache on most chipsets 2020-12-02 22:12:10 +00:00
ti cbfs: Enable CBFS mcache on most chipsets 2020-12-02 22:12:10 +00:00
ucb