Skip to contentSkip to conversation

ARM: AM335x: Add support for FIT and various platforms

PATCH New Lokesh Vutla 2 participants 19 messages May 10, 2016 – May 13, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ARM: AM335x: Add support for FIT and various platforms

This series adds support for FIT and various AM335x based platforms

BBB: http://pastebin.ubuntu.com/16340189/
BBW: http://pastebin.ubuntu.com/16340238/
AM335x-evm: http://pastebin.ubuntu.com/16340157/
AM335x-evmsk: http://pastebin.ubuntu.com/16340327/

Lokesh Vutla (6):
ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig
board: am33xx: fit: add support for selecting dtb dynamically
ARM: dts: am335x-bone: Enable uart and timer
ARM: AM335x: Enable FIT
ARM: dts: AM335x-evmsk: Add initial support
ARM: dts: AM335x-BBG: Add initial support

Mugunthan V N (1):
ARM: dts: am335x: fix cd-gpios definition as per hardware design and
dt binding docs

Tom Rini (1):
configs: am335x_evm: Switch to env on FAT SD by default

 arch/arm/dts/Makefile                |   4 +-
 arch/arm/dts/am335x-bone-common.dtsi |   8 +-
 arch/arm/dts/am335x-bone.dts         |   3 -
 arch/arm/dts/am335x-bonegreen.dts    |  57 +++
 arch/arm/dts/am335x-evm.dts          |   2 +-
 arch/arm/dts/am335x-evmsk.dts        | 720 +++++++++++++++++++++++++++++++++++
 board/ti/am335x/MAINTAINERS          |   2 +-
 board/ti/am335x/board.c              |  18 +
 configs/am335x_evm_defconfig         |  17 +-
 configs/am335x_evm_nodt_defconfig    |  44 +++
 configs/am335x_gp_evm_defconfig      |  46 ---
 include/configs/am335x_evm.h         |  40 +-
 include/dt-bindings/pinctrl/omap.h   |  37 ++
 13 files changed, 919 insertions(+), 79 deletions(-)
 create mode 100644 arch/arm/dts/am335x-bonegreen.dts
 create mode 100644 arch/arm/dts/am335x-evmsk.dts
 create mode 100644 configs/am335x_evm_nodt_defconfig
 delete mode 100644 configs/am335x_gp_evm_defconfig
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/8 ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig

This is to make am33xx_evm_defconfig to use DT and FIT support by default.

---
 board/ti/am335x/MAINTAINERS       |  2 +-
 configs/am335x_evm_defconfig      | 44 ---------------------------------------
 configs/am335x_evm_nodt_defconfig | 44 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+), 45 deletions(-)
 delete mode 100644 configs/am335x_evm_defconfig
 create mode 100644 configs/am335x_evm_nodt_defconfig
board/ti/am335x/MAINTAINERS +1 -1
index 7dc2b83..897b5a3 100644
@@ -5,7 +5,7 @@ F:	board/ti/am335x/
 F:	include/configs/am335x_evm.h
 F:	configs/am335x_boneblack_defconfig
 F:	configs/am335x_boneblack_vboot_defconfig
-F:	configs/am335x_evm_defconfig
+F:	configs/am335x_evm_nodt_defconfig
 F:	configs/am335x_gp_evm_defconfig
 F:	configs/am335x_evm_nor_defconfig
 F:	configs/am335x_evm_norboot_defconfig
configs/am335x_evm_defconfig deleted +0 -44

44 lines not on this page · raw message

configs/am335x_evm_nodt_defconfig new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/8 board: am33xx: fit: add support for selecting dtb dynamically

In reply to Lokesh Vutla

FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.

---
 board/ti/am335x/board.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
board/ti/am335x/board.c +14 -0
index 4330be6..a3d1e2b 100644
@@ -632,3 +632,17 @@ int board_eth_init(bd_t *bis)
 #endif
 
 #endif /* CONFIG_DM_ETH */
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+	if (board_is_gp_evm() && !strcmp(name, "am335x-evm"))
+		return 0;
+	else if (board_is_bone() && !strcmp(name, "am335x-bone"))
+		return 0;
+	else if (board_is_bone_lt() && !strcmp(name, "am335x-boneblack"))
+		return 0;
+	else
+		return -1;
+}
+#endif
Signature · 1 line
2.7.4
#3 lore raw

