1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* The below definitions are used for customization
4 * Some boards/devices may need different data hold time
6 #ifndef BOARD_I2C1_DATA_HOLD_TIME
7 #define BOARD_I2C1_DATA_HOLD_TIME 6
10 #ifndef BOARD_I2C2_DATA_HOLD_TIME
11 #define BOARD_I2C2_DATA_HOLD_TIME 6
14 #ifndef BOARD_I2C3_DATA_HOLD_TIME
15 #define BOARD_I2C3_DATA_HOLD_TIME 6
18 #ifndef BOARD_I2C4_DATA_HOLD_TIME
19 #define BOARD_I2C4_DATA_HOLD_TIME 6
22 #ifndef BOARD_I2C5_DATA_HOLD_TIME
23 #define BOARD_I2C5_DATA_HOLD_TIME 6
26 #ifndef BOARD_I2C6_DATA_HOLD_TIME
27 #define BOARD_I2C6_DATA_HOLD_TIME 6
30 #ifndef BOARD_I2C7_DATA_HOLD_TIME
31 #define BOARD_I2C7_DATA_HOLD_TIME 6
36 Name (_HID, "INTL9C60")
38 Name (_DDN, "DMA Controller #1")
40 Name (RBUF, ResourceTemplate()
42 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
43 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
51 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
68 Name (_HID, "INTL9C60")
70 Name (_DDN, "DMA Controller #2")
72 Name (RBUF, ResourceTemplate()
74 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
75 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
83 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
100 Name (_HID, "808622C1")
102 Name (_DDN, "I2C Controller #1")
104 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
105 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C1_DATA_HOLD_TIME })
107 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
108 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C1_DATA_HOLD_TIME })
110 Name (RBUF, ResourceTemplate()
112 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
113 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
117 FixedDMA (0x10, 0x0, Width32Bit, )
118 FixedDMA (0x11, 0x1, Width32Bit, )
123 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
137 OperationRegion (KEYS, SystemMemory, S1B1, 0x100)
138 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
159 Name (_HID, "808622C1")
161 Name (_DDN, "I2C Controller #2")
163 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
164 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C2_DATA_HOLD_TIME })
166 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
167 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C2_DATA_HOLD_TIME })
169 Name (RBUF, ResourceTemplate()
171 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
172 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
176 FixedDMA (0x12, 0x2, Width32Bit, )
177 FixedDMA (0x13, 0x3, Width32Bit, )
182 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
196 OperationRegion (KEYS, SystemMemory, S2B1, 0x100)
197 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
218 Name (_HID, "808622C1")
220 Name (_DDN, "I2C Controller #3")
222 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
223 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C3_DATA_HOLD_TIME })
225 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
226 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C3_DATA_HOLD_TIME })
228 Name (RBUF, ResourceTemplate()
230 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
231 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
235 FixedDMA (0x14, 0x4, Width32Bit, )
236 FixedDMA (0x15, 0x5, Width32Bit, )
241 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
255 OperationRegion (KEYS, SystemMemory, S3B1, 0x100)
256 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
277 Name (_HID, "808622C1")
279 Name (_DDN, "I2C Controller #4")
281 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
282 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C4_DATA_HOLD_TIME })
284 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
285 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C4_DATA_HOLD_TIME })
287 Name (RBUF, ResourceTemplate()
289 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
290 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
294 FixedDMA (0x16, 0x6, Width32Bit, )
295 FixedDMA (0x17, 0x7, Width32Bit, )
300 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
314 OperationRegion (KEYS, SystemMemory, S4B1, 0x100)
315 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
336 Name (_HID, "808622C1")
338 Name (_DDN, "I2C Controller #5")
340 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
341 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C5_DATA_HOLD_TIME })
343 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
344 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C5_DATA_HOLD_TIME })
346 Name (RBUF, ResourceTemplate()
348 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
349 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
353 FixedDMA (0x18, 0x0, Width32Bit, )
354 FixedDMA (0x19, 0x1, Width32Bit, )
359 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
373 OperationRegion (KEYS, SystemMemory, S5B1, 0x100)
374 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
395 Name (_HID, "808622C1")
397 Name (_DDN, "I2C Controller #6")
399 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
400 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C6_DATA_HOLD_TIME })
402 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
403 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C6_DATA_HOLD_TIME })
405 Name (RBUF, ResourceTemplate()
407 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
408 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
412 FixedDMA (0x1A, 0x2, Width32Bit, )
413 FixedDMA (0x1B, 0x3, Width32Bit, )
418 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
432 OperationRegion (KEYS, SystemMemory, S6B1, 0x100)
433 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
454 Name (_HID, "808622C1")
456 Name (_DDN, "I2C Controller #7")
458 /* Standard Mode: HCNT, LCNT, SDA Hold Time */
459 Name (SSCN, Package () { 0x200, 0x200, BOARD_I2C7_DATA_HOLD_TIME })
461 /* Fast Mode: HCNT, LCNT, SDA Hold Time */
462 Name (FMCN, Package () { 0x55, 0x99, BOARD_I2C7_DATA_HOLD_TIME })
464 Name (RBUF, ResourceTemplate()
466 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
467 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
471 FixedDMA (0x1C, 0x4, Width32Bit, )
472 FixedDMA (0x1D, 0x5, Width32Bit, )
477 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
491 OperationRegion (KEYS, SystemMemory, S7B1, 0x100)
492 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
513 Name (_HID, "8086228A")
515 Name (_DDN, "HS-UART Controller #1")
517 Name (RBUF, ResourceTemplate()
519 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
520 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
524 FixedDMA (0x2, 0x2, Width32Bit, )
525 FixedDMA (0x3, 0x3, Width32Bit, )
530 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
544 OperationRegion (KEYS, SystemMemory, SCB1, 0x100)
545 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
566 Name (_HID, "8086228A")
568 Name (_DDN, "HS-UART Controller #2")
570 Name (RBUF, ResourceTemplate()
572 Memory32Fixed (ReadWrite, 0, 0x1000, BAR0)
573 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive,,,)
577 FixedDMA (0x4, 0x4, Width32Bit, )
578 FixedDMA (0x5, 0x5, Width32Bit, )
583 CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
597 OperationRegion (KEYS, SystemMemory, SDB1, 0x100)
598 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)