mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-16 22:38:04 +00:00
9bc77dff5f
Regenerate all beaglebone patches and add one vfs tracer patch for powertop Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
108 lines
3.4 KiB
Diff
108 lines
3.4 KiB
Diff
From e495bd4f47ad3b8f48916582b12ec0bf0a7e7134 Mon Sep 17 00:00:00 2001
|
|
From: Koen Kooi <koen@dominion.thruhere.net>
|
|
Date: Tue, 31 Jan 2012 10:04:03 +0100
|
|
Subject: [PATCH 04/79] more beaglebone merges
|
|
|
|
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
|
|
---
|
|
arch/arm/mach-omap2/board-am335xevm.c | 52 +++++++++++++++++++++++++++++++--
|
|
1 file changed, 50 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
|
|
index 2741431..ffbecae 100644
|
|
--- a/arch/arm/mach-omap2/board-am335xevm.c
|
|
+++ b/arch/arm/mach-omap2/board-am335xevm.c
|
|
@@ -242,6 +242,11 @@ struct da8xx_lcdc_platform_data dvi_pdata = {
|
|
static struct tsc_data am335x_touchscreen_data = {
|
|
.wires = 4,
|
|
.x_plate_resistance = 200,
|
|
+ .mode = TI_TSCADC_TSCMODE,
|
|
+};
|
|
+
|
|
+static struct tsc_data bone_touchscreen_data = {
|
|
+ .mode = TI_TSCADC_GENMODE,
|
|
};
|
|
|
|
static u8 am335x_iis_serializer_direction1[] = {
|
|
@@ -429,6 +434,7 @@ static bool beaglebone_tsadcpins_free = 1;
|
|
|
|
|
|
#define GP_EVM_REV_IS_1_0 0x1
|
|
+#define GP_EVM_REV_IS_1_0A 0x1
|
|
#define GP_EVM_REV_IS_1_1A 0x2
|
|
#define GP_EVM_REV_IS_UNKNOWN 0xFF
|
|
#define GP_EVM_ACTUALLY_BEAGLEBONE 0xBB
|
|
@@ -1024,6 +1030,47 @@ static struct pinmux_config profibus_pin_mux[] = {
|
|
{NULL, 0},
|
|
};
|
|
|
|
+/* LEDS - gpio1_21 -> gpio1_24 */
|
|
+
|
|
+#define BEAGLEBONE_USR1_LED GPIO_TO_PIN(1, 21)
|
|
+#define BEAGLEBONE_USR2_LED GPIO_TO_PIN(1, 22)
|
|
+#define BEAGLEBONE_USR3_LED GPIO_TO_PIN(1, 23)
|
|
+#define BEAGLEBONE_USR4_LED GPIO_TO_PIN(1, 24)
|
|
+
|
|
+static struct gpio_led bone_gpio_leds[] = {
|
|
+ {
|
|
+ .name = "beaglebone::usr0",
|
|
+ .default_trigger = "heartbeat",
|
|
+ .gpio = BEAGLEBONE_USR1_LED,
|
|
+ },
|
|
+ {
|
|
+ .name = "beaglebone::usr1",
|
|
+ .default_trigger = "mmc0",
|
|
+ .gpio = BEAGLEBONE_USR2_LED,
|
|
+ },
|
|
+ {
|
|
+ .name = "beaglebone::usr2",
|
|
+ .gpio = BEAGLEBONE_USR3_LED,
|
|
+ },
|
|
+ {
|
|
+ .name = "beaglebone::usr3",
|
|
+ .gpio = BEAGLEBONE_USR4_LED,
|
|
+ },
|
|
+};
|
|
+
|
|
+static struct gpio_led_platform_data bone_gpio_led_info = {
|
|
+ .leds = bone_gpio_leds,
|
|
+ .num_leds = ARRAY_SIZE(bone_gpio_leds),
|
|
+};
|
|
+
|
|
+static struct platform_device bone_leds_gpio = {
|
|
+ .name = "leds-gpio",
|
|
+ .id = -1,
|
|
+ .dev = {
|
|
+ .platform_data = &bone_gpio_led_info,
|
|
+ },
|
|
+};
|
|
+
|
|
|
|
#define BEAGLEBONEDVI_USR0_LED GPIO_TO_PIN(1, 18)
|
|
#define BEAGLEBONEDVI_USR1_LED GPIO_TO_PIN(1, 19)
|
|
@@ -1777,11 +1824,11 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
|
|
snprintf(tmp, sizeof(cape_config.partnumber) + 1, "%s", cape_config.partnumber);
|
|
pr_info("BeagleBone cape partnumber: %s\n", tmp);
|
|
|
|
- if (!strncmp("BB-BONE-DVID-01", cape_config.partnumber, 5)) {
|
|
+ if (!strncmp("BB-BONE-DVID-01", cape_config.partnumber, 15)) {
|
|
pr_info("BeagleBone cape: initializing DVI cape\n");
|
|
dvi_init(0,0);
|
|
}
|
|
- if (!strncmp("LCD01", cape_config.partnumber, 5)) {
|
|
+ if (!strncmp("BB-BONE-LCD7-01", cape_config.partnumber, 15)) {
|
|
pr_info("BeagleBone cape: initializing LCD cape\n");
|
|
bbtoys7lcd_init(0,0);
|
|
pr_info("BeagleBone cape: initializing LCD cape touchscreen\n");
|
|
@@ -2258,6 +2305,7 @@ static void setup_general_purpose_evm(void)
|
|
pr_info("The board is general purpose EVM in profile %d\n", prof_sel);
|
|
|
|
if (!strncmp("1.1A", config.version, 4)) {
|
|
+ pr_info("EVM version is %s\n", config.version);
|
|
gp_evm_revision = GP_EVM_REV_IS_1_1A;
|
|
} else if (!strncmp("1.0", config.version, 3)) {
|
|
gp_evm_revision = GP_EVM_REV_IS_1_0;
|
|
--
|
|
1.7.10
|
|
|