aboutsummaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap-psp-2.6.32/0001-OMAP3-craneboard-print-expansionboard-name-detected-.patch
blob: be7c4d7b4375f9961910e0f4f20b5068830f5be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From e618eb6ab097d2f655ee6094d5e3c0dc603d7242 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Wed, 19 Jan 2011 16:30:06 +0100
Subject: [PATCH 1/2] OMAP3: craneboard: print expansionboard name detected from uboot

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 arch/arm/mach-omap2/board-am3517crane.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
index 0bf4f60..300a79d 100644
--- a/arch/arm/mach-omap2/board-am3517crane.c
+++ b/arch/arm/mach-omap2/board-am3517crane.c
@@ -55,6 +55,8 @@
 
 #define NAND_BLOCK_SIZE        SZ_128K
 
+char expansionboard_name[16];
+
 static struct mtd_partition am3517crane_nand_partitions[] = {
 	/* All the partition sizes are listed in terms of NAND block size */
 	{
@@ -724,6 +726,15 @@ static struct am3517_hsmmc_info mmc[] = {
 	{}      /* Terminator */
 };
 
+static int __init expansionboard_setup(char *str)
+{
+	if (!str)
+		return -EINVAL;
+	strncpy(expansionboard_name, str, 16);
+	printk(KERN_INFO "Crane expansionboard: %s\n", expansionboard_name);
+	return 0;
+}
+
 static void __init am3517_crane_init(void)
 {
 
@@ -762,6 +773,8 @@ static void __init am3517_crane_map_io(void)
 	omap2_map_common_io();
 }
 
+early_param("buddy", expansionboard_setup);
+
 MACHINE_START(CRANEBOARD, "AM3517/05 CRANEBOARD")
 	.phys_io	= 0x48000000,
 	.io_pg_offst	= ((0xd8000000) >> 18) & 0xfffc,
-- 
1.6.6.1