[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1664186759-9821-1-git-send-email-kkartik@nvidia.com>
Date: Mon, 26 Sep 2022 15:35:59 +0530
From: Kartik <kkartik@...dia.com>
To: <thierry.reding@...il.com>, <jonathanh@...dia.com>,
<windhl@....com>, <sumitg@...dia.com>,
<linux-tegra@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>
Subject: [PATCH] soc/tegra: fuse: Export tegra_get_platform() & tegra_is_silicon()
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@...dia.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
Powered by blists - more mailing lists