1 /* $NetBSD: omap2_obioreg.h,v 1.2 2008/10/21 18:50:25 matt Exp $ */
4 * Copyright (c) 2007 Microsoft
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed by Microsoft
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
20 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTERS BE LIABLE FOR ANY DIRECT,
23 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 #ifndef _ARM_OMAP_OMAP2_OBIOREG_H_
32 #define _ARM_OMAP_OMAP2_OBIOREG_H_
34 #include <arm/omap/omap2_reg.h>
36 #if defined(OMAP_2430) || defined(OMAP_2420)
37 #define OMAP2_OBIO_0_BASE OMAP2430_L4_CORE_BASE
38 #define OMAP2_OBIO_0_SIZE OMAP2430_L4_CORE_SIZE
40 #define OMAP2_OBIO_1_BASE OMAP2430_L4_WAKEUP_BASE
41 #define OMAP2_OBIO_1_SIZE OMAP2430_L4_WAKEUP_SIZE
44 #if defined(OMAP_2420)
45 #define GPIO1_BASE GPIO1_BASE_2420
46 #define GPIO2_BASE GPIO2_BASE_2420
47 #define GPIO3_BASE GPIO3_BASE_2420
48 #define GPIO4_BASE GPIO4_BASE_2420
51 #if defined(OMAP_2430)
52 #define GPIO1_BASE GPIO1_BASE_2430
53 #define GPIO2_BASE GPIO2_BASE_2430
54 #define GPIO3_BASE GPIO3_BASE_2430
55 #define GPIO4_BASE GPIO4_BASE_2430
56 #define GPIO5_BASE GPIO5_BASE_2430
59 #if defined(OMAP_3530)
60 #define OMAP2_OBIO_0_BASE OMAP3530_L4_CORE_BASE
61 #define OMAP2_OBIO_0_SIZE OMAP3530_L4_CORE_SIZE
63 #define OMAP2_OBIO_1_BASE OMAP3530_L4_WAKEUP_BASE
64 #define OMAP2_OBIO_1_SIZE OMAP3530_L4_WAKEUP_SIZE
66 #define OMAP2_OBIO_2_BASE OMAP3530_L4_PERIPHERAL_BASE
67 #define OMAP2_OBIO_2_SIZE OMAP3530_L4_PERIPHERAL_SIZE
69 #define OMAP2_OBIO_3_BASE OMAP3530_L4_EMULATION_BASE
70 #define OMAP2_OBIO_3_SIZE OMAP3530_L4_EMULATION_SIZE
72 #define GPIO1_BASE GPIO1_BASE_3530
73 #define GPIO2_BASE GPIO2_BASE_3530
74 #define GPIO3_BASE GPIO3_BASE_3530
75 #define GPIO4_BASE GPIO4_BASE_3530
76 #define GPIO5_BASE GPIO5_BASE_3530
79 #endif /* _ARM_OMAP_OMAP2_OBIOREG_H_ */