xref: /linux/drivers/gpu/drm/i915/display/intel_sbi.h (revision a737ab4a87cb4a58b564a97bf313c8dfc15c7c53)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2013-2021 Intel Corporation
4  */
5 
6 #ifndef _INTEL_SBI_H_
7 #define _INTEL_SBI_H_
8 
9 #include <linux/types.h>
10 
11 struct intel_display;
12 
13 enum intel_sbi_destination {
14 	SBI_ICLK,
15 	SBI_MPHY,
16 };
17 
18 void intel_sbi_init(struct intel_display *display);
19 void intel_sbi_fini(struct intel_display *display);
20 void intel_sbi_lock(struct intel_display *display);
21 void intel_sbi_unlock(struct intel_display *display);
22 u32 intel_sbi_read(struct intel_display *display, u16 reg,
23 		   enum intel_sbi_destination destination);
24 void intel_sbi_write(struct intel_display *display, u16 reg, u32 value,
25 		     enum intel_sbi_destination destination);
26 
27 #endif /* _INTEL_SBI_H_ */
28