From 50886827b59e9f7ed4d583a4ad91c2a24748a1a2 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Thu, 26 Nov 2020 12:10:39 +0800 Subject: mb/google/brya: Add entry stubs of each stage Add entry point stubs of each stage for Brya. More functionalities will be added later. BUG=b:174266035 TEST=Build Test Signed-off-by: Eric Lai Change-Id: I44934c05ee32090b6e34648ee02f004c83e93d57 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48063 Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/Makefile.inc | 8 ++++++++ src/mainboard/google/brya/bootblock.c | 8 ++++++++ src/mainboard/google/brya/mainboard.c | 18 ++++++++++++++++++ src/mainboard/google/brya/romstage.c | 9 +++++++++ .../brya/variants/baseboard/include/baseboard/gpio.h | 9 +++++++++ .../variants/baseboard/include/baseboard/variants.h | 9 +++++++++ 6 files changed, 61 insertions(+) create mode 100644 src/mainboard/google/brya/Makefile.inc create mode 100644 src/mainboard/google/brya/bootblock.c create mode 100644 src/mainboard/google/brya/mainboard.c create mode 100644 src/mainboard/google/brya/romstage.c create mode 100644 src/mainboard/google/brya/variants/baseboard/include/baseboard/gpio.h create mode 100644 src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h (limited to 'src/mainboard/google/brya') diff --git a/src/mainboard/google/brya/Makefile.inc b/src/mainboard/google/brya/Makefile.inc new file mode 100644 index 0000000000..1680fd0a2b --- /dev/null +++ b/src/mainboard/google/brya/Makefile.inc @@ -0,0 +1,8 @@ +bootblock-y += bootblock.c + +romstage-y += romstage.c + +ramstage-y += mainboard.c + +subdirs-y += variants/baseboard +CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include diff --git a/src/mainboard/google/brya/bootblock.c b/src/mainboard/google/brya/bootblock.c new file mode 100644 index 0000000000..8a7b93a968 --- /dev/null +++ b/src/mainboard/google/brya/bootblock.c @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include + +void bootblock_mainboard_init(void) +{ + /* TODO: Perform mainboard initialization */ +} diff --git a/src/mainboard/google/brya/mainboard.c b/src/mainboard/google/brya/mainboard.c new file mode 100644 index 0000000000..3dc2c41d69 --- /dev/null +++ b/src/mainboard/google/brya/mainboard.c @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include + +static void mainboard_init(void *chip_info) +{ + /* TODO: Perform mainboard initialization */ +} + +static void mainboard_enable(struct device *dev) +{ + /* TODO: Enable mainboard */ +} + +struct chip_operations mainboard_ops = { + .init = mainboard_init, + .enable_dev = mainboard_enable, +}; diff --git a/src/mainboard/google/brya/romstage.c b/src/mainboard/google/brya/romstage.c new file mode 100644 index 0000000000..341df1570e --- /dev/null +++ b/src/mainboard/google/brya/romstage.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include + +void mainboard_memory_init_params(FSPM_UPD *memupd) +{ + /* ToDo : Fill FSP-M memory params */ +} diff --git a/src/mainboard/google/brya/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/brya/variants/baseboard/include/baseboard/gpio.h new file mode 100644 index 0000000000..a708db11ad --- /dev/null +++ b/src/mainboard/google/brya/variants/baseboard/include/baseboard/gpio.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef __BASEBOARD_GPIO_H__ +#define __BASEBOARD_GPIO_H__ + +#include +#include + +#endif /* __BASEBOARD_GPIO_H__ */ diff --git a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h new file mode 100644 index 0000000000..d16d3dad53 --- /dev/null +++ b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef __BASEBOARD_VARIANTS_H__ +#define __BASEBOARD_VARIANTS_H__ + +#include +#include + +#endif /*__BASEBOARD_VARIANTS_H__ */ -- cgit v1.2.3