1 /* Copyright (c) 2009, Code Aurora Forum. All rights reserved.
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 #include "mddihosti.h"
21 #include "mddi_toshiba.h"
23 static int __init mddi_toshiba_wvga_pt_init(void)
26 struct msm_panel_info pinfo;
27 #ifdef CONFIG_FB_MSM_MDDI_AUTO_DETECT
30 ret = msm_fb_detect_client("mddi_toshiba_wvga_pt");
35 id = mddi_get_client_id();
43 pinfo.type = MDDI_PANEL;
44 pinfo.pdest = DISPLAY_1;
45 pinfo.mddi.vdopkt = MDDI_DEFAULT_PRIM_PIX_ATTR;
48 pinfo.lcd.vsync_enable = FALSE;
51 pinfo.clk_rate = 192000000;
52 pinfo.clk_min = 190000000;
53 pinfo.clk_max = 200000000;
56 ret = mddi_toshiba_device_register(&pinfo, TOSHIBA_VGA_PRIM,
57 LCD_TOSHIBA_2P4_WVGA_PT);
59 printk(KERN_ERR "%s: failed to register device!\n", __func__);
64 module_init(mddi_toshiba_wvga_pt_init);