mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-27 06:18:13 +00:00
linux-mainline 3.2: kernel recipe based on mainline 3.2.16 with additional patches for e.g. beagleboard on top
This patchset is managed in https://github.com/beagleboard/kernel/tree/beagleboard-3.2 by Robert Nelson and myself. Tested on beagleboard-xM/Angstrom Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
committed by
Denys Dmytriyenko
parent
aff1018e66
commit
4e18d70247
+66
@@ -0,0 +1,66 @@
|
||||
From 6a386a61fc5cd9c71f8c5dc577e70b4c0f892130 Mon Sep 17 00:00:00 2001
|
||||
From: Koen Kooi <koen@dominion.thruhere.net>
|
||||
Date: Fri, 27 Apr 2012 16:57:27 +0200
|
||||
Subject: [PATCH 10/13] beagleboard: fix uLCD7 support
|
||||
|
||||
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
|
||||
---
|
||||
arch/arm/mach-omap2/board-omap3beagle.c | 14 ++++++++++++--
|
||||
1 files changed, 12 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
|
||||
index 30cb2f0..0299d47 100644
|
||||
--- a/arch/arm/mach-omap2/board-omap3beagle.c
|
||||
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
|
||||
@@ -44,6 +44,7 @@
|
||||
#include <plat/board.h>
|
||||
#include <plat/common.h>
|
||||
#include <video/omapdss.h>
|
||||
+#include <video/omap-panel-generic-dpi.h>
|
||||
#include <video/omap-panel-dvi.h>
|
||||
#include <plat/gpmc.h>
|
||||
#include <plat/nand.h>
|
||||
@@ -349,14 +350,21 @@ static void beagle_disable_lcd(struct omap_dss_device *dssdev)
|
||||
return;
|
||||
}
|
||||
|
||||
+static struct panel_generic_dpi_data lcd_panel = {
|
||||
+ .name = "tfc_s9700rtwv35tr-01b",
|
||||
+ .platform_enable = beagle_enable_lcd,
|
||||
+ .platform_disable = beagle_disable_lcd,
|
||||
+};
|
||||
+
|
||||
static struct omap_dss_device beagle_lcd_device = {
|
||||
.type = OMAP_DISPLAY_TYPE_DPI,
|
||||
.name = "lcd",
|
||||
- .driver_name = "tfc_s9700rtwv35tr-01b",
|
||||
+ .driver_name = "generic_dpi_panel",
|
||||
.phy.dpi.data_lines = 24,
|
||||
.platform_enable = beagle_enable_lcd,
|
||||
.platform_disable = beagle_disable_lcd,
|
||||
.reset_gpio = -EINVAL,
|
||||
+ .data = &lcd_panel,
|
||||
};
|
||||
|
||||
static struct omap_dss_device *beagle_dss_devices[] = {
|
||||
@@ -586,6 +594,8 @@ static struct tsc2007_platform_data tsc2007_info = {
|
||||
static struct i2c_board_info __initdata beagle_i2c2_bbtoys_ulcd[] = {
|
||||
{
|
||||
I2C_BOARD_INFO("tlc59108", 0x40),
|
||||
+ },
|
||||
+ {
|
||||
I2C_BOARD_INFO("tsc2007", 0x48),
|
||||
.irq = OMAP_GPIO_IRQ(OMAP3BEAGLE_TSC2007_GPIO),
|
||||
.platform_data = &tsc2007_info,
|
||||
@@ -777,7 +787,7 @@ static void __init omap3_beagle_init(void)
|
||||
|
||||
/* TODO: set lcd_driver_name by command line or device tree */
|
||||
beagle_config.lcd_driver_name = "tfc_s9700rtwv35tr-01b",
|
||||
- //lcd_panel.name = beagle_config.lcd_driver_name;
|
||||
+ lcd_panel.name = beagle_config.lcd_driver_name;
|
||||
|
||||
platform_add_devices(omap3_beagle_devices,
|
||||
ARRAY_SIZE(omap3_beagle_devices));
|
||||
--
|
||||
1.7.7.4
|
||||
|
||||
Reference in New Issue
Block a user