diff options
Diffstat (limited to 'arch/mips/au1000/common')
-rw-r--r-- | arch/mips/au1000/common/au1xxx_irqmap.c | 4 | ||||
-rw-r--r-- | arch/mips/au1000/common/pci.c | 16 | ||||
-rw-r--r-- | arch/mips/au1000/common/setup.c | 6 | ||||
-rw-r--r-- | arch/mips/au1000/common/time.c | 9 |
4 files changed, 13 insertions, 22 deletions
diff --git a/arch/mips/au1000/common/au1xxx_irqmap.c b/arch/mips/au1000/common/au1xxx_irqmap.c index 0b2c03c52319..5a1e3687cafa 100644 --- a/arch/mips/au1000/common/au1xxx_irqmap.c +++ b/arch/mips/au1000/common/au1xxx_irqmap.c | |||
@@ -55,7 +55,7 @@ | |||
55 | * Careful if you change match 2 request! | 55 | * Careful if you change match 2 request! |
56 | * The interrupt handler is called directly from the low level dispatch code. | 56 | * The interrupt handler is called directly from the low level dispatch code. |
57 | */ | 57 | */ |
58 | au1xxx_irq_map_t au1xxx_ic0_map[] = { | 58 | au1xxx_irq_map_t __initdata au1xxx_ic0_map[] = { |
59 | 59 | ||
60 | #if defined(CONFIG_SOC_AU1000) | 60 | #if defined(CONFIG_SOC_AU1000) |
61 | { AU1000_UART0_INT, INTC_INT_HIGH_LEVEL, 0}, | 61 | { AU1000_UART0_INT, INTC_INT_HIGH_LEVEL, 0}, |
@@ -220,5 +220,5 @@ au1xxx_irq_map_t au1xxx_ic0_map[] = { | |||
220 | 220 | ||
221 | }; | 221 | }; |
222 | 222 | ||
223 | int au1xxx_ic0_nr_irqs = sizeof(au1xxx_ic0_map)/sizeof(au1xxx_irq_map_t); | 223 | int __initdata au1xxx_ic0_nr_irqs = ARRAY_SIZE(au1xxx_ic0_map); |
224 | 224 | ||
diff --git a/arch/mips/au1000/common/pci.c b/arch/mips/au1000/common/pci.c index 4e5a6e1a9a6e..b1392abac809 100644 --- a/arch/mips/au1000/common/pci.c +++ b/arch/mips/au1000/common/pci.c | |||
@@ -40,17 +40,17 @@ | |||
40 | 40 | ||
41 | /* TBD */ | 41 | /* TBD */ |
42 | static struct resource pci_io_resource = { | 42 | static struct resource pci_io_resource = { |
43 | "pci IO space", | 43 | .start = PCI_IO_START, |
44 | (u32)PCI_IO_START, | 44 | .end = PCI_IO_END, |
45 | (u32)PCI_IO_END, | 45 | .name = "PCI IO space", |
46 | IORESOURCE_IO | 46 | .flags = IORESOURCE_IO |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static struct resource pci_mem_resource = { | 49 | static struct resource pci_mem_resource = { |
50 | "pci memory space", | 50 | .start = PCI_MEM_START, |
51 | (u32)PCI_MEM_START, | 51 | .end = PCI_MEM_END, |
52 | (u32)PCI_MEM_END, | 52 | .name = "PCI memory space", |
53 | IORESOURCE_MEM | 53 | .flags = IORESOURCE_MEM |
54 | }; | 54 | }; |
55 | 55 | ||
56 | extern struct pci_ops au1x_pci_ops; | 56 | extern struct pci_ops au1x_pci_ops; |
diff --git a/arch/mips/au1000/common/setup.c b/arch/mips/au1000/common/setup.c index 307e98c29ddc..97165b6b3894 100644 --- a/arch/mips/au1000/common/setup.c +++ b/arch/mips/au1000/common/setup.c | |||
@@ -49,17 +49,13 @@ extern void __init board_setup(void); | |||
49 | extern void au1000_restart(char *); | 49 | extern void au1000_restart(char *); |
50 | extern void au1000_halt(void); | 50 | extern void au1000_halt(void); |
51 | extern void au1000_power_off(void); | 51 | extern void au1000_power_off(void); |
52 | extern struct resource ioport_resource; | ||
53 | extern struct resource iomem_resource; | ||
54 | extern void (*board_time_init)(void); | ||
55 | extern void au1x_time_init(void); | 52 | extern void au1x_time_init(void); |
56 | extern void (*board_timer_setup)(struct irqaction *irq); | ||
57 | extern void au1x_timer_setup(struct irqaction *irq); | 53 | extern void au1x_timer_setup(struct irqaction *irq); |
58 | extern void au1xxx_time_init(void); | 54 | extern void au1xxx_time_init(void); |
59 | extern void au1xxx_timer_setup(struct irqaction *irq); | 55 | extern void au1xxx_timer_setup(struct irqaction *irq); |
60 | extern void set_cpuspec(void); | 56 | extern void set_cpuspec(void); |
61 | 57 | ||
62 | void __init plat_setup(void) | 58 | void __init plat_mem_setup(void) |
63 | { | 59 | { |
64 | struct cpu_spec *sp; | 60 | struct cpu_spec *sp; |
65 | char *argptr; | 61 | char *argptr; |
diff --git a/arch/mips/au1000/common/time.c b/arch/mips/au1000/common/time.c index f74d66a58a21..842e1b5ac4a1 100644 --- a/arch/mips/au1000/common/time.c +++ b/arch/mips/au1000/common/time.c | |||
@@ -50,10 +50,6 @@ | |||
50 | #include <linux/mc146818rtc.h> | 50 | #include <linux/mc146818rtc.h> |
51 | #include <linux/timex.h> | 51 | #include <linux/timex.h> |
52 | 52 | ||
53 | extern void do_softirq(void); | ||
54 | extern volatile unsigned long wall_jiffies; | ||
55 | unsigned long missed_heart_beats = 0; | ||
56 | |||
57 | static unsigned long r4k_offset; /* Amount to increment compare reg each time */ | 53 | static unsigned long r4k_offset; /* Amount to increment compare reg each time */ |
58 | static unsigned long r4k_cur; /* What counter should be at next timer irq */ | 54 | static unsigned long r4k_cur; /* What counter should be at next timer irq */ |
59 | int no_au1xxx_32khz; | 55 | int no_au1xxx_32khz; |
@@ -388,10 +384,9 @@ static unsigned long do_fast_pm_gettimeoffset(void) | |||
388 | } | 384 | } |
389 | #endif | 385 | #endif |
390 | 386 | ||
391 | void au1xxx_timer_setup(struct irqaction *irq) | 387 | void __init au1xxx_timer_setup(struct irqaction *irq) |
392 | { | 388 | { |
393 | unsigned int est_freq; | 389 | unsigned int est_freq; |
394 | extern unsigned long (*do_gettimeoffset)(void); | ||
395 | 390 | ||
396 | printk("calculating r4koff... "); | 391 | printk("calculating r4koff... "); |
397 | r4k_offset = cal_r4koff(); | 392 | r4k_offset = cal_r4koff(); |