PATCH 2/8 board: am33xx: fit: add support for selecting dtb dynamically

Quoted 4 lines · Lokesh Vutla

FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160513/ba19be6d/attachment.sig>
#4 lore raw

PATCH 3/8 ARM: dts: am335x-bone: Enable uart and timer

In reply to Lokesh Vutla

Allow am335x-bone.dts to be built and enable uart and timer for all beaglebones.

---
 arch/arm/dts/Makefile                | 2 +-
 arch/arm/dts/am335x-bone-common.dtsi | 5 +++++
 arch/arm/dts/am335x-bone.dts         | 3 ---
 3 files changed, 6 insertions(+), 4 deletions(-)
arch/arm/dts/Makefile +1 -1
index ada00c5..0ea7bbe 100644
@@ -89,7 +89,7 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \
 	zynqmp-zc1751-xm015-dc1.dtb		\
 	zynqmp-zc1751-xm016-dc2.dtb		\
 	zynqmp-zc1751-xm019-dc5.dtb
-dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb
+dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb
 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb	\
 	am43x-epos-evm.dtb \
 	am437x-idk-evm.dtb
arch/arm/dts/am335x-bone-common.dtsi +5 -0
index fec7834..a00c0cd 100644
@@ -13,6 +13,11 @@
 		};
 	};
 
