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
11struct intel_display;
12
13enum intel_sbi_destination {
14 SBI_ICLK,
15 SBI_MPHY,
16};
17
18void intel_sbi_init(struct intel_display *display);
19void intel_sbi_fini(struct intel_display *display);
20void intel_sbi_lock(struct intel_display *display);
21void intel_sbi_unlock(struct intel_display *display);
22u32 intel_sbi_read(struct intel_display *display, u16 reg,
23 enum intel_sbi_destination destination);
24void intel_sbi_write(struct intel_display *display, u16 reg, u32 value,
25 enum intel_sbi_destination destination);
26
27#endif /* _INTEL_SBI_H_ */
28