Skip to contentSkip to conversation

device model bringup of am57xx platform on am57xx-evm

PATCH New Mugunthan V N 2 participants 5 messages Sep 29, 2015 – Oct 22, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover device model bringup of am57xx platform on am57xx-evm

This patch series enables Driver Model and Devitree usage for am57xx platform and tested it on am57xx-evm (Loga [1]). Also pushed a branch [2] for referrence.

This patch series depends on [3] (MMC DM patch series),
[4] OMAP5 SERIAL DM fix nad [5] DRA74x bringup patch for dra74x dtsi files.

[1]: http://pastebin.ubuntu.com/12610054/
[2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git am57xx-dm [3]: https://www.mail-archive.com/u-boot at lists.denx.de/msg186964.html [4]: http://patchwork.ozlabs.org/patch/519024/
[5]: http://patchwork.ozlabs.org/patch/521035/

Mugunthan V N (2):
ti_omap5_common: mmc: do not define DM_MMC for spl
am437x: Add am57xx_evm_defconfig using CONFIG_DM

 arch/arm/dts/Makefile              |   1 +
 arch/arm/dts/am57xx-beagle-x15.dts | 699 +++++++++++++++++++++++++++++++++++++
 configs/am57xx_evm_defconfig       |  19 +
 include/configs/ti_omap5_common.h  |   8 +
 4 files changed, 727 insertions(+)
 create mode 100644 arch/arm/dts/am57xx-beagle-x15.dts
 create mode 100644 configs/am57xx_evm_defconfig
Signature · 1 line
2.6.0.rc2.10.gf4d9753
#1 lore raw

PATCH 1/2 ti_omap5_common: mmc: do not define DM_MMC for spl

Since spl doesn't support DM currently, do not define DM_MMC for spl build.

asdfsadf

---
 include/configs/ti_omap5_common.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/ti_omap5_common.h +8 -0
index 9fc33aa..5acbc92 100644
@@ -161,4 +161,12 @@
 #define CONFIG_SPL_NAND_AM33XX_BCH	/* ELM support */
 #endif
 
+/*
+ * Disable MMC DM for SPL build and can be re-enabled after adding
+ * DM support in SPL
+ */
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_MMC
+#endif
+
 #endif /* __CONFIG_TI_OMAP5_COMMON_H */
Signature · 1 line
2.6.0.rc2.10.gf4d9753
#2 lore raw

PATCH 1/2 ti_omap5_common: mmc: do not define DM_MMC for spl

Quoted 6 lines · Mugunthan V N

Since spl doesn't support DM currently, do not define DM_MMC for spl build.

asdfsadf

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/20151022/494366af/attachment.sig>
#3 lore raw

PATCH 2/2 am437x: Add am57xx_evm_defconfig using CONFIG_DM

In reply to Mugunthan V N

Import various DT files for am57xx-beagle-x15 from Linux Kernel v4.2
Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC.

---
 arch/arm/dts/Makefile              |   1 +
 arch/arm/dts/am57xx-beagle-x15.dts | 699 +++++++++++++++++++++++++++++++++++++
 configs/am57xx_evm_defconfig       |  19 +
 3 files changed, 719 insertions(+)
 create mode 100644 arch/arm/dts/am57xx-beagle-x15.dts
 create mode 100644 configs/am57xx_evm_defconfig
arch/arm/dts/Makefile +1 -0
index c391f3b..55d5150 100644
@@ -70,6 +70,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_cyclone5_sockit.dtb			\
 	socfpga_cyclone5_socrates.dtb
 dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb dra7-evm.dtb
+dtb-$(CONFIG_TARGET_BEAGLE_X15) += am57xx-beagle-x15.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \
arch/arm/dts/am57xx-beagle-x15.dts new file +699 -0

699 lines not on this page · raw message

configs/am57xx_evm_defconfig new file +19 -0
new file mode 100644
index 0000000..f6566bf
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_OMAP54XX=y
+CONFIG_TARGET_BEAGLE_X15=y
+CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15"
+CONFIG_SPL=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=3"
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_SETEXPR is not set
+# CONFIG_CMD_NFS is not set
+CONFIG_OF_CONTROL=y
+CONFIG_DM=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_BAR=y
+CONFIG_DM_GPIO=y
+CONFIG_DM_SERIAL=y
+CONFIG_DM_MMC=y
Signature · 1 line
2.6.0.rc2.10.gf4d9753
#4 lore raw

PATCH 2/2 am437x: Add am57xx_evm_defconfig using CONFIG_DM

Quoted 6 lines · Mugunthan V N

Import various DT files for am57xx-beagle-x15 from Linux Kernel v4.2
Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC.

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/20151022/f3ff7b5b/attachment-0001.sig>