summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorDavid Wu <david_wu@quanta.corp-partner.google.com>2021-02-02 17:08:21 +0800
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-02-03 20:04:59 +0000
commite65e9dd6b12255b94547fa8aeb2195def0bfb76b (patch)
tree66e1c4f9c5f794cd12ecc530a20743396f29a11f /src/mainboard/google
parentee1fb0aa1a316193d93b7a8b81b448b780f32e92 (diff)
mb/google/volteer/var/voema: Enable EEPROM for OV2740
Add ACPI entries for AT24 NVM device. BUG=b:169551066 TEST=Build and run for basic camera functions. Signed-off-by: David Wu <david_wu@quanta.corp-partner.google.com> Change-Id: Ib8fb684166649f78713050d62445bf47189b06ab Reviewed-on: https://review.coreboot.org/c/coreboot/+/50216 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jim Lai <jim.lai@intel.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/volteer/variants/voema/include/variant/acpi/mipi_camera.asl66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/variants/voema/include/variant/acpi/mipi_camera.asl b/src/mainboard/google/volteer/variants/voema/include/variant/acpi/mipi_camera.asl
index 53f5d03783..4ef83fd33d 100644
--- a/src/mainboard/google/volteer/variants/voema/include/variant/acpi/mipi_camera.asl
+++ b/src/mainboard/google/volteer/variants/voema/include/variant/acpi/mipi_camera.asl
@@ -271,4 +271,70 @@ Scope (\_SB.PCI0.I2C2)
}
})
}
+ Device (NVM0)
+ {
+ Name (_HID, "PRP0001") // _HID: Hardware ID
+ Name (_UID, 0x01) // _UID: Unique ID
+ Name (_DDN, "AT24 EEPROM") // _DDN: DOS Device Name
+ Method (_STA, 0, NotSerialized) // _STA: Status
+ {
+ Return (0x0F)
+ }
+ Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
+ {
+ I2cSerialBusV2 (0x0050, ControllerInitiated, 0x00061A80,
+ AddressingMode7Bit, "\\_SB.PCI0.I2C2",
+ 0x00, ResourceConsumer, , Exclusive,
+ )
+ })
+ Name (_DEP, Package (0x01) // _DEP: Dependencies
+ {
+ CAM1
+ })
+ Name (_PR0, Package (0x01) // _PR0: Power Resources for D0
+ {
+ FCPR
+ })
+ Name (_PR3, Package (0x01) // _PR3: Power Resources for D3hot
+ {
+ FCPR
+ })
+ Name (_DSD, Package (0x02) // _DSD: Device-Specific Data
+ {
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
+ Package (0x06)
+ {
+ Package (0x02)
+ {
+ "size",
+ 0x2000
+ },
+ Package (0x02)
+ {
+ "pagesize",
+ One
+ },
+ Package (0x02)
+ {
+ "read-only",
+ One
+ },
+ Package (0x02)
+ {
+ "address-width",
+ 0x10
+ },
+ Package (0x02)
+ {
+ "compatible",
+ "atmel,24c64"
+ },
+ Package (0x02)
+ {
+ "i2c-allow-low-power-probe",
+ 0x01
+ }
+ }
+ })
+ }
}