diff options
author | David Hendricks <dhendricks@fb.com> | 2018-03-09 14:30:38 -0800 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2018-07-03 15:53:32 +0000 |
commit | 7d48ac5c7dfb52fc470bbad1013b4d460bc6a1e0 (patch) | |
tree | 42002ba1e86627339ff4a6cf38efb4b3f00033bb /src/vendorcode/cavium/Kconfig | |
parent | d837e660074e0621d63f59515f933c209441b653 (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/Kconfig')
-rw-r--r-- | src/vendorcode/cavium/Kconfig | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/vendorcode/cavium/Kconfig b/src/vendorcode/cavium/Kconfig new file mode 100644 index 0000000000..80377620ae --- /dev/null +++ b/src/vendorcode/cavium/Kconfig @@ -0,0 +1,70 @@ +## +## 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. +## + +config CAVIUM_BDK + def_bool n + select HAVE_DEBUG_RAM_SETUP + help + Build Cavium's BDK in romstage. + +if CAVIUM_BDK + +menu "BDK" + +config CAVIUM_BDK_VERBOSE_INIT + bool "Enable verbose init" + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose init code. + +config CAVIUM_BDK_VERBOSE_DRAM + bool "Enable verbose dram init" + default y if DEBUG_RAM_SETUP + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose dram init code. + +config CAVIUM_BDK_VERBOSE_DRAM_TEST + bool "Enable verbose raminit tests" + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose DRAM testing code. + +config CAVIUM_BDK_VERBOSE_QLM + bool "Enable verbose qlm init" + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose QLM code. + +config CAVIUM_BDK_VERBOSE_PCIE_CONFIG + bool "Enable verbose pcie config" + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose PCIe config code. + +config CAVIUM_BDK_VERBOSE_PCIE + bool "Enable verbose pcie init" + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose PCIe code. + +config CAVIUM_BDK_VERBOSE_PHY + bool "Enable verbose phy init" + depends on CAVIUM_BDK + help + Build Cavium's BDK with verbose PHY code. +endmenu + +endif |