mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Create and register set and get operating point sysfs functions. The operating point notification will contain the requested operating point. The nvcap resource manager will extract the operating point from the notfication and send it to rce via the hsp command interface. In turn, rce will apply the operating point by adjusting the functional clock frequencies for the following camera ip: - rce hardware - vi hardware - isp hardware - nvcsi Jira CAMERASW-26378 Signed-off-by: Robert Kelly <rkelly@nvidia.com> Change-Id: Ia814b2716d3738efb3cbc37307a267140b555f42 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3179593 (cherry picked from commit d259727a57ecf4b9463030b3418715891b3b1209) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3189078 Reviewed-by: Semi Malinen <smalinen@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef INCLUDE_RTCPU_HSP_COMBO_H
|
|
#define INCLUDE_RTCPU_HSP_COMBO_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct camrtc_hsp;
|
|
struct device;
|
|
|
|
struct camrtc_hsp *camrtc_hsp_create(
|
|
struct device *dev,
|
|
void (*group_notify)(struct device *dev, u16 group),
|
|
long cmd_timeout);
|
|
|
|
void camrtc_hsp_free(struct camrtc_hsp *camhsp);
|
|
|
|
void camrtc_hsp_group_ring(struct camrtc_hsp *camhsp,
|
|
u16 group);
|
|
|
|
int camrtc_hsp_sync(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_resume(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_suspend(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_bye(struct camrtc_hsp *camhsp);
|
|
int camrtc_hsp_ch_setup(struct camrtc_hsp *camhsp, dma_addr_t iova);
|
|
int camrtc_hsp_ping(struct camrtc_hsp *camhsp, u32 data, long timeout);
|
|
int camrtc_hsp_get_fw_hash(struct camrtc_hsp *camhsp,
|
|
u8 hash[], size_t hash_size);
|
|
int camrtc_hsp_set_operating_point(struct camrtc_hsp *camhsp,
|
|
uint32_t operating_point);
|
|
|
|
|
|
#endif /* INCLUDE_RTCPU_HSP_COMBO_H */
|