.lvds = 0, .dither_enable = 0, #else #error "Please add the board data!!!" #endif }; #ifdef CONFIG_VIDEO_BYD_BM8766U #include <jz_lcd/byd_bm8766u.h> struct byd_bm8766u_data byd_bm8766u_pdata = { .gpio_lcd_disp = GPIO_PB(30), .gpio_lcd_de = 0, //GPIO_PC(9), /* chose sync mode */ .gpio_lcd_vsync = 0, //GPIO_PC(19), .gpio_lcd_hsync = 0, //GPIO_PC(18), }; #endif /* CONFIG_LCD_BYD_BM8766U */ #ifdef CONFIG_VIDEO_BM347WV_F_8991FTGF #include <jz_lcd/byd_8991.h> struct byd_8991_data byd_8991_pdata = { .gpio_lcd_disp = GPIO_PB(30), .gpio_lcd_de = 0, .gpio_lcd_vsync = 0, .gpio_lcd_hsync = 0, .gpio_spi_cs = GPIO_PC(0), .gpio_spi_clk = GPIO_PC(1), .gpio_spi_mosi = GPIO_PC(10), .gpio_spi_miso = GPIO_PC(11), }; #endif /* CONFIG_VIDEO_BM347WV_F_8991FTGF */
/* gpio had been hardware control */ }; /* LCD Panel Device */ struct platform_device kr070la0s_270_device = { .name = "kr070la0s_270-lcd", .dev = { .platform_data = &kr070la0s_270_pdata, }, }; #endif #ifdef CONFIG_LCD_EK070TN93 #include <linux/ek070tn93.h> static struct platform_ek070tn93_data ek070tn93_pdata= { .gpio_de = GPIO_PC(9), .gpio_vs = GPIO_PC(19), .gpio_hs = GPIO_PC(18), // .gpio_reset = GPIO_PB(22), .de_mode = 0, }; /* LCD Panel Device */ struct platform_device ek070tn93_device = { .name = "ek070tn93-lcd", .dev = { .platform_data = &ek070tn93_pdata, }, }; #endif
#include <linux/mm.h> #include <linux/console.h> #include <linux/delay.h> #include <linux/gpio.h> #include <linux/pwm_backlight.h> #include <linux/at070tn93.h> #include <mach/jzfb.h> #include <mach/fb_hdmi_modes.h> #ifdef CONFIG_LCD_AT070TN93 //#define GPIO_LCD_PWM GPIO_PE(0) #define GPIO_LCD_PWM GPIO_PE(1) static struct platform_at070tn93_data at070tn93_pdata= { .gpio_power = GPIO_PC(9), .gpio_vsync = GPIO_PC(19), .gpio_hsync = GPIO_PC(18), .gpio_reset = GPIO_PE(11), }; struct platform_device at070tn93_device = { .name = "at070tn93-lcd", .dev = { .platform_data = &at070tn93_pdata, }, }; #endif #ifdef CONFIG_LCD_AUO_A043FL01V2
.gpio_lcd_hsync = 0, //GPIO_PC(18), }; /* LCD device */ struct platform_device kd50g2_40nm_a2_device = { .name = "kd50g2_40nm_a2-lcd", .dev = { .platform_data = &kd50g2_40nm_a2_pdata, }, }; #endif #ifdef CONFIG_LCD_KFM701A21_1A #include <linux/kfm701a21_1a.h> static struct platform_kfm701a21_1a_data kfm701a21_1a_pdata = { .gpio_lcd_cs = GPIO_PC(21), .gpio_lcd_reset = GPIO_PB(28), }; /* LCD Panel Device */ struct platform_device kfm701a21_1a_device = { .name = "kfm701a21_1a-lcd", .dev = { .platform_data = &kfm701a21_1a_pdata, }, }; static struct smart_lcd_data_table kfm701a21_1a_data_table[] = { /* soft reset */ {0x0600, 0x0001, 0, 10000}, /* soft reset */
#include <linux/platform_device.h> #include <linux/mm.h> #include <linux/console.h> #include <linux/delay.h> #include <linux/gpio.h> #include <linux/pwm_backlight.h> #include <linux/at070tn93.h> #include <mach/jzfb.h> #include <mach/fb_hdmi_modes.h> #ifdef CONFIG_LCD_AT070TN93 #define GPIO_LCD_PWM GPIO_PE(0) static struct platform_at070tn93_data at070tn93_pdata= { .gpio_power = GPIO_PC(17), .gpio_vsync = GPIO_PC(19), .gpio_hsync = GPIO_PC(18), .gpio_reset = GPIO_PE(11), }; struct platform_device at070tn93_device = { .name = "at070tn93-lcd", .dev = { .platform_data = &at070tn93_pdata, }, }; #endif #ifdef CONFIG_LCD_AUO_A043FL01V2