ixdp425reg.h revision 1.7 1 1.7 rmind /* $NetBSD: ixdp425reg.h,v 1.7 2009/10/21 14:15:51 rmind Exp $ */
2 1.1 ichiro /*
3 1.1 ichiro * Copyright (c) 2003
4 1.1 ichiro * Ichiro FUKUHARA <ichiro (at) ichiro.org>.
5 1.1 ichiro * All rights reserved.
6 1.1 ichiro *
7 1.1 ichiro * Redistribution and use in source and binary forms, with or without
8 1.1 ichiro * modification, are permitted provided that the following conditions
9 1.1 ichiro * are met:
10 1.1 ichiro * 1. Redistributions of source code must retain the above copyright
11 1.1 ichiro * notice, this list of conditions and the following disclaimer.
12 1.1 ichiro * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 ichiro * notice, this list of conditions and the following disclaimer in the
14 1.1 ichiro * documentation and/or other materials provided with the distribution.
15 1.1 ichiro *
16 1.1 ichiro * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA ``AS IS'' AND ANY EXPRESS OR
17 1.1 ichiro * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 ichiro * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 ichiro * IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS HEAD BE LIABLE FOR
20 1.1 ichiro * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 1.1 ichiro * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 1.1 ichiro * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 1.1 ichiro * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 1.1 ichiro * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.1 ichiro * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.1 ichiro * SUCH DAMAGE.
27 1.1 ichiro */
28 1.1 ichiro
29 1.2 ichiro #ifndef _IXDP425REG_H_
30 1.2 ichiro #define _IXDP425REG_H_
31 1.1 ichiro
32 1.4 scw #include "opt_evbarm_boardtype.h"
33 1.4 scw
34 1.4 scw #define ixdp425 1
35 1.4 scw #define zao425 2
36 1.4 scw
37 1.1 ichiro /*
38 1.3 ichiro * Interrupt & GPIO
39 1.1 ichiro */
40 1.1 ichiro
41 1.4 scw #if EVBARM_BOARDTYPE == ixdp425
42 1.3 ichiro /* GPIOs */
43 1.3 ichiro #define GPIO_PCI_CLK 14
44 1.3 ichiro #define GPIO_PCI_RESET 13
45 1.3 ichiro #define GPIO_PCI_INTA 11
46 1.3 ichiro #define GPIO_PCI_INTB 10
47 1.3 ichiro #define GPIO_PCI_INTC 9
48 1.3 ichiro #define GPIO_PCI_INTD 8
49 1.5 scw #define GPIO_I2C_SDA 7
50 1.5 scw #define GPIO_I2C_SCL 6
51 1.3 ichiro /* Interrupt */
52 1.3 ichiro #define PCI_INT_A IXP425_INT_GPIO_11
53 1.3 ichiro #define PCI_INT_B IXP425_INT_GPIO_10
54 1.3 ichiro #define PCI_INT_C IXP425_INT_GPIO_9
55 1.3 ichiro #define PCI_INT_D IXP425_INT_GPIO_8
56 1.4 scw #endif /* EVBARM_BOARDTYPE == ixdp425 */
57 1.1 ichiro
58 1.4 scw #if EVBARM_BOARDTYPE == zao425 /* conf/ZAO425 */
59 1.3 ichiro /* GPIOs */
60 1.3 ichiro #define GPIO_PCI_CLK 14
61 1.3 ichiro #define GPIO_PCI_RESET 13
62 1.3 ichiro #define GPIO_PCI_INTA 11
63 1.3 ichiro #define GPIO_PCI_INTB 10
64 1.3 ichiro #define GPIO_PCI_INTC 9
65 1.3 ichiro #define GPIO_PCI_INTD 8
66 1.5 scw #define GPIO_I2C_SDA 7
67 1.5 scw #define GPIO_I2C_SCL 6
68 1.3 ichiro /* Interrupt */
69 1.2 ichiro #define MPCI_GPIO0 IXP425_INT_GPIO_12
70 1.3 ichiro #define PCI_INT_A IXP425_INT_GPIO_11
71 1.3 ichiro #define PCI_INT_B IXP425_INT_GPIO_10
72 1.3 ichiro #define PCI_INT_C IXP425_INT_GPIO_9
73 1.3 ichiro #define PCI_INT_D IXP425_INT_GPIO_8
74 1.2 ichiro #define MPCI_GPIO3 IXP425_INT_GPIO_5
75 1.2 ichiro #define HSS0_INT IXP425_INT_GPIO_4
76 1.2 ichiro #define HSS0_SCLK IXP425_INT_GPIO_3
77 1.2 ichiro #define HSS0_SDI IXP425_INT_GPIO_2
78 1.2 ichiro #define HSS0_SDO IXP425_INT_GPIO_1
79 1.2 ichiro #define HSS0_CS IXP425_INT_GPIO_0
80 1.4 scw #endif /* EVBARM_BOARDTYPE == zao425 */
81 1.1 ichiro
82 1.2 ichiro #endif /* _IXDP425REG_H_ */
83