blob: 94f6165d33b8f64802bbaf4a4e56b4cb3e3c8b98 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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
Linus Torvalds1da177e2005-04-16 15:20:36 -070020const char *get_system_type(void)
21{
22 return "SH7750 Overdrive";
23}
24
25/*
26 * Initialize the board
27 */
28int __init platform_setup(void)
29{
30#ifdef CONFIG_PCI
31 init_overdrive_fpga();
Paul Mundt36ddf312006-01-16 22:14:17 -080032 galileo_init();
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#endif
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035 /* Enable RS232 receive buffers */
36 writel(0x1e, OVERDRIVE_CTRL);
37}