2019-04-26 09:17:22 +01:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2021-10-14 13:28:58 +03:00
|
|
|
/*
|
|
|
|
* Copyright © 2013-2021 Intel Corporation
|
|
|
|
*/
|
2019-04-26 09:17:22 +01:00
|
|
|
|
2021-10-14 13:28:58 +03:00
|
|
|
#ifndef _INTEL_SBI_H_
|
|
|
|
#define _INTEL_SBI_H_
|
2019-04-26 09:17:22 +01:00
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2025-05-27 13:59:08 +03:00
|
|
|
struct intel_display;
|
2019-04-26 09:17:22 +01:00
|
|
|
|
|
|
|
enum intel_sbi_destination {
|
|
|
|
SBI_ICLK,
|
|
|
|
SBI_MPHY,
|
|
|
|
};
|
|
|
|
|
2025-05-27 13:59:08 +03:00
|
|
|
void intel_sbi_init(struct intel_display *display);
|
|
|
|
void intel_sbi_fini(struct intel_display *display);
|
|
|
|
void intel_sbi_lock(struct intel_display *display);
|
|
|
|
void intel_sbi_unlock(struct intel_display *display);
|
|
|
|
u32 intel_sbi_read(struct intel_display *display, u16 reg,
|
2019-04-26 09:17:22 +01:00
|
|
|
enum intel_sbi_destination destination);
|
2025-05-27 13:59:08 +03:00
|
|
|
void intel_sbi_write(struct intel_display *display, u16 reg, u32 value,
|
2019-04-26 09:17:22 +01:00
|
|
|
enum intel_sbi_destination destination);
|
|
|
|
|
2021-10-14 13:28:58 +03:00
|
|
|
#endif /* _INTEL_SBI_H_ */
|