Skip to contentSkip to conversation

ARM: mxs: Add initial support for Bluegiga APX4 Development Kit

PATCH Superseded Lauri Hintsala 3 participants 4 messages Jan 5, 2012

Subsystems (3)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ARM: mxs: Add initial support for Bluegiga APX4 Development Kit

Added initial support for APX4 Development Kit with RTC, LED, Ethernet, Audio, SDIO, I2C, DUART and AUART support.

cc shawn.guo at linaro.org

---
Changes since v3
* removed apx4devkit from mxs_defconfig

 arch/arm/mach-mxs/Kconfig                   |   16 ++
 arch/arm/mach-mxs/Makefile                  |    1 +
 arch/arm/mach-mxs/include/mach/mxs.h        |    1 +
 arch/arm/mach-mxs/include/mach/uncompress.h |    1 +
 arch/arm/mach-mxs/mach-apx4devkit.c         |  245 +++++++++++++++++++++++++++
 5 files changed, 264 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-mxs/mach-apx4devkit.c
arch/arm/mach-mxs/Kconfig +16 -0
index cf00b3e..c57f996 100644
@@ -83,6 +83,18 @@ config MODULE_M28
 	select MXS_HAVE_PLATFORM_MXSFB
 	select MXS_OCOTP
 
+config MODULE_APX4
+	bool
+	select SOC_IMX28
+	select LEDS_GPIO_REGISTER
+	select MXS_HAVE_AMBA_DUART
+	select MXS_HAVE_PLATFORM_AUART
+	select MXS_HAVE_PLATFORM_FEC
+	select MXS_HAVE_PLATFORM_MXS_I2C
+	select MXS_HAVE_PLATFORM_MXS_MMC
+	select MXS_HAVE_PLATFORM_MXS_SAIF
+	select MXS_OCOTP
+
 config MACH_TX28
 	bool "Ka-Ro TX28 module"
 	select MODULE_TX28
@@ -91,4 +103,8 @@ config MACH_M28EVK
 	bool "Support DENX M28EVK Platform"
 	select MODULE_M28
 
+config MACH_APX4DEVKIT
+	bool "Support Bluegiga APX4 Development Kit"
+	select MODULE_APX4
+
 endif
arch/arm/mach-mxs/Makefile +1 -0
index 8c93b24..908bf9a 100644
@@ -11,6 +11,7 @@ obj-$(CONFIG_MACH_STMP378X_DEVB) += mach-stmp378x_devb.o
 obj-$(CONFIG_MACH_MX23EVK) += mach-mx23evk.o
 obj-$(CONFIG_MACH_MX28EVK) += mach-mx28evk.o
 obj-$(CONFIG_MACH_M28EVK)    += mach-m28evk.o
+obj-$(CONFIG_MACH_APX4DEVKIT) += mach-apx4devkit.o
 obj-$(CONFIG_MODULE_TX28) += module-tx28.o
 obj-$(CONFIG_MACH_TX28)    += mach-tx28.o
 
arch/arm/mach-mxs/include/mach/mxs.h +1 -0
index bde5f66..7e72a6c 100644
@@ -33,6 +33,7 @@
 		machine_is_stmp378x() ||				\
 		0)
 #define cpu_is_mx28()		(					\
+		machine_is_apx4devkit() ||				\
 		machine_is_mx28evk() ||					\
 		machine_is_m28evk() ||					\
 		machine_is_tx28() ||					\
arch/arm/mach-mxs/include/mach/uncompress.h +1 -0
index 6777674..3e5309d 100644
@@ -62,6 +62,7 @@ static inline void __arch_decomp_setup(unsigned long arch_id)
 	case MACH_TYPE_MX23EVK:
 		mxs_duart_base = MX23_DUART_BASE_ADDR;
 		break;
+	case MACH_TYPE_APX4DEVKIT:
 	case MACH_TYPE_MX28EVK:
 	case MACH_TYPE_M28EVK:
 	case MACH_TYPE_TX28:
arch/arm/mach-mxs/mach-apx4devkit.c new file +245 -0

245 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#1 lore raw

PATCH v4 1/1 ARM: mxs: Add initial support for Bluegiga APX4 Development Kit

Sorry guys, this patch raises compiler errors.

arch/arm/mach-mxs/include/mach/mxs.h line 39

Quoted 12 lines · Lauri Hintsala
arch/arm/mach-mxs/include/mach/mxs.h +1 -0
index bde5f66..7e72a6c 100644
@@ -33,6 +33,7 @@
  		machine_is_stmp378x() ||				\
  		0)
  #define cpu_is_mx28()		(					\
+		machine_is_apx4devkit() ||				\
  		machine_is_mx28evk() ||					\
  		machine_is_m28evk() ||					\
  		machine_is_tx28() ||					\

machine_is_apx4devkit is undefiend.

arch/arm/mach-mxs/include/mach/uncompress.h static inline void __arch_decomp_setup(unsigned long arch_id) · line 68

Quoted 12 lines
arch/arm/mach-mxs/include/mach/uncompress.h +1 -0
index 6777674..3e5309d 100644
@@ -62,6 +62,7 @@ static inline void __arch_decomp_setup(unsigned long arch_id)
  	case MACH_TYPE_MX23EVK:
  		mxs_duart_base = MX23_DUART_BASE_ADDR;
  		break;
+	case MACH_TYPE_APX4DEVKIT:
  	case MACH_TYPE_MX28EVK:
  	case MACH_TYPE_M28EVK:
  	case MACH_TYPE_TX28:

Also MACH_TYPE_APX4DEVKIT is undefiend.

Shawn: Should we temporary add following lines into headers? Any better suggestions?

#ifndef machine_is_apx4devkit
#define machine_is_apx4devkit() 0
#endif

#ifndef MACH_TYPE_APX4DEVKIT
#define MACH_TYPE_APX4DEVKIT 0
#endif

BR,
Lauri

#2 lore raw

PATCH v4 1/1 ARM: mxs: Add initial support for Bluegiga APX4 Development Kit

Quoted 3 lines

Shawn: Should we temporary add following lines into headers? Any better suggestions?

Why can't we simply use HW_DIGCTL_CHIPID? This register is at 0x8001c310 for both, MX23 and MX28.

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120105/ba497e9b/attachment.sig>
#3 lore raw

PATCH v4 1/1 ARM: mxs: Add initial support for Bluegiga APX4 Development Kit

Quoted 7 lines · Wolfram Sang
Quoted 3 lines

Shawn: Should we temporary add following lines into headers? Any better suggestions?

Why can't we simply use HW_DIGCTL_CHIPID? This register is at 0x8001c310 for both, MX23 and MX28.

This is a fairly good suggestion. I will try to sort it out tomorrow.

Signature · 2 lines
Regards,
Shawn