Skip to contentSkip to conversation

MX1: Add ARMadeus Systems APF9328 board support

PATCH Superseded Gwenhael Goavec-Merou 3 participants 3 messages Apr 26, 2011 – Apr 27, 2011

Subsystems (3)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 MX1: Add ARMadeus Systems APF9328 board support

APF9328 is an i.MXL based SOM (System On Module) that can be plugged on several docking/development boards. Here only basic module support is added (Ethernet, Serial, NOR Flash).

---

Changes since v3:
- suppress const and __initconst attributes for platform_data and resource,
- add SOC_IMX1 in Kconfig

Changes since v2:
- add const and __initconst attributes for platform_data and resource,
- suppress boot_params.

Changes since v1:
- merge pins tables for UART
- suppress init/exit driver callbacks for UART

 arch/arm/configs/mx1_defconfig   |    1 +
 arch/arm/mach-imx/Kconfig        |    7 ++
 arch/arm/mach-imx/Makefile       |    1 +
 arch/arm/mach-imx/mach-apf9328.c |  146 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 155 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-imx/mach-apf9328.c
arch/arm/configs/mx1_defconfig +1 -0
index ff96e8f..e6f6579 100644
@@ -14,6 +14,7 @@ CONFIG_ARCH_MXC=y
 CONFIG_ARCH_MX1=y
 CONFIG_ARCH_MX1ADS=y
 CONFIG_MACH_SCB9328=y
+CONFIG_MACH_APF9328=y
 CONFIG_MXC_IRQ_PRIOR=y
 CONFIG_MXC_PWM=y
 CONFIG_NO_HZ=y
arch/arm/mach-imx/Kconfig +7 -0
index 0382301..4f556ee 100644
@@ -86,6 +86,13 @@ config MACH_SCB9328
 	help
 	  Say Y here if you are using a Synertronixx scb9328 board
 
+config MACH_APF9328
+	bool "APF9328"
+	select SOC_IMX1
+	select IMX_HAVE_PLATFORM_IMX_UART
+	help
+	  Say Yes here if you are using the Armadeus APF9328 development board
+
 endif
 
 if MACH_MX21
arch/arm/mach-imx/Makefile +1 -0
index 6d51e65..e9eb36d 100644
@@ -18,6 +18,7 @@ obj-$(CONFIG_MX1_VIDEO) += mx1-camera-fiq.o mx1-camera-fiq-ksym.o
 # i.MX1 based machines
 obj-$(CONFIG_ARCH_MX1ADS) += mach-mx1ads.o
 obj-$(CONFIG_MACH_SCB9328) += mach-scb9328.o
+obj-$(CONFIG_MACH_APF9328) += mach-apf9328.o
 
 # i.MX21 based machines
 obj-$(CONFIG_MACH_MX21ADS) += mach-mx21ads.o
arch/arm/mach-imx/mach-apf9328.c new file +146 -0

146 lines not on this page · raw message

Signature · 1 line
1.7.3.4
#1 lore raw

PATCH v4 1/1 MX1: Add ARMadeus Systems APF9328 board support

Quoted 8 lines · Gwenhael Goavec-Merou

APF9328 is an i.MXL based SOM (System On Module) that can be plugged on several docking/development boards. Here only basic module support is added (Ethernet, Serial, NOR Flash).

If someone else still has concerns some very minor comments for an eventual v5:

- You could add a real name to the maintainer statement in the MACHINE block;
- you could substitute

	(32 * 1024 * 1024)

by

	SZ_32M

;

Thanks
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
reviewer
#2 lore raw

PATCH v4 1/1 MX1: Add ARMadeus Systems APF9328 board support

In reply to Gwenhael Goavec-Merou

2011/4/26 Gwenhael Goavec-Merou <[email protected]>:
...

Quoted 7 lines
(quoted diff) +7 -0
+static struct resource dm9000_resources[] = {
+ ? ? ? [0] = {
+ ? ? ? ? ? ? ? .start ?= MX1_CS4_PHYS + 0x00C00000,
+ ? ? ? ? ? ? ? .end ? ?= MX1_CS4_PHYS + 0x00C00001,
+ ? ? ? ? ? ? ? .flags ?= IORESOURCE_MEM,
+ ? ? ? },
+ ? ? ? [1] = {

Review

Quoted 10 lines
(quoted diff) +10 -0
+ ? ? ? ? ? ? ? .start ?= MX1_CS4_PHYS + 0x00C00002,
+ ? ? ? ? ? ? ? .end ? ?= MX1_CS4_PHYS + 0x00C00003,
+ ? ? ? ? ? ? ? .flags ?= IORESOURCE_MEM,
+ ? ? ? },
+ ? ? ? [2] = {
+ ? ? ? ? ? ? ? .start ?= IRQ_GPIOB(14),
+ ? ? ? ? ? ? ? .end ? ?= IRQ_GPIOB(14),
+ ? ? ? ? ? ? ? .flags ?= IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
+ ? ? ? },
+};

No need to explicitly show the array index. The compiler can count it by itself.

Regards,

Fabio Estevam