diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-26 13:18:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-26 13:18:24 -0400 |
commit | bd5a54e93c4d26509dca13d2f4f54d220558a012 (patch) | |
tree | 48b826882a426e7844a0017aa998b38cc268584d /arch | |
parent | 811da237ba39d86846645379763655ddf0f7907e (diff) | |
parent | 3e6259c3ef30432b4a067d6362738c236eb2e680 (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Ignore vmlinux.lds generated files
[MIPS] kgdb: Do not call fixup_exception
[MIPS] RB532: Do not define registers that are already defined
[MIPS] IP27: Export symbol pcibus_to_node to modules.
[MIPS] kgdb: s/(void *)0)/NULL/
[MIPS] kgdb: smp_call_function's 3rd argument is a pointer.
[MIPS] TXx9: Fix mips_hpt_frequency initialization
[MIPS] emma2rh: Fix build error by header file inclusion weeding.
[MIPS] Jazz: Fix build error by header file inclusion weeding.
[MIPS] Wire up new syscalls.
[MIPS] Convert printk statements during kernel setup to use severity levels
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/emma2rh/markeins/setup.c | 16 | ||||
-rw-r--r-- | arch/mips/jazz/setup.c | 13 | ||||
-rw-r--r-- | arch/mips/kernel/.gitignore | 1 | ||||
-rw-r--r-- | arch/mips/kernel/kgdb.c | 7 | ||||
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 6 | ||||
-rw-r--r-- | arch/mips/kernel/setup.c | 42 | ||||
-rw-r--r-- | arch/mips/pci/pci-ip27.c | 1 | ||||
-rw-r--r-- | arch/mips/rb532/devices.c | 16 | ||||
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 3 |
12 files changed, 56 insertions, 67 deletions
diff --git a/arch/mips/emma2rh/markeins/setup.c b/arch/mips/emma2rh/markeins/setup.c index 822a20e21fa4..b6a23ad539f8 100644 --- a/arch/mips/emma2rh/markeins/setup.c +++ b/arch/mips/emma2rh/markeins/setup.c | |||
@@ -25,23 +25,9 @@ | |||
25 | #include <linux/init.h> | 25 | #include <linux/init.h> |
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/types.h> | 27 | #include <linux/types.h> |
28 | #include <linux/initrd.h> | 28 | |
29 | #include <linux/irq.h> | ||
30 | #include <linux/ioport.h> | ||
31 | #include <linux/param.h> /* for HZ */ | ||
32 | #include <linux/root_dev.h> | ||
33 | #include <linux/serial.h> | ||
34 | #include <linux/serial_core.h> | ||
35 | |||
36 | #include <asm/cpu.h> | ||
37 | #include <asm/bootinfo.h> | ||
38 | #include <asm/addrspace.h> | ||
39 | #include <asm/time.h> | 29 | #include <asm/time.h> |
40 | #include <asm/bcache.h> | ||
41 | #include <asm/irq.h> | ||
42 | #include <asm/reboot.h> | 30 | #include <asm/reboot.h> |
43 | #include <asm/traps.h> | ||
44 | #include <asm/debug.h> | ||
45 | 31 | ||
46 | #include <asm/emma2rh/emma2rh.h> | 32 | #include <asm/emma2rh/emma2rh.h> |
47 | 33 | ||
diff --git a/arch/mips/jazz/setup.c b/arch/mips/jazz/setup.c index b59ba6b93cdd..7043f6b9ff3c 100644 --- a/arch/mips/jazz/setup.c +++ b/arch/mips/jazz/setup.c | |||
@@ -5,33 +5,22 @@ | |||
5 | * License. See the file "COPYING" in the main directory of this archive | 5 | * License. See the file "COPYING" in the main directory of this archive |
6 | * for more details. | 6 | * for more details. |
7 | * | 7 | * |
8 | * Copyright (C) 1996, 1997, 1998, 2001, 07 by Ralf Baechle | 8 | * Copyright (C) 1996, 1997, 1998, 2001, 07, 08 by Ralf Baechle |
9 | * Copyright (C) 2001 MIPS Technologies, Inc. | 9 | * Copyright (C) 2001 MIPS Technologies, Inc. |
10 | * Copyright (C) 2007 by Thomas Bogendoerfer | 10 | * Copyright (C) 2007 by Thomas Bogendoerfer |
11 | */ | 11 | */ |
12 | #include <linux/eisa.h> | 12 | #include <linux/eisa.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/ioport.h> | 14 | #include <linux/ioport.h> |
15 | #include <linux/sched.h> | ||
16 | #include <linux/interrupt.h> | ||
17 | #include <linux/mm.h> | ||
18 | #include <linux/console.h> | 15 | #include <linux/console.h> |
19 | #include <linux/fb.h> | ||
20 | #include <linux/pm.h> | ||
21 | #include <linux/screen_info.h> | 16 | #include <linux/screen_info.h> |
22 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
23 | #include <linux/serial_8250.h> | 18 | #include <linux/serial_8250.h> |
24 | 19 | ||
25 | #include <asm/bootinfo.h> | ||
26 | #include <asm/irq.h> | ||
27 | #include <asm/jazz.h> | 20 | #include <asm/jazz.h> |
28 | #include <asm/jazzdma.h> | 21 | #include <asm/jazzdma.h> |
29 | #include <asm/reboot.h> | 22 | #include <asm/reboot.h> |
30 | #include <asm/io.h> | ||
31 | #include <asm/pgtable.h> | 23 | #include <asm/pgtable.h> |
32 | #include <asm/time.h> | ||
33 | #include <asm/traps.h> | ||
34 | #include <asm/mc146818-time.h> | ||
35 | 24 | ||
36 | extern asmlinkage void jazz_handle_int(void); | 25 | extern asmlinkage void jazz_handle_int(void); |
37 | 26 | ||
diff --git a/arch/mips/kernel/.gitignore b/arch/mips/kernel/.gitignore new file mode 100644 index 000000000000..c5f676c3c224 --- /dev/null +++ b/arch/mips/kernel/.gitignore | |||
@@ -0,0 +1 @@ | |||
vmlinux.lds | |||
diff --git a/arch/mips/kernel/kgdb.c b/arch/mips/kernel/kgdb.c index c5a8b2d21ca4..8f6d58ede33c 100644 --- a/arch/mips/kernel/kgdb.c +++ b/arch/mips/kernel/kgdb.c | |||
@@ -62,13 +62,13 @@ void arch_kgdb_breakpoint(void) | |||
62 | 62 | ||
63 | static void kgdb_call_nmi_hook(void *ignored) | 63 | static void kgdb_call_nmi_hook(void *ignored) |
64 | { | 64 | { |
65 | kgdb_nmicallback(raw_smp_processor_id(), (void *)0); | 65 | kgdb_nmicallback(raw_smp_processor_id(), NULL); |
66 | } | 66 | } |
67 | 67 | ||
68 | void kgdb_roundup_cpus(unsigned long flags) | 68 | void kgdb_roundup_cpus(unsigned long flags) |
69 | { | 69 | { |
70 | local_irq_enable(); | 70 | local_irq_enable(); |
71 | smp_call_function(kgdb_call_nmi_hook, NULL, NULL); | 71 | smp_call_function(kgdb_call_nmi_hook, NULL, 0); |
72 | local_irq_disable(); | 72 | local_irq_disable(); |
73 | } | 73 | } |
74 | 74 | ||
@@ -190,9 +190,6 @@ static int kgdb_mips_notify(struct notifier_block *self, unsigned long cmd, | |||
190 | struct pt_regs *regs = args->regs; | 190 | struct pt_regs *regs = args->regs; |
191 | int trap = (regs->cp0_cause & 0x7c) >> 2; | 191 | int trap = (regs->cp0_cause & 0x7c) >> 2; |
192 | 192 | ||
193 | if (fixup_exception(regs)) | ||
194 | return NOTIFY_DONE; | ||
195 | |||
196 | /* Userpace events, ignore. */ | 193 | /* Userpace events, ignore. */ |
197 | if (user_mode(regs)) | 194 | if (user_mode(regs)) |
198 | return NOTIFY_DONE; | 195 | return NOTIFY_DONE; |
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index fc4fd4d705e2..5e75a316f6b1 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -647,6 +647,12 @@ einval: li v0, -EINVAL | |||
647 | sys sys_timerfd_create 2 | 647 | sys sys_timerfd_create 2 |
648 | sys sys_timerfd_gettime 2 | 648 | sys sys_timerfd_gettime 2 |
649 | sys sys_timerfd_settime 4 | 649 | sys sys_timerfd_settime 4 |
650 | sys sys_signalfd4 4 | ||
651 | sys sys_eventfd2 2 /* 4325 */ | ||
652 | sys sys_epoll_create1 1 | ||
653 | sys sys_dup3 3 | ||
654 | sys sys_pipe2 2 | ||
655 | sys sys_inotify_init1 1 | ||
650 | .endm | 656 | .endm |
651 | 657 | ||
652 | /* We pre-compute the number of _instruction_ bytes needed to | 658 | /* We pre-compute the number of _instruction_ bytes needed to |
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index 2b73fd1e4528..3d58204c9d44 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -481,4 +481,10 @@ sys_call_table: | |||
481 | PTR sys_timerfd_create /* 5280 */ | 481 | PTR sys_timerfd_create /* 5280 */ |
482 | PTR sys_timerfd_gettime | 482 | PTR sys_timerfd_gettime |
483 | PTR sys_timerfd_settime | 483 | PTR sys_timerfd_settime |
484 | PTR sys_signalfd4 | ||
485 | PTR sys_eventfd2 | ||
486 | PTR sys_epoll_create1 /* 5285 */ | ||
487 | PTR sys_dup3 | ||
488 | PTR sys_pipe2 | ||
489 | PTR sys_inotify_init1 | ||
484 | .size sys_call_table,.-sys_call_table | 490 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 2654e75d2fef..da7f1b6ea0fb 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -407,4 +407,10 @@ EXPORT(sysn32_call_table) | |||
407 | PTR sys_timerfd_create | 407 | PTR sys_timerfd_create |
408 | PTR sys_timerfd_gettime /* 5285 */ | 408 | PTR sys_timerfd_gettime /* 5285 */ |
409 | PTR sys_timerfd_settime | 409 | PTR sys_timerfd_settime |
410 | PTR sys_signalfd4 | ||
411 | PTR sys_eventfd2 | ||
412 | PTR sys_epoll_create1 | ||
413 | PTR sys_dup3 /* 5290 */ | ||
414 | PTR sys_pipe2 | ||
415 | PTR sys_inotify_init1 | ||
410 | .size sysn32_call_table,.-sysn32_call_table | 416 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 76167bea5a70..d7cd1aac9ada 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -529,4 +529,10 @@ sys_call_table: | |||
529 | PTR sys_timerfd_create | 529 | PTR sys_timerfd_create |
530 | PTR sys_timerfd_gettime | 530 | PTR sys_timerfd_gettime |
531 | PTR sys_timerfd_settime | 531 | PTR sys_timerfd_settime |
532 | PTR compat_sys_signalfd4 | ||
533 | PTR sys_eventfd2 /* 4325 */ | ||
534 | PTR sys_epoll_create1 | ||
535 | PTR sys_dup3 | ||
536 | PTR sys_pipe2 | ||
537 | PTR sys_inotify_init1 | ||
532 | .size sys_call_table,.-sys_call_table | 538 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 8af84867e74d..2aae76bce293 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -78,7 +78,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type) | |||
78 | 78 | ||
79 | /* Sanity check */ | 79 | /* Sanity check */ |
80 | if (start + size < start) { | 80 | if (start + size < start) { |
81 | printk("Trying to add an invalid memory region, skipped\n"); | 81 | pr_warning("Trying to add an invalid memory region, skipped\n"); |
82 | return; | 82 | return; |
83 | } | 83 | } |
84 | 84 | ||
@@ -92,7 +92,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type) | |||
92 | } | 92 | } |
93 | 93 | ||
94 | if (x == BOOT_MEM_MAP_MAX) { | 94 | if (x == BOOT_MEM_MAP_MAX) { |
95 | printk("Ooops! Too many entries in the memory map!\n"); | 95 | pr_err("Ooops! Too many entries in the memory map!\n"); |
96 | return; | 96 | return; |
97 | } | 97 | } |
98 | 98 | ||
@@ -108,22 +108,22 @@ static void __init print_memory_map(void) | |||
108 | const int field = 2 * sizeof(unsigned long); | 108 | const int field = 2 * sizeof(unsigned long); |
109 | 109 | ||
110 | for (i = 0; i < boot_mem_map.nr_map; i++) { | 110 | for (i = 0; i < boot_mem_map.nr_map; i++) { |
111 | printk(" memory: %0*Lx @ %0*Lx ", | 111 | printk(KERN_INFO " memory: %0*Lx @ %0*Lx ", |
112 | field, (unsigned long long) boot_mem_map.map[i].size, | 112 | field, (unsigned long long) boot_mem_map.map[i].size, |
113 | field, (unsigned long long) boot_mem_map.map[i].addr); | 113 | field, (unsigned long long) boot_mem_map.map[i].addr); |
114 | 114 | ||
115 | switch (boot_mem_map.map[i].type) { | 115 | switch (boot_mem_map.map[i].type) { |
116 | case BOOT_MEM_RAM: | 116 | case BOOT_MEM_RAM: |
117 | printk("(usable)\n"); | 117 | printk(KERN_CONT "(usable)\n"); |
118 | break; | 118 | break; |
119 | case BOOT_MEM_ROM_DATA: | 119 | case BOOT_MEM_ROM_DATA: |
120 | printk("(ROM data)\n"); | 120 | printk(KERN_CONT "(ROM data)\n"); |
121 | break; | 121 | break; |
122 | case BOOT_MEM_RESERVED: | 122 | case BOOT_MEM_RESERVED: |
123 | printk("(reserved)\n"); | 123 | printk(KERN_CONT "(reserved)\n"); |
124 | break; | 124 | break; |
125 | default: | 125 | default: |
126 | printk("type %lu\n", boot_mem_map.map[i].type); | 126 | printk(KERN_CONT "type %lu\n", boot_mem_map.map[i].type); |
127 | break; | 127 | break; |
128 | } | 128 | } |
129 | } | 129 | } |
@@ -185,11 +185,11 @@ static unsigned long __init init_initrd(void) | |||
185 | 185 | ||
186 | sanitize: | 186 | sanitize: |
187 | if (initrd_start & ~PAGE_MASK) { | 187 | if (initrd_start & ~PAGE_MASK) { |
188 | printk(KERN_ERR "initrd start must be page aligned\n"); | 188 | pr_err("initrd start must be page aligned\n"); |
189 | goto disable; | 189 | goto disable; |
190 | } | 190 | } |
191 | if (initrd_start < PAGE_OFFSET) { | 191 | if (initrd_start < PAGE_OFFSET) { |
192 | printk(KERN_ERR "initrd start < PAGE_OFFSET\n"); | 192 | pr_err("initrd start < PAGE_OFFSET\n"); |
193 | goto disable; | 193 | goto disable; |
194 | } | 194 | } |
195 | 195 | ||
@@ -221,18 +221,18 @@ static void __init finalize_initrd(void) | |||
221 | goto disable; | 221 | goto disable; |
222 | } | 222 | } |
223 | if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { | 223 | if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { |
224 | printk("Initrd extends beyond end of memory"); | 224 | printk(KERN_ERR "Initrd extends beyond end of memory"); |
225 | goto disable; | 225 | goto disable; |
226 | } | 226 | } |
227 | 227 | ||
228 | reserve_bootmem(__pa(initrd_start), size, BOOTMEM_DEFAULT); | 228 | reserve_bootmem(__pa(initrd_start), size, BOOTMEM_DEFAULT); |
229 | initrd_below_start_ok = 1; | 229 | initrd_below_start_ok = 1; |
230 | 230 | ||
231 | printk(KERN_INFO "Initial ramdisk at: 0x%lx (%lu bytes)\n", | 231 | pr_info("Initial ramdisk at: 0x%lx (%lu bytes)\n", |
232 | initrd_start, size); | 232 | initrd_start, size); |
233 | return; | 233 | return; |
234 | disable: | 234 | disable: |
235 | printk(" - disabling initrd\n"); | 235 | printk(KERN_CONT " - disabling initrd\n"); |
236 | initrd_start = 0; | 236 | initrd_start = 0; |
237 | initrd_end = 0; | 237 | initrd_end = 0; |
238 | } | 238 | } |
@@ -310,14 +310,12 @@ static void __init bootmem_init(void) | |||
310 | if (min_low_pfn >= max_low_pfn) | 310 | if (min_low_pfn >= max_low_pfn) |
311 | panic("Incorrect memory mapping !!!"); | 311 | panic("Incorrect memory mapping !!!"); |
312 | if (min_low_pfn > ARCH_PFN_OFFSET) { | 312 | if (min_low_pfn > ARCH_PFN_OFFSET) { |
313 | printk(KERN_INFO | 313 | pr_info("Wasting %lu bytes for tracking %lu unused pages\n", |
314 | "Wasting %lu bytes for tracking %lu unused pages\n", | 314 | (min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page), |
315 | (min_low_pfn - ARCH_PFN_OFFSET) * sizeof(struct page), | 315 | min_low_pfn - ARCH_PFN_OFFSET); |
316 | min_low_pfn - ARCH_PFN_OFFSET); | ||
317 | } else if (min_low_pfn < ARCH_PFN_OFFSET) { | 316 | } else if (min_low_pfn < ARCH_PFN_OFFSET) { |
318 | printk(KERN_INFO | 317 | pr_info("%lu free pages won't be used\n", |
319 | "%lu free pages won't be used\n", | 318 | ARCH_PFN_OFFSET - min_low_pfn); |
320 | ARCH_PFN_OFFSET - min_low_pfn); | ||
321 | } | 319 | } |
322 | min_low_pfn = ARCH_PFN_OFFSET; | 320 | min_low_pfn = ARCH_PFN_OFFSET; |
323 | 321 | ||
@@ -471,7 +469,7 @@ static void __init arch_mem_init(char **cmdline_p) | |||
471 | /* call board setup routine */ | 469 | /* call board setup routine */ |
472 | plat_mem_setup(); | 470 | plat_mem_setup(); |
473 | 471 | ||
474 | printk("Determined physical RAM map:\n"); | 472 | pr_info("Determined physical RAM map:\n"); |
475 | print_memory_map(); | 473 | print_memory_map(); |
476 | 474 | ||
477 | strlcpy(command_line, arcs_cmdline, sizeof(command_line)); | 475 | strlcpy(command_line, arcs_cmdline, sizeof(command_line)); |
@@ -482,7 +480,7 @@ static void __init arch_mem_init(char **cmdline_p) | |||
482 | parse_early_param(); | 480 | parse_early_param(); |
483 | 481 | ||
484 | if (usermem) { | 482 | if (usermem) { |
485 | printk("User-defined physical RAM map:\n"); | 483 | pr_info("User-defined physical RAM map:\n"); |
486 | print_memory_map(); | 484 | print_memory_map(); |
487 | } | 485 | } |
488 | 486 | ||
diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c index ce92f82b16d2..bd78368c82bf 100644 --- a/arch/mips/pci/pci-ip27.c +++ b/arch/mips/pci/pci-ip27.c | |||
@@ -205,6 +205,7 @@ int pcibus_to_node(struct pci_bus *bus) | |||
205 | 205 | ||
206 | return bc->nasid; | 206 | return bc->nasid; |
207 | } | 207 | } |
208 | EXPORT_SYMBOL(pcibus_to_node); | ||
208 | 209 | ||
209 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, | 210 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, |
210 | pci_fixup_ioc3); | 211 | pci_fixup_ioc3); |
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 44fb0a62877f..82ab395efa33 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c | |||
@@ -49,8 +49,6 @@ | |||
49 | #define GPIO_ALE (1 << 0x0a) | 49 | #define GPIO_ALE (1 << 0x0a) |
50 | #define GPIO_CLE (1 << 0x0b) | 50 | #define GPIO_CLE (1 << 0x0b) |
51 | 51 | ||
52 | extern char *board_type; | ||
53 | |||
54 | static struct resource korina_dev0_res[] = { | 52 | static struct resource korina_dev0_res[] = { |
55 | { | 53 | { |
56 | .name = "korina_regs", | 54 | .name = "korina_regs", |
@@ -265,14 +263,6 @@ static void __init parse_mac_addr(char *macstr) | |||
265 | } | 263 | } |
266 | 264 | ||
267 | 265 | ||
268 | /* DEVICE CONTROLLER 1 */ | ||
269 | #define CFG_DC_DEV1 ((void *)0xb8010010) | ||
270 | #define CFG_DC_DEV2 ((void *)0xb8010020) | ||
271 | #define CFG_DC_DEVBASE 0x0 | ||
272 | #define CFG_DC_DEVMASK 0x4 | ||
273 | #define CFG_DC_DEVC 0x8 | ||
274 | #define CFG_DC_DEVTC 0xC | ||
275 | |||
276 | /* NAND definitions */ | 266 | /* NAND definitions */ |
277 | #define NAND_CHIP_DELAY 25 | 267 | #define NAND_CHIP_DELAY 25 |
278 | 268 | ||
@@ -301,16 +291,16 @@ static void __init rb532_nand_setup(void) | |||
301 | static int __init plat_setup_devices(void) | 291 | static int __init plat_setup_devices(void) |
302 | { | 292 | { |
303 | /* Look for the CF card reader */ | 293 | /* Look for the CF card reader */ |
304 | if (!readl(CFG_DC_DEV1 + CFG_DC_DEVMASK)) | 294 | if (!readl(IDT434_REG_BASE + DEV1MASK)) |
305 | rb532_devs[1] = NULL; | 295 | rb532_devs[1] = NULL; |
306 | else { | 296 | else { |
307 | cf_slot0_res[0].start = | 297 | cf_slot0_res[0].start = |
308 | readl(CFG_DC_DEV1 + CFG_DC_DEVBASE); | 298 | readl(IDT434_REG_BASE + DEV1BASE); |
309 | cf_slot0_res[0].end = cf_slot0_res[0].start + 0x1000; | 299 | cf_slot0_res[0].end = cf_slot0_res[0].start + 0x1000; |
310 | } | 300 | } |
311 | 301 | ||
312 | /* Read the NAND resources from the device controller */ | 302 | /* Read the NAND resources from the device controller */ |
313 | nand_slot0_res[0].start = readl(CFG_DC_DEV2 + CFG_DC_DEVBASE); | 303 | nand_slot0_res[0].start = readl(IDT434_REG_BASE + DEV2BASE); |
314 | nand_slot0_res[0].end = nand_slot0_res[0].start + 0x1000; | 304 | nand_slot0_res[0].end = nand_slot0_res[0].start + 0x1000; |
315 | 305 | ||
316 | /* Initialise the NAND device */ | 306 | /* Initialise the NAND device */ |
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 1bc57d0f4c5c..0afe94c48fb6 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -328,6 +328,9 @@ void __init arch_init_irq(void) | |||
328 | 328 | ||
329 | void __init plat_time_init(void) | 329 | void __init plat_time_init(void) |
330 | { | 330 | { |
331 | #ifdef CONFIG_CPU_TX49XX | ||
332 | mips_hpt_frequency = txx9_cpu_clock / 2; | ||
333 | #endif | ||
331 | txx9_board_vec->time_init(); | 334 | txx9_board_vec->time_init(); |
332 | } | 335 | } |
333 | 336 | ||