mb/google/octopus: expose get_board_sku as global

BUG=b:134912735
BRANCH=octopus
TEST=emerge-octopus coreboot chromeos-bootimage
Change-Id: I1fb7b5eeac48f2cd9c24fa1d3ac3fe4b390762d2
Signed-off-by: Kevin Chiu <Kevin.Chiu@quantatw.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33448
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kevin Chiu 2019-06-14 00:23:14 +08:00 committed by Patrick Georgi
parent c6ba36f069
commit 5e45053d52
2 changed files with 3 additions and 2 deletions

View File

@ -118,7 +118,7 @@ struct chip_operations mainboard_ops = {
#define SKU_UNKNOWN 0xFFFFFFFF #define SKU_UNKNOWN 0xFFFFFFFF
#define SKU_MAX 255 #define SKU_MAX 255
static uint32_t get_board_sku(void) uint32_t get_board_sku(void)
{ {
static uint32_t sku_id = SKU_UNKNOWN; static uint32_t sku_id = SKU_UNKNOWN;

View File

@ -34,7 +34,8 @@ extern const struct lpddr4_swizzle_cfg baseboard_lpddr4_swizzle;
const struct lpddr4_cfg *variant_lpddr4_config(void); const struct lpddr4_cfg *variant_lpddr4_config(void);
/* Return memory SKU for the board. */ /* Return memory SKU for the board. */
size_t variant_memory_sku(void); size_t variant_memory_sku(void);
/* Return board SKU */
uint32_t get_board_sku(void);
/* Return ChromeOS gpio table and fill in number of entries. */ /* Return ChromeOS gpio table and fill in number of entries. */
const struct cros_gpio *variant_cros_gpios(size_t *num); const struct cros_gpio *variant_cros_gpios(size_t *num);