]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
MIPS: JZ4740: Add Kbuild files
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 19 Jun 2010 04:08:19 +0000 (04:08 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:17 +0000 (13:26 +0100)
Add the Kbuild files for the JZ4740 architecture and adds JZ4740 support
to the MIPS Kbuild files.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1406/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kbuild.platforms
arch/mips/Kconfig
arch/mips/jz4740/Kconfig [new file with mode: 0644]
arch/mips/jz4740/Makefile [new file with mode: 0644]
arch/mips/jz4740/Platform [new file with mode: 0644]

index ea3b96cf267375bd390e24ebbdab958c0dfe6784..78439b8a83c48418ce93e2eb4a0a0e065bca4efe 100644 (file)
@@ -9,6 +9,7 @@ platforms += cobalt
 platforms += dec
 platforms += emma
 platforms += jazz
+platforms += jz4740
 platforms += lasat
 platforms += loongson
 platforms += mipssim
index 0dd164999a9ee4e2b2afe8348f6260194dca96fe..295e8c55fb3a6a939093c83d78632da49bfdca71 100644 (file)
@@ -172,6 +172,18 @@ config MACH_JAZZ
         Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
         Olivetti M700-10 workstations.
 
+config MACH_JZ4740
+       bool "Ingenic JZ4740 based machines"
+       select SYS_HAS_CPU_MIPS32_R1
+       select SYS_SUPPORTS_32BIT_KERNEL
+       select SYS_SUPPORTS_LITTLE_ENDIAN
+       select DMA_NONCOHERENT
+       select IRQ_CPU
+       select GENERIC_GPIO
+       select ARCH_REQUIRE_GPIOLIB
+       select SYS_HAS_EARLY_PRINTK
+       select HAVE_PWM
+
 config LASAT
        bool "LASAT Networks platforms"
        select CEVT_R4K
@@ -696,6 +708,7 @@ endchoice
 source "arch/mips/alchemy/Kconfig"
 source "arch/mips/bcm63xx/Kconfig"
 source "arch/mips/jazz/Kconfig"
+source "arch/mips/jz4740/Kconfig"
 source "arch/mips/lasat/Kconfig"
 source "arch/mips/pmc-sierra/Kconfig"
 source "arch/mips/powertv/Kconfig"
diff --git a/arch/mips/jz4740/Kconfig b/arch/mips/jz4740/Kconfig
new file mode 100644 (file)
index 0000000..8a5e850
--- /dev/null
@@ -0,0 +1,8 @@
+choice
+       prompt "Machine type"
+       depends on MACH_JZ4740
+
+endchoice
+
+config HAVE_PWM
+       bool
diff --git a/arch/mips/jz4740/Makefile b/arch/mips/jz4740/Makefile
new file mode 100644 (file)
index 0000000..a803ccb
--- /dev/null
@@ -0,0 +1,18 @@
+#
+# Makefile for the Ingenic JZ4740.
+#
+
+# Object file lists.
+
+obj-y += prom.o irq.o time.o reset.o setup.o dma.o \
+       gpio.o clock.o platform.o timer.o pwm.o serial.o
+
+obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o
+
+# board specific support
+
+# PM support
+
+obj-$(CONFIG_PM) += pm.o
+
+EXTRA_CFLAGS += -Werror -Wall
diff --git a/arch/mips/jz4740/Platform b/arch/mips/jz4740/Platform
new file mode 100644 (file)
index 0000000..6a97230
--- /dev/null
@@ -0,0 +1,3 @@
+core-$(CONFIG_MACH_JZ4740)     += arch/mips/jz4740/
+cflags-$(CONFIG_MACH_JZ4740)   += -I$(srctree)/arch/mips/include/asm/mach-jz4740
+load-$(CONFIG_MACH_JZ4740)     += 0xffffffff80010000