avr32: add support for 3.8
[openwrt.git] / target / linux / avr32 / patches-3.8 / 110-openwrt_flashmap.patch
1 --- a/arch/avr32/boards/atngw100/flash.c
2 +++ b/arch/avr32/boards/atngw100/flash.c
3 @@ -45,9 +45,14 @@ static struct mtd_partition flash_parts[
4                 .mask_flags     = MTD_WRITEABLE,
5         },
6         {
7 -               .name           = "root",
8 +               .name           = "kernel",
9                 .offset         = 0x00020000,
10 -               .size           = 0x007d0000,
11 +               .size           = 0x00100000,
12 +       },
13 +       {
14 +               .name           = "rootfs",
15 +               .offset         = 0x00120000,
16 +               .size           = 0x006d0000,
17         },
18         {
19                 .name           = "env",
20 @@ -55,6 +60,11 @@ static struct mtd_partition flash_parts[
21                 .size           = 0x00010000,
22                 .mask_flags     = MTD_WRITEABLE,
23         },
24 +       {
25 +               .name           = "firmware",
26 +               .offset         = 0x00020000,
27 +               .size           = 0x007d0000,
28 +       },
29  };
30  
31  static struct physmap_flash_data flash_data = {