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
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)
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
;
33 if ((offset
>= 0x300) && (offset
<= 0x30f)) {
34 return 0xa5000000 + offset
; /* COMM BOARD (AREA1) */
37 return offset
+ 0xb0000000; /* IOBUS (AREA 4)*/
44 struct sh_machine_vector mv_adx __initmv
= {
46 .mv_isa_port2addr
= adx_isa_port2addr
,
47 .mv_init_irq
= init_adx_IRQ
,
51 int __init
platform_setup(void)
53 /* Nothing to see here .. */