Commit b2c7743d authored by Alessandro Rubini's avatar Alessandro Rubini

kernel: add hwinfo partition in dataflash

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent d27bbe97
From dc89605b7cb7be4e1bad004b689222fcef15678a Mon Sep 17 00:00:00 2001 From a15f036b4e47dcbc8e9f4b739605975658ddb61f Mon Sep 17 00:00:00 2001
From: Alessandro Rubini <rubini@gnudd.com> From: Alessandro Rubini <rubini@gnudd.com>
Date: Sat, 21 Jun 2014 08:48:04 +0200 Date: Sat, 21 Jun 2014 08:48:04 +0200
Subject: [PATCH 11/11] sam9m10g45ek (for wrs): final partitions for V4 Subject: [PATCH 11/12] sam9m10g45ek (for wrs): final partitions for V4.1
This changes the partitions in an incompatible way: then NAND This changes the partitions in an incompatible way: then NAND
now has one partition for barebox environment (1M: 5 blocks to now has one partition for barebox environment (1M: 5 blocks to
...@@ -9,16 +9,39 @@ protect against bad blocks) and one big partition fro UBI volumes. ...@@ -9,16 +9,39 @@ protect against bad blocks) and one big partition fro UBI volumes.
Real stuff is then split in UBI volumes. Please see documentation Real stuff is then split in UBI volumes. Please see documentation
(in a later commit) for details. (in a later commit) for details.
Also, this adds the read-only hwinfo in dataflash, for V4.1 stuff.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
--- ---
arch/arm/mach-at91/board-sam9m10g45ek.c | 12 +----------- arch/arm/mach-at91/board-sam9m10g45ek.c | 19 ++++++++-----------
1 files changed, 1 insertions(+), 11 deletions(-) 1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c
index afc6418..2eb70d5 100644 index afc6418..552c209 100644
--- a/arch/arm/mach-at91/board-sam9m10g45ek.c --- a/arch/arm/mach-at91/board-sam9m10g45ek.c
+++ b/arch/arm/mach-at91/board-sam9m10g45ek.c +++ b/arch/arm/mach-at91/board-sam9m10g45ek.c
@@ -167,18 +167,8 @@ static struct mtd_partition __initdata ek_nand_partition[] = { @@ -26,6 +26,7 @@
#include <linux/clk.h>
#include <linux/atmel-mci.h>
#include <linux/spi/flash.h>
+#include <linux/mtd/mtd.h>
#include <mach/hardware.h>
#include <video/atmel_lcdc.h>
@@ -106,6 +107,12 @@ static struct mtd_partition wrs_df_parts[] = {
.size = 0x8400,
},
{
+ .name = "hwinfo",
+ .offset = MTDPART_OFS_APPEND,
+ .size = 0x840,
+ .mask_flags = MTD_WRITEABLE,
+ },
+ {
.name = "Available-dataflash",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
@@ -167,18 +174,8 @@ static struct mtd_partition __initdata ek_nand_partition[] = {
.size = SZ_1M, .size = SZ_1M,
}, },
{ {
...@@ -39,5 +62,5 @@ index afc6418..2eb70d5 100644 ...@@ -39,5 +62,5 @@ index afc6418..2eb70d5 100644
}, },
}; };
-- --
1.7.7.2 1.7.10.4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment