diff options
Diffstat (limited to 'recipes-kernel/linux/linux-mainline-3.2/touchbook')
2 files changed, 64 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch b/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch new file mode 100644 index 00000000..eb77607b --- /dev/null +++ b/recipes-kernel/linux/linux-mainline-3.2/touchbook/0001-omap3-touchbook-remove-mmc-gpio_wp.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 2b3c730256f7c9ab32beaccf33f44713d25f4a85 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Nelson <robertcnelson@gmail.com> | ||
3 | Date: Fri, 25 Feb 2011 10:41:07 -0600 | ||
4 | Subject: [PATCH 1/2] omap3: touchbook: remove mmc gpio_wp | ||
5 | |||
6 | Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | ||
7 | --- | ||
8 | arch/arm/mach-omap2/board-omap3touchbook.c | 8 +------- | ||
9 | 1 files changed, 1 insertions(+), 7 deletions(-) | ||
10 | |||
11 | diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c | ||
12 | index a2d0d19..6b4cd92 100644 | ||
13 | --- a/arch/arm/mach-omap2/board-omap3touchbook.c | ||
14 | +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | ||
15 | @@ -99,7 +99,7 @@ static struct omap2_hsmmc_info mmc[] = { | ||
16 | { | ||
17 | .mmc = 1, | ||
18 | .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA, | ||
19 | - .gpio_wp = 29, | ||
20 | + .gpio_wp = -EINVAL, | ||
21 | }, | ||
22 | {} /* Terminator */ | ||
23 | }; | ||
24 | @@ -117,12 +117,6 @@ static struct gpio_led gpio_leds[]; | ||
25 | static int touchbook_twl_gpio_setup(struct device *dev, | ||
26 | unsigned gpio, unsigned ngpio) | ||
27 | { | ||
28 | - if (system_rev >= 0x20 && system_rev <= 0x34301000) { | ||
29 | - omap_mux_init_gpio(23, OMAP_PIN_INPUT); | ||
30 | - mmc[0].gpio_wp = 23; | ||
31 | - } else { | ||
32 | - omap_mux_init_gpio(29, OMAP_PIN_INPUT); | ||
33 | - } | ||
34 | /* gpio + 0 is "mmc0_cd" (input/IRQ) */ | ||
35 | mmc[0].gpio_cd = gpio + 0; | ||
36 | omap2_hsmmc_init(mmc); | ||
37 | -- | ||
38 | 1.7.7.4 | ||
39 | |||
diff --git a/recipes-kernel/linux/linux-mainline-3.2/touchbook/0002-omap3-touchbook-drop-u-boot-readonly.patch b/recipes-kernel/linux/linux-mainline-3.2/touchbook/0002-omap3-touchbook-drop-u-boot-readonly.patch new file mode 100644 index 00000000..0319264c --- /dev/null +++ b/recipes-kernel/linux/linux-mainline-3.2/touchbook/0002-omap3-touchbook-drop-u-boot-readonly.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 8b320724e0d7f17acb22d4af9ec73f0d28ed05d0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Nelson <robertcnelson@gmail.com> | ||
3 | Date: Fri, 25 Feb 2011 11:32:37 -0600 | ||
4 | Subject: [PATCH 2/2] omap3: touchbook: drop u-boot readonly | ||
5 | |||
6 | Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | ||
7 | --- | ||
8 | arch/arm/mach-omap2/board-omap3touchbook.c | 1 - | ||
9 | 1 files changed, 0 insertions(+), 1 deletions(-) | ||
10 | |||
11 | diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c | ||
12 | index 6b4cd92..5d209c1 100644 | ||
13 | --- a/arch/arm/mach-omap2/board-omap3touchbook.c | ||
14 | +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | ||
15 | @@ -74,7 +74,6 @@ static struct mtd_partition omap3touchbook_nand_partitions[] = { | ||
16 | .name = "U-Boot", | ||
17 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ | ||
18 | .size = 15 * NAND_BLOCK_SIZE, | ||
19 | - .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
20 | }, | ||
21 | { | ||
22 | .name = "U-Boot Env", | ||
23 | -- | ||
24 | 1.7.7.4 | ||
25 | |||