Skip to contentSkip to conversation

ARM: imx: Add DTSC02 platform (i.MX27)

PATCH New Gaëtan Carlier 2 participants 5 messages Mar 27, 2014

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

PATCH 1/1 ARM: imx: Add DTSC02 platform (i.MX27)

---
 arch/arm/mach-imx/Kconfig       |   17 ++
 arch/arm/mach-imx/Makefile      |    1 +
 arch/arm/mach-imx/mach-dtsc02.c |  416 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 434 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-imx/mach-dtsc02.c
arch/arm/mach-imx/Kconfig +17 -0
index 5740296d..dd3679e 100644
@@ -419,6 +419,23 @@ config MACH_IMX27IPCAM
 	  Include support for IMX27 IPCAM platform. This includes specific
 	  configurations for the board and its peripherals.
 
+config MACH_DTSC02
+	bool "DTSC02 platform"
+	select SOC_IMX27
+	select IMX_HAVE_PLATFORM_IMX2_WDT
+	select IMX_HAVE_PLATFORM_IMX_I2C
+	select IMX_HAVE_PLATFORM_IMX_SSI
+	select IMX_HAVE_PLATFORM_IMX_UART
+	select IMX_HAVE_PLATFORM_SPI_IMX
+	select IMX_HAVE_PLATFORM_MXC_MMC
+	select MMC
+	select MMC_MXC
+	select IMX_HAVE_PLATFORM_IMX_FB
+	select IMX_HAVE_PLATFORM_MXC_NAND
+	help
+	  Include support for i.MX27 DTSC02 platform. This includes specific
+	  configurations for the board and its peripherals.
+
 config MACH_IMX27_DT
 	bool "Support i.MX27 platforms from device tree"
 	select SOC_IMX27
arch/arm/mach-imx/Makefile +1 -0
index f4ed830..d9c4848 100644
@@ -67,6 +67,7 @@ obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o
 obj-$(CONFIG_MACH_PCA100) += mach-pca100.o
 obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o
 obj-$(CONFIG_MACH_IMX27IPCAM) += mach-imx27ipcam.o
+obj-$(CONFIG_MACH_DTSC02) += mach-dtsc02.o
 obj-$(CONFIG_MACH_IMX27_DT) += imx27-dt.o
 
 # i.MX31 based machines
arch/arm/mach-imx/mach-dtsc02.c new file +416 -0

416 lines not on this page · raw message

Signature · 1 line
1.7.7.4
reviewer
#1 lore raw

PATCH 1/1 ARM: imx: Add DTSC02 platform (i.MX27)

Hi Ga?tan,

Quoted 8 lines · Ga?tan Carlier
---
 arch/arm/mach-imx/Kconfig       |   17 ++
 arch/arm/mach-imx/Makefile      |    1 +
 arch/arm/mach-imx/mach-dtsc02.c |  416 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 434 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-imx/mach-dtsc02.c

My understanding is that new board files are not allowed for ARM.

Have you considered creating a device tree implementation instead?

Quoted 1 line

From a quick look, all the devices you are registering are currently

supported on device tree.

Regards,

Fabio Estevam

#2 lore raw

PATCH 1/1 ARM: imx: Add DTSC02 platform (i.MX27)

Hi Fabio,

Quoted 12 lines · Fabio Estevam

Hi Ga?tan,

Quoted 8 lines · Ga?tan Carlier
---
  arch/arm/mach-imx/Kconfig       |   17 ++
  arch/arm/mach-imx/Makefile      |    1 +
  arch/arm/mach-imx/mach-dtsc02.c |  416 +++++++++++++++++++++++++++++++++++++++
  3 files changed, 434 insertions(+), 0 deletions(-)

create mode 100644 arch/arm/mach-imx/mach-dtsc02.c

Quoted 6 lines

My understanding is that new board files are not allowed for ARM.

Have you considered creating a device tree implementation instead?

From a quick look, all the devices you are registering are currently
supported on device tree.

Later, I will add emma-pp, emma-prp, sound which is actually not working (error related to DMA coherent in ssi driver), coda. I will check how device tree works.

Quoted 5 lines

Regards,

Fabio Estevam

Thanks.
Ga?tan Carlier.

#3 lore raw

PATCH 1/1 ARM: imx: Add DTSC02 platform (i.MX27)

Fabio,

Quoted 18 lines · Ga?tan Carlier

Hi Fabio,

Quoted 16 lines · Fabio Estevam

Hi Ga?tan,

Quoted 9 lines · Ga?tan Carlier
---
  arch/arm/mach-imx/Kconfig       |   17 ++
  arch/arm/mach-imx/Makefile      |    1 +
  arch/arm/mach-imx/mach-dtsc02.c |  416
+++++++++++++++++++++++++++++++++++++++
  3 files changed, 434 insertions(+), 0 deletions(-)

create mode 100644 arch/arm/mach-imx/mach-dtsc02.c

My understanding is that new board files are not allowed for ARM.

Quoted 7 lines
Quoted 4 lines

Have you considered creating a device tree implementation instead?

From a quick look, all the devices you are registering are currently
supported on device tree.

Later, I will add emma-pp, emma-prp, sound which is actually not working (error related to DMA coherent in ssi driver), coda. I will check how device tree works.

I am using Redboot (ecos 20090512), I supposed that is not directly compatible and I have to append DTS blob to zImage as specified in slides petazzoni-device-tree-dummies.pdf ?

Quoted 7 lines
Quoted 5 lines

Regards,

Fabio Estevam

Thanks.
Ga?tan Carlier.

Thank you for help help,
Ga?tan Carlier.

reviewer
#4 lore raw

PATCH 1/1 ARM: imx: Add DTSC02 platform (i.MX27)

Quoted 3 lines · Ga?tan Carlier

I am using Redboot (ecos 20090512), I supposed that is not directly compatible and I have to append DTS blob to zImage as specified in slides petazzoni-device-tree-dummies.pdf ?

Yes, correct. This method works fine.