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/include/bdk/libbdk-arch/bdk-model.h | |
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/include/bdk/libbdk-arch/bdk-model.h')
-rw-r--r-- | src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-model.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-model.h b/src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-model.h index fc50514038..0c236306d4 100644 --- a/src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-model.h +++ b/src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-model.h @@ -1,3 +1,6 @@ +#ifndef __CB_BDK_MODEL_H__ +#define __CB_BDK_MODEL_H__ + /***********************license start*********************************** * Copyright (c) 2003-2017 Cavium Inc. (support@cavium.com). All rights * reserved. @@ -88,8 +91,8 @@ #define CAVIUM_CN8XXX (CAVIUM_CN88XX_PASS1_0 | __OM_IGNORE_MODEL) #define CAVIUM_CN9XXX (CAVIUM_CN93XX_PASS1_0 | __OM_IGNORE_MODEL) -static inline uint64_t cavium_get_model() __attribute__ ((pure, always_inline)); -static inline uint64_t cavium_get_model() +static inline uint64_t cavium_get_model(void) __attribute__ ((pure, always_inline)); +static inline uint64_t cavium_get_model(void) { #ifdef BDK_BUILD_HOST extern uint32_t thunder_remote_get_model(void) __attribute__ ((pure)); @@ -158,13 +161,5 @@ static inline int CAVIUM_IS_MODEL(uint32_t arg_model) */ extern int cavium_is_altpkg(uint32_t arg_model); -/** - * Return the SKU string for a chip - * - * @param node Node to get SKU for - * - * @return Chip's SKU - */ -extern const char* bdk_model_get_sku(int node); - /** @} */ +#endif |