mb/google/nissa/var/nivviks: Disable MIPI WFC based on fw_config
BUG=b:218929856
TEST=Boot to OS on nivviks. Change fw_config in CBI and check that WFC
is enabled/disabled as expected.
Change-Id: Iac4bb358d904579376e0810f8c2644b3bde4f1e6
Signed-off-by: Reka Norman <rekanorman@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64208
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
diff --git a/src/mainboard/google/brya/variants/nivviks/overridetree.cb b/src/mainboard/google/brya/variants/nivviks/overridetree.cb
index 5880b03..472ce4f 100644
--- a/src/mainboard/google/brya/variants/nivviks/overridetree.cb
+++ b/src/mainboard/google/brya/variants/nivviks/overridetree.cb
@@ -1,12 +1,16 @@
fw_config
field DB_USB 0 1
- option DB_NONE 0
- option DB_1C_1A 1
- option DB_1C_LTE 2
+ option DB_NONE 0
+ option DB_1C_1A 1
+ option DB_1C_LTE 2
end
field SD_CARD 4
- option SD_GL9750S 0
- option SD_ABSENT 1
+ option SD_GL9750S 0
+ option SD_ABSENT 1
+ end
+ field WFC 5
+ option WFC_MIPI_OVTI5675 0
+ option WFC_ABSENT 1
end
end
@@ -40,6 +44,7 @@
register "cio2_prt[0]" = "1"
device generic 0 on end
end
+ probe WFC WFC_MIPI_OVTI5675
end
device ref i2c1 on
chip drivers/i2c/hid
@@ -163,7 +168,9 @@
register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
- device i2c 36 on end
+ device i2c 36 on
+ probe WFC WFC_MIPI_OVTI5675
+ end
end
chip drivers/intel/mipi_camera
register "acpi_uid" = "3"
@@ -174,7 +181,9 @@
register "pr0" = ""\\_SB.PCI0.I2C2.CAM0.PRIC""
register "vcm_compat" = ""dongwoon,dw9714""
- device i2c 0C on end
+ device i2c 0C on
+ probe WFC WFC_MIPI_OVTI5675
+ end
end
chip drivers/intel/mipi_camera
register "acpi_hid" = "ACPI_DT_NAMESPACE_HID"
@@ -191,7 +200,9 @@
register "nvm_width" = "0x10"
register "nvm_compat" = ""atmel,24c08""
- device i2c 50 on end
+ device i2c 50 on
+ probe WFC WFC_MIPI_OVTI5675
+ end
end
end
device ref i2c3 on