mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
Add support for UFS provisioning and changing reference clock frequency using sysfs nodes for automotive flashing kernel. Bug 3978622 Change-Id: I236c3d9de3d7ea89c631aec6f11ef20d11656549 Signed-off-by: Abhilash G <abhilashg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2859426 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
23 lines
588 B
C
23 lines
588 B
C
/* SPDX-License-Identifier: GPL-2.0-only
|
|
*/
|
|
// Copyright (c) 2015-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#ifndef _UFS_PROVISION_H
|
|
#define _UFS_PROVISION_H
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)
|
|
#include <drivers-private/scsi/ufs/k515/ufshcd.h>
|
|
#else
|
|
#include <drivers-private/scsi/ufs/k516/ufshcd.h>
|
|
#endif
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
#include <linux/debugfs.h>
|
|
void debugfs_provision_init(struct ufs_hba *hba, struct dentry *device_root);
|
|
void debugfs_provision_exit(struct ufs_hba *hba);
|
|
#endif
|
|
|
|
#endif
|