diff options
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/Makefile | 2 | ||||
-rw-r--r-- | arch/microblaze/boot/Makefile | 19 | ||||
-rw-r--r-- | arch/microblaze/boot/dts/Makefile | 22 | ||||
-rw-r--r-- | arch/microblaze/boot/dts/linked_dtb.S | 2 | ||||
-rw-r--r-- | arch/microblaze/boot/linked_dtb.S | 3 | ||||
-rw-r--r-- | arch/microblaze/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 4 |
7 files changed, 27 insertions, 26 deletions
diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index b23c40eb7a52..d26fb905ee0a 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile | |||
@@ -57,7 +57,7 @@ boot := arch/microblaze/boot | |||
57 | DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS))) | 57 | DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS))) |
58 | 58 | ||
59 | ifneq ($(DTB),) | 59 | ifneq ($(DTB),) |
60 | core-y += $(boot)/ | 60 | core-y += $(boot)/dts/ |
61 | endif | 61 | endif |
62 | 62 | ||
63 | # defines filename extension depending memory management type | 63 | # defines filename extension depending memory management type |
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index fa83ea497db7..80fe54fb7ca3 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile | |||
@@ -2,21 +2,10 @@ | |||
2 | # arch/microblaze/boot/Makefile | 2 | # arch/microblaze/boot/Makefile |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y += linked_dtb.o | ||
6 | |||
7 | targets := linux.bin linux.bin.gz simpleImage.% | 5 | targets := linux.bin linux.bin.gz simpleImage.% |
8 | 6 | ||
9 | OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary | 7 | OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary |
10 | 8 | ||
11 | # Ensure system.dtb exists | ||
12 | $(obj)/linked_dtb.o: $(obj)/system.dtb | ||
13 | |||
14 | # Generate system.dtb from $(DTB).dtb | ||
15 | ifneq ($(DTB),system) | ||
16 | $(obj)/system.dtb: $(obj)/$(DTB).dtb | ||
17 | $(call if_changed,cp) | ||
18 | endif | ||
19 | |||
20 | $(obj)/linux.bin: vmlinux FORCE | 9 | $(obj)/linux.bin: vmlinux FORCE |
21 | $(call if_changed,objcopy) | 10 | $(call if_changed,objcopy) |
22 | $(call if_changed,uimage) | 11 | $(call if_changed,uimage) |
@@ -45,10 +34,4 @@ $(obj)/simpleImage.%: vmlinux FORCE | |||
45 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 34 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
46 | 35 | ||
47 | 36 | ||
48 | # Rule to build device tree blobs | 37 | clean-files += simpleImage.*.unstrip linux.bin.ub |
49 | DTC_FLAGS := -p 1024 | ||
50 | |||
51 | $(obj)/%.dtb: $(src)/dts/%.dts FORCE | ||
52 | $(call if_changed_dep,dtc) | ||
53 | |||
54 | clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub | ||
diff --git a/arch/microblaze/boot/dts/Makefile b/arch/microblaze/boot/dts/Makefile new file mode 100644 index 000000000000..c3b3a5d67b89 --- /dev/null +++ b/arch/microblaze/boot/dts/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | # | ||
2 | # arch/microblaze/boot/Makefile | ||
3 | # | ||
4 | |||
5 | obj-y += linked_dtb.o | ||
6 | |||
7 | # Ensure system.dtb exists | ||
8 | $(obj)/linked_dtb.o: $(obj)/system.dtb | ||
9 | |||
10 | # Generate system.dtb from $(DTB).dtb | ||
11 | ifneq ($(DTB),system) | ||
12 | $(obj)/system.dtb: $(obj)/$(DTB).dtb | ||
13 | $(call if_changed,cp) | ||
14 | endif | ||
15 | |||
16 | quiet_cmd_cp = CP $< $@$2 | ||
17 | cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) | ||
18 | |||
19 | # Rule to build device tree blobs | ||
20 | DTC_FLAGS := -p 1024 | ||
21 | |||
22 | clean-files += *.dtb | ||
diff --git a/arch/microblaze/boot/dts/linked_dtb.S b/arch/microblaze/boot/dts/linked_dtb.S new file mode 100644 index 000000000000..23345af3721f --- /dev/null +++ b/arch/microblaze/boot/dts/linked_dtb.S | |||
@@ -0,0 +1,2 @@ | |||
1 | .section __fdt_blob,"a" | ||
2 | .incbin "arch/microblaze/boot/dts/system.dtb" | ||
diff --git a/arch/microblaze/boot/linked_dtb.S b/arch/microblaze/boot/linked_dtb.S deleted file mode 100644 index cb2b537aebee..000000000000 --- a/arch/microblaze/boot/linked_dtb.S +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | .section __fdt_blob,"a" | ||
2 | .incbin "arch/microblaze/boot/system.dtb" | ||
3 | |||
diff --git a/arch/microblaze/include/asm/Kbuild b/arch/microblaze/include/asm/Kbuild index 88a758a67922..eb3a46c096fe 100644 --- a/arch/microblaze/include/asm/Kbuild +++ b/arch/microblaze/include/asm/Kbuild | |||
@@ -3,4 +3,5 @@ include include/asm-generic/Kbuild.asm | |||
3 | header-y += elf.h | 3 | header-y += elf.h |
4 | generic-y += clkdev.h | 4 | generic-y += clkdev.h |
5 | generic-y += exec.h | 5 | generic-y += exec.h |
6 | generic-y += trace_clock.h | ||
6 | generic-y += syscalls.h | 7 | generic-y += syscalls.h |
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 4dbb5055d04b..a1c5b996d66d 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -1346,8 +1346,6 @@ void __init pcibios_resource_survey(void) | |||
1346 | pci_assign_unassigned_resources(); | 1346 | pci_assign_unassigned_resources(); |
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | #ifdef CONFIG_HOTPLUG | ||
1350 | |||
1351 | /* This is used by the PCI hotplug driver to allocate resource | 1349 | /* This is used by the PCI hotplug driver to allocate resource |
1352 | * of newly plugged busses. We can try to consolidate with the | 1350 | * of newly plugged busses. We can try to consolidate with the |
1353 | * rest of the code later, for now, keep it as-is as our main | 1351 | * rest of the code later, for now, keep it as-is as our main |
@@ -1407,8 +1405,6 @@ void pcibios_finish_adding_to_bus(struct pci_bus *bus) | |||
1407 | } | 1405 | } |
1408 | EXPORT_SYMBOL_GPL(pcibios_finish_adding_to_bus); | 1406 | EXPORT_SYMBOL_GPL(pcibios_finish_adding_to_bus); |
1409 | 1407 | ||
1410 | #endif /* CONFIG_HOTPLUG */ | ||
1411 | |||
1412 | int pcibios_enable_device(struct pci_dev *dev, int mask) | 1408 | int pcibios_enable_device(struct pci_dev *dev, int mask) |
1413 | { | 1409 | { |
1414 | return pci_enable_resources(dev, mask); | 1410 | return pci_enable_resources(dev, mask); |