diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2024-10-15 09:59:52 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-04-25 10:15:33 +0200 |
commit | e848475c33fc42e8bd7052227e65ca35d6ff046f (patch) | |
tree | 8d28ee11beeec84972581ab72f5d8705dc740787 /drivers/media/i2c/ccs/ccs.h | |
parent | 5bd6b8c1bb2d49d5ff15c7c47d6b33d2d38785f0 (diff) |
media: ccs: Try a little longer to access the sensor before giving up
Some sensors take longer to respond after reset than the spec-required
time. Try up to 1 s for the sensor to become accessible.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'drivers/media/i2c/ccs/ccs.h')
-rw-r--r-- | drivers/media/i2c/ccs/ccs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/i2c/ccs/ccs.h b/drivers/media/i2c/ccs/ccs.h index 096573845a10..0726c4687f0f 100644 --- a/drivers/media/i2c/ccs/ccs.h +++ b/drivers/media/i2c/ccs/ccs.h @@ -43,6 +43,8 @@ #define SMIAPP_RESET_DELAY(clk) \ (1000 + (SMIAPP_RESET_DELAY_CLOCKS * 1000 \ + (clk) / 1000 - 1) / ((clk) / 1000)) +#define CCS_RESET_DELAY_US 5000 +#define CCS_RESET_TIMEOUT_US 1000000 #define CCS_COLOUR_COMPONENTS 4 |