diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 11:19:14 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-25 11:19:14 -0400 |
| commit | 51f00a471ce8f359627dd99aeac322947a0e491b (patch) | |
| tree | de3f0c26359d7846fc5d6d0fdd147e225d979add | |
| parent | a7f505c6b15fb35c0de8136e370d2927ce29452c (diff) | |
| parent | 97ff46cb69da22037346670ae515217c658ace02 (diff) | |
Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6:
mtd/m25p80: add support to parse the partitions by OF node
of/irq: of_irq.c needs to include linux/irq.h
of/mips: Cleanup some include directives/files.
of/mips: Add device tree support to MIPS
of/flattree: Eliminate need to provide early_init_dt_scan_chosen_arch
of/device: Rework to use common platform_device_alloc() for allocating devices
of/xsysace: Fix OF probing on little-endian systems
of: use __be32 types for big-endian device tree data
of/irq: remove references to NO_IRQ in drivers/of/platform.c
of/promtree: add package-to-path support to pdt
of/promtree: add of_pdt namespace to pdt code
of/promtree: no longer call prom_ functions directly; use an ops structure
of/promtree: make drivers/of/pdt.c no longer sparc-only
sparc: break out some PROM device-tree building code out into drivers/of
of/sparc: convert various prom_* functions to use phandle
sparc: stop exporting openprom.h header
powerpc, of_serial: Endianness issues setting up the serial ports
of: MTD: Fix OF probing on little-endian systems
of: GPIO: Fix OF probing on little-endian systems
60 files changed, 800 insertions, 417 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 427b13b4740f..bacbd3d41ec7 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
| @@ -42,11 +42,6 @@ | |||
| 42 | #include <asm/sections.h> | 42 | #include <asm/sections.h> |
| 43 | #include <asm/pci-bridge.h> | 43 | #include <asm/pci-bridge.h> |
| 44 | 44 | ||
| 45 | void __init early_init_dt_scan_chosen_arch(unsigned long node) | ||
| 46 | { | ||
| 47 | /* No Microblaze specific code here */ | ||
| 48 | } | ||
| 49 | |||
| 50 | void __init early_init_dt_add_memory_arch(u64 base, u64 size) | 45 | void __init early_init_dt_add_memory_arch(u64 base, u64 size) |
| 51 | { | 46 | { |
| 52 | memblock_add(base, size); | 47 | memblock_add(base, size); |
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 784cf822963a..46cae2b163e4 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
| @@ -2128,6 +2128,13 @@ config SECCOMP | |||
| 2128 | 2128 | ||
| 2129 | If unsure, say Y. Only embedded should say N here. | 2129 | If unsure, say Y. Only embedded should say N here. |
| 2130 | 2130 | ||
| 2131 | config USE_OF | ||
| 2132 | bool "Flattened Device Tree support" | ||
| 2133 | select OF | ||
| 2134 | select OF_FLATTREE | ||
| 2135 | help | ||
| 2136 | Include support for flattened device tree machine descriptions. | ||
| 2137 | |||
| 2131 | endmenu | 2138 | endmenu |
| 2132 | 2139 | ||
| 2133 | config LOCKDEP_SUPPORT | 2140 | config LOCKDEP_SUPPORT |
diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h index dea4aed6478f..b003ed52ed17 100644 --- a/arch/mips/include/asm/irq.h +++ b/arch/mips/include/asm/irq.h | |||
| @@ -16,6 +16,11 @@ | |||
| 16 | 16 | ||
| 17 | #include <irq.h> | 17 | #include <irq.h> |
| 18 | 18 | ||
| 19 | static inline void irq_dispose_mapping(unsigned int virq) | ||
| 20 | { | ||
| 21 | return; | ||
| 22 | } | ||
| 23 | |||
| 19 | #ifdef CONFIG_I8259 | 24 | #ifdef CONFIG_I8259 |
| 20 | static inline int irq_canonicalize(int irq) | 25 | static inline int irq_canonicalize(int irq) |
| 21 | { | 26 | { |
diff --git a/arch/mips/include/asm/prom.h b/arch/mips/include/asm/prom.h new file mode 100644 index 000000000000..f29b862d9db3 --- /dev/null +++ b/arch/mips/include/asm/prom.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * arch/mips/include/asm/prom.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | */ | ||
| 11 | #ifndef __ASM_MIPS_PROM_H | ||
| 12 | #define __ASM_MIPS_PROM_H | ||
| 13 | |||
| 14 | #ifdef CONFIG_OF | ||
| 15 | #include <asm/bootinfo.h> | ||
| 16 | |||
| 17 | /* which is compatible with the flattened device tree (FDT) */ | ||
| 18 | #define cmd_line arcs_cmdline | ||
| 19 | |||
| 20 | extern int early_init_dt_scan_memory_arch(unsigned long node, | ||
| 21 | const char *uname, int depth, void *data); | ||
| 22 | |||
| 23 | extern int reserve_mem_mach(unsigned long addr, unsigned long size); | ||
| 24 | extern void free_mem_mach(unsigned long addr, unsigned long size); | ||
| 25 | |||
| 26 | extern void device_tree_init(void); | ||
| 27 | #else /* CONFIG_OF */ | ||
| 28 | static inline void device_tree_init(void) { } | ||
| 29 | #endif /* CONFIG_OF */ | ||
| 30 | |||
| 31 | #endif /* _ASM_MIPS_PROM_H */ | ||
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 06f848299785..80884983270d 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
| @@ -96,6 +96,8 @@ obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o | |||
| 96 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | 96 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
| 97 | obj-$(CONFIG_SPINLOCK_TEST) += spinlock_test.o | 97 | obj-$(CONFIG_SPINLOCK_TEST) += spinlock_test.o |
| 98 | 98 | ||
| 99 | obj-$(CONFIG_OF) += prom.o | ||
| 100 | |||
| 99 | CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) | 101 | CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-DHAVE_AS_SET_DADDI"; fi) |
| 100 | 102 | ||
| 101 | obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o | 103 | obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o |
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c new file mode 100644 index 000000000000..e000b278f024 --- /dev/null +++ b/arch/mips/kernel/prom.c | |||
| @@ -0,0 +1,112 @@ | |||
