/*1* linux/include/asm-arm/hardware/amba_kmi.h2*3* Internal header file for AMBA KMI ports4*5* Copyright (C) 2000 Deep Blue Solutions Ltd.6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA20*21*22* ---------------------------------------------------------------------------23* From ARM PrimeCell(tm) PS2 Keyboard/Mouse Interface (PL050) Technical24* Reference Manual - ARM DDI 0143B - see http://www.arm.com/25* ---------------------------------------------------------------------------26*/27#ifndef ASM_ARM_HARDWARE_AMBA_KMI_H28#define ASM_ARM_HARDWARE_AMBA_KMI_H2930/*31* KMI control register:32* KMICR_TYPE 0 = PS2/AT mode, 1 = No line control bit mode33* KMICR_RXINTREN 1 = enable RX interrupts34* KMICR_TXINTREN 1 = enable TX interrupts35* KMICR_EN 1 = enable KMI36* KMICR_FD 1 = force KMI data low37* KMICR_FC 1 = force KMI clock low38*/39#define KMICR (KMI_BASE + 0x00)40#define KMICR_TYPE (1 << 5)41#define KMICR_RXINTREN (1 << 4)42#define KMICR_TXINTREN (1 << 3)43#define KMICR_EN (1 << 2)44#define KMICR_FD (1 << 1)45#define KMICR_FC (1 << 0)4647/*48* KMI status register:49* KMISTAT_TXEMPTY 1 = transmitter register empty50* KMISTAT_TXBUSY 1 = currently sending data51* KMISTAT_RXFULL 1 = receiver register ready to be read52* KMISTAT_RXBUSY 1 = currently receiving data53* KMISTAT_RXPARITY parity of last databyte received54* KMISTAT_IC current level of KMI clock input55* KMISTAT_ID current level of KMI data input56*/57#define KMISTAT (KMI_BASE + 0x04)58#define KMISTAT_TXEMPTY (1 << 6)59#define KMISTAT_TXBUSY (1 << 5)60#define KMISTAT_RXFULL (1 << 4)61#define KMISTAT_RXBUSY (1 << 3)62#define KMISTAT_RXPARITY (1 << 2)63#define KMISTAT_IC (1 << 1)64#define KMISTAT_ID (1 << 0)6566/*67* KMI data register68*/69#define KMIDATA (KMI_BASE + 0x08)7071/*72* KMI clock divisor: to generate 8MHz internal clock73* div = (ref / 8MHz) - 1; 0 <= div <= 1574*/75#define KMICLKDIV (KMI_BASE + 0x0c)7677/*78* KMI interrupt register:79* KMIIR_TXINTR 1 = transmit interrupt asserted80* KMIIR_RXINTR 1 = receive interrupt asserted81*/82#define KMIIR (KMI_BASE + 0x10)83#define KMIIR_TXINTR (1 << 1)84#define KMIIR_RXINTR (1 << 0)8586/*87* The size of the KMI primecell88*/89#define KMI_SIZE (0x100)9091#endif929394