aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/overdrive/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/overdrive/setup.c')
-rw-r--r--arch/sh/boards/overdrive/setup.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/sh/boards/overdrive/setup.c b/arch/sh/boards/overdrive/setup.c
new file mode 100644
index 00000000000..a36ce0284ed
--- /dev/null
+++ b/arch/sh/boards/overdrive/setup.c
@@ -0,0 +1,41 @@
1/*
2 * arch/sh/overdrive/setup.c
3 *
4 * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
5 *
6 * May be copied or modified under the terms of the GNU General Public
7 * License. See linux/COPYING for more information.
8 *
9 * STMicroelectronics Overdrive Support.
10 */
11
12#include <linux/config.h>
13#include <linux/kernel.h>
14#include <linux/init.h>
15#include <asm/io.h>
16
17#include <asm/overdrive/overdrive.h>
18#include <asm/overdrive/fpga.h>
19
20extern void od_time_init(void);
21
22const char *get_system_type(void)
23{
24 return "SH7750 Overdrive";
25}
26
27/*
28 * Initialize the board
29 */
30int __init platform_setup(void)
31{
32#ifdef CONFIG_PCI
33 init_overdrive_fpga();
34 galileo_init();
35#endif
36
37 board_time_init = od_time_init;
38
39 /* Enable RS232 receive buffers */
40 writel(0x1e, OVERDRIVE_CTRL);
41}