blob: 4b1cb1cfd1f131e7fd2001c27c523de02f3d9a59 [file] [log] [blame]
Lloyd Atkinson8772e202016-09-26 17:52:16 -04001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __SDE_VBIF_H__
14#define __SDE_VBIF_H__
15
16#include "sde_kms.h"
17
18struct sde_vbif_set_ot_params {
19 u32 xin_id;
20 u32 num;
21 u32 width;
22 u32 height;
23 u32 frame_rate;
24 bool rd;
25 bool is_wfd;
26 u32 vbif_idx;
27 u32 clk_ctrl;
28};
29
30/**
31 * sde_vbif_set_ot_limit - set OT limit for vbif client
32 * @sde_kms: SDE handler
33 * @params: Pointer to OT configuration parameters
34 */
35void sde_vbif_set_ot_limit(struct sde_kms *sde_kms,
36 struct sde_vbif_set_ot_params *params);
37
Alan Kwong748e833d2016-10-26 12:34:48 -040038#ifdef CONFIG_DEBUG_FS
39int sde_debugfs_vbif_init(struct sde_kms *sde_kms, struct dentry *debugfs_root);
40void sde_debugfs_vbif_destroy(struct sde_kms *sde_kms);
41#else
42static inline int sde_debugfs_vbif_init(struct sde_kms *sde_kms,
43 struct dentry *debugfs_root)
44{
45 return 0;
46}
47static inline void sde_debugfs_vbif_destroy(struct sde_kms *sde_kms)
48{
49}
50#endif
Lloyd Atkinson8772e202016-09-26 17:52:16 -040051#endif /* __SDE_VBIF_H__ */