[msm8660/LCD]: add AUO wvga panel support
Platform check added to decide which panel to turn on for splash
screen. Also changed to enable fbcon before power up the panel to
avoid a flicker.
Change-Id: I71851862f960294220df3f030b679c5694381d7d
diff --git a/platform/msm8x60/platform.c b/platform/msm8x60/platform.c
index 1f08c2b..eaf0f19 100644
--- a/platform/msm8x60/platform.c
+++ b/platform/msm8x60/platform.c
@@ -37,12 +37,15 @@
#include <kernel/thread.h>
#include <platform/debug.h>
#include <platform/iomap.h>
+#include <platform/clock.h>
+#include <platform/machtype.h>
#include <qgic.h>
#include <i2c_qup.h>
#include <gsbi.h>
#include <uart_dm.h>
#include <mmu.h>
#include <arch/arm/mmu.h>
+#include <dev/lcdc.h>
static uint32_t ticks_per_sec = 0;
@@ -123,11 +126,18 @@
{
struct fbcon_config *fb_cfg;
#if DISPLAY_TYPE_LCDC
+ struct lcdc_timing_parameters *lcd_timing;
mdp_clock_init();
- mmss_pixel_clock_configure();
- fb_cfg = lcdc_init();
- panel_poweron();
+ if (board_machtype() == LINUX_MACHTYPE_8660_FLUID) {
+ mmss_pixel_clock_configure(PIXEL_CLK_INDEX_25M);
+ } else {
+ mmss_pixel_clock_configure(PIXEL_CLK_INDEX_54M);
+ }
+ lcd_timing = get_lcd_timing();
+ fb_cfg = lcdc_init_set( lcd_timing );
fbcon_setup(fb_cfg);
+ fbcon_clear();
+ panel_poweron();
#endif
#if DISPLAY_TYPE_MIPI
mdp_clock_init();