summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/hatch/mainboard.c3
-rw-r--r--src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/hatch/mainboard.c b/src/mainboard/google/hatch/mainboard.c
index eb77a0030b..4d5e8ed5f8 100644
--- a/src/mainboard/google/hatch/mainboard.c
+++ b/src/mainboard/google/hatch/mainboard.c
@@ -13,6 +13,7 @@
* GNU General Public License for more details.
*/
+#include <baseboard/variants.h>
#include <boardid.h>
#include <console/console.h>
#include <ec/google/chromeec/ec.h>
@@ -23,7 +24,7 @@
#define SKU_UNKNOWN 0xFFFFFFFF
#define SKU_MAX 255
-static uint32_t get_board_sku(void)
+uint32_t get_board_sku(void)
{
static uint32_t sku_id = SKU_UNKNOWN;
diff --git a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
index 4cb11945ca..71a2362b00 100644
--- a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h
@@ -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. */
const struct cros_gpio *variant_cros_gpios(size_t *num);
+/* Return board SKU */
+uint32_t get_board_sku(void);
+
/* Modify devictree settings during ramstage. */
void variant_devtree_update(void);