aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/boot/simple/misc-katana.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/boot/simple/misc-katana.c')
-rw-r--r--arch/ppc/boot/simple/misc-katana.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/ppc/boot/simple/misc-katana.c b/arch/ppc/boot/simple/misc-katana.c
deleted file mode 100644
index 79a1bbcbc6c5..000000000000
--- a/arch/ppc/boot/simple/misc-katana.c
+++ /dev/null
@@ -1,42 +0,0 @@
1/*
2 * Set up MPSC values to bootwrapper can prompt user.
3 *
4 * Author: Mark A. Greer <source@mvista.com>
5 *
6 * 2004 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
10 */
11
12#include <linux/types.h>
13#include <asm/io.h>
14#include <asm/mv64x60_defs.h>
15#include <platforms/katana.h>
16
17extern u32 mv64x60_console_baud;
18extern u32 mv64x60_mpsc_clk_src;
19extern u32 mv64x60_mpsc_clk_freq;
20
21/* Not in the kernel so won't include kernel.h to get its 'min' definition */
22#ifndef min
23#define min(a,b) (((a) < (b)) ? (a) : (b))
24#endif
25
26unsigned long mv64360_get_mem_size(void);
27
28void
29mv64x60_board_init(void __iomem *old_base, void __iomem *new_base)
30{
31 mv64x60_console_baud = KATANA_DEFAULT_BAUD;
32 mv64x60_mpsc_clk_src = KATANA_MPSC_CLK_SRC;
33 mv64x60_mpsc_clk_freq =
34 min(katana_bus_freq((void __iomem *)KATANA_CPLD_BASE),
35 MV64x60_TCLK_FREQ_MAX);
36}
37
38unsigned long
39get_mem_size(void)
40{
41 return mv64360_get_mem_size();
42}