Path: blob/master/arch/arm/mach-h720x/include/mach/h7202-regs.h
17728 views
/*1* arch/arm/mach-h720x/include/mach/h7202-regs.h2*3* Copyright (C) 2000 Jungjun Kim, Hynix Semiconductor Inc.4* (C) 2003 Thomas Gleixner <[email protected]>5* (C) 2003 Robert Schwebel <[email protected]>6* (C) 2004 Sascha Hauer <[email protected]>7*8* This file contains the hardware definitions of the h720x processors9*10* This program is free software; you can redistribute it and/or modify11* it under the terms of the GNU General Public License version 2 as12* published by the Free Software Foundation.13*14* Do not add implementations specific defines here. This files contains15* only defines of the onchip peripherals. Add those defines to boards.h,16* which is included by this file.17*/1819#define SERIAL2_OFS 0x2d00020#define SERIAL2_BASE (IO_PHYS + SERIAL2_OFS)21#define SERIAL2_VIRT (IO_VIRT + SERIAL2_OFS)22#define SERIAL3_OFS 0x2e00023#define SERIAL3_BASE (IO_PHYS + SERIAL3_OFS)24#define SERIAL3_VIRT (IO_VIRT + SERIAL3_OFS)2526/* Matrix Keyboard Controller */27#define KBD_VIRT (IO_VIRT + 0x22000)28#define KBD_KBCR 0x0029#define KBD_KBSC 0x0430#define KBD_KBTR 0x0831#define KBD_KBVR0 0x0C32#define KBD_KBVR1 0x1033#define KBD_KBSR 0x183435#define KBD_KBCR_SCANENABLE (1 << 7)36#define KBD_KBCR_NPOWERDOWN (1 << 2)37#define KBD_KBCR_CLKSEL_MASK (3)38#define KBD_KBCR_CLKSEL_PCLK2 0x039#define KBD_KBCR_CLKSEL_PCLK128 0x140#define KBD_KBCR_CLKSEL_PCLK256 0x241#define KBD_KBCR_CLKSEL_PCLK512 0x34243#define KBD_KBSR_INTR (1 << 0)44#define KBD_KBSR_WAKEUP (1 << 1)4546/* USB device controller */4748#define USBD_BASE (IO_VIRT + 0x12000)49#define USBD_LENGTH 0x3C5051#define USBD_GCTRL 0x0052#define USBD_EPCTRL 0x0453#define USBD_INTMASK 0x0854#define USBD_INTSTAT 0x0C55#define USBD_PWR 0x1056#define USBD_DMARXTX 0x1457#define USBD_DEVID 0x1858#define USBD_DEVCLASS 0x1C59#define USBD_INTCLASS 0x2060#define USBD_SETUP0 0x2461#define USBD_SETUP1 0x2862#define USBD_ENDP0RD 0x2C63#define USBD_ENDP0WT 0x3064#define USBD_ENDP1RD 0x3465#define USBD_ENDP2WT 0x386667/* PS/2 port */68#define PSDATA 0x0069#define PSSTAT 0x0470#define PSSTAT_TXEMPTY (1<<0)71#define PSSTAT_TXBUSY (1<<1)72#define PSSTAT_RXFULL (1<<2)73#define PSSTAT_RXBUSY (1<<3)74#define PSSTAT_CLKIN (1<<4)75#define PSSTAT_DATAIN (1<<5)76#define PSSTAT_PARITY (1<<6)7778#define PSCONF 0x0879#define PSCONF_ENABLE (1<<0)80#define PSCONF_TXINTEN (1<<2)81#define PSCONF_RXINTEN (1<<3)82#define PSCONF_FORCECLKLOW (1<<4)83#define PSCONF_FORCEDATLOW (1<<5)84#define PSCONF_LCE (1<<6)8586#define PSINTR 0x0C87#define PSINTR_TXINT (1<<0)88#define PSINTR_RXINT (1<<1)89#define PSINTR_PAR (1<<2)90#define PSINTR_RXTO (1<<3)91#define PSINTR_TXTO (1<<4)9293#define PSTDLO 0x10 /* clk low before start transmission */94#define PSTPRI 0x14 /* PRI clock */95#define PSTXMT 0x18 /* maximum transmission time */96#define PSTREC 0x20 /* maximum receive time */97#define PSPWDN 0x3c9899/* ADC converter */100#define ADC_BASE (IO_VIRT + 0x29000)101#define ADC_CR 0x00102#define ADC_TSCTRL 0x04103#define ADC_BT_CTRL 0x08104#define ADC_MC_CTRL 0x0C105#define ADC_STATUS 0x10106107/* ADC control register bits */108#define ADC_CR_PW_CTRL 0x80109#define ADC_CR_DIRECTC 0x04110#define ADC_CR_CONTIME_NO 0x00111#define ADC_CR_CONTIME_2 0x04112#define ADC_CR_CONTIME_4 0x08113#define ADC_CR_CONTIME_ADE 0x0c114#define ADC_CR_LONGCALTIME 0x01115116/* ADC touch panel register bits */117#define ADC_TSCTRL_ENABLE 0x80118#define ADC_TSCTRL_INTR 0x40119#define ADC_TSCTRL_SWBYPSS 0x20120#define ADC_TSCTRL_SWINVT 0x10121#define ADC_TSCTRL_S400 0x03122#define ADC_TSCTRL_S200 0x02123#define ADC_TSCTRL_S100 0x01124#define ADC_TSCTRL_S50 0x00125126/* ADC Interrupt Status Register bits */127#define ADC_STATUS_TS_BIT 0x80128#define ADC_STATUS_MBT_BIT 0x40129#define ADC_STATUS_BBT_BIT 0x20130#define ADC_STATUS_MIC_BIT 0x10131132/* Touch data registers */133#define ADC_TS_X0X1 0x30134#define ADC_TS_X2X3 0x34135#define ADC_TS_Y0Y1 0x38136#define ADC_TS_Y2Y3 0x3c137#define ADC_TS_X4X5 0x40138#define ADC_TS_X6X7 0x44139#define ADC_TS_Y4Y5 0x48140#define ADC_TS_Y6Y7 0x50141142/* battery data */143#define ADC_MB_DATA 0x54144#define ADC_BB_DATA 0x58145146/* Sound data register */147#define ADC_SD_DAT0 0x60148#define ADC_SD_DAT1 0x64149#define ADC_SD_DAT2 0x68150#define ADC_SD_DAT3 0x6c151#define ADC_SD_DAT4 0x70152#define ADC_SD_DAT5 0x74153#define ADC_SD_DAT6 0x78154#define ADC_SD_DAT7 0x7c155156157