drivers: imx274: Add maxfps properties
Bhanu Murthy V [Thu, 7 Jul 2016 01:25:36 +0000 (18:25 -0700)]
Add max fps properties for imx274 driver

Bug 1769654

Change-Id: I063ef6f0ebb5b98625a047d0c2e4297b6a2bb532
Signed-off-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-on: http://git-master/r/1176485
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

drivers/media/i2c/imx274.c

index d750036..81dfaf8 100644 (file)
@@ -51,6 +51,7 @@
 
 #define IMX274_DEFAULT_WIDTH   3840
 #define IMX274_DEFAULT_HEIGHT  2160
+#define IMX274_DEFAULT_MAXFPS  30
 #define IMX274_DEFAULT_DATAFMT V4L2_MBUS_FMT_SRGGB10_1X10
 #define IMX274_DEFAULT_CLK_FREQ        24000000
 
@@ -1246,8 +1247,10 @@ static int imx274_probe(struct i2c_client *client,
        common_data->def_mode           = IMX274_DEFAULT_MODE;
        common_data->def_width          = IMX274_DEFAULT_WIDTH;
        common_data->def_height         = IMX274_DEFAULT_HEIGHT;
+       common_data->def_maxfps         = IMX274_DEFAULT_MAXFPS;
        common_data->fmt_width          = common_data->def_width;
        common_data->fmt_height         = common_data->def_height;
+       common_data->fmt_maxfps         = common_data->def_maxfps;
        common_data->def_clk_freq       = IMX274_DEFAULT_CLK_FREQ;
 
        priv->i2c_client                = client;