summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-kernel/linux/linux-aspeed/0007-New-flash-map-for-intel.patch
blob: 695491d286ed8a00845eaea2b01533d039e1e126 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
From f57d473a30f208754457bdb63512c307f7499ac8 Mon Sep 17 00:00:00 2001
From: Vernon Mauery <vernon.mauery@intel.com>
Date: Mon, 4 Jun 2018 13:45:42 -0700
Subject: [PATCH] New flash map for Intel

Signed-off-by: Vernon Mauery <vernon.mauery@intel.com>
Signed-off-by: Vikram Bodireddy <vikram.bodireddy@intel.com>
---
 .../boot/dts/openbmc-flash-layout-intel-128MB.dtsi | 50 ++++++++++++++++++++++
 .../boot/dts/openbmc-flash-layout-intel-64MB.dtsi  | 38 ++++++++++++++++
 2 files changed, 88 insertions(+)
 create mode 100644 arch/arm/boot/dts/openbmc-flash-layout-intel-128MB.dtsi
 create mode 100644 arch/arm/boot/dts/openbmc-flash-layout-intel-64MB.dtsi

diff --git a/arch/arm/boot/dts/openbmc-flash-layout-intel-128MB.dtsi b/arch/arm/boot/dts/openbmc-flash-layout-intel-128MB.dtsi
new file mode 100644
index 000000000000..0d3794423aed
--- /dev/null
+++ b/arch/arm/boot/dts/openbmc-flash-layout-intel-128MB.dtsi
@@ -0,0 +1,50 @@
+// SPDX-License-Identifier: GPL-2.0+
+// 128MB flash layout: PFR (active + tmp1/tmp2 + extra)
+//                     image with common RW partition
+
+partitions {
+	compatible = "fixed-partitions";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	u-boot@0 {
+		reg = <0x0 0x80000>;
+		label = "u-boot";
+	};
+
+	pfm@80000 {
+		reg = <0x80000 0x20000>;
+		label = "pfm";
+	};
+
+	u-boot-env@a0000 {
+		reg = <0xa0000 0x20000>;
+		label = "u-boot-env";
+	};
+
+	sofs@c0000 {
+		reg = <0xc0000 0x200000>;
+		label = "sofs";
+	};
+
+	rwfs@2c0000 {
+		reg = <0x2c0000 0x840000>;
+		label = "rwfs";
+	};
+
+	fit-image-a@b00000 {
+		reg = <0xb00000 0x1f00000>;
+		label = "image-a";
+	};
+
+	rc-image@2a00000 {
+		reg = <0x2a00000 0x2000000>;
+		label = "rc-image";
+	};
+
+	image-staging@4a00000 {
+		reg = <0x4a00000 0x3600000>;
+		label = "image-stg";
+	};
+
+};
diff --git a/arch/arm/boot/dts/openbmc-flash-layout-intel-64MB.dtsi b/arch/arm/boot/dts/openbmc-flash-layout-intel-64MB.dtsi
new file mode 100644
index 000000000000..092708f5021f
--- /dev/null
+++ b/arch/arm/boot/dts/openbmc-flash-layout-intel-64MB.dtsi
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+
+// 64MB flash layout: redundant image with common RW partition
+
+partitions {
+	compatible = "fixed-partitions";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	u-boot@0 {
+		reg = <0x0 0x80000>;
+		label = "u-boot";
+	};
+
+	fit-image-a@80000 {
+		reg = <0x80000 0x1b80000>;
+		label = "image-a";
+	};
+
+	sofs@1c00000 {
+		reg = <0x1c00000 0x200000>;
+		label = "sofs";
+	};
+
+	rwfs@1e00000 {
+		reg = <0x1e00000 0x600000>;
+		label = "rwfs";
+	};
+
+	u-boot-env@2400000 {
+		reg = <0x2400000 0x20000>;
+		label = "u-boot-env";
+	};
+
+	fit-image-b@2480000 {
+		reg = <0x2480000 0x1b80000>;
+		label = "image-b";
+	};
+};
-- 
2.7.4