11 #include <linux/kernel.h>
23 #define LCD_PANEL_RESET_GPIO_PROD 96
24 #define LCD_PANEL_RESET_GPIO_PILOT 55
25 #define LCD_PANEL_QVGA_GPIO 56
32 static void __init zoom_lcd_panel_init(
void)
39 pr_err(
"%s: Failed to get LCD GPIOs.\n", __func__);
54 #define TWL_INTBR_PMBR1 0xD
55 #define TWL_INTBR_GPBR1 0xC
56 #define TWL_LED_PWMON 0x0
57 #define TWL_LED_PWMOFF 0x1
61 #ifdef CONFIG_TWL4030_CORE
73 enb_pwm = enb_pwm & 0xF5;
75 mux_pwm = mux_pwm & 0xCF;
83 if (!((enb_pwm & 0xA) && (mux_pwm & 0x30))) {
85 mux_pwm = mux_pwm | 0x30;
87 enb_pwm = enb_pwm | 0x0A;
94 c = ((50 * (100 -
level)) / 100) + 1;
98 pr_warn(
"Backlight not enabled\n");
106 .driver_name =
"NEC_8048_panel",
108 .phy.dpi.data_lines = 24,
109 .platform_enable = zoom_panel_enable_lcd,
110 .platform_disable = zoom_panel_disable_lcd,
111 .max_backlight_level = 100,
112 .set_backlight = zoom_set_bl_intensity,
121 .devices = zoom_dss_devices,
122 .default_device = &zoom_lcd_device,
129 static struct spi_board_info nec_8048_spi_board_info[] __initdata = {
131 .modalias =
"nec_8048_spi",
134 .max_speed_hz = 375000,
135 .controller_data = &dss_lcd_mcspi_config,
144 zoom_lcd_panel_init();