ARM: OMAP: rx51-video: Do not set TV connector_type
[deliverable/linux.git] / arch / arm / mach-omap2 / board-rx51-video.c
CommitLineData
03e11104
RQ
1/*
2 * linux/arch/arm/mach-omap2/board-rx51-video.c
3 *
4 * Copyright (C) 2010 Nokia
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#include <linux/kernel.h>
12#include <linux/init.h>
13#include <linux/platform_device.h>
14#include <linux/gpio.h>
15#include <linux/spi/spi.h>
16#include <linux/mm.h>
03e11104 17#include <asm/mach-types.h>
a0b38cc4 18#include <video/omapdss.h>
3c803f40
AT
19#include <video/omap-panel-data.h>
20
2203747c 21#include <linux/platform_data/spi-omap2-mcspi.h>
03e11104 22
b76c8b19 23#include "soc.h"
0a6f98c9 24#include "board-rx51.h"
04aeae77 25
03e11104
RQ
26#include "mux.h"
27
28#define RX51_LCD_RESET_GPIO 90
29
30#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
31
2320dc6f
TV
32static struct connector_atv_platform_data rx51_tv_pdata = {
33 .name = "tv",
34 .source = "venc.0",
2320dc6f 35 .invert_polarity = false,
3c803f40 36};
03e11104 37
2320dc6f
TV
38static struct platform_device rx51_tv_connector_device = {
39 .name = "connector-analog-tv",
40 .id = 0,
41 .dev.platform_data = &rx51_tv_pdata,
03e11104
RQ
42};
43
44static struct omap_dss_board_info rx51_dss_board_info = {
2320dc6f 45 .default_display_name = "lcd",
03e11104
RQ
46};
47
03e11104
RQ
48static int __init rx51_video_init(void)
49{
3348e28d 50 if (!machine_is_nokia_rx51())
03e11104
RQ
51 return 0;
52
53 if (omap_mux_init_gpio(RX51_LCD_RESET_GPIO, OMAP_PIN_OUTPUT)) {
54 pr_err("%s cannot configure MUX for LCD RESET\n", __func__);
55 return 0;
56 }
57
d5e13227 58 omap_display_init(&rx51_dss_board_info);
3c803f40 59
2320dc6f
TV
60 platform_device_register(&rx51_tv_connector_device);
61
03e11104
RQ
62 return 0;
63}
64
b76c8b19 65omap_subsys_initcall(rx51_video_init);
03e11104 66#endif /* defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) */
This page took 0.352144 seconds and 5 git commands to generate.