public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] soc/tegra: fuse: Export tegra_get_platform() & tegra_is_silicon()
@ 2022-09-26 10:05 Kartik
  2022-10-20  9:54 ` Thierry Reding
  0 siblings, 1 reply; 4+ messages in thread
From: Kartik @ 2022-09-26 10:05 UTC (permalink / raw)
  To: thierry.reding, jonathanh, windhl, sumitg, linux-tegra,
	linux-kernel, linux-arm-kernel

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-20 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-26 10:05 [PATCH] soc/tegra: fuse: Export tegra_get_platform() & tegra_is_silicon() Kartik
2022-10-20  9:54 ` Thierry Reding
2022-10-20  9:57   ` Arnd Bergmann
2022-10-20 14:06     ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox