sunxi: video: Add support for Hitachi tx18d42vm LVDS LCD panels
Add support for Hitachi tx18d42vm LVDS LCD panels, these panels have a lcd controller which needs to be initialized over SPI, once that is done they work like a regular LVDS panel. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Anatolij Gustschin <agust@denx.de> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
a5464f2bd2
commit
27515b20c1
|
|
@ -354,6 +354,13 @@ config VIDEO_LCD_PANEL_MIPI_4_LANE_513_MBPS_VIA_SSD2828
|
||||||
---help---
|
---help---
|
||||||
7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0
|
7.85" 768x1024 LCD panels, such as LG LP079X01 or AUO B079XAN01.0
|
||||||
|
|
||||||
|
config VIDEO_LCD_PANEL_HITACHI_TX18D42VM
|
||||||
|
bool "Hitachi tx18d42vm LCD panel"
|
||||||
|
select VIDEO_LCD_HITACHI_TX18D42VM
|
||||||
|
select VIDEO_LCD_IF_LVDS
|
||||||
|
---help---
|
||||||
|
7.85" 1024x768 Hitachi tx18d42vm LCD panel support
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <video_fb.h>
|
#include <video_fb.h>
|
||||||
#include "videomodes.h"
|
#include "videomodes.h"
|
||||||
|
#include "hitachi_tx18d42vm_lcd.h"
|
||||||
#include "ssd2828.h"
|
#include "ssd2828.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
@ -1004,6 +1005,10 @@ static void sunxi_mode_set(const struct ctfb_res_modes *mode,
|
||||||
break;
|
break;
|
||||||
case sunxi_monitor_lcd:
|
case sunxi_monitor_lcd:
|
||||||
sunxi_lcdc_panel_enable();
|
sunxi_lcdc_panel_enable();
|
||||||
|
if (IS_ENABLED(CONFIG_VIDEO_LCD_HITACHI_TX18D42VM)) {
|
||||||
|
mdelay(50); /* Wait for lcd controller power on */
|
||||||
|
hitachi_tx18d42vm_init();
|
||||||
|
}
|
||||||
sunxi_composer_mode_set(mode, address);
|
sunxi_composer_mode_set(mode, address);
|
||||||
sunxi_lcdc_tcon0_mode_set(mode);
|
sunxi_lcdc_tcon0_mode_set(mode);
|
||||||
sunxi_composer_enable();
|
sunxi_composer_enable();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue