diff --git a/include/soc/tegra/fuse-helper.h b/include/soc/tegra/fuse-helper.h index fafbb83c..fde88999 100644 --- a/include/soc/tegra/fuse-helper.h +++ b/include/soc/tegra/fuse-helper.h @@ -5,10 +5,18 @@ #include -#ifdef CONFIG_TEGRA_FUSE_UPSTREAM - #define FUSE_SKU_INFO 0x10 +static inline u32 tegra_get_sku_id(void) +{ + if (!tegra_sku_info.sku_id) + tegra_fuse_readl(FUSE_SKU_INFO, &tegra_sku_info.sku_id); + + return tegra_sku_info.sku_id; +} + +#ifdef CONFIG_TEGRA_FUSE_UPSTREAM + /* * For upstream the following functions to determine if the * platform is silicon and simulator are not supported and @@ -24,12 +32,4 @@ static inline bool tegra_platform_is_sim(void) return false; } -static inline u32 tegra_get_sku_id(void) -{ - if (!tegra_sku_info.sku_id) - tegra_fuse_readl(FUSE_SKU_INFO, &tegra_sku_info.sku_id); - - return tegra_sku_info.sku_id; -} - #endif /* CONFIG_TEGRA_FUSE_UPSTREAM */