mb/google/nissa/var/craask: Add MIPI camera settings

Add OVTI8856 information for craask

BUG=b:232656913
TEST=Build and boot on craask

Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Change-Id: Ice490f31e9ab8fffff6a7a5d24f769efea91188d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64376
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
This commit is contained in:
Tyler Wang 2022-05-16 13:43:43 +08:00 committed by Felix Held
parent 124c418ccf
commit 20b58bc882
1 changed files with 48 additions and 0 deletions

View File

@ -7,6 +7,7 @@ fw_config
field WFC 2 3
option WFC_ABSENT 0
option WFC_MIPI_OVTI5675 1
option WFC_MIPI_OVTI8856 2
end
field STYLUS 4
option STYLUS_ABSENT 0
@ -60,6 +61,7 @@ chip soc/intel/alderlake
device generic 0 on end
end
probe WFC WFC_MIPI_OVTI5675
probe WFC WFC_MIPI_OVTI8856
end
device ref i2c1 on
chip drivers/i2c/hid
@ -189,6 +191,50 @@ chip soc/intel/alderlake
probe WFC WFC_MIPI_OVTI5675
end
end
chip drivers/intel/mipi_camera
register "acpi_hid" = ""OVTI8856""
register "acpi_uid" = "0"
register "acpi_name" = ""CAM0""
register "chip_name" = ""Ov 8856 Camera""
register "device_type" = "INTEL_ACPI_CAMERA_SENSOR"
register "has_power_resource" = "1"
register "ssdb.lanes_used" = "2"
register "ssdb.link_used" = "1"
register "ssdb.vcm_type" = "0x0C"
register "vcm_name" = ""VCM0""
register "num_freq_entries" = "2"
register "link_freq[0]" = "720000000"
register "link_freq[1]" = "360000000"
register "remote_name" = ""IPU0""
#Controls
register "clk_panel.clks[0].clknum" = "IMGCLKOUT_3"
register "clk_panel.clks[0].freq" = "FREQ_19_2_MHZ"
register "gpio_panel.gpio[0].gpio_num" = "GPP_D15" # EN_PP2800_WCAM_X
register "gpio_panel.gpio[1].gpio_num" = "GPP_D16" # EN_PP1800_PP1200_WCAM_X
register "gpio_panel.gpio[2].gpio_num" = "GPP_D3" # WCAM_RST_L
#_ON
register "on_seq.ops_cnt" = "5"
register "on_seq.ops[0]" = "SEQ_OPS_CLK_ENABLE(0, 0)"
register "on_seq.ops[1]" = "SEQ_OPS_GPIO_ENABLE(0, 5)"
register "on_seq.ops[2]" = "SEQ_OPS_GPIO_ENABLE(1, 5)"
register "on_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(2, 5)"
register "on_seq.ops[4]" = "SEQ_OPS_GPIO_ENABLE(2, 5)"
#_OFF
register "off_seq.ops_cnt" = "4"
register "off_seq.ops[0]" = "SEQ_OPS_CLK_DISABLE(0, 0)"
register "off_seq.ops[1]" = "SEQ_OPS_GPIO_DISABLE(2, 0)"
register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
device i2c 10 on
probe WFC WFC_MIPI_OVTI8856
end
end
chip drivers/intel/mipi_camera
register "acpi_uid" = "3"
register "acpi_name" = ""VCM0""
@ -200,6 +246,7 @@ chip soc/intel/alderlake
device i2c 0C on
probe WFC WFC_MIPI_OVTI5675
probe WFC WFC_MIPI_OVTI8856
end
end
chip drivers/intel/mipi_camera
@ -219,6 +266,7 @@ chip soc/intel/alderlake
device i2c 50 on
probe WFC WFC_MIPI_OVTI5675
probe WFC WFC_MIPI_OVTI8856
end
end
end