From c3a83bf51426ceb3176183479c9edab212d82515 Mon Sep 17 00:00:00 2001 From: Matt Delco Date: Tue, 16 Jun 2020 12:02:34 +0530 Subject: drivers/intel/mipi_camera: Handle NVM and VCM device type This change adds support in mipi_camera driver to handle NVM and VCM device types. Change-Id: I24cb7f010d89bc8d14e0b4c8fe693ba6e9c68941 Signed-off-by: Sugnan Prabhu S Reviewed-on: https://review.coreboot.org/c/coreboot/+/42466 Reviewed-by: Rizwan Qureshi Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- src/drivers/intel/mipi_camera/chip.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/drivers/intel/mipi_camera/chip.h') diff --git a/src/drivers/intel/mipi_camera/chip.h b/src/drivers/intel/mipi_camera/chip.h index c029570064..b04a10013e 100644 --- a/src/drivers/intel/mipi_camera/chip.h +++ b/src/drivers/intel/mipi_camera/chip.h @@ -95,6 +95,19 @@ struct drivers_intel_mipi_camera_config { const char *vcm_name; /* defaults to |vcm_address| device */ uint16_t rom_address; /* I2C to use if ssdb.rom_type != 0 */ uint16_t vcm_address; /* I2C to use if ssdb.vcm_type != 0 */ + /* + * Settings specific to nvram. Many values, if left as zero, will be assigned a default. + * Set disable_nvm_defaults to non-zero if you want to disable the defaulting behavior + * so you can use zero for a value. + */ + bool disable_nvm_defaults; + uint32_t nvm_size; + uint32_t nvm_pagesize; + uint32_t nvm_readonly; + uint32_t nvm_width; + + /* Settings specific to vcm */ + const char *vcm_compat; }; #endif -- cgit v1.2.3