/* display driver * * Copyright (c) 2017 Allwinnertech Co., Ltd. * Author: Tyle * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __DEFAULT_PANEL_H__ #define __DEFAULT_PANEL_H__ #include "panels.h" #define panel_rst(v) (sunxi_lcd_gpio_set_value(0, 0, v)) enum __dsi_dcs_t { DSI_DCS_ENTER_IDLE_MODE = 0x39, DSI_DCS_ENTER_INVERT_MODE = 0x21, DSI_DCS_ENTER_NORMAL_MODE = 0x13, DSI_DCS_ENTER_PARTIAL_MODE = 0x12, DSI_DCS_ENTER_SLEEP_MODE = 0x10, DSI_DCS_EXIT_IDLE_MODE = 0x38, DSI_DCS_EXIT_INVERT_MODE = 0x20, DSI_DCS_EXIT_SLEEP_MODE = 0x11, DSI_DCS_GET_ADDRESS_MODE = 0x0b, DSI_DCS_GET_BLUE_CHANNEL = 0x08, DSI_DCS_GET_DIAGNOSTIC_RESULT = 0x0f, DSI_DCS_GET_DISPLAY_MODE = 0x0d, DSI_DCS_GET_GREEN_CHANNEL = 0x07, DSI_DCS_GET_PIXEL_FORMAT = 0x0c, DSI_DCS_GET_POWER_MODE = 0x0a, DSI_DCS_GET_RED_CHANNEL = 0x06, DSI_DCS_GET_SCANLINE = 0x45, DSI_DCS_GET_SIGNAL_MODE = 0x0e, DSI_DCS_NOP = 0x00, DSI_DCS_READ_DDB_CONTINUE = 0xa8, DSI_DCS_READ_DDB_START = 0xa1, DSI_DCS_READ_MEMORY_CONTINUE = 0x3e, DSI_DCS_READ_MEMORY_START = 0x2e, DSI_DCS_SET_ADDRESS_MODE = 0x36, DSI_DCS_SET_COLUMN_ADDRESS = 0x2a, DSI_DCS_SET_DISPLAY_OFF = 0x28, DSI_DCS_SET_DISPLAY_ON = 0x29, DSI_DCS_SET_GAMMA_CURVE = 0x26, DSI_DCS_SET_PAGE_ADDRESS = 0x2b, DSI_DCS_SET_PARTIAL_AREA = 0x30, DSI_DCS_SET_PIXEL_FORMAT = 0x3a, DSI_DCS_SET_SCROLL_AREA = 0x33, DSI_DCS_SET_SCROLL_START = 0x37, DSI_DCS_SET_TEAR_OFF = 0x34, DSI_DCS_SET_TEAR_ON = 0x35, DSI_DCS_SET_TEAR_SCANLINE = 0x44, DSI_DCS_SOFT_RESET = 0x01, DSI_DCS_WRITE_LUT = 0x2d, DSI_DCS_WRITE_MEMORY_CONTINUE = 0x3c, DSI_DCS_WRITE_MEMORY_START = 0x2c, }; extern struct __lcd_panel_t lp079x01_panel; #endif