Add 2.6.35 patches
[librecmc/librecmc.git] / target / linux / xburst / patches-2.6.35 / 015-kbuild.patch
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
5
6 This patch adds the Kbuild files for the JZ4740 architecture and adds JZ4740
7 support to the MIPS Kbuild files.
8
9 Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
10 ---
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
18
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.
24  
25 +config MACH_JZ4740
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
31 +       select IRQ_CPU
32 +       select GENERIC_GPIO
33 +       select ARCH_REQUIRE_GPIOLIB
34 +       select SYS_HAS_EARLY_PRINTK
35 +       select HAVE_PWM
36 +
37  config LASAT
38         bool "LASAT Networks platforms"
39         select CEVT_R4K
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
52  endif
53  
54 +# Ingenic JZ4740
55 +#
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
59 +
60  cflags-y                       += -I$(srctree)/arch/mips/include/asm/mach-generic
61  drivers-$(CONFIG_PCI)          += arch/mips/pci/
62  
63 --- /dev/null
64 +++ b/arch/mips/jz4740/Kconfig
65 @@ -0,0 +1,8 @@
66 +choice
67 +       prompt "Machine type"
68 +       depends on MACH_JZ4740
69 +
70 +endchoice
71 +
72 +config HAVE_PWM
73 +       bool
74 --- /dev/null
75 +++ b/arch/mips/jz4740/Makefile
76 @@ -0,0 +1,18 @@
77 +#
78 +# Makefile for the Ingenic JZ4740.
79 +#
80 +
81 +# Object file lists.
82 +
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
85 +
86 +obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o
87 +
88 +# board specific support
89 +
90 +# PM support
91 +
92 +obj-$(CONFIG_PM) += pm.o
93 +
94 +EXTRA_CFLAGS += -Werror -Wall