![Stepan Moskovchenko](/assets/img/avatar_default.png)
Qualcomm development of the MSM SOC framebuffer driver has diverged significantly from the driver used by Android. This is a snapshot of our current driver, in all it's agony. We are putting this in staging to help with the process of converging the two drivers. At this point, the driver has been tested only in dumb framebuffer mode. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> [dwalker@codeaurora.org: added a small compile fix and TODO.] Signed-off-by: Daniel Walker <dwalker@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
/* Copyright (c) 2009, Code Aurora Forum. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301, USA.
|
|
*/
|
|
|
|
#include "msm_fb.h"
|
|
#include "mddihost.h"
|
|
#include "mddi_toshiba.h"
|
|
|
|
static int __init mddi_toshiba_wvga_init(void)
|
|
{
|
|
int ret;
|
|
struct msm_panel_info pinfo;
|
|
|
|
#ifdef CONFIG_FB_MSM_MDDI_AUTO_DETECT
|
|
if (msm_fb_detect_client("mddi_toshiba_wvga"))
|
|
return 0;
|
|
#endif
|
|
|
|
pinfo.xres = 800;
|
|
pinfo.yres = 480;
|
|
pinfo.pdest = DISPLAY_2;
|
|
pinfo.type = MDDI_PANEL;
|
|
pinfo.mddi.vdopkt = MDDI_DEFAULT_PRIM_PIX_ATTR;
|
|
pinfo.wait_cycle = 0;
|
|
pinfo.bpp = 18;
|
|
pinfo.lcd.vsync_enable = TRUE;
|
|
pinfo.lcd.refx100 = 6118;
|
|
pinfo.lcd.v_back_porch = 6;
|
|
pinfo.lcd.v_front_porch = 0;
|
|
pinfo.lcd.v_pulse_width = 0;
|
|
pinfo.lcd.hw_vsync_mode = FALSE;
|
|
pinfo.lcd.vsync_notifier_period = (1 * HZ);
|
|
pinfo.bl_max = 4;
|
|
pinfo.bl_min = 1;
|
|
pinfo.clk_rate = 192000000;
|
|
pinfo.clk_min = 190000000;
|
|
pinfo.clk_max = 200000000;
|
|
pinfo.fb_num = 2;
|
|
|
|
ret = mddi_toshiba_device_register(&pinfo, TOSHIBA_VGA_PRIM,
|
|
LCD_TOSHIBA_2P4_WVGA);
|
|
if (ret) {
|
|
printk(KERN_ERR "%s: failed to register device!\n", __func__);
|
|
return ret;
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
module_init(mddi_toshiba_wvga_init);
|