mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
This driver is inspired from the existing tsec driver under host1x but its highly simplified to use only the stuff that is needed and is completely decoupled from the host1x driver Bug: 3817626 Change-Id: I8fff7ab539cd5393ea13896c3b056472ca0e0a72 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2785908 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
42 lines
1.9 KiB
C
42 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
*
|
|
* Tegra TSEC Module Support
|
|
*
|
|
* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef TSEC_LINUX_H
|
|
#define TSEC_LINUX_H
|
|
|
|
#include <linux/types.h> /* for types like u8, u32 etc */
|
|
#include <linux/platform_device.h> /* for platform_device */
|
|
#include <linux/of_platform.h> /* for of_match_device etc */
|
|
#include <linux/slab.h> /* for kzalloc */
|
|
#include <linux/delay.h> /* for udelay */
|
|
#include <linux/clk.h> /* for clk_prepare_enable */
|
|
#include <linux/reset.h> /* for reset_control_reset */
|
|
#include <linux/iommu.h> /* for dev_iommu_fwspec_get */
|
|
#include <linux/iopoll.h> /* for readl_poll_timeout */
|
|
#include <linux/dma-mapping.h> /* for dma_map_page_attrs */
|
|
#include <linux/platform/tegra/tegra_mc.h> /* for mc_get_carveout_info */
|
|
#include <linux/pm.h> /* for dev_pm_ops */
|
|
#include <linux/version.h> /* for KERNEL_VERSION */
|
|
#include <linux/interrupt.h> /* for enable_irq */
|
|
#include <linux/firmware.h> /* for request_firmware */
|
|
#include <asm/cacheflush.h> /* for __flush_dcache_area */
|
|
|
|
#endif /* TSEC_LINUX_H */
|