Skip to contentSkip to conversation

ARM: add QQ2440 machine architecture

PATCH New Domenico Andreoli 1 participant 1 message Mar 30, 2011

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

PATCH v4 1/1 ARM: add QQ2440 machine architecture

From: Domenico Andreoli <[email protected]>

QQ2440 is an ARM based development board. It is commonly found together with LCD displays but mine was not so I am not able to support them yet. Networking bits are already mainlined.

This patch applies cleanly to 2.6.39-rc1

---

This is v3 updated for 2.6.39-rc1. It now uses S3C common UDC pullup pin support and the generic gpio-leds driver.

---

 MAINTAINERS                         |    7 
 arch/arm/mach-s3c2440/Kconfig       |   12 
 arch/arm/mach-s3c2440/Makefile      |    1 
 arch/arm/mach-s3c2440/mach-qq2440.c |  358 ++++++++++++++++++++++++++
 4 files changed, 378 insertions(+)
arch/arm/mach-s3c2440/Kconfig +13 -0
Index: arm-2.6.git/arch/arm/mach-s3c2440/Kconfig
===================================================================
@@ -190,6 +190,19 @@
 	  Say Y here to select support for the MINI2440. Is a 10cm x 10cm board
 	  available via various sources. It can come with a 3.5" or 7" touch LCD.
 
+config MACH_QQ2440
+	bool "QQ2440 development board"
+	select CPU_S3C2440
+	select EEPROM_AT24
+	select NEW_LEDS
+	select LEDS_CLASS
+	select LEDS_TRIGGER
+	select S3C_DEV_NAND
+	select S3C_DEV_USB_HOST
+	select S3C2440_XTAL_12000000
+	help
+	  Say Y here to select support for the QQ2440
+
 config MACH_RX1950
 	bool "HP iPAQ rx1950"
 	select CPU_S3C2442
arch/arm/mach-s3c2440/Makefile +1 -0
Index: arm-2.6.git/arch/arm/mach-s3c2440/Makefile
===================================================================
@@ -33,6 +33,7 @@
 obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o
 obj-$(CONFIG_MACH_AT2440EVB) += mach-at2440evb.o
 obj-$(CONFIG_MACH_MINI2440) += mach-mini2440.o
+obj-$(CONFIG_MACH_QQ2440) += mach-qq2440.o
 obj-$(CONFIG_MACH_NEO1973_GTA02) += mach-gta02.o
 obj-$(CONFIG_MACH_RX1950) += mach-rx1950.o
 
arch/arm/mach-s3c2440/mach-qq2440.c new file +325 -0

325 lines not on this page · raw message

MAINTAINERS +7 -0
Index: arm-2.6.git/MAINTAINERS
===================================================================
@@ -967,6 +967,13 @@
 W:	http://www.arm.linux.org.uk/
 S:	Maintained
 
+ARM/QQ2440 MACHINE SUPPORT
+M:	Domenico Andreoli <[email protected]>
+L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
+S:	Maintained
+F:	arch/arm/mach-s3c2440/include/mach/qq2440.h
+F:	arch/arm/mach-s3c2440/mach-qq2440.c
+
 ARM/RADISYS ENP2611 MACHINE SUPPORT
 M:	Lennert Buytenhek <[email protected]>
 L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
arch/arm/mach-s3c2440/include/mach/qq2440.h new file +22 -0
Index: arm-2.6.git/arch/arm/mach-s3c2440/include/mach/qq2440.h
===================================================================
@@ -0,0 +1,22 @@
+/*
+ * arch/arm/mach-s3c2440/include/mach/qq2440.h
+ *
+ * Copyright (c) 2011 Domenico Andreoli <[email protected]>
+ *
+ * QQ2440 - platform definitions
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+#ifndef __ASM_MACH_QQ2440_H
+#define __ASM_MACH_QQ2440_H
+
+#define QQ2440_CS8900_IRQ         IRQ_EINT9
+
+#define QQ2440_CS8900_VIRT_BASE   ((unsigned long) S3C_ADDR(0x00500000))
+#define QQ2440_CS8900_PA          (S3C2410_CS3 + 0x1000000)
+#define QQ2440_CS8900_SZ          SZ_1M
+
+#endif /* __ASM_MACH_QQ2440_H */