V Sowmya | 0f30795 | 2017-07-18 12:08:13 +0530 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2017 Intel Corporation. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | Scope (\_SB.PCI0.I2C2) |
| 17 | { |
| 18 | Device (PMIC) |
| 19 | { |
| 20 | Name (_HID, "INT3472") /* _HID: Hardware ID */ |
| 21 | Name (_UID, Zero) // _UID: Unique ID */ |
| 22 | Name (_DDN, "TPS68470 PMIC") /* _DDN: DOS Device Name */ |
| 23 | Name (CAMD, 0x64) |
| 24 | |
| 25 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 26 | { |
| 27 | Return (0x0F) |
| 28 | } |
| 29 | |
| 30 | Name (_CRS, ResourceTemplate () |
| 31 | { |
| 32 | I2cSerialBus (0x004D, ControllerInitiated, 0x00061A80, |
| 33 | AddressingMode7Bit, "\\_SB.PCI0.I2C2", |
| 34 | 0x00, ResourceConsumer, , |
| 35 | ) |
| 36 | }) |
| 37 | } |
| 38 | |
| 39 | Device (CAM0) |
| 40 | { |
| 41 | Name (_HID, "OVTID858") /* _HID: Hardware ID */ |
| 42 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 43 | Name (_DDN, "OV 13858 Camera") /* _DDN: DOS Device Name */ |
| 44 | Name (CAMD, 0x02) |
| 45 | |
| 46 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 47 | { |
| 48 | Return (0x0F) |
| 49 | } |
| 50 | |
| 51 | Name (_DEP, Package() {\_SB.PCI0.I2C2.PMIC}) |
| 52 | Name (_CRS, ResourceTemplate () |
| 53 | { |
| 54 | I2cSerialBus (0x0010, ControllerInitiated, 0x00061A80, |
| 55 | AddressingMode7Bit, "\\_SB.PCI0.I2C2", |
| 56 | 0x00, ResourceConsumer, , |
| 57 | ) |
| 58 | }) |
| 59 | |
V Sowmya | 34e92a9 | 2017-07-18 16:18:18 +0530 | [diff] [blame^] | 60 | /* Port0 of CAM0 is connected to port0 of CIO2 device */ |
| 61 | Name (_DSD, Package () { |
| 62 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 63 | Package () { |
| 64 | Package () { "port0", "PRT0" }, |
| 65 | }, |
| 66 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 67 | Package () { |
| 68 | Package () { "clock-frequency", 19200000 }, |
| 69 | } |
| 70 | }) |
| 71 | |
| 72 | Name (PRT0, Package() { |
| 73 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 74 | Package () { |
| 75 | Package () { "port", 0 }, |
| 76 | }, |
| 77 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 78 | Package () { |
| 79 | Package () { "endpoint0", "EP00" }, |
| 80 | } |
| 81 | }) |
| 82 | |
| 83 | Name (EP00, Package() { |
| 84 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 85 | Package () { |
| 86 | Package () { "endpoint", 0 }, |
| 87 | Package () { "clock-lanes", 0 }, |
| 88 | Package () { "data-lanes", |
| 89 | Package () { 1, 2, 3, 4 } |
| 90 | }, |
| 91 | Package () { "link-frequencies", |
| 92 | Package() { 1190400000, 640000000 } |
| 93 | }, |
| 94 | Package () { "remote-endpoint", |
| 95 | Package() { \_SB.PCI0.CIO2, 0, 0 } |
| 96 | }, |
| 97 | } |
| 98 | }) |
| 99 | |
V Sowmya | 0f30795 | 2017-07-18 12:08:13 +0530 | [diff] [blame] | 100 | Method (SSDB, 0, Serialized) |
| 101 | { |
| 102 | Return (Buffer (0x5E) |
| 103 | { |
| 104 | /* 0000 */ 0x00, 0x50, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, |
| 105 | /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 106 | /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 107 | /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, |
| 108 | /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 109 | /* 0028 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 110 | /* 0030 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 111 | /* 0038 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 112 | /* 0040 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 113 | /* 0048 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, |
| 114 | /* 0050 */ 0x09, 0x00, 0x02, 0x01, 0x00, 0x01, 0x00, 0x36, |
| 115 | /* 0058 */ 0x6E, 0x01, 0x00, 0x00, 0x00, 0x00 |
| 116 | }) |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | Device (VCM0) |
| 121 | { |
| 122 | Name (_HID, "DWDWD000") /* _HID: Hardware ID */ |
| 123 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 124 | Name (_DDN, "Dongwoon AF DAC") /* _DDN: DOS Device Name */ |
| 125 | Name (CAMD, 0x03) |
| 126 | |
| 127 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 128 | { |
| 129 | Return (0x0F) |
| 130 | } |
| 131 | |
| 132 | Name (_DEP, Package() {\_SB.PCI0.I2C2.PMIC}) |
| 133 | Name (_CRS, ResourceTemplate () |
| 134 | { |
| 135 | I2cSerialBus (0x000C, ControllerInitiated, 0x00061A80, |
| 136 | AddressingMode7Bit, "\\_SB.PCI0.I2C2", |
| 137 | 0x00, ResourceConsumer, , |
| 138 | ) |
| 139 | }) |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | Scope (\_SB.PCI0.I2C3) |
| 144 | { |
| 145 | Device (PMIC) |
| 146 | { |
| 147 | Name (_HID, "INT3473") /* _HID: Hardware ID */ |
| 148 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 149 | Name (_DDN, "TPS68470 PMIC 2") /* _DDN: DOS Device Name */ |
| 150 | Name (CAMD, 0x64) |
| 151 | |
| 152 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 153 | { |
| 154 | Return (0x0F) |
| 155 | } |
| 156 | |
| 157 | Name (_CRS, ResourceTemplate () |
| 158 | { |
| 159 | I2cSerialBus (0x0049, ControllerInitiated, 0x00061A80, |
| 160 | AddressingMode7Bit, "\\_SB.PCI0.I2C3", |
| 161 | 0x00, ResourceConsumer, , |
| 162 | ) |
| 163 | }) |
| 164 | } |
| 165 | |
| 166 | Device (CAM1) |
| 167 | { |
| 168 | Name (_HID, "INT3479") /* _HID: Hardware ID */ |
| 169 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 170 | Name (_DDN, "OV 5670 Camera") /* _DDN: DOS Device Name */ |
| 171 | Name (CAMD, 0x02) |
| 172 | |
| 173 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 174 | { |
| 175 | Return (0x0F) |
| 176 | } |
| 177 | |
| 178 | Name (_DEP, Package() {\_SB.PCI0.I2C3.PMIC}) |
| 179 | Name (_CRS, ResourceTemplate () |
| 180 | { |
| 181 | I2cSerialBus (0x0010, ControllerInitiated, 0x00061A80, |
| 182 | AddressingMode7Bit, "\\_SB.PCI0.I2C3", |
| 183 | 0x00, ResourceConsumer, , |
| 184 | ) |
| 185 | }) |
| 186 | |
V Sowmya | 34e92a9 | 2017-07-18 16:18:18 +0530 | [diff] [blame^] | 187 | /* Port0 of CAM1 is connected to port1 of CIO2 device */ |
| 188 | Name (_DSD, Package () { |
| 189 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 190 | Package () { |
| 191 | Package () { "port0", "PRT0" }, |
| 192 | }, |
| 193 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 194 | Package () { |
| 195 | Package () { "clock-frequency", 19200000 }, |
| 196 | } |
| 197 | }) |
| 198 | |
| 199 | Name (PRT0, Package() { |
| 200 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 201 | Package () { |
| 202 | Package () { "port", 0 }, |
| 203 | }, |
| 204 | ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), |
| 205 | Package () { |
| 206 | Package () { "endpoint0", "EP00" }, |
| 207 | } |
| 208 | }) |
| 209 | |
| 210 | Name (EP00, Package() { |
| 211 | ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), |
| 212 | Package () { |
| 213 | Package () { "endpoint", 0 }, |
| 214 | Package () { "clock-lanes", 0 }, |
| 215 | Package () { "data-lanes", |
| 216 | Package () { 1, 2 } |
| 217 | }, |
| 218 | Package () { "link-frequencies", |
| 219 | Package() { 844800000 } |
| 220 | }, |
| 221 | Package () { "remote-endpoint", |
| 222 | Package() { \_SB.PCI0.CIO2, 1, 0 } |
| 223 | }, |
| 224 | } |
| 225 | }) |
| 226 | |
V Sowmya | 0f30795 | 2017-07-18 12:08:13 +0530 | [diff] [blame] | 227 | Method (SSDB, 0, Serialized) |
| 228 | { |
| 229 | Return (Buffer (0x5E) |
| 230 | { |
| 231 | /* 0000 */ 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 232 | /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 233 | /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 234 | /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, |
| 235 | /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 236 | /* 0028 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 237 | /* 0030 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 238 | /* 0038 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 239 | /* 0040 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 240 | /* 0048 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, |
| 241 | /* 0050 */ 0x09, 0x00, 0x02, 0x01, 0x00, 0x01, 0x00, 0x36, |
| 242 | /* 0058 */ 0x6E, 0x01, 0x00, 0x00, 0x00, 0x00 |
| 243 | }) |
| 244 | } |
| 245 | } |
| 246 | } |