+	chosen {
+		stdout-path = &uart0;
+		tick-timer = &timer2;
+	};
+
 	memory {
 		device_type = "memory";
 		reg = <0x80000000 0x10000000>; /* 256 MB */
arch/arm/dts/am335x-bone.dts +0 -3
index 81441cc..6b84937 100644
@@ -13,9 +13,6 @@
 / {
 	model = "TI AM335x BeagleBone";
 	compatible = "ti,am335x-bone", "ti,am33xx";
-	chosen {
-		stdout-path = &uart0;
-	};
 };
 
 &ldo3_reg {
Signature · 1 line
2.7.4
#5 lore raw

PATCH 3/8 ARM: dts: am335x-bone: Enable uart and timer

Quoted 4 lines · Lokesh Vutla

Allow am335x-bone.dts to be built and enable uart and timer for all beaglebones.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160513/cdfbdfb2/attachment.sig>
#6 lore raw

PATCH 4/8 ARM: AM335x: Enable FIT

In reply to Lokesh Vutla

Use a single defconfig for all AM335x platforms by enabling FIT

---
 board/ti/am335x/MAINTAINERS     |  2 +-
 configs/am335x_evm_defconfig    | 49 +++++++++++++++++++++++++++++++++++++++++
 configs/am335x_gp_evm_defconfig | 46 --------------------------------------
 3 files changed, 50 insertions(+), 47 deletions(-)
 create mode 100644 configs/am335x_evm_defconfig
 delete mode 100644 configs/am335x_gp_evm_defconfig
board/ti/am335x/MAINTAINERS +1 -1
index 897b5a3..b54b47b 100644
@@ -6,7 +6,7 @@ F:	include/configs/am335x_evm.h
 F:	configs/am335x_boneblack_defconfig
 F:	configs/am335x_boneblack_vboot_defconfig
 F:	configs/am335x_evm_nodt_defconfig
-F:	configs/am335x_gp_evm_defconfig
+F:	configs/am335x_evm_defconfig
 F:	configs/am335x_evm_nor_defconfig
 F:	configs/am335x_evm_norboot_defconfig
 F:	configs/am335x_evm_spiboot_defconfig
configs/am335x_evm_defconfig new file +49 -0

49 lines not on this page · raw message

configs/am335x_gp_evm_defconfig deleted +0 -46

46 lines not on this page · raw message

Signature · 1 line
2.7.4
#7 lore raw

PATCH 5/8 ARM: dts: am335x: fix cd-gpios definition as per hardware design and dt binding docs

In reply to Lokesh Vutla

From: Mugunthan V N <[email protected]>

As per mmc device tree binding documentation card detect gpio has to be active low signal. When a hardware is designed with active high card detect, gpio polarity has to be changed with cd-inverted dt property.

In AM335x the card detect gpio is designed as active low gpio. So correcting the dt card detect gpio definition.

---
 arch/arm/dts/am335x-bone-common.dtsi | 3 +--
 arch/arm/dts/am335x-evm.dts          | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
arch/arm/dts/am335x-bone-common.dtsi +1 -2
index a00c0cd..40a3c35 100644
@@ -388,8 +388,7 @@
 	bus-width = <0x4>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins>;
-	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
-	cd-inverted;
+	cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
 };
 
 &aes {
arch/arm/dts/am335x-evm.dts +1 -1
index c0bc2af..a6f20af 100644
@@ -717,7 +717,7 @@
 	bus-width = <4>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins>;
-	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
+	cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
 };
 
 &mmc3 {
Signature · 1 line
2.7.4
#8 lore raw

PATCH 5/8 ARM: dts: am335x: fix cd-gpios definition as per hardware design and dt binding docs

Quoted 11 lines · Lokesh Vutla

From: Mugunthan V N <[email protected]>

As per mmc device tree binding documentation card detect gpio has to be active low signal. When a hardware is designed with active high card detect, gpio polarity has to be changed with cd-inverted dt property.

In AM335x the card detect gpio is designed as active low gpio. So correcting the dt card detect gpio definition.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160513/7b0a63a1/attachment.sig>
#9 lore raw

PATCH 6/8 ARM: dts: AM335x-evmsk: Add initial support

In reply to Lokesh Vutla

Add initial DTS support for AM335x-evm sk.

---
 arch/arm/dts/Makefile              |   3 +-
 arch/arm/dts/am335x-evmsk.dts      | 720 +++++++++++++++++++++++++++++++++++++
 board/ti/am335x/board.c            |   2 +
 configs/am335x_evm_defconfig       |   2 +-
 include/dt-bindings/pinctrl/omap.h |  37 ++
 5 files changed, 762 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/am335x-evmsk.dts
arch/arm/dts/Makefile +2 -1
index 0ea7bbe..aa6ebfb 100644
@@ -89,7 +89,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \
 	zynqmp-zc1751-xm015-dc1.dtb		\
 	zynqmp-zc1751-xm016-dc2.dtb		\
 	zynqmp-zc1751-xm019-dc5.dtb
-dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb
+dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb \
+	am335x-evmsk.dtb
 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb	\
 	am43x-epos-evm.dtb \
 	am437x-idk-evm.dtb
arch/arm/dts/am335x-evmsk.dts new file +720 -0

720 lines not on this page · raw message

board/ti/am335x/board.c +2 -0
index a3d1e2b..89b12a5 100644
@@ -642,6 +642,8 @@ int board_fit_config_name_match(const char *name)
 		return 0;
 	else if (board_is_bone_lt() && !strcmp(name, "am335x-boneblack"))
 		return 0;
+	else if (board_is_evm_sk() && !strcmp(name, "am335x-evmsk"))
+		return 0;
 	else
 		return -1;
 }
configs/am335x_evm_defconfig +1 -1
index 7be5479..bd04a88 100644
@@ -46,4 +46,4 @@ CONFIG_RSA=y
 CONFIG_FIT=y
 CONFIG_SPL_OF_LIBFDT=y
 CONFIG_SPL_LOAD_FIT=y
-CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack"
+CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk"
include/dt-bindings/pinctrl/omap.h +37 -0
index 1dd7636..672a136 100644
@@ -53,5 +53,42 @@
 #define PIN_OFF_INPUT_PULLDOWN	(OFF_EN | OFF_PULL_EN)
 #define PIN_OFF_WAKEUPENABLE	WAKEUP_EN
 
+/*
+ * Macros to allow using the absolute physical address instead of the
+ * padconf registers instead of the offset from padconf base.
+ */
+#define OMAP_IOPAD_OFFSET(pa, offset)	(((pa) & 0xffff) - (offset))
+
+#define OMAP2420_CORE_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x0030) (val)
+#define OMAP2430_CORE_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x2030) (val)
+#define OMAP3_CORE1_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x2030) (val)
+#define OMAP3430_CORE2_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x25d8) (val)
+#define OMAP3630_CORE2_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x25a0) (val)
+#define OMAP3_WKUP_IOPAD(pa, val)	OMAP_IOPAD_OFFSET((pa), 0x2a00) (val)
+#define DM814X_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
+#define DM816X_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
+#define AM33XX_IOPAD(pa, val)		OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
+
+/*
+ * Macros to allow using the offset from the padconf physical address
+ * instead  of the offset from padconf base.
+ */
+#define OMAP_PADCONF_OFFSET(offset, base_offset)	((offset) - (base_offset))
+
+#define OMAP4_IOPAD(offset, val)	OMAP_PADCONF_OFFSET((offset), 0x0040) (val)
+#define OMAP5_IOPAD(offset, val)	OMAP_PADCONF_OFFSET((offset), 0x0040) (val)
+
+/*
+ * Define some commonly used pins configured by the boards.
+ * Note that some boards use alternative pins, so check
+ * the schematics before using these.
+ */
+#define OMAP3_UART1_RX		0x152
+#define OMAP3_UART2_RX		0x14a
+#define OMAP3_UART3_RX		0x16e
+#define OMAP4_UART2_RX		0xdc
+#define OMAP4_UART3_RX		0x104
+#define OMAP4_UART4_RX		0x11c
+
 #endif
 
Signature · 1 line
2.7.4
#10 lore raw

PATCH 6/8 ARM: dts: AM335x-evmsk: Add initial support

Quoted 3 lines · Lokesh Vutla

Add initial DTS support for AM335x-evm sk.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160513/5cf17f53/attachment.sig>
#11 lore raw

PATCH 7/8 ARM: dts: AM335x-BBG: Add initial support

In reply to Lokesh Vutla

Add initial DTS support for AM335x-BBG

---
 arch/arm/dts/Makefile             |  3 ++-
 arch/arm/dts/am335x-bonegreen.dts | 57 +++++++++++++++++++++++++++++++++++++++
 board/ti/am335x/board.c           |  2 ++
 configs/am335x_evm_defconfig      |  2 +-
 4 files changed, 62 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/am335x-bonegreen.dts
arch/arm/dts/Makefile +2 -1
index aa6ebfb..800750b 100644
@@ -90,7 +90,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \
 	zynqmp-zc1751-xm016-dc2.dtb		\
 	zynqmp-zc1751-xm019-dc5.dtb
 dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb \
-	am335x-evmsk.dtb
+	am335x-evmsk.dtb \
+	am335x-bonegreen.dtb
 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb	\
 	am43x-epos-evm.dtb \
 	am437x-idk-evm.dtb
arch/arm/dts/am335x-bonegreen.dts new file +57 -0

57 lines not on this page · raw message

board/ti/am335x/board.c +2 -0
index 89b12a5..579b4ef 100644
@@ -644,6 +644,8 @@ int board_fit_config_name_match(const char *name)
 		return 0;
 	else if (board_is_evm_sk() && !strcmp(name, "am335x-evmsk"))
 		return 0;
+	else if (board_is_bbg1() && !strcmp(name, "am335x-bonegreen"))
+		return 0;
 	else
 		return -1;
 }
