mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
This patch Halify HSP access functions. SOC-specific HSP functions are assigned during driver prob based on of_device_is_compatible check. Jira TDS-15438 Change-Id: Ia8d68cd658eaa06dd5d06e8ba92f32907a31fd4f Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3225858 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
30 lines
979 B
C
30 lines
979 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2019-2024, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef DCE_HSP_H
|
|
#define DCE_HSP_H
|
|
|
|
#include <linux/types.h> // TODO: use dce-types
|
|
|
|
struct tegra_dce;
|
|
|
|
struct dce_hsp_fn {
|
|
u32 (*ss_get_state)(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
void (*ss_set)(struct tegra_dce *d, u8 bpos, u8 hsp_id, u8 id);
|
|
void (*ss_clear)(struct tegra_dce *d, u8 bpos, u8 hsp_id, u8 id);
|
|
|
|
void (*smb_set)(struct tegra_dce *d, u32 val, u8 hsp_id, u8 id);
|
|
void (*smb_set_full_ie)(struct tegra_dce *d, bool en, u8 hsp_id, u8 id);
|
|
u32 (*smb_read_full_ie)(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
void (*smb_set_empty_ie)(struct tegra_dce *d, bool en, u8 hsp_id, u8 id);
|
|
u32 (*smb_read)(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
|
|
u32 (*hsp_ie_read)(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
void (*hsp_ie_write)(struct tegra_dce *d, u32 val, u8 hsp_id, u8 id);
|
|
u32 (*hsp_ir_read)(struct tegra_dce *d, u8 hsp_id);
|
|
};
|
|
|
|
#endif
|