31 lines
1.2 KiB
C
31 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Phytium display drm driver
|
|
*
|
|
* Copyright (C) 2021-2023, Phytium Technology Co., Ltd.
|
|
*/
|
|
|
|
#ifndef __PX210_DC_H__
|
|
#define __PX210_DC_H__
|
|
|
|
#define PX210_DC_PIX_CLOCK_MAX (594000)
|
|
#define PX210_DC_HDISPLAY_MAX 3840
|
|
#define PX210_DC_VDISPLAY_MAX 2160
|
|
#define PX210_DC_ADDRESS_MASK 0x7f
|
|
|
|
extern void px210_dc_hw_vram_init(struct phytium_display_private *priv,
|
|
resource_size_t vram_addr,
|
|
resource_size_t vram_size);
|
|
extern void px210_dc_hw_clear_msi_irq(struct phytium_display_private *priv, uint32_t phys_pipe);
|
|
extern void px210_dc_hw_config_pix_clock(struct drm_crtc *crtc, int clock);
|
|
extern void px210_dc_hw_disable(struct drm_crtc *crtc);
|
|
extern int px210_dc_hw_fb_format_check(const struct drm_mode_fb_cmd2 *mode_cmd, int count);
|
|
extern void px210_dc_hw_plane_get_primary_format(const uint64_t **format_modifiers,
|
|
const uint32_t **formats,
|
|
uint32_t *format_count);
|
|
extern void px210_dc_hw_plane_get_cursor_format(const uint64_t **format_modifiers,
|
|
const uint32_t **formats,
|
|
uint32_t *format_count);
|
|
void px210_dc_hw_update_dcreq(struct drm_plane *plane);
|
|
void px210_dc_hw_update_primary_hi_addr(struct drm_plane *plane);
|
|
#endif /* __PX210_DC_H__ */
|