configs/am335x_evm_defconfig +1 -1
index bd04a88..5f917d6 100644
@@ -46,4 +46,4 @@ CONFIG_RSA=y
 CONFIG_FIT=y
 CONFIG_SPL_OF_LIBFDT=y
 CONFIG_SPL_LOAD_FIT=y
-CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk"
+CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen"
Signature · 1 line
2.7.4
#12 lore raw

PATCH 7/8 ARM: dts: AM335x-BBG: Add initial support

Quoted 3 lines · Lokesh Vutla

Add initial DTS support for AM335x-BBG

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160513/ae115f25/attachment.sig>
#13 lore raw

PATCH 8/8 configs: am335x_evm: Switch to env on FAT SD by default

In reply to Lokesh Vutla

From: Tom Rini <[email protected]>

Re-org env sections so that we can fall back to env is in FAT on SD card, for broader board compatibility

---
 include/configs/am335x_evm.h | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)
include/configs/am335x_evm.h +21 -19
index 16935a1..dfd00de 100644
@@ -249,11 +249,6 @@
 					"8m(NAND.kernel)," \
 					"-(NAND.file-system)"
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	0x000c0000
-#undef CONFIG_ENV_IS_NOWHERE
-#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_ENV_OFFSET		0x001c0000
-#define CONFIG_ENV_OFFSET_REDUND	0x001e0000
-#define CONFIG_SYS_ENV_SECT_SIZE	CONFIG_SYS_NAND_BLOCK_SIZE
 /* NAND: SPL related configs */
 #ifdef CONFIG_SPL_NAND_SUPPORT
 #define CONFIG_SPL_NAND_AM33XX_BCH
