diff options
author | Ritul Guru <ritul.bits@gmail.com> | 2021-02-05 23:53:28 +0530 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-02-17 20:00:41 +0000 |
commit | 286c2f6d4a72473b919ea580786d5497f7ef2dec (patch) | |
tree | 1c08513c2ec451aeaff40b16e14417c134ce5394 /src/mainboard/amd/bilby/Makefile.inc | |
parent | 65819cd3644e96f191de04eae8219cab4bc86fb8 (diff) |
mainboard/amd/bilby: Add Bilby CRB board
Bilby is the reference board for AMD Raven, Raven2 and Picasso APUs.
Bilby mainboard code is taken from mandolin variant Cereme.
These new files are a renamed copy and subsequent patches will be
applied to create a working bilby implementation.
Change-Id: I426966d782e259a971ec36bac2498bc62b4ce7e2
Signed-off-by: Ritul Guru <ritul.bits@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50315
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/amd/bilby/Makefile.inc')
-rw-r--r-- | src/mainboard/amd/bilby/Makefile.inc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mainboard/amd/bilby/Makefile.inc b/src/mainboard/amd/bilby/Makefile.inc new file mode 100644 index 0000000000..f9de6a4a73 --- /dev/null +++ b/src/mainboard/amd/bilby/Makefile.inc @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: GPL-2.0-only + +bootblock-y += bootblock.c +bootblock-y += early_gpio.c + +ramstage-y += gpio.c +ramstage-y += port_descriptors.c + +ifneq ($(CONFIG_BILBY_LPC),y) +ramstage-y += emmc_gpio.c +endif + +ifeq ($(CONFIG_BOARD_AMD_BILBY),y) +APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_bilby.bin +endif + +ifeq ($(CONFIG_MANDOLIN_HAVE_MCHP_FW),y) + +$(call add_intermediate, add_mchp_fw) + $(CBFSTOOL) $(obj)/coreboot.pre write -r EC -f $(CONFIG_MANDOLIN_MCHP_FW_FILE) --fill-upward + +else +files_added:: warn_no_mchp +endif # CONFIG_MANDOLIN_HAVE_MCHP_FW + +PHONY+=warn_no_mchp +warn_no_mchp: + printf "\n\t** WARNING **\n" + printf "coreboot has been built without an the Microchip EC.\n" + printf "Do not flash this image. Your Mandolin's power button\n" + printf "will not respond when you press it.\n\n" + +CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/acpi |