hc
2024-03-22 f63cd4c03ea42695d5f9b0e1798edd196923aae6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * (C) Copyright 2023 Rockchip Electronics Co., Ltd
 *
 */
#ifndef __DRM_OF_H__
#define __DRM_OF_H__
 
#include <dm/ofnode.h>
#include <dm/of_access.h>
 
/**
 * enum drm_lvds_dual_link_pixels - Pixel order of an LVDS dual-link connection
 * @DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS: Even pixels are expected to be
 *    generated from the first port, odd pixels from the second port
 * @DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS: Odd pixels are expected to be
 *    generated from the first port, even pixels from the second port
 * @DRM_LVDS_DUAL_LINK_LEFT_RIGHT_PIXELS: Left pixels are expected to be
 *    generated from the first port, right pixels from the second port
 * @DRM_LVDS_DUAL_LINK_RIGHT_LEFT_PIXELS: Right pixels are expected to be
 *    generated from the first port, left pixels from the second port
 */
enum drm_lvds_dual_link_pixels {
   DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS = 0,
   DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS = 1,
   DRM_LVDS_DUAL_LINK_LEFT_RIGHT_PIXELS = 2,
   DRM_LVDS_DUAL_LINK_RIGHT_LEFT_PIXELS = 3,
};
 
int drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1,
                     const struct device_node *port2);
 
#endif