@@ -415,7 +410,6 @@
 					"128k(u-boot-env2),3464k(kernel)," \
 					"-(rootfs)"
 #elif defined(CONFIG_EMMC_BOOT)
-#undef CONFIG_ENV_IS_NOWHERE
 #define CONFIG_ENV_IS_IN_MMC
 #define CONFIG_SPL_ENV_SUPPORT
 #define CONFIG_SYS_MMC_ENV_DEV		1
@@ -423,6 +417,27 @@
 #define CONFIG_ENV_OFFSET		0x0
 #define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#elif defined(CONFIG_NOR_BOOT)
+#define CONFIG_ENV_IS_IN_FLASH
+#define CONFIG_ENV_SECT_SIZE		(128 << 10)	/* 128 KiB */
+#define CONFIG_ENV_OFFSET		(512 << 10)	/* 512 KiB */
+#define CONFIG_ENV_OFFSET_REDUND	(768 << 10)	/* 768 KiB */
+#define MTDIDS_DEFAULT			"nor0=physmap-flash.0"
+#define MTDPARTS_DEFAULT		"mtdparts=physmap-flash.0:" \
+					"512k(u-boot)," \
+					"128k(u-boot-env1)," \
+					"128k(u-boot-env2)," \
+					"4m(kernel),-(rootfs)"
+#elif defined(CONFIG_ENV_IS_IN_NAND)
+#define CONFIG_ENV_OFFSET		0x001c0000
+#define CONFIG_ENV_OFFSET_REDUND	0x001e0000
+#define CONFIG_SYS_ENV_SECT_SIZE	CONFIG_SYS_NAND_BLOCK_SIZE
+#elif !defined(CONFIG_ENV_IS_NOWHERE)
+/* Not NAND, SPI, NOR or eMMC env, so put ENV in a file on FAT */
+#define CONFIG_ENV_IS_IN_FAT
+#define FAT_ENV_INTERFACE		"mmc"
+#define FAT_ENV_DEVICE_AND_PART		"0:1"
+#define FAT_ENV_FILE			"uboot.env"
 #endif
 
 /* SPI flash. */
@@ -458,19 +473,6 @@
 #define CONFIG_SYS_FLASH_CFI_WIDTH	FLASH_CFI_16BIT
 #define CONFIG_SYS_FLASH_SIZE		0x01000000
 #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_FLASH_BASE
-/* Reduce SPL size by removing unlikey targets */
-#ifdef CONFIG_NOR_BOOT
-#define CONFIG_ENV_IS_IN_FLASH
-#define CONFIG_ENV_SECT_SIZE		(128 << 10)	/* 128 KiB */
-#define CONFIG_ENV_OFFSET		(512 << 10)	/* 512 KiB */
-#define CONFIG_ENV_OFFSET_REDUND	(768 << 10)	/* 768 KiB */
-#define MTDIDS_DEFAULT			"nor0=physmap-flash.0"
-#define MTDPARTS_DEFAULT		"mtdparts=physmap-flash.0:" \
-					"512k(u-boot)," \
-					"128k(u-boot-env1)," \
-					"128k(u-boot-env2)," \
-					"4m(kernel),-(rootfs)"
-#endif
 #endif  /* NOR support */
 
 #endif	/* ! __CONFIG_AM335X_EVM_H */
Signature · 1 line
2.7.4
#14 lore raw

cover ARM: AM335x: Add support for FIT and various platforms

In reply to Lokesh Vutla
Quoted 9 lines · Lokesh Vutla

This series adds support for FIT and various AM335x based platforms

BBB: http://pastebin.ubuntu.com/16340189/
BBW: http://pastebin.ubuntu.com/16340238/
AM335x-evm: http://pastebin.ubuntu.com/16340157/
AM335x-evmsk: http://pastebin.ubuntu.com/16340327/

Lokesh Vutla (6):
ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig

OK, just like the am43xx series, lets just move over to FIT+DT in SPL and drop the old case, no "nodt" config.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160511/cfb6c7e8/attachment.sig>
#15 lore raw

cover ARM: AM335x: Add support for FIT and various platforms

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 7 lines · Lokesh Vutla

This series adds support for FIT and various AM335x based platforms

BBB: http://pastebin.ubuntu.com/16340189/
BBW: http://pastebin.ubuntu.com/16340238/
AM335x-evm: http://pastebin.ubuntu.com/16340157/
AM335x-evmsk: http://pastebin.ubuntu.com/16340327/

