Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #include <linux/kernel.h> |
| 13 | #include <linux/init.h> |
| 14 | #include <asm/io.h> |
| 15 | |
| 16 | #include <asm/overdrive/overdrive.h> |
| 17 | #include <asm/overdrive/fpga.h> |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | const char *get_system_type(void) |
| 20 | { |
| 21 | return "SH7750 Overdrive"; |
| 22 | } |
| 23 | |
| 24 | /* |
| 25 | * Initialize the board |
| 26 | */ |
| 27 | int __init platform_setup(void) |
| 28 | { |
| 29 | #ifdef CONFIG_PCI |
| 30 | init_overdrive_fpga(); |
Paul Mundt | 36ddf31 | 2006-01-16 22:14:17 -0800 | [diff] [blame] | 31 | galileo_init(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | #endif |
| 33 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | /* Enable RS232 receive buffers */ |
| 35 | writel(0x1e, OVERDRIVE_CTRL); |
| 36 | } |