diff options
Diffstat (limited to 'arch/unicore32')
-rw-r--r-- | arch/unicore32/Kconfig | 1 | ||||
-rw-r--r-- | arch/unicore32/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/unicore32/include/asm/unistd.h | 4 | ||||
-rw-r--r-- | arch/unicore32/include/mach/PKUnity.h | 36 | ||||
-rw-r--r-- | arch/unicore32/include/mach/hardware.h | 2 | ||||
-rw-r--r-- | arch/unicore32/include/mach/uncompress.h | 4 | ||||
-rw-r--r-- | arch/unicore32/include/uapi/asm/Kbuild | 3 | ||||
-rw-r--r-- | arch/unicore32/kernel/pci.c | 8 | ||||
-rw-r--r-- | arch/unicore32/kernel/process.c | 2 |
9 files changed, 27 insertions, 34 deletions
diff --git a/arch/unicore32/Kconfig b/arch/unicore32/Kconfig index b0a47433341e..1e638e75a6b7 100644 --- a/arch/unicore32/Kconfig +++ b/arch/unicore32/Kconfig | |||
@@ -6,6 +6,7 @@ config UNICORE32 | |||
6 | select HAVE_DMA_ATTRS | 6 | select HAVE_DMA_ATTRS |
7 | select HAVE_KERNEL_GZIP | 7 | select HAVE_KERNEL_GZIP |
8 | select HAVE_KERNEL_BZIP2 | 8 | select HAVE_KERNEL_BZIP2 |
9 | select GENERIC_ATOMIC64 | ||
9 | select HAVE_KERNEL_LZO | 10 | select HAVE_KERNEL_LZO |
10 | select HAVE_KERNEL_LZMA | 11 | select HAVE_KERNEL_LZMA |
11 | select ARCH_HAVE_CUSTOM_GPIO_H | 12 | select ARCH_HAVE_CUSTOM_GPIO_H |
diff --git a/arch/unicore32/include/asm/Kbuild b/arch/unicore32/include/asm/Kbuild index 34b789b71115..123c59a06c14 100644 --- a/arch/unicore32/include/asm/Kbuild +++ b/arch/unicore32/include/asm/Kbuild | |||
@@ -4,6 +4,7 @@ generic-y += atomic.h | |||
4 | generic-y += auxvec.h | 4 | generic-y += auxvec.h |
5 | generic-y += bitsperlong.h | 5 | generic-y += bitsperlong.h |
6 | generic-y += bugs.h | 6 | generic-y += bugs.h |
7 | generic-y += clkdev.h | ||
7 | generic-y += cputime.h | 8 | generic-y += cputime.h |
8 | generic-y += current.h | 9 | generic-y += current.h |
9 | generic-y += device.h | 10 | generic-y += device.h |
diff --git a/arch/unicore32/include/asm/unistd.h b/arch/unicore32/include/asm/unistd.h index 9b2428019961..2abcf61c615d 100644 --- a/arch/unicore32/include/asm/unistd.h +++ b/arch/unicore32/include/asm/unistd.h | |||
@@ -9,10 +9,6 @@ | |||
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | #if !defined(__UNICORE_UNISTD_H__) || defined(__SYSCALL) | ||
13 | #define __UNICORE_UNISTD_H__ | ||
14 | 12 | ||
15 | /* Use the standard ABI for syscalls. */ | 13 | /* Use the standard ABI for syscalls. */ |
16 | #include <asm-generic/unistd.h> | 14 | #include <asm-generic/unistd.h> |
17 | |||
18 | #endif /* __UNICORE_UNISTD_H__ */ | ||
diff --git a/arch/unicore32/include/mach/PKUnity.h b/arch/unicore32/include/mach/PKUnity.h index 8040d575dddb..46705afcbf5a 100644 --- a/arch/unicore32/include/mach/PKUnity.h +++ b/arch/unicore32/include/mach/PKUnity.h | |||
@@ -15,7 +15,7 @@ | |||
15 | #error You must include hardware.h not PKUnity.h | 15 | #error You must include hardware.h not PKUnity.h |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #include "bitfield.h" | 18 | #include <mach/bitfield.h> |
19 | 19 | ||
20 | /* | 20 | /* |
21 | * Memory Definitions | 21 | * Memory Definitions |
@@ -32,7 +32,7 @@ | |||
32 | * 0x98000000 - 0x9FFFFFFF 128MB PCI PCI-AHB MEM-mapping | 32 | * 0x98000000 - 0x9FFFFFFF 128MB PCI PCI-AHB MEM-mapping |
33 | */ | 33 | */ |
34 | #define PKUNITY_PCI_BASE io_p2v(0x80000000) /* 0x80000000 - 0xBFFFFFFF 1GB */ | 34 | #define PKUNITY_PCI_BASE io_p2v(0x80000000) /* 0x80000000 - 0xBFFFFFFF 1GB */ |
35 | #include "regs-pci.h" | 35 | #include <mach/regs-pci.h> |
36 | 36 | ||
37 | #define PKUNITY_PCICFG_BASE (PKUNITY_PCI_BASE + 0x0) | 37 | #define PKUNITY_PCICFG_BASE (PKUNITY_PCI_BASE + 0x0) |
38 | #define PKUNITY_PCIBRI_BASE (PKUNITY_PCI_BASE + 0x00010000) | 38 | #define PKUNITY_PCIBRI_BASE (PKUNITY_PCI_BASE + 0x00010000) |
@@ -50,18 +50,18 @@ | |||
50 | #define PKUNITY_ARBITER_BASE (PKUNITY_AHB_BASE + 0x000000) /* AHB-2 */ | 50 | #define PKUNITY_ARBITER_BASE (PKUNITY_AHB_BASE + 0x000000) /* AHB-2 */ |
51 | #define PKUNITY_DDR2CTRL_BASE (PKUNITY_AHB_BASE + 0x100000) /* AHB-3 */ | 51 | #define PKUNITY_DDR2CTRL_BASE (PKUNITY_AHB_BASE + 0x100000) /* AHB-3 */ |
52 | #define PKUNITY_DMAC_BASE (PKUNITY_AHB_BASE + 0x200000) /* AHB-4 */ | 52 | #define PKUNITY_DMAC_BASE (PKUNITY_AHB_BASE + 0x200000) /* AHB-4 */ |
53 | #include "regs-dmac.h" | 53 | #include <mach/regs-dmac.h> |
54 | #define PKUNITY_UMAL_BASE (PKUNITY_AHB_BASE + 0x300000) /* AHB-5 */ | 54 | #define PKUNITY_UMAL_BASE (PKUNITY_AHB_BASE + 0x300000) /* AHB-5 */ |
55 | #include "regs-umal.h" | 55 | #include <mach/regs-umal.h> |
56 | #define PKUNITY_USB_BASE (PKUNITY_AHB_BASE + 0x400000) /* AHB-6 */ | 56 | #define PKUNITY_USB_BASE (PKUNITY_AHB_BASE + 0x400000) /* AHB-6 */ |
57 | #define PKUNITY_SATA_BASE (PKUNITY_AHB_BASE + 0x500000) /* AHB-7 */ | 57 | #define PKUNITY_SATA_BASE (PKUNITY_AHB_BASE + 0x500000) /* AHB-7 */ |
58 | #define PKUNITY_SMC_BASE (PKUNITY_AHB_BASE + 0x600000) /* AHB-8 */ | 58 | #define PKUNITY_SMC_BASE (PKUNITY_AHB_BASE + 0x600000) /* AHB-8 */ |
59 | /* AHB-9 is for APB bridge */ | 59 | /* AHB-9 is for APB bridge */ |
60 | #define PKUNITY_MME_BASE (PKUNITY_AHB_BASE + 0x700000) /* AHB-10 */ | 60 | #define PKUNITY_MME_BASE (PKUNITY_AHB_BASE + 0x700000) /* AHB-10 */ |
61 | #define PKUNITY_UNIGFX_BASE (PKUNITY_AHB_BASE + 0x800000) /* AHB-11 */ | 61 | #define PKUNITY_UNIGFX_BASE (PKUNITY_AHB_BASE + 0x800000) /* AHB-11 */ |
62 | #include "regs-unigfx.h" | 62 | #include <mach/regs-unigfx.h> |
63 | #define PKUNITY_NAND_BASE (PKUNITY_AHB_BASE + 0x900000) /* AHB-12 */ | 63 | #define PKUNITY_NAND_BASE (PKUNITY_AHB_BASE + 0x900000) /* AHB-12 */ |
64 | #include "regs-nand.h" | 64 | #include <mach/regs-nand.h> |
65 | #define PKUNITY_H264D_BASE (PKUNITY_AHB_BASE + 0xA00000) /* AHB-13 */ | 65 | #define PKUNITY_H264D_BASE (PKUNITY_AHB_BASE + 0xA00000) /* AHB-13 */ |
66 | #define PKUNITY_H264E_BASE (PKUNITY_AHB_BASE + 0xB00000) /* AHB-14 */ | 66 | #define PKUNITY_H264E_BASE (PKUNITY_AHB_BASE + 0xB00000) /* AHB-14 */ |
67 | 67 | ||
@@ -72,27 +72,27 @@ | |||
72 | 72 | ||
73 | #define PKUNITY_UART0_BASE (PKUNITY_APB_BASE + 0x000000) /* APB-0 */ | 73 | #define PKUNITY_UART0_BASE (PKUNITY_APB_BASE + 0x000000) /* APB-0 */ |
74 | #define PKUNITY_UART1_BASE (PKUNITY_APB_BASE + 0x100000) /* APB-1 */ | 74 | #define PKUNITY_UART1_BASE (PKUNITY_APB_BASE + 0x100000) /* APB-1 */ |
75 | #include "regs-uart.h" | 75 | #include <mach/regs-uart.h> |
76 | #define PKUNITY_I2C_BASE (PKUNITY_APB_BASE + 0x200000) /* APB-2 */ | 76 | #define PKUNITY_I2C_BASE (PKUNITY_APB_BASE + 0x200000) /* APB-2 */ |
77 | #include "regs-i2c.h" | 77 | #include <mach/regs-i2c.h> |
78 | #define PKUNITY_SPI_BASE (PKUNITY_APB_BASE + 0x300000) /* APB-3 */ | 78 | #define PKUNITY_SPI_BASE (PKUNITY_APB_BASE + 0x300000) /* APB-3 */ |
79 | #include "regs-spi.h" | 79 | #include <mach/regs-spi.h> |
80 | #define PKUNITY_AC97_BASE (PKUNITY_APB_BASE + 0x400000) /* APB-4 */ | 80 | #define PKUNITY_AC97_BASE (PKUNITY_APB_BASE + 0x400000) /* APB-4 */ |
81 | #include "regs-ac97.h" | 81 | #include <mach/regs-ac97.h> |
82 | #define PKUNITY_GPIO_BASE (PKUNITY_APB_BASE + 0x500000) /* APB-5 */ | 82 | #define PKUNITY_GPIO_BASE (PKUNITY_APB_BASE + 0x500000) /* APB-5 */ |
83 | #include "regs-gpio.h" | 83 | #include <mach/regs-gpio.h> |
84 | #define PKUNITY_INTC_BASE (PKUNITY_APB_BASE + 0x600000) /* APB-6 */ | 84 | #define PKUNITY_INTC_BASE (PKUNITY_APB_BASE + 0x600000) /* APB-6 */ |
85 | #include "regs-intc.h" | 85 | #include <mach/regs-intc.h> |
86 | #define PKUNITY_RTC_BASE (PKUNITY_APB_BASE + 0x700000) /* APB-7 */ | 86 | #define PKUNITY_RTC_BASE (PKUNITY_APB_BASE + 0x700000) /* APB-7 */ |
87 | #include "regs-rtc.h" | 87 | #include <mach/regs-rtc.h> |
88 | #define PKUNITY_OST_BASE (PKUNITY_APB_BASE + 0x800000) /* APB-8 */ | 88 | #define PKUNITY_OST_BASE (PKUNITY_APB_BASE + 0x800000) /* APB-8 */ |
89 | #include "regs-ost.h" | 89 | #include <mach/regs-ost.h> |
90 | #define PKUNITY_RESETC_BASE (PKUNITY_APB_BASE + 0x900000) /* APB-9 */ | 90 | #define PKUNITY_RESETC_BASE (PKUNITY_APB_BASE + 0x900000) /* APB-9 */ |
91 | #include "regs-resetc.h" | 91 | #include <mach/regs-resetc.h> |
92 | #define PKUNITY_PM_BASE (PKUNITY_APB_BASE + 0xA00000) /* APB-10 */ | 92 | #define PKUNITY_PM_BASE (PKUNITY_APB_BASE + 0xA00000) /* APB-10 */ |
93 | #include "regs-pm.h" | 93 | #include <mach/regs-pm.h> |
94 | #define PKUNITY_PS2_BASE (PKUNITY_APB_BASE + 0xB00000) /* APB-11 */ | 94 | #define PKUNITY_PS2_BASE (PKUNITY_APB_BASE + 0xB00000) /* APB-11 */ |
95 | #include "regs-ps2.h" | 95 | #include <mach/regs-ps2.h> |
96 | #define PKUNITY_SDC_BASE (PKUNITY_APB_BASE + 0xC00000) /* APB-12 */ | 96 | #define PKUNITY_SDC_BASE (PKUNITY_APB_BASE + 0xC00000) /* APB-12 */ |
97 | #include "regs-sdc.h" | 97 | #include <mach/regs-sdc.h> |
98 | 98 | ||
diff --git a/arch/unicore32/include/mach/hardware.h b/arch/unicore32/include/mach/hardware.h index 930bea6e129a..9e20b5d9ed50 100644 --- a/arch/unicore32/include/mach/hardware.h +++ b/arch/unicore32/include/mach/hardware.h | |||
@@ -15,7 +15,7 @@ | |||
15 | #ifndef __MACH_PUV3_HARDWARE_H__ | 15 | #ifndef __MACH_PUV3_HARDWARE_H__ |
16 | #define __MACH_PUV3_HARDWARE_H__ | 16 | #define __MACH_PUV3_HARDWARE_H__ |
17 | 17 | ||
18 | #include "PKUnity.h" | 18 | #include <mach/PKUnity.h> |
19 | 19 | ||
20 | #ifndef __ASSEMBLY__ | 20 | #ifndef __ASSEMBLY__ |
21 | #define io_p2v(x) (void __iomem *)((x) - PKUNITY_MMIO_BASE) | 21 | #define io_p2v(x) (void __iomem *)((x) - PKUNITY_MMIO_BASE) |
diff --git a/arch/unicore32/include/mach/uncompress.h b/arch/unicore32/include/mach/uncompress.h index 142d3e7958a9..9be67c9d3b53 100644 --- a/arch/unicore32/include/mach/uncompress.h +++ b/arch/unicore32/include/mach/uncompress.h | |||
@@ -13,8 +13,8 @@ | |||
13 | #ifndef __MACH_PUV3_UNCOMPRESS_H__ | 13 | #ifndef __MACH_PUV3_UNCOMPRESS_H__ |
14 | #define __MACH_PUV3_UNCOMPRESS_H__ | 14 | #define __MACH_PUV3_UNCOMPRESS_H__ |
15 | 15 | ||
16 | #include "hardware.h" | 16 | #include <mach/hardware.h> |
17 | #include "ocd.h" | 17 | #include <mach/ocd.h> |
18 | 18 | ||
19 | extern char input_data[]; | 19 | extern char input_data[]; |
20 | extern char input_data_end[]; | 20 | extern char input_data_end[]; |
diff --git a/arch/unicore32/include/uapi/asm/Kbuild b/arch/unicore32/include/uapi/asm/Kbuild new file mode 100644 index 000000000000..baebb3da1d44 --- /dev/null +++ b/arch/unicore32/include/uapi/asm/Kbuild | |||
@@ -0,0 +1,3 @@ | |||
1 | # UAPI Header export list | ||
2 | include include/uapi/asm-generic/Kbuild.asm | ||
3 | |||
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c index 46cb6c9de6c9..b0056f68d321 100644 --- a/arch/unicore32/kernel/pci.c +++ b/arch/unicore32/kernel/pci.c | |||
@@ -154,14 +154,6 @@ void __init puv3_pci_adjust_zones(unsigned long *zone_size, | |||
154 | zhole_size[0] = 0; | 154 | zhole_size[0] = 0; |
155 | } | 155 | } |
156 | 156 | ||
157 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | ||
158 | { | ||
159 | if (debug_pci) | ||
160 | printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n", | ||
161 | irq, pci_name(dev)); | ||
162 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | ||
163 | } | ||
164 | |||
165 | /* | 157 | /* |
166 | * If the bus contains any of these devices, then we must not turn on | 158 | * If the bus contains any of these devices, then we must not turn on |
167 | * parity checking of any kind. | 159 | * parity checking of any kind. |
diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c index b6f0458c3143..b008586dad75 100644 --- a/arch/unicore32/kernel/process.c +++ b/arch/unicore32/kernel/process.c | |||
@@ -380,7 +380,7 @@ int vectors_user_mapping(void) | |||
380 | return install_special_mapping(mm, 0xffff0000, PAGE_SIZE, | 380 | return install_special_mapping(mm, 0xffff0000, PAGE_SIZE, |
381 | VM_READ | VM_EXEC | | 381 | VM_READ | VM_EXEC | |
382 | VM_MAYREAD | VM_MAYEXEC | | 382 | VM_MAYREAD | VM_MAYEXEC | |
383 | VM_RESERVED, | 383 | VM_DONTEXPAND | VM_DONTDUMP, |
384 | NULL); | 384 | NULL); |
385 | } | 385 | } |
386 | 386 | ||