diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-04-20 10:19:56 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-05-20 13:32:15 +0300 |
commit | e1ac35b39ac13814146559f80fe003977383d933 (patch) | |
tree | acbea6a228b86d04a30eea70f099ea9c7f436a86 /drivers/staging/media/atomisp/include | |
parent | 9a0d7fb5ece6d61b4b943db3216a3ecbb31f0917 (diff) | |
download | linux-e1ac35b39ac13814146559f80fe003977383d933.tar.xz |
media: atomisp: add a way for the driver to know the chipset version
The atomisp supports two different chipsets: ISP2400 and ISP2401.
Right now, this is controlled by ugly #defines inside the driver.
Add a global bolean to identify the type of hardware. While this
is hacky, it would be a quick way to start removing the ugly
ifdefs.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/include')
-rw-r--r-- | drivers/staging/media/atomisp/include/linux/atomisp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/media/atomisp/include/linux/atomisp.h b/drivers/staging/media/atomisp/include/linux/atomisp.h index 47153e3b7755..e9670749bae0 100644 --- a/drivers/staging/media/atomisp/include/linux/atomisp.h +++ b/drivers/staging/media/atomisp/include/linux/atomisp.h @@ -69,6 +69,9 @@ #define V4L2_MBUS_FMT_CUSTOM_M10MO_RAW 0x800b #endif +/* FIXME: for now, let's use a boolean to identify the type of atomisp chipset */ +extern bool atomisp_hw_is_isp2401; + /* Configuration used by Bayer noise reduction and YCC noise reduction */ struct atomisp_nr_config { /* [gain] Strength of noise reduction for Bayer NR (Used by Bayer NR) */ |