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