aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include
diff options
context:
space:
mode:
authorSugnan Prabhu S <sugnan.prabhu.s@intel.com>2020-05-27 08:15:57 +0530
committerTim Wawrzynczak <twawrzynczak@chromium.org>2020-08-05 16:30:50 +0000
commit01707406a15be603afb86d9a26331205b48b564c (patch)
tree4f4a5563aa4cc47fb48e15f64c2967868b1f8eaa /src/mainboard/intel/jasperlake_rvp/variants/baseboard/include
parent3ea036f9ce7c641ffc5df0256e889d72a5072c35 (diff)
mb/intel/jasperlake_rvp: Replace static camera ACPI by driver
This change updates devicetree to enable SSDT generation for world facing and user facing cameras of jasperlake_rvp. Also removes DSDT changes related to the world facing camera. Change-Id: Ib439572bc1d15ef02c86c7bfa88af6b16eb06f97 Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41758 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/intel/jasperlake_rvp/variants/baseboard/include')
-rw-r--r--src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/cam1.asl226
-rw-r--r--src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/camera.asl5
-rw-r--r--src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_endpoints.asl44
-rw-r--r--src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_mainboard.asl50
4 files changed, 0 insertions, 325 deletions
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/cam1.asl b/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/cam1.asl
deleted file mode 100644
index 14139981a9..0000000000
--- a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/cam1.asl
+++ /dev/null
@@ -1,226 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-Scope (\_SB.PCI0.I2C5)
-{
- PowerResource (FCPR, 0x00, 0x0000)
- {
- Name (STA, Zero)
- Method (_ON, 0, Serialized) /* _ON_: Power On */
- {
- If ((STA == Zero))
- {
- /* Enable CLK1 */
- MCON(1, 1) // Clock 1, 19.2MHz
- /* Pull PWREN(GPIO R6) high */
- STXS(GPP_D4)
- Sleep(5) /* 5 us */
- /* Pull RST(GPIO H12) low */
- CTXS(GPP_C19)
- Sleep(5) /* 5 us */
- /* Pull RST high */
- STXS(GPP_C19)
- Sleep(5) /* 5 us */
- STA = 1
- }
- }
-
- Method (_OFF, 0, Serialized) /* _OFF: Power Off */
- {
- If ((STA == One))
- {
- /* Pull RST low */
- CTXS(GPP_C19)
- /* Pull PWREN low */
- CTXS(GPP_D4)
- /* Disable CLK0 */
- MCOF(1) /* Clock 1 */
- STA = 0
- }
- }
-
- Method (_STA, 0, NotSerialized) /* _STA: Status */
- {
- Return (STA)
- }
- }
-
- Device (CAM1)
- {
- Name (_HID, "OVTI5675") /* _HID: Hardware ID */
-
- Name (_UID, Zero) /* _UID: Unique ID */
-
- Name (_DDN, "Ov 5675 Camera") /* _DDN: DOS Device Name */
-
- Method (_STA, 0, NotSerialized) /* _STA: Status */
- {
- Return (0x0F)
- }
-
- Name (_CRS, ResourceTemplate () /* _CRS: Current Resource Settings */
- {
- I2cSerialBus (0x0036, ControllerInitiated, 0x00061A80,
- AddressingMode7Bit, "\\_SB.PCI0.I2C5",
- 0x00, ResourceConsumer, ,
- )
- })
-
- Name (_PR0, Package (0x01) /* _PR0: Power Resources for D0 */
- {
- FCPR
- })
-
- Name (_PR3, Package (0x01) /* _PR3: Power Resources for D3hot */
- {
- FCPR
- })
-
- Name (_DSD, Package (0x04) /* _DSD: Device-Specific Data */
- {
- ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
- Package (0x01)
- {
- Package (0x02)
- {
- "port0",
- "PRT0"
- }
- },
-
- ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
- Package (0x02)
- {
- Package (0x02)
- {
- "clock-frequency",
- 0x0124F800
- },
-
- Package (0x02)
- {
- "lens-focus",
- Package (0x01)
- {
- VCM0
- }
- }
- }
- })
-
- Name (PRT0, Package (0x04)
- {
- ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
- Package (0x01)
- {
- Package (0x02)
- {
- "port",
- Zero
- }
- },
-
- ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
- Package (0x01)
- {
- Package (0x02)
- {
- "endpoint0",
- "EP00"
- }
- }
- })
-
- Name (EP00, Package (0x02)
- {
- ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
- Package (0x04)
- {
- Package (0x02)
- {
- "endpoint",
- Zero
- },
-
- Package (0x02)
- {
- "data-lanes",
- Package (0x02)
- {
- One,
- 0x02
- }
- },
-
- Package (0x02)
- {
- "link-frequencies",
- Package (0x01)
- {
- 0x1AD27480
- }
- },
-
- Package (0x02)
- {
- "remote-endpoint",
- Package (0x03)
- {
- IPU0,
- One,
- Zero
- }
- }
- }
- })
- }
-
- Device (VCM0)
- {
- Name (_HID, "PRP0001") /* _HID: Hadware ID */
-
- Name (_UID, 0x03) /* _UID: Unique ID */
-
- Name (_DDN, "DW9714 VCM") /* _DDN: DOS Device Name */
-
- Method (_STA, 0, NotSerialized) /* _STA: Status */
- {
- Return (0x0F)
- }
-
- Name (_CRS, ResourceTemplate () /* _CRS: Current Resource Setting */
- {
- I2cSerialBusV2 (0x000C, ControllerInitiated, 0x00061A80,
- AddressingMode7Bit, "\\_SB.PCI0.I2C5",
- 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(0x01)
- {
- Package (0x02)
- {
- "compatible",
- "dongwoon,dw9714"
- }
- }
- })
- }
-}
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/camera.asl b/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/camera.asl
deleted file mode 100644
index 48650c9360..0000000000
--- a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/camera.asl
+++ /dev/null
@@ -1,5 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "ipu_mainboard.asl"
-#include "ipu_endpoints.asl"
-#include "cam1.asl"
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_endpoints.asl b/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_endpoints.asl
deleted file mode 100644
index cebf15e753..0000000000
--- a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_endpoints.asl
+++ /dev/null
@@ -1,44 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-Scope (_SB.PCI0.IPU0)
-{
- Name (EP10, Package (0x02)
- {
- ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
- Package (0x04)
- {
- Package (0x02)
- {
- "endpoint",
- Zero
- },
-
- Package (0x02)
- {
- "clock-lanes",
- Zero
- },
-
- Package (0x02)
- {
- "data-lanes",
- Package (0x02)
- {
- One,
- 0x02,
- }
- },
-
- Package (0x02)
- {
- "remote-endpoint",
- Package (0x03)
- {
- ^I2C5.CAM1,
- Zero,
- Zero
- }
- }
- }
- })
-}
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_mainboard.asl b/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_mainboard.asl
deleted file mode 100644
index 013b26f3c6..0000000000
--- a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/acpi/ipu_mainboard.asl
+++ /dev/null
@@ -1,50 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-Scope (\_SB.PCI0)
-{
- Device (IPU0)
- {
- Name (_ADR, 0x00050000) // _ADR: Address
-
- Name (_DDN, "Camera and Imaging Subsystem") // _DDN: DOS Device Name
- }
-}
-
-Scope (\_SB.PCI0.IPU0)
-{
- Name (_DSD, Package (0x02) // _DSD: Device-Specific Data
- {
- ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
- Package (0x01)
- {
- Package (0x02)
- {
- "port1",
- "PRT1"
- }
- }
- })
-
- Name (PRT1, Package (0x04)
- {
- ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
- Package (0x01)
- {
- Package (0x02)
- {
- "port",
- 2
- }
- },
-
- ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
- Package (0x01)
- {
- Package (0x02)
- {
- "endpoint0",
- "EP10"
- }
- }
- })
-}