summaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium/Makefile.inc
diff options
context:
space:
mode:
authorDavid Hendricks <dhendricks@fb.com>2018-03-09 14:30:38 -0800
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-07-03 15:53:32 +0000
commit7d48ac5c7dfb52fc470bbad1013b4d460bc6a1e0 (patch)
tree42002ba1e86627339ff4a6cf38efb4b3f00033bb /src/vendorcode/cavium/Makefile.inc
parentd837e660074e0621d63f59515f933c209441b653 (diff)
soc/cavium: Integrate BDK files into coreboot
* Make it compile. * Fix whitespace errors. * Fix printf formats. * Add missing headers includes * Guard headers with ifdefs Compile DRAM init code in romstage. Compile QLM, PCIe, RNG, PHY, GPIO, MDIO init code in ramstage. Change-Id: I0a93219a14bfb6ebe41103a825d5032b11e7f2c6 Signed-off-by: David Hendricks <dhendricks@fb.com> Reviewed-on: https://review.coreboot.org/25089 Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/cavium/Makefile.inc')
-rw-r--r--src/vendorcode/cavium/Makefile.inc92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/vendorcode/cavium/Makefile.inc b/src/vendorcode/cavium/Makefile.inc
new file mode 100644
index 0000000000..855b3c6218
--- /dev/null
+++ b/src/vendorcode/cavium/Makefile.inc
@@ -0,0 +1,92 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright 2017-present Facebook, Inc.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+
+ifeq ($(CONFIG_CAVIUM_BDK),y)
+
+romstage-y += bdk/libbdk-arch/bdk-csr.c
+romstage-y += bdk/libbdk-arch/bdk-model.c
+romstage-y += bdk/libbdk-arch/bdk-numa.c
+romstage-y += bdk/libbdk-boot/bdk-boot-status.c
+romstage-y += bdk/libbdk-dram/bdk-dram-address.c
+romstage-y += bdk/libbdk-dram/bdk-dram-config.c
+romstage-y += bdk/libbdk-dram/bdk-dram-size.c
+romstage-y += bdk/libbdk-dram/bdk-dram-test.c
+romstage-y += bdk/libbdk-dram/bdk-dram-test-addrbus.c
+romstage-y += bdk/libbdk-dram/bdk-dram-test-databus.c
+romstage-y += bdk/libbdk-dram/bdk-dram-test-fastscan.c
+romstage-y += bdk/libbdk-dram/bdk-dram-test-patfil.c
+romstage-y += bdk/libbdk-driver/bdk-driver-rnm.c
+romstage-y += bdk/libbdk-hal/bdk-clock.c
+romstage-y += bdk/libbdk-hal/bdk-config.c
+romstage-y += bdk/libbdk-hal/bdk-gpio.c
+romstage-y += bdk/libbdk-hal/bdk-l2c.c
+romstage-y += bdk/libbdk-os/bdk-init.c
+romstage-y += bdk/libbdk-trust/bdk-trust.c
+romstage-y += bdk/libdram/dram-env.c
+romstage-y += bdk/libdram/dram-init-ddr3.c
+romstage-y += bdk/libdram/dram-l2c.c
+romstage-y += bdk/libdram/dram-spd.c
+romstage-y += bdk/libdram/dram-tune-ddr3.c
+romstage-y += bdk/libdram/lib_octeon_shared.c
+romstage-y += bdk/libdram/libdram.c
+romstage-y += bdk/libdram/libdram-config-load.c
+romstage-y += bdk/libbdk-hal/bdk-access.c
+
+# FIXME: Get rid of lame_string.c
+romstage-y += bdk/lame_string.c
+
+CPPFLAGS_common += -Isrc/vendorcode/cavium/include/bdk
+
+# For bdk_dram_get_size_mbytes()
+ramstage-y += bdk/libbdk-dram/bdk-dram-size.c
+
+ramstage-y += bdk/libbdk-hal/bdk-config.c
+ramstage-y += bdk/libbdk-hal/bdk-qlm.c
+ramstage-y += bdk/libbdk-hal/bdk-pcie-cn8xxx.c
+ramstage-y += bdk/libbdk-hal/bdk-pcie.c
+ramstage-y += bdk/libbdk-hal/bdk-gpio.c
+ramstage-y += bdk/libbdk-hal/bdk-ecam-io.c
+ramstage-y += bdk/libbdk-hal/bdk-usb.c
+ramstage-y += bdk/libbdk-hal/bdk-access.c
+
+ramstage-y += bdk/libbdk-arch/bdk-csr.c
+ramstage-y += bdk/libbdk-arch/bdk-model.c
+ramstage-y += bdk/libbdk-arch/bdk-numa.c
+ramstage-y += bdk/libbdk-hal/qlm/bdk-qlm-common.c
+ramstage-y += bdk/libbdk-hal/qlm/bdk-qlm-errata-cn8xxx.c
+ramstage-y += bdk/libbdk-hal/qlm/bdk-qlm-common-sata.c
+ramstage-y += bdk/libbdk-hal/qlm/bdk-qlm-margin-cn8xxx.c
+
+ramstage-y += bdk/libbdk-boot/bdk-boot-qlm.c
+ramstage-y += bdk/libbdk-boot/bdk-boot-pcie.c
+ramstage-y += bdk/libbdk-boot/bdk-boot-usb.c
+ramstage-y += bdk/libbdk-boot/bdk-boot-gpio.c
+ramstage-y += bdk/libbdk-boot/bdk-boot.c
+
+ramstage-y += bdk/libbdk-hal/if/bdk-if-phy.c
+ramstage-y += bdk/libbdk-hal/if/bdk-if-phy-marvell.c
+ramstage-y += bdk/libbdk-hal/if/bdk-if-phy-vetesse-8514.c
+ramstage-y += bdk/libbdk-hal/if/bdk-if-phy-vetesse.c
+ramstage-y += bdk/libbdk-driver/bdk-driver-mdio.c
+ramstage-y += bdk/libbdk-driver/bdk-driver-rnm.c
+ramstage-y += bdk/libbdk-hal/device/bdk-device.c
+ramstage-y += bdk/libbdk-hal/bdk-ecam.c
+
+# FIXME: Get rid of lame_string.c
+ramstage-y += bdk/lame_string.c
+
+ramstage-$(CONFIG_SOC_CAVIUM_CN81XX) += bdk/libbdk-hal/qlm/bdk-qlm-cn81xx.c
+
+endif