Quoted 5 lines
Quoted 2 lines

Lokesh Vutla (6):
ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig

OK, just like the am43xx series, lets just move over to FIT+DT in SPL and drop the old case, no "nodt" config.

Not sure if I get the question. So, nodt defconfig is still maintained because of the peripheral boot modes(UART and ethernet). If these modes are converted to load FIT we can drop nodt defcofcong.

Thanks and regards,
Lokesh

Quoted 1 line
#16 lore raw

cover ARM: AM335x: Add support for FIT and various platforms

Quoted 15 lines · Lokesh Vutla

Hi Tom,

Quoted 12 lines · Tom Rini
Quoted 9 lines · Lokesh Vutla

This series adds support for FIT and various AM335x based platforms

BBB: http://pastebin.ubuntu.com/16340189/
BBW: http://pastebin.ubuntu.com/16340238/
AM335x-evm: http://pastebin.ubuntu.com/16340157/
AM335x-evmsk: http://pastebin.ubuntu.com/16340327/

Lokesh Vutla (6):
ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig

Quoted 6 lines
Quoted 2 lines

OK, just like the am43xx series, lets just move over to FIT+DT in SPL and drop the old case, no "nodt" config.

Not sure if I get the question. So, nodt defconfig is still maintained because of the peripheral boot modes(UART and ethernet). If these modes are converted to load FIT we can drop nodt defcofcong.

Yes, lets get those loading FIT now, it shouldn't be too bad given all of the other work you've done (thanks!) :)

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160512/39720a67/attachment.sig>
#17 lore raw

cover ARM: AM335x: Add support for FIT and various platforms

Quoted 19 lines · Tom Rini
Quoted 18 lines · Lokesh Vutla

Hi Tom,

Quoted 14 lines · Tom Rini
Quoted 9 lines · Lokesh Vutla

This series adds support for FIT and various AM335x based platforms

BBB: http://pastebin.ubuntu.com/16340189/
BBW: http://pastebin.ubuntu.com/16340238/
AM335x-evm: http://pastebin.ubuntu.com/16340157/
AM335x-evmsk: http://pastebin.ubuntu.com/16340327/

Lokesh Vutla (6):
ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig

OK, just like the am43xx series, lets just move over to FIT+DT in SPL and drop the old case, no "nodt" config.

Quoted 6 lines
Quoted 3 lines

Not sure if I get the question. So, nodt defconfig is still maintained because of the peripheral boot modes(UART and ethernet). If these modes are converted to load FIT we can drop nodt defcofcong.

Yes, lets get those loading FIT now, it shouldn't be too bad given all of the other work you've done (thanks!) :)

Okay, I am already working in these boot modes. But I am stuck with the XIP boot. In XIP we directly use u-boot and no header is being parsed. Any idea how to deal this issue?

Thanks and regards,
Lokesh

#18 lore raw

cover ARM: AM335x: Add support for FIT and various platforms

Quoted 24 lines · Lokesh Vutla
Quoted 23 lines · Tom Rini
Quoted 21 lines · Lokesh Vutla

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 7 lines · Lokesh Vutla

This series adds support for FIT and various AM335x based platforms

BBB: http://pastebin.ubuntu.com/16340189/
BBW: http://pastebin.ubuntu.com/16340238/
AM335x-evm: http://pastebin.ubuntu.com/16340157/
AM335x-evmsk: http://pastebin.ubuntu.com/16340327/

Quoted 5 lines
Quoted 2 lines

Lokesh Vutla (6):
ARM: AM33xx: configs: Rename am335x_evm to am335xx_evm_nodt defconfig

OK, just like the am43xx series, lets just move over to FIT+DT in SPL and drop the old case, no "nodt" config.

Not sure if I get the question. So, nodt defconfig is still maintained because of the peripheral boot modes(UART and ethernet). If these modes are converted to load FIT we can drop nodt defcofcong.

Quoted 6 lines
Quoted 2 lines

Yes, lets get those loading FIT now, it shouldn't be too bad given all of the other work you've done (thanks!) :)

Okay, I am already working in these boot modes. But I am stuck with the XIP boot. In XIP we directly use u-boot and no header is being parsed. Any idea how to deal this issue?

For now I suppose we just can't do XIP booting in a multi-machine config, just a single one where we don't need to be FIT to support DM+DT ?

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