diff options
author | Manuel Lauss <mano@roarinelk.homelinux.net> | 2008-12-21 03:26:20 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-01-11 04:57:26 -0500 |
commit | 1820ec1d2b993f3ec00169e881504aa4541a9bf7 (patch) | |
tree | 18c7250dd41b227a2d8224a617793f33a09d783e /arch | |
parent | 558d1de8ba9ebb1cc3f3062f1371b9330772164f (diff) |
MIPS: Alchemy: remove get/set_au1x00_lcd_clock().
There are no in-tree users, so remove them.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/alchemy/common/clocks.c | 31 | ||||
-rw-r--r-- | arch/mips/alchemy/common/time.c | 1 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-au1x00/au1000.h | 2 |
3 files changed, 0 insertions, 34 deletions
diff --git a/arch/mips/alchemy/common/clocks.c b/arch/mips/alchemy/common/clocks.c index 043429d17c5f..a8170fda4932 100644 --- a/arch/mips/alchemy/common/clocks.c +++ b/arch/mips/alchemy/common/clocks.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <asm/mach-au1x00/au1000.h> | 30 | #include <asm/mach-au1x00/au1000.h> |
31 | 31 | ||
32 | static unsigned int au1x00_clock; /* Hz */ | 32 | static unsigned int au1x00_clock; /* Hz */ |
33 | static unsigned int lcd_clock; /* KHz */ | ||
34 | static unsigned long uart_baud_base; | 33 | static unsigned long uart_baud_base; |
35 | 34 | ||
36 | /* | 35 | /* |
@@ -61,33 +60,3 @@ void set_au1x00_uart_baud_base(unsigned long new_baud_base) | |||
61 | { | 60 | { |
62 | uart_baud_base = new_baud_base; | 61 | uart_baud_base = new_baud_base; |
63 | } | 62 | } |
64 | |||
65 | /* | ||
66 | * Calculate the Au1x00's LCD clock based on the current | ||
67 | * cpu clock and the system bus clock, and try to keep it | ||
68 | * below 40 MHz (the Pb1000 board can lock-up if the LCD | ||
69 | * clock is over 40 MHz). | ||
70 | */ | ||
71 | void set_au1x00_lcd_clock(void) | ||
72 | { | ||
73 | unsigned int static_cfg0; | ||
74 | unsigned int sys_busclk = (get_au1x00_speed() / 1000) / | ||
75 | ((int)(au_readl(SYS_POWERCTRL) & 0x03) + 2); | ||
76 | |||
77 | static_cfg0 = au_readl(MEM_STCFG0); | ||
78 | |||
79 | if (static_cfg0 & (1 << 11)) | ||
80 | lcd_clock = sys_busclk / 5; /* note: BCLK switching fails with D5 */ | ||
81 | else | ||
82 | lcd_clock = sys_busclk / 4; | ||
83 | |||
84 | if (lcd_clock > 50000) /* Epson MAX */ | ||
85 | printk(KERN_WARNING "warning: LCD clock too high (%u KHz)\n", | ||
86 | lcd_clock); | ||
87 | } | ||
88 | |||
89 | unsigned int get_au1x00_lcd_clock(void) | ||
90 | { | ||
91 | return lcd_clock; | ||
92 | } | ||
93 | EXPORT_SYMBOL(get_au1x00_lcd_clock); | ||
diff --git a/arch/mips/alchemy/common/time.c b/arch/mips/alchemy/common/time.c index 563d9390a872..68d714258e92 100644 --- a/arch/mips/alchemy/common/time.c +++ b/arch/mips/alchemy/common/time.c | |||
@@ -224,7 +224,6 @@ void __init plat_time_init(void) | |||
224 | printk(KERN_INFO "CPU frequency %u.%02u MHz\n", | 224 | printk(KERN_INFO "CPU frequency %u.%02u MHz\n", |
225 | est_freq / 1000000, ((est_freq % 1000000) * 100) / 1000000); | 225 | est_freq / 1000000, ((est_freq % 1000000) * 100) / 1000000); |
226 | set_au1x00_speed(est_freq); | 226 | set_au1x00_speed(est_freq); |
227 | set_au1x00_lcd_clock(); /* program the LCD clock */ | ||
228 | 227 | ||
229 | #ifdef CONFIG_PM | 228 | #ifdef CONFIG_PM |
230 | /* | 229 | /* |
diff --git a/arch/mips/include/asm/mach-au1x00/au1000.h b/arch/mips/include/asm/mach-au1x00/au1000.h index a7ba35247c8a..d07632e3230b 100644 --- a/arch/mips/include/asm/mach-au1x00/au1000.h +++ b/arch/mips/include/asm/mach-au1x00/au1000.h | |||
@@ -97,8 +97,6 @@ extern void set_au1x00_speed(unsigned int new_freq); | |||
97 | extern unsigned int get_au1x00_speed(void); | 97 | extern unsigned int get_au1x00_speed(void); |
98 | extern void set_au1x00_uart_baud_base(unsigned long new_baud_base); | 98 | extern void set_au1x00_uart_baud_base(unsigned long new_baud_base); |
99 | extern unsigned long get_au1x00_uart_baud_base(void); | 99 | extern unsigned long get_au1x00_uart_baud_base(void); |
100 | extern void set_au1x00_lcd_clock(void); | ||
101 | extern unsigned int get_au1x00_lcd_clock(void); | ||
102 | 100 | ||
103 | /* | 101 | /* |
104 | * Every board describes its IRQ mapping with this table. | 102 | * Every board describes its IRQ mapping with this table. |