• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/msm/
1/* Copyright (c) 2009, Code Aurora Forum. All rights reserved.
2 *
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.
6 *
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.
11 *
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
15 * 02110-1301, USA.
16 */
17
18#include "msm_fb.h"
19
20static int __init lcdc_external_init(void)
21{
22	int ret;
23	struct msm_panel_info pinfo;
24
25	if (msm_fb_detect_client("lcdc_external"))
26		return 0;
27
28	pinfo.xres = 1280;
29	pinfo.yres = 720;
30	pinfo.type = LCDC_PANEL;
31	pinfo.pdest = DISPLAY_1;
32	pinfo.wait_cycle = 0;
33	pinfo.bpp = 24;
34	pinfo.fb_num = 2;
35	pinfo.clk_rate = 74250000;
36
37	pinfo.lcdc.h_back_porch = 124;
38	pinfo.lcdc.h_front_porch = 110;
39	pinfo.lcdc.h_pulse_width = 136;
40	pinfo.lcdc.v_back_porch = 19;
41	pinfo.lcdc.v_front_porch = 5;
42	pinfo.lcdc.v_pulse_width = 6;
43	pinfo.lcdc.border_clr = 0;	/* blk */
44	pinfo.lcdc.underflow_clr = 0xff;	/* blue */
45	pinfo.lcdc.hsync_skew = 0;
46
47	ret = lcdc_device_register(&pinfo);
48	if (ret)
49		printk(KERN_ERR "%s: failed to register device!\n", __func__);
50
51	return ret;
52}
53
54module_init(lcdc_external_init);
55