summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2020-11-24 19:27:47 +0000
committerMichael Niewöhner <foss@mniewoehner.de>2020-11-30 23:08:31 +0000
commite8774933d39fab2cb4eb443f69a583d1fa5bd238 (patch)
tree41a1889d13854ce777dd71bfd50258b7dc7738da
parent48b80c134a1c5c3574e73104d6bfd13481568a70 (diff)
mb/siemens/chili: Introduce include folder for header files
Use include folder for header files allowing proper includes. Change-Id: I80066fb925b918d040062397e633c5d499a50dbe Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47973 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/siemens/chili/Makefile.inc2
-rw-r--r--src/mainboard/siemens/chili/ec.c3
-rw-r--r--src/mainboard/siemens/chili/include/mainboard/ec.h (renamed from src/mainboard/siemens/chili/ec.h)0
-rw-r--r--src/mainboard/siemens/chili/include/variant.h (renamed from src/mainboard/siemens/chili/variant.h)0
-rw-r--r--src/mainboard/siemens/chili/mainboard.c3
-rw-r--r--src/mainboard/siemens/chili/romstage.c3
-rw-r--r--src/mainboard/siemens/chili/variants/base/gpio.c2
-rw-r--r--src/mainboard/siemens/chili/variants/chili/gpio.c2
-rw-r--r--src/mainboard/siemens/chili/variants/chili/romstage.c3
9 files changed, 7 insertions, 11 deletions
diff --git a/src/mainboard/siemens/chili/Makefile.inc b/src/mainboard/siemens/chili/Makefile.inc
index abeedf3a85..c57c0a50dc 100644
--- a/src/mainboard/siemens/chili/Makefile.inc
+++ b/src/mainboard/siemens/chili/Makefile.inc
@@ -1,6 +1,6 @@
## SPDX-License-Identifier: GPL-2.0-only
-CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)
+CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
romstage-y += romstage.c
diff --git a/src/mainboard/siemens/chili/ec.c b/src/mainboard/siemens/chili/ec.c
index bc0eb7d9ff..7d9b6f2495 100644
--- a/src/mainboard/siemens/chili/ec.c
+++ b/src/mainboard/siemens/chili/ec.c
@@ -4,10 +4,9 @@
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <ec/acpi/ec.h>
+#include <mainboard/ec.h>
#include <timer.h>
-#include "ec.h"
-
#define EC_STATUS 0x50
#define EC_RUNNING (1 << 1)
#define EC_DEVICE_CONTROL_1 0x80
diff --git a/src/mainboard/siemens/chili/ec.h b/src/mainboard/siemens/chili/include/mainboard/ec.h
index 50d724ff38..50d724ff38 100644
--- a/src/mainboard/siemens/chili/ec.h
+++ b/src/mainboard/siemens/chili/include/mainboard/ec.h
diff --git a/src/mainboard/siemens/chili/variant.h b/src/mainboard/siemens/chili/include/variant.h
index 2bbe7d7926..2bbe7d7926 100644
--- a/src/mainboard/siemens/chili/variant.h
+++ b/src/mainboard/siemens/chili/include/variant.h
diff --git a/src/mainboard/siemens/chili/mainboard.c b/src/mainboard/siemens/chili/mainboard.c
index 91395eac07..c1d1a1d941 100644
--- a/src/mainboard/siemens/chili/mainboard.c
+++ b/src/mainboard/siemens/chili/mainboard.c
@@ -1,8 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
-
-#include "ec.h"
+#include <mainboard/ec.h>
static void mainboard_dev_init(struct device *dev)
{
diff --git a/src/mainboard/siemens/chili/romstage.c b/src/mainboard/siemens/chili/romstage.c
index c1ec7e4982..a981f50a7b 100644
--- a/src/mainboard/siemens/chili/romstage.c
+++ b/src/mainboard/siemens/chili/romstage.c
@@ -4,8 +4,7 @@
#include <soc/cnl_memcfg_init.h>
#include <soc/gpio.h>
#include <soc/romstage.h>
-
-#include "variant.h"
+#include <variant.h>
static void mainboard_init(void)
{
diff --git a/src/mainboard/siemens/chili/variants/base/gpio.c b/src/mainboard/siemens/chili/variants/base/gpio.c
index 65ea037a3a..61ec27dfa6 100644
--- a/src/mainboard/siemens/chili/variants/base/gpio.c
+++ b/src/mainboard/siemens/chili/variants/base/gpio.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/gpio.h>
-#include "variant.h"
+#include <variant.h>
static const struct pad_config gpio_table[] = {
/* GPP_A14 GPIO */ PAD_NC(GPP_A14, NONE),
diff --git a/src/mainboard/siemens/chili/variants/chili/gpio.c b/src/mainboard/siemens/chili/variants/chili/gpio.c
index 4b18e79e29..d7e5ab02b2 100644
--- a/src/mainboard/siemens/chili/variants/chili/gpio.c
+++ b/src/mainboard/siemens/chili/variants/chili/gpio.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/gpio.h>
-#include "variant.h"
+#include <variant.h>
static const struct pad_config gpio_table[] = {
/* GPP_A14 GPIO 0x0000002644000300 */ PAD_NC(GPP_A14, NONE),
diff --git a/src/mainboard/siemens/chili/variants/chili/romstage.c b/src/mainboard/siemens/chili/variants/chili/romstage.c
index ebffc8d39d..3a838240ef 100644
--- a/src/mainboard/siemens/chili/variants/chili/romstage.c
+++ b/src/mainboard/siemens/chili/variants/chili/romstage.c
@@ -3,8 +3,7 @@
#include <option.h>
#include <console/console.h>
#include <fsp/soc_binding.h>
-
-#include "../../variant.h"
+#include <variant.h>
void variant_romstage_params(FSPM_UPD *const mupd)
{