mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / southbridge / intel / i82801gx / acpi / sata.asl
blobefa1b9df765974a3a8ee98c5d535a522e4651d25
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 // Intel SATA Controller 0:1f.2
5 // Note: Some BIOSes put the S-ATA code into an SSDT to make it easily
6 // pluggable
8 Device (SATA)
10         Name (_ADR, 0x001f0002)
12         Device (PRID)
13         {
14                 Name (_ADR, 0)
16                 // Get Timing Mode
17                 Method (_GTM, 0, Serialized)
18                 {
19                         Name(PBUF, Buffer(20) {
20                                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
21                                 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
22                                 0x00,0x00,0x00,0x00 })
24                         CreateDwordField (PBUF,  0, PIO0)
25                         CreateDwordField (PBUF,  4, DMA0)
26                         CreateDwordField (PBUF,  8, PIO1)
27                         CreateDwordField (PBUF, 12, DMA1)
28                         CreateDwordField (PBUF, 16, FLAG)
30                         // TODO fill return structure
32                         Return (PBUF)
33                 }
35                 // Set Timing Mode
36                 Method (_STM, 3)
37                 {
38                         CreateDwordField (Arg0,  0, PIO0)
39                         CreateDwordField (Arg0,  4, DMA0)
40                         CreateDwordField (Arg0,  8, PIO1)
41                         CreateDwordField (Arg0, 12, DMA1)
42                         CreateDwordField (Arg0, 16, FLAG)
44                         // TODO: Do the deed
45                 }
47                 Device (DSK0)
48                 {
49                         Name (_ADR, 0)
50                         // TODO: _RMV ?
51                         // TODO: _GTF ?
52                 }
54                 Device (DSK1)
55                 {
56                         Name (_ADR, 1)
58                         // TODO: _RMV ?
59                         // TODO: _GTF ?
60                 }
62         }