Skip to content

Commit 32bcefd

Browse files
6by9pelwell
authored andcommitted
media: imx477: Add support for 8 bit readout
8 bit readout is only a reconfiguration of the CSI2 block, and recomputation of horizontal blanking. Enable it. Signed-off-by: Dave Stevenson <[email protected]>
1 parent e375739 commit 32bcefd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/media/i2c/imx477.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,11 @@ static const u32 codes[] = {
970970
MEDIA_BUS_FMT_SGRBG10_1X10,
971971
MEDIA_BUS_FMT_SGBRG10_1X10,
972972
MEDIA_BUS_FMT_SBGGR10_1X10,
973+
/* 8-bit modes. */
974+
MEDIA_BUS_FMT_SRGGB8_1X8,
975+
MEDIA_BUS_FMT_SGRBG8_1X8,
976+
MEDIA_BUS_FMT_SGBRG8_1X8,
977+
MEDIA_BUS_FMT_SBGGR8_1X8,
973978
};
974979

975980
static const char * const imx477_test_pattern_menu[] = {
@@ -1112,6 +1117,12 @@ static int imx477_get_bpp(unsigned int code)
11121117
case MEDIA_BUS_FMT_SGBRG10_1X10:
11131118
case MEDIA_BUS_FMT_SBGGR10_1X10:
11141119
return 10;
1120+
1121+
case MEDIA_BUS_FMT_SRGGB8_1X8:
1122+
case MEDIA_BUS_FMT_SGRBG8_1X8:
1123+
case MEDIA_BUS_FMT_SGBRG8_1X8:
1124+
case MEDIA_BUS_FMT_SBGGR8_1X8:
1125+
return 8;
11151126
}
11161127
}
11171128

0 commit comments

Comments
 (0)