soc/tegra: Add Kfuse driver

Add kfuse driver. The kfuse block stores downstream
and upstream HDCP keys for use by the HDMI module.

Bug 3625675

Change-Id: Ie4b23c161035439266ec7dda54b61e84799a6d5a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2705641
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-05-01 13:23:03 +00:00
committed by mobile promotions
parent 6d96357ebe
commit 1c042c10b4
5 changed files with 342 additions and 0 deletions

13
include/soc/tegra/kfuse.h Normal file
View File

@@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-only
// Copyright (C) 2022 NVIDIA CORPORATION. All rights reserved.
#ifndef __SOC_TEGRA_KFUSE_H__
#define __SOC_TEGRA_KFUSE_H__
/* there are 144 32-bit values in total */
#define KFUSE_DATA_SZ (144 * 4)
int tegra_kfuse_read(void *dest, size_t len);
void tegra_kfuse_disable_sensing(void);
int tegra_kfuse_enable_sensing(void);
#endif /* __SOC_TEGRA_KFUSE_H__ */