Path: blob/master/arch/arm/mach-pxa/include/mach/lpd270.h
10820 views
/*1* arch/arm/mach-pxa/include/mach/lpd270.h2*3* Author: Lennert Buytenhek4* Created: Feb 10, 20065*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License version 2 as8* published by the Free Software Foundation.9*/1011#ifndef __ASM_ARCH_LPD270_H12#define __ASM_ARCH_LPD270_H1314#define LPD270_CPLD_PHYS PXA_CS2_PHYS15#define LPD270_CPLD_VIRT 0xf000000016#define LPD270_CPLD_SIZE 0x001000001718#define LPD270_ETH_PHYS (PXA_CS2_PHYS + 0x01000000)1920/* CPLD registers */21#define LPD270_CPLD_REG(x) ((unsigned long)(LPD270_CPLD_VIRT + (x)))22#define LPD270_CONTROL LPD270_CPLD_REG(0x00)23#define LPD270_PERIPHERAL0 LPD270_CPLD_REG(0x04)24#define LPD270_PERIPHERAL1 LPD270_CPLD_REG(0x08)25#define LPD270_CPLD_REVISION LPD270_CPLD_REG(0x14)26#define LPD270_EEPROM_SPI_ITF LPD270_CPLD_REG(0x20)27#define LPD270_MODE_PINS LPD270_CPLD_REG(0x24)28#define LPD270_EGPIO LPD270_CPLD_REG(0x30)29#define LPD270_INT_MASK LPD270_CPLD_REG(0x40)30#define LPD270_INT_STATUS LPD270_CPLD_REG(0x50)3132#define LPD270_INT_AC97 (1 << 4) /* AC'97 CODEC IRQ */33#define LPD270_INT_ETHERNET (1 << 3) /* Ethernet controller IRQ */34#define LPD270_INT_USBC (1 << 2) /* USB client cable detection IRQ */3536#define LPD270_IRQ(x) (IRQ_BOARD_START + (x))37#define LPD270_USBC_IRQ LPD270_IRQ(2)38#define LPD270_ETHERNET_IRQ LPD270_IRQ(3)39#define LPD270_AC97_IRQ LPD270_IRQ(4)40#define LPD270_NR_IRQS (IRQ_BOARD_START + 5)4142#endif434445