]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-am335x-psp-3.2/0001-ARM-OMAP2-AM335x-Update-SPI-flash-layout.patch
linux-am335x: Update to latest 3.2 kernel release
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-am335x-psp-3.2 / 0001-ARM-OMAP2-AM335x-Update-SPI-flash-layout.patch
1 From 54690cd10741ec54acc2555c3b699de310571a49 Mon Sep 17 00:00:00 2001
2 From: Tom Rini <trini@ti.com>
3 Date: Fri, 7 Dec 2012 14:01:51 -0700
4 Subject: [PATCH] ARM: OMAP2+: AM335x: Update SPI flash layout
6 Current U-Boot has grown, and our size of the environment was never
7 correct, rework the offsets for minimal impact.
9 Signed-off-by: Tom Rini <trini@ti.com>
11 diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
12 index 50e1d9b..3357d88 100644
13 --- a/arch/arm/mach-omap2/board-am335xevm.c
14 +++ b/arch/arm/mach-omap2/board-am335xevm.c
15 @@ -1201,17 +1201,17 @@ static struct mtd_partition am335x_spi_partitions[] = {
16         {
17                 .name       = "U-Boot",
18                 .offset     = MTDPART_OFS_APPEND,       /* Offset = 0x20000 */
19 -               .size       = 2 * SZ_128K,
20 +               .size       = (3 * SZ_128K) - SZ_4K,
21         },
22         {
23                 .name       = "U-Boot Env",
24 -               .offset     = MTDPART_OFS_APPEND,       /* Offset = 0x60000 */
25 -               .size       = 2 * SZ_4K,
26 +               .offset     = MTDPART_OFS_APPEND,       /* Offset = 0x7F000 */
27 +               .size       = SZ_4K,
28         },
29         {
30                 .name       = "Kernel",
31 -               .offset     = MTDPART_OFS_APPEND,       /* Offset = 0x62000 */
32 -               .size       = 28 * SZ_128K,
33 +               .offset     = MTDPART_OFS_APPEND,       /* Offset = 0x80000 */
34 +               .size       = 866 * SZ_4K,              /* size = 0x362000 */
35         },
36         {
37                 .name       = "File System",
38 -- 
39 1.7.9.5