From 2fed41d46275999061be637dcd26d7dd3a2737e6 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Thu, 12 Jan 2023 08:14:19 +0100 Subject: drivers/intel/i210/Makefile.inc: Fix "No such file or directory" error Fix: cc1: error: src/drivers/intel/i210: No such file or directory [-Werror=missing-include-dirs] Change-Id: I94b0f99353ed3a582ea590cbc6b12dec6294c75d Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/70468 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/drivers/intel/i210/Makefile.inc | 2 +- src/drivers/intel/i210/i210.h | 35 ----------------------------------- src/drivers/intel/i210/include/i210.h | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 src/drivers/intel/i210/i210.h create mode 100644 src/drivers/intel/i210/include/i210.h (limited to 'src') diff --git a/src/drivers/intel/i210/Makefile.inc b/src/drivers/intel/i210/Makefile.inc index 218b1b45f9..bbbde88f6c 100644 --- a/src/drivers/intel/i210/Makefile.inc +++ b/src/drivers/intel/i210/Makefile.inc @@ -3,5 +3,5 @@ ramstage-$(CONFIG_DRIVER_INTEL_I210)+= i210.c ifeq ($(CONFIG_DRIVER_INTEL_I210),y) -CFLAGS_x86_32 += -Isrc/drivers/intel/i210 +CPPFLAGS_common += -I$(src)/drivers/intel/i210/include endif diff --git a/src/drivers/intel/i210/i210.h b/src/drivers/intel/i210/i210.h deleted file mode 100644 index baaab6e3d5..0000000000 --- a/src/drivers/intel/i210/i210.h +++ /dev/null @@ -1,35 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef _INTEL_I210_H_ -#define _INTEL_I210_H_ - -#include -#include - -#define I210_PCI_MEM_BAR_OFFSET 0x10 -#define I210_REG_EECTRL 0x12010 /* Offset for EEPROM control reg */ -#define I210_FLUPD 0x800000 /* Start flash update bit */ -#define I210_FLUDONE 0x4000000 /* Flash update done indicator */ -#define I210_REG_EEREAD 0x12014 /* Offset for EEPROM read reg */ -#define I210_REG_EEWRITE 0x12018 /* Offset for EEPROM write reg */ -#define I210_CMDV 0x01 /* command valid bit */ -#define I210_DONE 0x02 /* command done bit */ -#define I210_TARGET_CHECKSUM 0xBABA /* resulting checksum */ - -/*define some other useful values here */ -#define I210_POLL_TIMEOUT_US 300000 /* 300 ms */ -/*Define some error states here*/ -#define I210_SUCCESS 0x00000000 -#define I210_INVALID_PARAM 0x00000001 -#define I210_NOT_READY 0x00000002 -#define I210_READ_ERROR 0x00000004 -#define I210_WRITE_ERROR 0x00000008 -#define I210_CHECKSUM_ERROR 0x00000010 -#define I210_FLASH_UPDATE_ERROR 0x00000020 - -#define MAC_ADDR_LEN 6 - -/* We need one function we can call to get a MAC address to use */ -enum cb_err mainboard_get_mac_address(struct device *dev, uint8_t mac[MAC_ADDR_LEN]); - -#endif /* _INTEL_I210_H_ */ diff --git a/src/drivers/intel/i210/include/i210.h b/src/drivers/intel/i210/include/i210.h new file mode 100644 index 0000000000..baaab6e3d5 --- /dev/null +++ b/src/drivers/intel/i210/include/i210.h @@ -0,0 +1,35 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef _INTEL_I210_H_ +#define _INTEL_I210_H_ + +#include +#include + +#define I210_PCI_MEM_BAR_OFFSET 0x10 +#define I210_REG_EECTRL 0x12010 /* Offset for EEPROM control reg */ +#define I210_FLUPD 0x800000 /* Start flash update bit */ +#define I210_FLUDONE 0x4000000 /* Flash update done indicator */ +#define I210_REG_EEREAD 0x12014 /* Offset for EEPROM read reg */ +#define I210_REG_EEWRITE 0x12018 /* Offset for EEPROM write reg */ +#define I210_CMDV 0x01 /* command valid bit */ +#define I210_DONE 0x02 /* command done bit */ +#define I210_TARGET_CHECKSUM 0xBABA /* resulting checksum */ + +/*define some other useful values here */ +#define I210_POLL_TIMEOUT_US 300000 /* 300 ms */ +/*Define some error states here*/ +#define I210_SUCCESS 0x00000000 +#define I210_INVALID_PARAM 0x00000001 +#define I210_NOT_READY 0x00000002 +#define I210_READ_ERROR 0x00000004 +#define I210_WRITE_ERROR 0x00000008 +#define I210_CHECKSUM_ERROR 0x00000010 +#define I210_FLASH_UPDATE_ERROR 0x00000020 + +#define MAC_ADDR_LEN 6 + +/* We need one function we can call to get a MAC address to use */ +enum cb_err mainboard_get_mac_address(struct device *dev, uint8_t mac[MAC_ADDR_LEN]); + +#endif /* _INTEL_I210_H_ */ -- cgit v1.2.3