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 | |
| 60 | Method (SSDB, 0, Serialized) |
| 61 | { |
| 62 | Return (Buffer (0x5E) |
| 63 | { |
| 64 | /* 0000 */ 0x00, 0x50, 0x00, 0x00, 0x00, 0x00,0x00, 0x00, |
| 65 | /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 66 | /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 67 | /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, |
| 68 | /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 69 | /* 0028 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 70 | /* 0030 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 71 | /* 0038 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 72 | /* 0040 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 73 | /* 0048 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, |
| 74 | /* 0050 */ 0x09, 0x00, 0x02, 0x01, 0x00, 0x01, 0x00, 0x36, |
| 75 | /* 0058 */ 0x6E, 0x01, 0x00, 0x00, 0x00, 0x00 |
| 76 | }) |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | Device (VCM0) |
| 81 | { |
| 82 | Name (_HID, "DWDWD000") /* _HID: Hardware ID */ |
| 83 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 84 | Name (_DDN, "Dongwoon AF DAC") /* _DDN: DOS Device Name */ |
| 85 | Name (CAMD, 0x03) |
| 86 | |
| 87 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 88 | { |
| 89 | Return (0x0F) |
| 90 | } |
| 91 | |
| 92 | Name (_DEP, Package() {\_SB.PCI0.I2C2.PMIC}) |
| 93 | Name (_CRS, ResourceTemplate () |
| 94 | { |
| 95 | I2cSerialBus (0x000C, ControllerInitiated, 0x00061A80, |
| 96 | AddressingMode7Bit, "\\_SB.PCI0.I2C2", |
| 97 | 0x00, ResourceConsumer, , |
| 98 | ) |
| 99 | }) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | Scope (\_SB.PCI0.I2C3) |
| 104 | { |
| 105 | Device (PMIC) |
| 106 | { |
| 107 | Name (_HID, "INT3473") /* _HID: Hardware ID */ |
| 108 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 109 | Name (_DDN, "TPS68470 PMIC 2") /* _DDN: DOS Device Name */ |
| 110 | Name (CAMD, 0x64) |
| 111 | |
| 112 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 113 | { |
| 114 | Return (0x0F) |
| 115 | } |
| 116 | |
| 117 | Name (_CRS, ResourceTemplate () |
| 118 | { |
| 119 | I2cSerialBus (0x0049, ControllerInitiated, 0x00061A80, |
| 120 | AddressingMode7Bit, "\\_SB.PCI0.I2C3", |
| 121 | 0x00, ResourceConsumer, , |
| 122 | ) |
| 123 | }) |
| 124 | } |
| 125 | |
| 126 | Device (CAM1) |
| 127 | { |
| 128 | Name (_HID, "INT3479") /* _HID: Hardware ID */ |
| 129 | Name (_UID, Zero) /* _UID: Unique ID */ |
| 130 | Name (_DDN, "OV 5670 Camera") /* _DDN: DOS Device Name */ |
| 131 | Name (CAMD, 0x02) |
| 132 | |
| 133 | Method (_STA, 0, NotSerialized) /* _STA: Status */ |
| 134 | { |
| 135 | Return (0x0F) |
| 136 | } |
| 137 | |
| 138 | Name (_DEP, Package() {\_SB.PCI0.I2C3.PMIC}) |
| 139 | Name (_CRS, ResourceTemplate () |
| 140 | { |
| 141 | I2cSerialBus (0x0010, ControllerInitiated, 0x00061A80, |
| 142 | AddressingMode7Bit, "\\_SB.PCI0.I2C3", |
| 143 | 0x00, ResourceConsumer, , |
| 144 | ) |
| 145 | }) |
| 146 | |
| 147 | Method (SSDB, 0, Serialized) |
| 148 | { |
| 149 | Return (Buffer (0x5E) |
| 150 | { |
| 151 | /* 0000 */ 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 152 | /* 0008 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 153 | /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 154 | /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, |
| 155 | /* 0020 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 156 | /* 0028 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 157 | /* 0030 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 158 | /* 0038 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 159 | /* 0040 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 160 | /* 0048 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, |
| 161 | /* 0050 */ 0x09, 0x00, 0x02, 0x01, 0x00, 0x01, 0x00, 0x36, |
| 162 | /* 0058 */ 0x6E, 0x01, 0x00, 0x00, 0x00, 0x00 |
| 163 | }) |
| 164 | } |
| 165 | } |
| 166 | } |