1 1.2 christos /* $NetBSD: gb225reg.h,v 1.2 2005/12/11 12:17:08 christos Exp $ */ 2 1.1 bsh 3 1.1 bsh /* 4 1.1 bsh * Copyright (c) 2002 Genetec corp. All rights reserved. 5 1.1 bsh * Written by Hiroyuki Bessho for Genetec corp. 6 1.1 bsh * 7 1.1 bsh * Redistribution and use in source and binary forms, with or without 8 1.1 bsh * modification, are permitted provided that the following conditions 9 1.1 bsh * are met: 10 1.1 bsh * 1. Redistributions of source code must retain the above copyright 11 1.1 bsh * notice, this list of conditions and the following disclaimer. 12 1.1 bsh * 2. Redistributions in binary form must reproduce the above copyright 13 1.1 bsh * notice, this list of conditions and the following disclaimer in the 14 1.1 bsh * documentation and/or other materials provided with the distribution. 15 1.1 bsh * 3. The name of Genetec corp. may not be used to endorse 16 1.1 bsh * or promote products derived from this software without specific prior 17 1.1 bsh * written permission. 18 1.1 bsh * 19 1.1 bsh * THIS SOFTWARE IS PROVIDED BY GENETEC CORP. ``AS IS'' AND 20 1.1 bsh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 1.1 bsh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 1.1 bsh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENETEC CORP. 23 1.1 bsh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 1.1 bsh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 1.1 bsh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 1.1 bsh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 1.1 bsh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 1.1 bsh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 1.1 bsh * POSSIBILITY OF SUCH DAMAGE. 30 1.1 bsh */ 31 1.1 bsh 32 1.1 bsh #ifndef _EVBARM_GB225_REG_H 33 1.1 bsh #define _EVBARM_GB225_REG_H 34 1.1 bsh 35 1.1 bsh #include <arm/xscale/pxa2x0reg.h> 36 1.1 bsh 37 1.1 bsh #define GB225_PLDREG_BASE PXA2X0_CS4_START 38 1.1 bsh #define GB225_PLDREG_SIZE 0x0a 39 1.1 bsh 40 1.1 bsh #define GB225_CFDET 0 /* CompactFlash slot card detect */ 41 1.1 bsh #define GB225_PCMCIADET 2 /* PCMCIA slot card detect */ 42 1.1 bsh #define CARDDET_DET 0x03 43 1.1 bsh #define CARDDET_BVD1 (1<<2) 44 1.1 bsh #define CARDDET_BVD2 (1<<3) 45 1.1 bsh #define CARDDET_NVS1 (1<<4) 46 1.1 bsh #define CARDDET_NVS2 (1<<5) 47 1.1 bsh #define CARDDET_NOCARD 0x3f 48 1.1 bsh #define GB225_CARDPOW 4 /* card power supply control */ 49 1.1 bsh #define CARDPOW_PCMCIA_SHIFT 0 50 1.1 bsh #define CARDPOW_CF_SHIFT 4 51 1.1 bsh #define CARDPOW_VPP0 0x00 52 1.1 bsh #define CARDPOW_VPP12 0x01 53 1.1 bsh #define CARDPOW_VPPVCC 0x02 54 1.1 bsh #define CARDPOW_VPPHIZ 0x03 55 1.1 bsh #define CARDPOW_VCC0 0x00 56 1.1 bsh #define CARDPOW_VCC33 0x04 /* 3.3V */ 57 1.1 bsh #define CARDPOW_VCC5 0x08 58 1.1 bsh #define CARDPOW_MASK 0x0f 59 1.1 bsh #define CARDPOW_VPPMASK 0x03 60 1.1 bsh #define CARDPOW_VCCMASK 0x0c 61 1.1 bsh 62 1.1 bsh #define GB225_IRDA_CONT 6 /* IrDA control */ 63 1.1 bsh #define IRDACONT_SIRFULL 0 64 1.1 bsh #define IRDACONT_SHUTDOWN 1 65 1.1 bsh #define IRDACONT_SIR2 2 /* 2/3 */ 66 1.1 bsh #define IRDACONT_SIR1 3 /* 1/3 */ 67 1.1 bsh #define IRDACONT_FIRFULL 4 68 1.1 bsh #define IRDACONT_FIR2 6 /* 2/3 */ 69 1.1 bsh #define IRDACONT_FIR1 7 /* 1/3 */ 70 1.1 bsh 71 1.1 bsh #define GB225_DEVERROR 8 72 1.1 bsh #define DEVERROR_CARD (1<<0) /* CF/PCMCIA power failure */ 73 1.1 bsh #define DEVERROR_USB (1<<1) /* USB power failure */ 74 1.1 bsh 75 1.1 bsh #endif /* _EVBARM_GB225_REG_H */ 76