diff options
-rw-r--r-- | arch/m68k/amiga/config.c | 20 | ||||
-rw-r--r-- | include/asm-m68k/amigahw.h | 4 | ||||
-rw-r--r-- | include/asm-m68k/amigaints.h | 2 |
3 files changed, 8 insertions, 18 deletions
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index dd0734e54bb8..df679d96b1cb 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c | |||
@@ -36,14 +36,11 @@ | |||
36 | #include <asm/machdep.h> | 36 | #include <asm/machdep.h> |
37 | #include <asm/io.h> | 37 | #include <asm/io.h> |
38 | 38 | ||
39 | unsigned long amiga_model; | 39 | static unsigned long amiga_model; |
40 | EXPORT_SYMBOL(amiga_model); | ||
41 | 40 | ||
42 | unsigned long amiga_eclock; | 41 | unsigned long amiga_eclock; |
43 | EXPORT_SYMBOL(amiga_eclock); | 42 | EXPORT_SYMBOL(amiga_eclock); |
44 | 43 | ||
45 | unsigned long amiga_masterclock; | ||
46 | |||
47 | unsigned long amiga_colorclock; | 44 | unsigned long amiga_colorclock; |
48 | EXPORT_SYMBOL(amiga_colorclock); | 45 | EXPORT_SYMBOL(amiga_colorclock); |
49 | 46 | ||
@@ -53,7 +50,7 @@ EXPORT_SYMBOL(amiga_chipset); | |||
53 | unsigned char amiga_vblank; | 50 | unsigned char amiga_vblank; |
54 | EXPORT_SYMBOL(amiga_vblank); | 51 | EXPORT_SYMBOL(amiga_vblank); |
55 | 52 | ||
56 | unsigned char amiga_psfreq; | 53 | static unsigned char amiga_psfreq; |
57 | 54 | ||
58 | struct amiga_hw_present amiga_hw_present; | 55 | struct amiga_hw_present amiga_hw_present; |
59 | EXPORT_SYMBOL(amiga_hw_present); | 56 | EXPORT_SYMBOL(amiga_hw_present); |
@@ -94,8 +91,6 @@ static char *amiga_models[] __initdata = { | |||
94 | static char amiga_model_name[13] = "Amiga "; | 91 | static char amiga_model_name[13] = "Amiga "; |
95 | 92 | ||
96 | static void amiga_sched_init(irq_handler_t handler); | 93 | static void amiga_sched_init(irq_handler_t handler); |
97 | /* amiga specific irq functions */ | ||
98 | extern void amiga_init_IRQ(void); | ||
99 | static void amiga_get_model(char *model); | 94 | static void amiga_get_model(char *model); |
100 | static int amiga_get_hardware_list(char *buffer); | 95 | static int amiga_get_hardware_list(char *buffer); |
101 | /* amiga specific timer functions */ | 96 | /* amiga specific timer functions */ |
@@ -109,8 +104,6 @@ static void amiga_reset(void); | |||
109 | extern void amiga_init_sound(void); | 104 | extern void amiga_init_sound(void); |
110 | static void amiga_mem_console_write(struct console *co, const char *b, | 105 | static void amiga_mem_console_write(struct console *co, const char *b, |
111 | unsigned int count); | 106 | unsigned int count); |
112 | void amiga_serial_console_write(struct console *co, const char *s, | ||
113 | unsigned int count); | ||
114 | #ifdef CONFIG_HEARTBEAT | 107 | #ifdef CONFIG_HEARTBEAT |
115 | static void amiga_heartbeat(int on); | 108 | static void amiga_heartbeat(int on); |
116 | #endif | 109 | #endif |
@@ -420,8 +413,7 @@ void __init config_amiga(void) | |||
420 | mach_heartbeat = amiga_heartbeat; | 413 | mach_heartbeat = amiga_heartbeat; |
421 | #endif | 414 | #endif |
422 | 415 | ||
423 | /* Fill in the clock values (based on the 700 kHz E-Clock) */ | 416 | /* Fill in the clock value (based on the 700 kHz E-Clock) */ |
424 | amiga_masterclock = 40*amiga_eclock; /* 28 MHz */ | ||
425 | amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */ | 417 | amiga_colorclock = 5*amiga_eclock; /* 3.5 MHz */ |
426 | 418 | ||
427 | /* clear all DMA bits */ | 419 | /* clear all DMA bits */ |
@@ -819,8 +811,8 @@ static void amiga_serial_putc(char c) | |||
819 | ; | 811 | ; |
820 | } | 812 | } |
821 | 813 | ||
822 | void amiga_serial_console_write(struct console *co, const char *s, | 814 | static void amiga_serial_console_write(struct console *co, const char *s, |
823 | unsigned int count) | 815 | unsigned int count) |
824 | { | 816 | { |
825 | while (count--) { | 817 | while (count--) { |
826 | if (*s == '\n') | 818 | if (*s == '\n') |
@@ -829,7 +821,7 @@ void amiga_serial_console_write(struct console *co, const char *s, | |||
829 | } | 821 | } |
830 | } | 822 | } |
831 | 823 | ||
832 | #ifdef CONFIG_SERIAL_CONSOLE | 824 | #if 0 |
833 | void amiga_serial_puts(const char *s) | 825 | void amiga_serial_puts(const char *s) |
834 | { | 826 | { |
835 | amiga_serial_console_write(NULL, s, strlen(s)); | 827 | amiga_serial_console_write(NULL, s, strlen(s)); |
diff --git a/include/asm-m68k/amigahw.h b/include/asm-m68k/amigahw.h index a16fe4e5a28a..5ca5dd951a4a 100644 --- a/include/asm-m68k/amigahw.h +++ b/include/asm-m68k/amigahw.h | |||
@@ -22,8 +22,6 @@ | |||
22 | * Different Amiga models | 22 | * Different Amiga models |
23 | */ | 23 | */ |
24 | 24 | ||
25 | extern unsigned long amiga_model; | ||
26 | |||
27 | #define AMI_UNKNOWN (0) | 25 | #define AMI_UNKNOWN (0) |
28 | #define AMI_500 (1) | 26 | #define AMI_500 (1) |
29 | #define AMI_500PLUS (2) | 27 | #define AMI_500PLUS (2) |
@@ -59,11 +57,9 @@ extern unsigned long amiga_chipset; | |||
59 | */ | 57 | */ |
60 | 58 | ||
61 | extern unsigned long amiga_eclock; /* 700 kHz E Peripheral Clock */ | 59 | extern unsigned long amiga_eclock; /* 700 kHz E Peripheral Clock */ |
62 | extern unsigned long amiga_masterclock; /* 28 MHz Master Clock */ | ||
63 | extern unsigned long amiga_colorclock; /* 3.5 MHz Color Clock */ | 60 | extern unsigned long amiga_colorclock; /* 3.5 MHz Color Clock */ |
64 | extern unsigned long amiga_chip_size; /* Chip RAM Size (bytes) */ | 61 | extern unsigned long amiga_chip_size; /* Chip RAM Size (bytes) */ |
65 | extern unsigned char amiga_vblank; /* VBLANK Frequency */ | 62 | extern unsigned char amiga_vblank; /* VBLANK Frequency */ |
66 | extern unsigned char amiga_psfreq; /* Power Supply Frequency */ | ||
67 | 63 | ||
68 | 64 | ||
69 | #define AMIGAHW_DECLARE(name) unsigned name : 1 | 65 | #define AMIGAHW_DECLARE(name) unsigned name : 1 |
diff --git a/include/asm-m68k/amigaints.h b/include/asm-m68k/amigaints.h index 7c8713468fd2..b1bcdb835ab9 100644 --- a/include/asm-m68k/amigaints.h +++ b/include/asm-m68k/amigaints.h | |||
@@ -98,6 +98,8 @@ | |||
98 | #define CIA_ICR_ALL 0x1f | 98 | #define CIA_ICR_ALL 0x1f |
99 | #define CIA_ICR_SETCLR 0x80 | 99 | #define CIA_ICR_SETCLR 0x80 |
100 | 100 | ||
101 | extern void amiga_init_IRQ(void); | ||
102 | |||
101 | /* to access the interrupt control registers of CIA's use only | 103 | /* to access the interrupt control registers of CIA's use only |
102 | ** these functions, they behave exactly like the amiga os routines | 104 | ** these functions, they behave exactly like the amiga os routines |
103 | */ | 105 | */ |