lightnvm: NVM should depend on HAS_DMA
[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>
f8e0db97 18#include <linux/platform_data/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"
c270e89b 25#include "display.h"
04aeae77 26
03e11104
RQ
27#include "mux.h"
28
29#define RX51_LCD_RESET_GPIO 90
30
31#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
32
2320dc6f
TV
33static struct connector_atv_platform_data rx51_tv_pdata = {
34 .name = "tv",
35 .source = "venc.0",
2320dc6f 36 .invert_polarity = false,
3c803f40 37};
03e11104 38
2320dc6f
TV
39static struct platform_device rx51_tv_connector_device = {
40 .name = "connector-analog-tv",
41 .id = 0,
42 .dev.platform_data = &rx51_tv_pdata,
03e11104
RQ
43};
44
45static struct omap_dss_board_info rx51_dss_board_info = {
2320dc6f 46 .default_display_name = "lcd",
03e11104
RQ
47};
48
03e11104
RQ
49static int __init rx51_video_init(void)
50{
3348e28d 51 if (!machine_is_nokia_rx51())
03e11104
RQ
52 return 0;
53
54 if (omap_mux_init_gpio(RX51_LCD_RESET_GPIO, OMAP_PIN_OUTPUT)) {
55 pr_err("%s cannot configure MUX for LCD RESET\n", __func__);
56 return 0;
57 }
58
d5e13227 59 omap_display_init(&rx51_dss_board_info);
3c803f40 60
2320dc6f
TV
61 platform_device_register(&rx51_tv_connector_device);
62
03e11104
RQ
63 return 0;
64}
65
b76c8b19 66omap_subsys_initcall(rx51_video_init);
03e11104 67#endif /* defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) */
This page took 0.381575 seconds and 5 git commands to generate.