Return to zaurus_scoopreg.h CVS log | Up to [local] / sys / arch / zaurus / dev |
File: [local] / sys / arch / zaurus / dev / zaurus_scoopreg.h (download)
Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:08:52 2008 UTC (16 years, 6 months ago) by nbrk
Import of OpenBSD 4.2 release kernel tree with initial code to support Jornada 720/728, StrongARM 1110-based handheld PC. At this point kernel roots on NFS and boots into vfs_mountroot() and traps. What is supported: - glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode (needs some palette tweaks for non black/white/blue colors, i think) - saic, SA11x0 interrupt controller (needs cleanup) - sacom, SA11x0 UART (supported only as boot console for now) - SA11x0 GPIO controller fully supported (but can't handle multiple interrupt handlers on one gpio pin) - sassp, SSP port on SA11x0 that attaches spibus - Jornada microcontroller (jmcu) to control kbd, battery, etc throught the SPI bus (wskbd attaches on jmcu, but not tested) - tod functions seem work - initial code for SA-1111 (chip companion) : this is TODO Next important steps, i think: - gpio and intc on sa1111 - pcmcia support for sa11x0 (and sa1111 help logic) - REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs) - root on wd0! (using already supported PCMCIA-ATA) |
/* $OpenBSD: zaurus_scoopreg.h,v 1.8 2007/03/18 20:50:23 uwe Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@bsdx.de> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #define SCOOP_SIZE 0x2c /* registers and values */ #define SCOOP_MCR 0x00 #define SCP_MCR_IOCARD 0x0010 #define SCOOP_CDR 0x04 /* card detect register */ #define SCP_CDR_DETECT 0x0002 #define SCOOP_CSR 0x08 /* card status register */ #define SCP_CSR_READY 0x0002 #define SCP_CSR_MISSING 0x0004 #define SCP_CSR_WPROT 0x0008 #define SCP_CSR_BVD1 0x0010 #define SCP_CSR_BVD2 0x0020 #define SCP_CSR_3V 0x0040 #define SCP_CSR_PWR 0x0080 #define SCOOP_CPR 0x0c /* card power register */ #define SCP_CPR_OFF 0x0000 #define SCP_CPR_3V 0x0001 /* 3V for CF card */ #define SCP_CPR_5V 0x0002 /* 5V for CF card */ #define SCP_CPR_SD_3V 0x0004 /* 3.3V for SD/MMC card */ #define SCP_CPR_VOLTAGE_MSK 0x0007 #define SCP_CPR_PWR 0x0080 #define SCOOP_CCR 0x10 /* card control register */ #define SCP_CCR_RESET 0x0080 #define SCOOP_IRR 0x14 /* XXX for pcic: bit 0x4 role is? */ #define SCOOP_IRM 0x14 #define SCOOP_IMR 0x18 #define SCP_IMR_READY 0x0002 #define SCP_IMR_DETECT 0x0004 #define SCP_IMR_WRPROT 0x0008 #define SCP_IMR_STSCHG 0x0010 #define SCP_IMR_BATWARN 0x0020 #define SCP_IMR_UNKN0 0x0040 #define SCP_IMR_UNKN1 0x0080 #define SCOOP_ISR 0x1c #define SCOOP_GPCR 0x20 /* GPIO pin direction (R/W) */ #define SCOOP_GPWR 0x24 /* GPIO pin output level (R/W) */ #define SCOOP_GPRR 0x28 /* GPIO pin input level (R) */ /* GPIO bits */ #define SCOOP0_LED_GREEN 1 #define SCOOP0_JK_B_C3000 2 #define SCOOP0_CHARGE_OFF_C3000 3 #define SCOOP0_MUTE_L 4 #define SCOOP0_MUTE_R 5 #define SCOOP0_AKIN_PULLUP 6 #define SCOOP0_CF_POWER_C3000 6 #define SCOOP0_APM_ON 7 #define SCOOP0_LED_ORANGE_C3000 7 #define SCOOP0_BACKLIGHT_CONT 8 #define SCOOP0_JK_A_C3000 8 #define SCOOP0_MIC_BIAS 9 #define SCOOP0_ADC_TEMP_ON_C3000 9 #define SCOOP1_IR_ON 1 #define SCOOP1_AKIN_PULLUP 2 #define SCOOP1_RESERVED_3 3 #define SCOOP1_RESERVED_4 4 #define SCOOP1_RESERVED_5 5 #define SCOOP1_RESERVED_6 6 #define SCOOP1_BACKLIGHT_CONT 7 #define SCOOP1_BACKLIGHT_ON 8 #define SCOOP1_MIC_BIAS 9