#include <asw/asw_g_use.h>
#include <sdrv_common.h>
#include <types.h>
Go to the source code of this file.
|
| status_t | sdrv_display_set_pixelclk (int clk) |
| |
| status_t | sdrv_panel_probe (struct sdrv_panel *panel) |
| |
| status_t | sdrv_display_init (struct dc_dev *dev) |
| |
| void | sdrv_lvds_channel_enable (bool enable) |
| |
| void | sdrv_display_rgb565_logo (struct dc_dev *dev, unsigned int width, unsigned int height, unsigned char const *addr) |
| |
| void | sdrv_display_blank (struct dc_dev *dev) |
| |
| int | sdrv_display_get_width (struct dc_dev *dev) |
| |
| int | sdrv_display_get_height (struct dc_dev *dev) |
| |
| void | sdrv_display_set_bg_color (struct dc_dev *dev, int color) |
| |
| status_t | sdrv_display_surface (struct dc_dev *dev, struct surface *layer) |
| |
| status_t | sdrv_display_surface_noblock (struct dc_dev *dev, struct surface *layer) |
| |
| status_t | sdrv_display_post (struct dc_dev *dev, struct post_cfg *post) |
| |
| status_t | sdrv_display_post_noblock (struct dc_dev *dev, struct post_cfg *post) |
| |
| void | sdrv_dc_probe (struct dc_dev *dev, const struct dc_config *dc_cfg) |
| |
| void | sdrv_dc_handshake_enable (struct dc_dev *dev, int mode, struct surface *layer) |
| |
| void | sdrv_dc_handshake_disable (struct dc_dev *dev, int mode, uint8_t zorder) |
| |
| void | sdrv_update_csi_detect (struct dc_dev *dev, struct surface *layer, int mask_count, int ratio, bool enable, bool pll_mode) |
| |
| void | sdrv_tcon_auto_adj_enable (struct dc_dev *dev, bool enable) |
| |
- Copyright
- Copyright (c) 2022 Semidrive Semiconductor. All rights reserved.
◆ PLL_LVDS_MAX
| #define PLL_LVDS_MAX 1200000000 /* PLL_LVDS_MAX 1.2GHz*/ |
◆ anonymous enum
| Enumerator |
|---|
| CLEAR_SPIPE_LAYER | |
| CLEAR_GPIPE_LAYER | |
| CLEAR_ALL_LAYERS | |
◆ anonymous enum
| Enumerator |
|---|
| IF_TYPE_INVALID | |
| IF_TYPE_NONE | |
| IF_TYPE_LVDS | |
| IF_TYPE_INTERNAL | |
◆ anonymous enum
| Enumerator |
|---|
| LVDS_MAP_FORMAT_NC | |
| LVDS_MAP_FORMAT_JEIDA | |
| LVDS_MAP_FORMAT_SWPG | |
◆ anonymous enum
| Enumerator |
|---|
| CSI_DC_1_1 | |
| CSI_DC_1_2 | |
| CSI_DC_1_3 | |
| CSI_DC_1_4 | |
◆ anonymous enum
| Enumerator |
|---|
| CRC32_MODE_INTERNAL | |
| CRC32_MODE_EXTERNAL | |
◆ anonymous enum
Dispss status return code.
| Enumerator |
|---|
| SDRV_DISPSS_STATUS_OK | |
| SDRV_DISPSS_STATUS_FAIL | |
| SDRV_DISPSS_STATUS_INVALID_PARAM | |
| SDRV_DISPSS_STATUS_TIMEOUT | |
◆ LCM_POLARITY
| Enumerator |
|---|
| LCM_POLARITY_RISING | |
| LCM_POLARITY_FALLING | |
◆ mlc_layer_index
| Enumerator |
|---|
| MLC_LAYER_SP | |
| MLC_LAYER_GP | |
| MLC_LAYER_NUM | |
◆ mlc_path_index
| Enumerator |
|---|
| MLC_PATH_BG | |
| MLC_PATH_SP | |
| MLC_PATH_GP | |
| MLC_PATH_NUM | |
◆ pipe_type_t
| Enumerator |
|---|
| PIPE_TYPE_SPIPE | |
| PIPE_TYPE_GPIPE | |
| PIPE_TYPE_NUM | |
◆ sdrv_crc_mode_set()
| status_t sdrv_crc_mode_set |
( |
bool |
is_internal | ) |
|
◆ sdrv_dc_handshake_disable()
| void sdrv_dc_handshake_disable |
( |
struct dc_dev * |
dev, |
|
|
int |
mode, |
|
|
uint8_t |
zorder |
|
) |
| |
asw-dc handshake mode disable with g-pipe disable.
This function enable asw-dc handshake mode.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | mode | HSDK MODE: 0:BUF_SIZE_8LINES; 1: BUF_SIZE_16LINES; 2:BUF_SIZE_32LINES; 3:BUF_SIZE_64LINES |
| [in] | zorder | g-pipe layer zorder |
◆ sdrv_dc_handshake_enable()
| void sdrv_dc_handshake_enable |
( |
struct dc_dev * |
dev, |
|
|
int |
mode, |
|
|
struct surface * |
layer |
|
) |
| |
asw-dc handshake mode enable with update layer.
This function implements display configuration and enable asw-dc handshake mode.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | mode | HSDK MODE: 0:BUF_SIZE_8LINES; 1: BUF_SIZE_16LINES; 2:BUF_SIZE_32LINES; 3:BUF_SIZE_64LINES |
| [in] | layer | surface param. |
◆ sdrv_dc_probe()
| void sdrv_dc_probe |
( |
struct dc_dev * |
dev, |
|
|
const struct dc_config * |
dc_cfg |
|
) |
| |
dc probe.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | dc_cfg | dc config param. |
◆ sdrv_disp_mux_init()
◆ sdrv_display_blank()
| void sdrv_display_blank |
( |
struct dc_dev * |
dev | ) |
|
sdrv display blank.
This function display a blank frame.
- Parameters
-
◆ sdrv_display_get_height()
| int sdrv_display_get_height |
( |
struct dc_dev * |
dev | ) |
|
get display height.
This function obtains display height.
- Parameters
-
- Returns
- the vactive of tcon timing.
◆ sdrv_display_get_width()
| int sdrv_display_get_width |
( |
struct dc_dev * |
dev | ) |
|
get display width.
This function obtains display width.
- Parameters
-
- Returns
- the hactive of tcon timing.
◆ sdrv_display_init()
sdrv display init.
This function init display hardware.
- Parameters
-
- Returns
- SDRV_DISPSS_STATUS_OK display init successfully.
◆ sdrv_display_post()
refresh display.
This function implements display configuration and refresh display.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | post | display config param. |
- Returns
- SDRV_DISPSS_STATUS_OK display successfully, SDRV_DISPSS_STATUS_TIMEOUT display timeout.
◆ sdrv_display_post_noblock()
noblock refresh display.
This function implements display configuration and nonblock refresh display.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | post | display config param. |
- Returns
- SDRV_DISPSS_STATUS_OK display successfully, SDRV_DISPSS_STATUS_FAIL display fail.
◆ sdrv_display_rgb565_logo()
| void sdrv_display_rgb565_logo |
( |
struct dc_dev * |
dev, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned char const * |
addr |
|
) |
| |
sdrv display rgb565 logo.
This function display a static logo.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | width | logo width. |
| [in] | height | logo height. |
| [in] | addr | the memory addr of logo data. |
◆ sdrv_display_set_bg_color()
| void sdrv_display_set_bg_color |
( |
struct dc_dev * |
dev, |
|
|
int |
color |
|
) |
| |
set display background color.
This function set the background color of display.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | color | background color value. |
◆ sdrv_display_set_pixelclk()
| status_t sdrv_display_set_pixelclk |
( |
int |
clk | ) |
|
sdrv display clk set.
This function set display pixel clk.
- Parameters
-
- Returns
- SDRV_DISPSS_STATUS_OK display clk set successfully, SDRV_DISPSS_STATUS_INVALID_PARAM clk is invalid param.
◆ sdrv_display_surface()
refresh display single surface.
This function implements display configuration and refresh display.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | layer | display surface param. |
- Returns
- SDRV_DISPSS_STATUS_OK display surface successfully, SDRV_DISPSS_STATUS_TIMEOUT display surface timeout.
◆ sdrv_display_surface_noblock()
noblock refresh display surface.
This function implements display configuration and nonblock refresh display surface.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | layer | surface param. |
- Returns
- SDRV_DISPSS_STATUS_OK display surface successfully, SDRV_DISPSS_STATUS_FAIL display surface fail.
◆ sdrv_lvds_channel_enable()
| void sdrv_lvds_channel_enable |
( |
bool |
enable | ) |
|
lvds channel enable.
This function control the lvds channel output.
- Parameters
-
| [in] | enable | false->disable; true->enable. |
◆ sdrv_lvds_init()
◆ sdrv_panel_probe()
sdrv disp interface init.
This function init display interface.
- Parameters
-
| [in] | panel | display panel param. |
- Returns
- SDRV_DISPSS_STATUS_OK panel probe successfully, SDRV_DISPSS_STATUS_INVALID_PARAM panel is invalid param.
◆ sdrv_paral_to_csi_en()
| status_t sdrv_paral_to_csi_en |
( |
bool |
enable | ) |
|
◆ sdrv_tcon_auto_adj_enable()
| void sdrv_tcon_auto_adj_enable |
( |
struct dc_dev * |
dev, |
|
|
bool |
enable |
|
) |
| |
tcon auto adj enable.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | enable | enable or disable. |
◆ sdrv_update_csi_detect()
| void sdrv_update_csi_detect |
( |
struct dc_dev * |
dev, |
|
|
struct surface * |
layer, |
|
|
int |
mask_count, |
|
|
int |
ratio, |
|
|
bool |
enable, |
|
|
bool |
pll_mode |
|
) |
| |
update dc detect.
- Parameters
-
| [in] | dev | DC device struct. |
| [in] | dc_cfg | dc config param. |
◆ dc_ops
◆ g_dc_dev