diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/sh/boards/overdrive/setup.c |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/sh/boards/overdrive/setup.c')
-rw-r--r-- | arch/sh/boards/overdrive/setup.c | 41 |
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 000000000000..a36ce0284ed3 --- /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 | |||
20 | extern void od_time_init(void); | ||
21 | |||
22 | const char *get_system_type(void) | ||
23 | { | ||
24 | return "SH7750 Overdrive"; | ||
25 | } | ||
26 | |||
27 | /* | ||
28 | * Initialize the board | ||
29 | */ | ||
30 | int __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 | } | ||