Go to the documentation of this file.
23 #ifndef MFD_TIMBERDALE_H
24 #define MFD_TIMBERDALE_H
26 #define DRV_VERSION "0.3"
29 #define TIMB_SUPPORTED_MAJOR 3
32 #define TIMB_REQUIRED_MINOR 8
35 #define TIMB_REV_MAJOR 0x00
36 #define TIMB_REV_MINOR 0x04
37 #define TIMB_HW_CONFIG 0x08
38 #define TIMB_SW_RST 0x40
41 #define TIMB_HW_CONFIG_SPI_8BIT 0x80
43 #define TIMB_HW_VER_MASK 0x0f
44 #define TIMB_HW_VER0 0x00
45 #define TIMB_HW_VER1 0x01
46 #define TIMB_HW_VER2 0x02
47 #define TIMB_HW_VER3 0x03
49 #define OCORESOFFSET 0x0
50 #define OCORESEND 0x1f
52 #define SPIOFFSET 0x80
55 #define UARTLITEOFFSET 0x100
56 #define UARTLITEEND 0x10f
58 #define RDSOFFSET 0x180
61 #define ETHOFFSET 0x300
64 #define GPIOOFFSET 0x400
67 #define CHIPCTLOFFSET 0x800
68 #define CHIPCTLEND 0x8ff
69 #define CHIPCTLSIZE (CHIPCTLEND - CHIPCTLOFFSET + 1)
71 #define INTCOFFSET 0xc00
73 #define INTCSIZE (INTCEND - INTCOFFSET)
75 #define MOSTOFFSET 0x1000
76 #define MOSTEND 0x13ff
78 #define UARTOFFSET 0x1400
79 #define UARTEND 0x17ff
81 #define XIICOFFSET 0x1800
82 #define XIICEND 0x19ff
84 #define I2SOFFSET 0x1C00
87 #define LOGIWOFFSET 0x30000
88 #define LOGIWEND 0x37fff
90 #define MLCOREOFFSET 0x40000
91 #define MLCOREEND 0x43fff
93 #define DMAOFFSET 0x01000000
94 #define DMAEND 0x013fffff
97 #define SDHC0OFFSET 0x00
101 #define SDHC1OFFSET 0x00
102 #define SDHC1END 0xff
104 #define PCI_VENDOR_ID_TIMB 0x10ee
105 #define PCI_DEVICE_ID_TIMB 0xa123
107 #define IRQ_TIMBERDALE_INIC 0
108 #define IRQ_TIMBERDALE_MLB 1
109 #define IRQ_TIMBERDALE_GPIO 2
110 #define IRQ_TIMBERDALE_I2C 3
111 #define IRQ_TIMBERDALE_UART 4
112 #define IRQ_TIMBERDALE_DMA 5
113 #define IRQ_TIMBERDALE_I2S 6
114 #define IRQ_TIMBERDALE_TSC_INT 7
115 #define IRQ_TIMBERDALE_SDHC 8
116 #define IRQ_TIMBERDALE_ADV7180 9
117 #define IRQ_TIMBERDALE_ETHSW_IF 10
118 #define IRQ_TIMBERDALE_SPI 11
119 #define IRQ_TIMBERDALE_UARTLITE 12
120 #define IRQ_TIMBERDALE_MLCORE 13
121 #define IRQ_TIMBERDALE_MLCORE_BUF 14
122 #define IRQ_TIMBERDALE_RDS 15
123 #define TIMBERDALE_NR_IRQS 16
125 #define GPIO_PIN_ASCB 8
126 #define GPIO_PIN_INIC_RST 14
127 #define GPIO_PIN_BT_RST 15
128 #define GPIO_NR_PINS 16
131 #define DMA_UART_RX 0
132 #define DMA_UART_TX 1
135 #define DMA_VIDEO_RX 4
136 #define DMA_VIDEO_DROP 5
137 #define DMA_SDHCI_RX 6
138 #define DMA_SDHCI_TX 7