diff options
| author | Eugen Hristev <[email protected]> | 2021-04-13 12:57:02 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-06-08 12:19:28 +0200 |
| commit | f794bc16a52da70e015dca0093bba9afba7d1b6c (patch) | |
| tree | 6b0f5d183aca3da3a87bfdd4e10f67720c2a640c /drivers/media/platform/atmel/atmel-isc.h | |
| parent | 5122e8d15a0703b6d8bf6cb703536d29f8aa74cf (diff) | |
media: atmel: atmel-isc: specialize max width and max height
Move the max width and max height constants to the product specific driver
and have them in the device struct.
Signed-off-by: Eugen Hristev <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/atmel/atmel-isc.h')
| -rw-r--r-- | drivers/media/platform/atmel/atmel-isc.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc.h b/drivers/media/platform/atmel/atmel-isc.h index 8d81d9967ad2..6becc6c3aaf0 100644 --- a/drivers/media/platform/atmel/atmel-isc.h +++ b/drivers/media/platform/atmel/atmel-isc.h @@ -10,9 +10,6 @@ */ #ifndef _ATMEL_ISC_H_ -#define ISC_MAX_SUPPORT_WIDTH 2592 -#define ISC_MAX_SUPPORT_HEIGHT 1944 - #define ISC_CLK_MAX_DIV 255 enum isc_clk_id { @@ -191,6 +188,9 @@ struct isc_ctrls { * @gamma_table: pointer to the table with gamma values, has * gamma_max sets of GAMMA_ENTRIES entries each * @gamma_max: maximum number of sets of inside the gamma_table + * + * @max_width: maximum frame width, dependent on the internal RAM + * @max_height: maximum frame height, dependent on the internal RAM */ struct isc_device { struct regmap *regmap; @@ -254,6 +254,9 @@ struct isc_device { /* pointer to the defined gamma table */ const u32 (*gamma_table)[GAMMA_ENTRIES]; u32 gamma_max; + + u32 max_width; + u32 max_height; }; extern struct isc_format formats_list[]; |