mb/google/hatch: expose get_board_sku() as global

BUG=None
TEST=emerge-hatch coreboot chromeos-bootimage

Change-Id: I217e13acd337034554ff055e8bf5011558d1f8bf
Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34431
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
David Wu 2019-07-19 10:03:09 +08:00 committed by Martin Roth
parent 2de57585a0
commit 7f383c0b41
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <baseboard/variants.h>
#include <boardid.h> #include <boardid.h>
#include <console/console.h> #include <console/console.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
@ -23,7 +24,7 @@
#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

@ -43,6 +43,9 @@ const struct pad_config *variant_sleep_gpio_table(u8 slp_typ, size_t *num);
/* 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);
/* Return board SKU */
uint32_t get_board_sku(void);
/* Modify devictree settings during ramstage. */ /* Modify devictree settings during ramstage. */
void variant_devtree_update(void); void variant_devtree_update(void);