Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / sh / boards / adx / setup.c
blob4938d9592343f99166781dd6c89780161a9c585f
1 /*
2 * linux/arch/sh/board/adx/setup.c
4 * Copyright (C) 2001 A&D Co., Ltd.
6 * I/O routine and setup routines for A&D ADX Board
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
14 #include <asm/machvec.h>
15 #include <linux/module.h>
17 extern void init_adx_IRQ(void);
18 extern void *cf_io_base;
20 const char *get_system_type(void)
22 return "A&D ADX";
25 unsigned long adx_isa_port2addr(unsigned long offset)
27 /* CompactFlash (IDE) */
28 if (((offset >= 0x1f0) && (offset <= 0x1f7)) || (offset == 0x3f6)) {
29 return (unsigned long)cf_io_base + offset;
32 /* eth0 */
33 if ((offset >= 0x300) && (offset <= 0x30f)) {
34 return 0xa5000000 + offset; /* COMM BOARD (AREA1) */
37 return offset + 0xb0000000; /* IOBUS (AREA 4)*/
41 * The Machine Vector
44 struct sh_machine_vector mv_adx __initmv = {
45 .mv_nr_irqs = 48,
46 .mv_isa_port2addr = adx_isa_port2addr,
47 .mv_init_irq = init_adx_IRQ,
49 ALIAS_MV(adx)
51 int __init platform_setup(void)
53 /* Nothing to see here .. */
54 return 0;