2 * arch/arm/mach-tegra/board-harmony-panel.c
4 * Copyright (C) 2010 Google, Inc.
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #include <linux/resource.h>
18 #include <linux/platform_device.h>
19 #include <asm/mach-types.h>
20 #include <mach/irqs.h>
21 #include <mach/iomap.h>
22 #include <mach/tegra_fb.h>
25 static struct resource fb_resource[] = {
27 .start = INT_DISPLAY_GENERAL,
28 .end = INT_DISPLAY_GENERAL,
29 .flags = IORESOURCE_IRQ,
32 .start = TEGRA_DISPLAY_BASE,
33 .end = TEGRA_DISPLAY_BASE + TEGRA_DISPLAY_SIZE-1,
34 .flags = IORESOURCE_MEM,
38 .end = 0x1c012000 + 0x500000 - 1,
39 .flags = IORESOURCE_MEM,
43 static struct tegra_fb_lcd_data tegra_fb_lcd_platform_data = {
51 static struct platform_device tegra_fb_device = {
54 .resource = fb_resource,
55 .num_resources = ARRAY_SIZE(fb_resource),
57 .platform_data = &tegra_fb_lcd_platform_data,
61 int __init harmony_panel_init(void) {
62 return platform_device_register(&tegra_fb_device);