2 * drivers/video/sprdfb/lcd/lcd_ili6150_lvds.c
4 * Copyright (C) 2014 Spreadtrum Communications Inc.
6 * Author: Haibing.Yang <haibing.yang@spreadtrum.com>
12 #include <asm/arch/sprd_lcd.h>
13 #include <asm/arch/dispc_reg.h>
15 #include "../sprdfb.h"
17 static uint32_t ili6150_lvds_readid(struct panel_spec *self)
22 static struct panel_operations ili6150_lvds_ops = {
23 .panel_init = sprdchip_lvds_init,
24 .panel_readid = ili6150_lvds_readid,
27 static struct timing_rgb ili6150_lvds_timing = {
28 .hfp = 150, /* unit: pixel */
31 .vfp = 16, /*unit: line*/
36 static struct info_rgb ili6150_lvds_info = {
37 .cmd_bus_mode = SPRDFB_RGB_BUS_TYPE_LVDS,
38 .video_bus_width = 24, /*18,16*/
40 .h_sync_pol = SPRDFB_POLARITY_NEG,
41 .v_sync_pol = SPRDFB_POLARITY_NEG,
42 .de_pol = SPRDFB_POLARITY_POS,
44 .timing = &ili6150_lvds_timing,
50 struct panel_spec ili6150_lvds_spec = {
54 .type = SPRDFB_PANEL_TYPE_LVDS,
55 .direction = LCD_DIRECT_NORMAL,
57 .rgb = &ili6150_lvds_info
59 .ops = &ili6150_lvds_ops,