SH Kim has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61618 )
Change subject: mb/google/dedede/var/bugzzy: Add probes for stylus and camera ......................................................................
mb/google/dedede/var/bugzzy: Add probes for stylus and camera
Add probes stylus and camera device using STYLUS_PRESENT fw_config. To apply to existing bugzzy boards, we would use existing STYLUS field instead of newly defining a fw_config field for camera device. Non-stylus sku doesn't have mipi camera as well, so we can use this field for stylus and camera.
BUG=b:214587421 TEST=non-stylus sku doesn't register garage driver and camera driver
Change-Id: I9e42a63976b9521844f64180b550b16bac344f37 Signed-off-by: Seunghwan Kim sh_.kim@samsung.corp-partner.google.com --- M src/mainboard/google/dedede/variants/bugzzy/overridetree.cb 1 file changed, 12 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/61618/1
diff --git a/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb b/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb index 30e5e45..735732c 100644 --- a/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb +++ b/src/mainboard/google/dedede/variants/bugzzy/overridetree.cb @@ -207,7 +207,9 @@ register "generic.reset_delay_ms" = "100" register "generic.has_power_resource" = "1" register "hid_desc_reg_offset" = "0x1" - device i2c 0x09 on end + device i2c 09 on + probe STYLUS STYLUS_PRESENT + end end chip drivers/i2c/sx9360 register "desc" = ""SAR Proximity Sensor - LTE"" @@ -276,7 +278,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 STYLUS STYLUS_PRESENT + end end chip drivers/intel/mipi_camera register "acpi_hid" = "ACPI_DT_NAMESPACE_HID" @@ -288,7 +292,9 @@ register "pr0" = ""\_SB.PCI0.I2C3.CAM1.PRIC"" register "vcm_compat" = ""dongwoon,dw9714""
- device i2c 0C on end + device i2c 0C on + probe STYLUS STYLUS_PRESENT + end end chip drivers/intel/mipi_camera register "acpi_uid" = "1" @@ -302,7 +308,9 @@ register "nvm_width" = "0x10" register "nvm_compat" = ""atmel,24c08""
- device i2c 50 on end + device i2c 50 on + probe STYLUS STYLUS_PRESENT + end end end # I2C 3 device pci 1c.7 off end # PCI Express Root Port 8