Skip to contentSkip to conversation

siemens,am33x,rastaban: add rastaban config

PATCH In review Heiko Schocher 2 participants 3 messages Jun 15, 2015 – Jun 19, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 siemens,am33x,rastaban: add rastaban config

rastaban is a draco version with more flash, more RAM and faster CPU. Number of partitions is the same but rootfs partition is different.

---

 arch/arm/Kconfig                       |   5 ++
 board/siemens/draco/Kconfig            |  16 +++++
 board/siemens/draco/MAINTAINERS        |   2 +
 configs/rastaban_defconfig             |   7 ++
 include/configs/rastaban.h             | 114 +++++++++++++++++++++++++++++++++
 include/configs/siemens-am33x-common.h |  32 +++++++++
 6 files changed, 176 insertions(+)
 create mode 100644 configs/rastaban_defconfig
 create mode 100644 include/configs/rastaban.h
arch/arm/Kconfig +5 -0
index fd47e60..6d7e8c7 100644
@@ -351,6 +351,11 @@ config TARGET_DXR2
 	select CPU_V7
 	select SUPPORT_SPL
 
+config TARGET_RASTABAN
+	bool "Support rastaban"
+	select CPU_V7
+	select SUPPORT_SPL
+
 config TARGET_PXM2
 	bool "Support pxm2"
 	select CPU_V7
board/siemens/draco/Kconfig +16 -0
index d138ece..67fa320 100644
@@ -29,3 +29,19 @@ config SYS_CONFIG_NAME
 	default "dxr2"
 
 endif
+
+if TARGET_RASTABAN
+
+config SYS_BOARD
+	default "draco"
+
+config SYS_VENDOR
+	default "siemens"
+
+config SYS_SOC
+	default "am33xx"
+
+config SYS_CONFIG_NAME
+	default "rastaban"
+
+endif
board/siemens/draco/MAINTAINERS +2 -0
index f6b68ca..6d9544a 100644
@@ -6,3 +6,5 @@ F:	include/configs/draco.h
 F:	configs/draco_defconfig
 F:	include/configs/dxr2.h
 F:	configs/dxr2_defconfig
+F:	include/configs/rastaban.h
+F:	configs/rastaban_defconfig
configs/rastaban_defconfig new file +7 -0
new file mode 100644
index 0000000..954f38a
@@ -0,0 +1,7 @@
+CONFIG_ARM=y
+CONFIG_TARGET_RASTABAN=y
+CONFIG_CMD_NET=y
+CONFIG_SPL=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autobooting in %d seconds, press \"<Esc><Esc>\" to stop\n"
+CONFIG_AUTOBOOT_STOP_STR="\x1b\x1b"
include/configs/rastaban.h new file +114 -0

114 lines not on this page · raw message

include/configs/siemens-am33x-common.h +32 -0
index 7b602b3..ac4cf68 100644
@@ -31,7 +31,9 @@
 #define CONFIG_SYS_PROMPT_HUSH_PS2	"> "
 #define CONFIG_BOARD_LATE_INIT
 #define CONFIG_SYS_NO_FLASH
+#ifdef CONFIG_SIEMENS_MACH_TYPE
 #define CONFIG_MACH_TYPE		CONFIG_SIEMENS_MACH_TYPE
+#endif
 
 #define CONFIG_CMDLINE_TAG		/* enable passing of ATAGs */
 #define CONFIG_SETUP_MEMORY_TAGS
@@ -572,6 +574,36 @@
 		"tftpboot ${loadaddr} ${serverip}:${bootdtb}; " \
 		"bootm ${kloadaddr} - ${loadaddr}\0"
 
+/*
+ * Variant 3 partition layout
+ * chip-size = 512MiB
+ *|         name |        size |           address area |
+ *-------------------------------------------------------
+ *|          spl | 128.000 KiB | 0x       0..0x   1ffff |
+ *|  spl.backup1 | 128.000 KiB | 0x   20000..0x   3ffff |
+ *|  spl.backup2 | 128.000 KiB | 0x   40000..0x   5ffff |
+ *|  spl.backup3 | 128.000 KiB | 0x   60000..0x   7ffff |
+ *|       u-boot |   1.875 MiB | 0x   80000..0x  25ffff |
+ *|   uboot.env0 | 512.000 KiB | 0x  260000..0x  2Dffff |
+ *|   uboot.env1 | 512.000 KiB | 0x  2E0000..0x  35ffff |
+ *|       rootfs | 300.000 MiB | 0x  360000..0x12f5ffff |
+ *|      mtdoops | 512.000 KiB | 0x12f60000..0x12fdffff |
+ *|configuration | 104.125 MiB | 0x12fe0000..0x1fffffff |
+ *-------------------------------------------------------
+ */
+
+#define MTDPARTS_DEFAULT_V3	"mtdparts=" MTDIDS_NAME_STR ":" \
+					"128k(spl),"		\
+					"128k(spl.backup1),"	\
+					"128k(spl.backup2),"	\
+					"128k(spl.backup3),"	\
+					"1920k(u-boot),"	\
+					"512k(u-boot.env0),"	\
+					"512k(u-boot.env1),"	\
+					"300m(rootfs),"		\
+					"512k(mtdoops),"	\
+					"-(configuration)"
+
 
 #define CONFIG_NAND_OMAP_GPMC
 #define CONFIG_NAND_OMAP_ELM
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 siemens,am33x,rastaban: add rastaban config

Quoted 6 lines · Heiko Schocher

rastaban is a draco version with more flash, more RAM and faster CPU. Number of partitions is the same but rootfs partition is different.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150615/ecce5272/attachment.sig>
#2 lore raw
In reply to Heiko Schocher
Quoted 7 lines · Heiko Schocher

rastaban is a draco version with more flash, more RAM and faster CPU. Number of partitions is the same but rootfs partition is different.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150619/50086cf4/attachment.sig>