lkml.org 
[lkml]   [2022]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] soc/tegra: fuse: Export tegra_get_platform() & tegra_is_silicon()
Date
Functions tegra_get_platform() and tegra_is_silicon() are required
for pre-silicon development to correctly identify the platform on
which the software is running.

Export tegra_get_platform() and tegra_is_silicon(), so they can be
used for pre-slicon development of device drivers and kernel space
tests.

Signed-off-by: Kartik <kkartik@nvidia.com>
---
drivers/soc/tegra/fuse/tegra-apbmisc.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/soc/tegra/fuse/tegra-apbmisc.c b/drivers/soc/tegra/fuse/tegra-apbmisc.c
index 3351bd872ab2..904797f651a1 100644
--- a/drivers/soc/tegra/fuse/tegra-apbmisc.c
+++ b/drivers/soc/tegra/fuse/tegra-apbmisc.c
@@ -56,6 +56,7 @@ u8 tegra_get_platform(void)
{
return (tegra_read_chipid() >> 20) & 0xf;
}
+EXPORT_SYMBOL(tegra_get_platform);

bool tegra_is_silicon(void)
{
@@ -76,6 +77,7 @@ bool tegra_is_silicon(void)
*/
return true;
}
+EXPORT_SYMBOL(tegra_is_silicon);

u32 tegra_read_straps(void)
{
--
2.17.1
\
 
 \ /
  Last update: 2022-09-26 12:07    [W:0.073 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site