1 From a486767b412d7f19a02ef704cc60e4bc79404633 Mon Sep 17 00:00:00 2001
2 From: Lars-Peter Clausen <lars@metafoo.de>
3 Date: Wed, 2 Jun 2010 21:10:30 +0200
4 Subject: [PATCH] MIPS: JZ4740: Add Kbuild files
6 This patch adds the Kbuild files for the JZ4740 architecture and adds JZ4740
7 support to the MIPS Kbuild files.
9 Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
11 arch/mips/Kconfig | 13 +++++++++++++
12 arch/mips/Makefile | 6 ++++++
13 arch/mips/jz4740/Kconfig | 8 ++++++++
14 arch/mips/jz4740/Makefile | 18 ++++++++++++++++++
15 4 files changed, 45 insertions(+), 0 deletions(-)
16 create mode 100644 arch/mips/jz4740/Kconfig
17 create mode 100644 arch/mips/jz4740/Makefile
19 --- a/arch/mips/Kconfig
20 +++ b/arch/mips/Kconfig
21 @@ -162,6 +162,18 @@ config MACH_JAZZ
22 Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
23 Olivetti M700-10 workstations.
26 + bool "Ingenic JZ4740 based machines"
27 + select SYS_HAS_CPU_MIPS32_R1
28 + select SYS_SUPPORTS_32BIT_KERNEL
29 + select SYS_SUPPORTS_LITTLE_ENDIAN
30 + select DMA_NONCOHERENT
33 + select ARCH_REQUIRE_GPIOLIB
34 + select SYS_HAS_EARLY_PRINTK
38 bool "LASAT Networks platforms"
40 @@ -686,6 +698,7 @@ endchoice
41 source "arch/mips/alchemy/Kconfig"
42 source "arch/mips/bcm63xx/Kconfig"
43 source "arch/mips/jazz/Kconfig"
44 +source "arch/mips/jz4740/Kconfig"
45 source "arch/mips/lasat/Kconfig"
46 source "arch/mips/pmc-sierra/Kconfig"
47 source "arch/mips/powertv/Kconfig"
48 --- a/arch/mips/Makefile
49 +++ b/arch/mips/Makefile
50 @@ -661,6 +661,12 @@ else
51 load-$(CONFIG_CPU_CAVIUM_OCTEON) += 0xffffffff81100000
56 +core-$(CONFIG_MACH_JZ4740) += arch/mips/jz4740/
57 +cflags-$(CONFIG_MACH_JZ4740) += -I$(srctree)/arch/mips/include/asm/mach-jz4740
58 +load-$(CONFIG_MACH_JZ4740) += 0xffffffff80010000
60 cflags-y += -I$(srctree)/arch/mips/include/asm/mach-generic
61 drivers-$(CONFIG_PCI) += arch/mips/pci/
64 +++ b/arch/mips/jz4740/Kconfig
67 + prompt "Machine type"
68 + depends on MACH_JZ4740
75 +++ b/arch/mips/jz4740/Makefile
78 +# Makefile for the Ingenic JZ4740.
83 +obj-y += prom.o irq.o time.o reset.o setup.o dma.o \
84 + gpio.o clock.o platform.o timer.o pwm.o serial.o
86 +obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o
88 +# board specific support
92 +obj-$(CONFIG_PM) += pm.o
94 +EXTRA_CFLAGS += -Werror -Wall