diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-06-19 00:08:19 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:17 -0400 |
commit | 5ebabe59807e116976b073ec43327eedb4b357e2 (patch) | |
tree | a8773d04073b88a3e5c43ddd9a133c090f250f0d /arch/mips | |
parent | c2a529f73de56cb99ae9abcc2c8fb9fe3f2d2039 (diff) |
MIPS: JZ4740: Add Kbuild files
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Kbuild.platforms | 1 | ||||
-rw-r--r-- | arch/mips/Kconfig | 13 | ||||
-rw-r--r-- | arch/mips/jz4740/Kconfig | 8 | ||||
-rw-r--r-- | arch/mips/jz4740/Makefile | 18 | ||||
-rw-r--r-- | arch/mips/jz4740/Platform | 3 |
5 files changed, 43 insertions, 0 deletions
diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms index ea3b96cf2673..78439b8a83c4 100644 --- a/arch/mips/Kbuild.platforms +++ b/arch/mips/Kbuild.platforms | |||
@@ -9,6 +9,7 @@ platforms += cobalt | |||
9 | platforms += dec | 9 | platforms += dec |
10 | platforms += emma | 10 | platforms += emma |
11 | platforms += jazz | 11 | platforms += jazz |
12 | platforms += jz4740 | ||
12 | platforms += lasat | 13 | platforms += lasat |
13 | platforms += loongson | 14 | platforms += loongson |
14 | platforms += mipssim | 15 | platforms += mipssim |
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 0dd164999a9e..295e8c55fb3a 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -172,6 +172,18 @@ config MACH_JAZZ | |||
172 | Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and | 172 | Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and |
173 | Olivetti M700-10 workstations. | 173 | Olivetti M700-10 workstations. |
174 | 174 | ||
175 | config MACH_JZ4740 | ||
176 | bool "Ingenic JZ4740 based machines" | ||
177 | select SYS_HAS_CPU_MIPS32_R1 | ||
178 | select SYS_SUPPORTS_32BIT_KERNEL | ||
179 | select SYS_SUPPORTS_LITTLE_ENDIAN | ||
180 | select DMA_NONCOHERENT | ||
181 | select IRQ_CPU | ||
182 | select GENERIC_GPIO | ||
183 | select ARCH_REQUIRE_GPIOLIB | ||
184 | select SYS_HAS_EARLY_PRINTK | ||
185 | select HAVE_PWM | ||
186 | |||
175 | config LASAT | 187 | config LASAT |
176 | bool "LASAT Networks platforms" | 188 | bool "LASAT Networks platforms" |
177 | select CEVT_R4K | 189 | select CEVT_R4K |
@@ -696,6 +708,7 @@ endchoice | |||
696 | source "arch/mips/alchemy/Kconfig" | 708 | source "arch/mips/alchemy/Kconfig" |
697 | source "arch/mips/bcm63xx/Kconfig" | 709 | source "arch/mips/bcm63xx/Kconfig" |
698 | source "arch/mips/jazz/Kconfig" | 710 | source "arch/mips/jazz/Kconfig" |
711 | source "arch/mips/jz4740/Kconfig" | ||
699 | source "arch/mips/lasat/Kconfig" | 712 | source "arch/mips/lasat/Kconfig" |
700 | source "arch/mips/pmc-sierra/Kconfig" | 713 | source "arch/mips/pmc-sierra/Kconfig" |
701 | source "arch/mips/powertv/Kconfig" | 714 | source "arch/mips/powertv/Kconfig" |
diff --git a/arch/mips/jz4740/Kconfig b/arch/mips/jz4740/Kconfig new file mode 100644 index 000000000000..8a5e8505eb12 --- /dev/null +++ b/arch/mips/jz4740/Kconfig | |||
@@ -0,0 +1,8 @@ | |||
1 | choice | ||
2 | prompt "Machine type" | ||
3 | depends on MACH_JZ4740 | ||
4 | |||
5 | endchoice | ||
6 | |||
7 | config HAVE_PWM | ||
8 | bool | ||
diff --git a/arch/mips/jz4740/Makefile b/arch/mips/jz4740/Makefile new file mode 100644 index 000000000000..a803ccb0cf6d --- /dev/null +++ b/arch/mips/jz4740/Makefile | |||
@@ -0,0 +1,18 @@ | |||
1 | # | ||
2 | # Makefile for the Ingenic JZ4740. | ||
3 | # | ||
4 | |||
5 | # Object file lists. | ||
6 | |||
7 | obj-y += prom.o irq.o time.o reset.o setup.o dma.o \ | ||
8 | gpio.o clock.o platform.o timer.o pwm.o serial.o | ||
9 | |||
10 | obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o | ||
11 | |||
12 | # board specific support | ||
13 | |||
14 | # PM support | ||
15 | |||
16 | obj-$(CONFIG_PM) += pm.o | ||
17 | |||
18 | EXTRA_CFLAGS += -Werror -Wall | ||
diff --git a/arch/mips/jz4740/Platform b/arch/mips/jz4740/Platform new file mode 100644 index 000000000000..6a97230e3d05 --- /dev/null +++ b/arch/mips/jz4740/Platform | |||
@@ -0,0 +1,3 @@ | |||
1 | core-$(CONFIG_MACH_JZ4740) += arch/mips/jz4740/ | ||
2 | cflags-$(CONFIG_MACH_JZ4740) += -I$(srctree)/arch/mips/include/asm/mach-jz4740 | ||
3 | load-$(CONFIG_MACH_JZ4740) += 0xffffffff80010000 | ||