Skip to content

Commit aebdd74

Browse files
committed
drm/i915/dsi: split out intel_dsi_vbt.h
Follow the convention of corresponding .h for .c. Signed-off-by: Jani Nikula <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 3c542cf commit aebdd74

File tree

5 files changed

+25
-9
lines changed

5 files changed

+25
-9
lines changed

drivers/gpu/drm/i915/display/icl_dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "intel_ddi.h"
3737
#include "intel_de.h"
3838
#include "intel_dsi.h"
39+
#include "intel_dsi_vbt.h"
3940
#include "intel_panel.h"
4041
#include "intel_vdsc.h"
4142
#include "skl_scaler.h"

drivers/gpu/drm/i915/display/intel_dsi.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,4 @@ void bxt_dsi_reset_clocks(struct intel_encoder *encoder, enum port port);
210210
void assert_dsi_pll_enabled(struct drm_i915_private *i915);
211211
void assert_dsi_pll_disabled(struct drm_i915_private *i915);
212212

213-
/* intel_dsi_vbt.c */
214-
bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id);
215-
void intel_dsi_vbt_gpio_init(struct intel_dsi *intel_dsi, bool panel_is_on);
216-
void intel_dsi_vbt_gpio_cleanup(struct intel_dsi *intel_dsi);
217-
void intel_dsi_vbt_exec_sequence(struct intel_dsi *intel_dsi,
218-
enum mipi_seq seq_id);
219-
void intel_dsi_msleep(struct intel_dsi *intel_dsi, int msec);
220-
void intel_dsi_log_params(struct intel_dsi *intel_dsi);
221-
222213
#endif /* _INTEL_DSI_H */

drivers/gpu/drm/i915/display/intel_dsi_vbt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "i915_drv.h"
4242
#include "intel_display_types.h"
4343
#include "intel_dsi.h"
44+
#include "intel_dsi_vbt.h"
4445
#include "vlv_sideband.h"
4546

4647
#define MIPI_TRANSFER_MODE_SHIFT 0
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* SPDX-License-Identifier: MIT */
2+
/*
3+
* Copyright © 2021 Intel Corporation
4+
*/
5+
6+
#ifndef __INTEL_DSI_VBT_H__
7+
#define __INTEL_DSI_VBT_H__
8+
9+
#include <linux/types.h>
10+
11+
enum mipi_seq;
12+
struct intel_dsi;
13+
14+
bool intel_dsi_vbt_init(struct intel_dsi *intel_dsi, u16 panel_id);
15+
void intel_dsi_vbt_gpio_init(struct intel_dsi *intel_dsi, bool panel_is_on);
16+
void intel_dsi_vbt_gpio_cleanup(struct intel_dsi *intel_dsi);
17+
void intel_dsi_vbt_exec_sequence(struct intel_dsi *intel_dsi,
18+
enum mipi_seq seq_id);
19+
void intel_dsi_msleep(struct intel_dsi *intel_dsi, int msec);
20+
void intel_dsi_log_params(struct intel_dsi *intel_dsi);
21+
22+
#endif /* __INTEL_DSI_VBT_H__ */

drivers/gpu/drm/i915/display/vlv_dsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "intel_de.h"
3939
#include "intel_display_types.h"
4040
#include "intel_dsi.h"
41+
#include "intel_dsi_vbt.h"
4142
#include "intel_fifo_underrun.h"
4243
#include "intel_panel.h"
4344
#include "skl_scaler.h"

0 commit comments

Comments
 (0)