0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __ASM_ARCH_LPD270_H
0010 #define __ASM_ARCH_LPD270_H
0011
0012 #define LPD270_CPLD_PHYS PXA_CS2_PHYS
0013 #define LPD270_CPLD_VIRT IOMEM(0xf0000000)
0014 #define LPD270_CPLD_SIZE 0x00100000
0015
0016 #define LPD270_ETH_PHYS (PXA_CS2_PHYS + 0x01000000)
0017
0018
0019 #define LPD270_CPLD_REG(x) (LPD270_CPLD_VIRT + (x))
0020 #define LPD270_CONTROL LPD270_CPLD_REG(0x00)
0021 #define LPD270_PERIPHERAL0 LPD270_CPLD_REG(0x04)
0022 #define LPD270_PERIPHERAL1 LPD270_CPLD_REG(0x08)
0023 #define LPD270_CPLD_REVISION LPD270_CPLD_REG(0x14)
0024 #define LPD270_EEPROM_SPI_ITF LPD270_CPLD_REG(0x20)
0025 #define LPD270_MODE_PINS LPD270_CPLD_REG(0x24)
0026 #define LPD270_EGPIO LPD270_CPLD_REG(0x30)
0027 #define LPD270_INT_MASK LPD270_CPLD_REG(0x40)
0028 #define LPD270_INT_STATUS LPD270_CPLD_REG(0x50)
0029
0030 #define LPD270_INT_AC97 (1 << 4)
0031 #define LPD270_INT_ETHERNET (1 << 3)
0032 #define LPD270_INT_USBC (1 << 2)
0033
0034 #define LPD270_IRQ(x) (IRQ_BOARD_START + (x))
0035 #define LPD270_USBC_IRQ LPD270_IRQ(2)
0036 #define LPD270_ETHERNET_IRQ LPD270_IRQ(3)
0037 #define LPD270_AC97_IRQ LPD270_IRQ(4)
0038 #define LPD270_NR_IRQS (IRQ_BOARD_START + 5)
0039
0040 #endif