#include "../include/linux/atomisp_platform.h"
 
+/*
+ * FIXME: non-preview resolutions are currently broken
+ */
+#define ENABLE_NON_PREVIEW     0
+
 /* Defines for register writes and register array processing */
 #define I2C_MSG_LENGTH         0x2
 #define I2C_RETRY_COUNT                5
 /*
  * Register settings for various resolution
  */
+#if ENABLE_NON_PREVIEW
 static struct gc2235_reg const gc2235_1296_736_30fps[] = {
        { GC2235_8BIT, 0x8b, 0xa0 },
        { GC2235_8BIT, 0x8c, 0x02 },
        { GC2235_8BIT, 0xfe, 0x00 }, /* switch to P0 */
        { GC2235_TOK_TERM, 0, 0 }
 };
+#endif
 
 static struct gc2235_reg const gc2235_1600_900_30fps[] = {
        { GC2235_8BIT, 0x8b, 0xa0 },
  * Disable non-preview configurations until the configuration selection is
  * improved.
  */
-#if 0
+#if ENABLE_NON_PREVIEW
 static struct gc2235_resolution gc2235_res_still[] = {
        {
                .desc = "gc2235_1600_900_30fps",
 
        };
 
 
+#if 0 /* None of the definitions below are used currently */
        /*
         * 176x144 30fps  VBlanking 1lane 10Bit (binning)
         */
                {OV2680_8BIT, 0x5081, 0x41},
                {OV2680_TOK_TERM, 0, 0}
        };
-
        /*
        * 800x600 30fps  VBlanking 1lane 10Bit (binning)
        */
                // {OV2680_8BIT, 0x5090, 0x0c},
                {OV2680_TOK_TERM, 0, 0}
        };
+#endif
 
        /*
         *1616x916  30fps  VBlanking 1lane 10bit
        /*
         * 1612x1212 30fps VBlanking 1lane 10Bit
         */
+#if 0
        static struct ov2680_reg const ov2680_1616x1082_30fps[] = {
                {OV2680_8BIT, 0x3086, 0x00},
                {OV2680_8BIT, 0x3501, 0x48},
                {OV2680_8BIT, 0x5081, 0x41},
                {OV2680_TOK_TERM, 0, 0}
         };
+#endif
        /*
         * 1616x1216 30fps VBlanking 1lane 10Bit
         */
 
 /*
  * Register settings for various resolution
  */
+#if 0
 static struct ov2722_reg const ov2722_QVGA_30fps[] = {
        {OV2722_8BIT, 0x3718, 0x10},
        {OV2722_8BIT, 0x3702, 0x0c},
        {OV2722_8BIT, 0x3509, 0x10},
        {OV2722_TOK_TERM, 0, 0},
 };
+#endif
 
 static struct ov2722_reg const ov2722_1632_1092_30fps[] = {
        {OV2722_8BIT, 0x3021, 0x03}, /* For stand wait for
        {OV2722_8BIT, 0x3509, 0x00},
        {OV2722_TOK_TERM, 0, 0}
 };
+#if 0
 static struct ov2722_reg const ov2722_1M3_30fps[] = {
        {OV2722_8BIT, 0x3718, 0x10},
        {OV2722_8BIT, 0x3702, 0x24},
        {OV2722_8BIT, 0x3509, 0x10},
        {OV2722_TOK_TERM, 0, 0},
 };
+#endif
 
 static struct ov2722_reg const ov2722_1080p_30fps[] = {
        {OV2722_8BIT, 0x3021, 0x03}, /* For stand wait for a whole
        {OV2722_TOK_TERM, 0, 0}
 };
 
+#if 0 /* Currently unused */
 static struct ov2722_reg const ov2722_720p_30fps[] = {
        {OV2722_8BIT, 0x3021, 0x03},
        {OV2722_8BIT, 0x3718, 0x10},
        {OV2722_8BIT, 0x3509, 0x00},
        {OV2722_TOK_TERM, 0, 0},
 };
+#endif
 
 static struct ov2722_resolution ov2722_res_preview[] = {
        {
 
 
 #include "../../include/linux/atomisp_platform.h"
 
+/*
+ * FIXME: non-preview resolutions are currently broken
+ */
+#define ENABLE_NON_PREVIEW     0
+
+
 #define OV5693_POWER_UP_RETRY_NUM 5
 
 /* Defines for register writes and register array processing */
        {OV5693_TOK_TERM, 0, 0}
 };
 
+#if ENABLE_NON_PREVIEW
 /*
  * 654x496 30fps 17ms VBlanking 2lane 10Bit (Scaling)
  */
        {OV5693_8BIT, 0x0100, 0x01},
        {OV5693_TOK_TERM, 0, 0}
 };
+#endif
 
 /*
 static struct ov5693_reg const ov5693_736x496[] = {
 /*
  * 976x556 30fps 8.8ms VBlanking 2lane 10Bit (Scaling)
  */
+#if ENABLE_NON_PREVIEW
 static struct ov5693_reg const ov5693_976x556[] = {
        {OV5693_8BIT, 0x3501, 0x7b},
        {OV5693_8BIT, 0x3502, 0x00},
        {OV5693_8BIT, 0x0100, 0x01},
        {OV5693_TOK_TERM, 0, 0}
 };
+#endif
 
 static struct ov5693_reg const ov5693_1616x1216_30fps[] = {
        {OV5693_8BIT, 0x3501, 0x7b},
 /*
  * 1940x1096 30fps 8.8ms VBlanking 2lane 10bit (Scaling)
  */
+#if ENABLE_NON_PREVIEW
 static struct ov5693_reg const ov5693_1940x1096[] = {
        {OV5693_8BIT, 0x3501, 0x7b},
        {OV5693_8BIT, 0x3502, 0x00},
        {OV5693_8BIT, 0x5002, 0x00},
        {OV5693_TOK_TERM, 0, 0}
 };
+#endif
 
 static struct ov5693_reg const ov5693_2576x1456_30fps[] = {
        {OV5693_8BIT, 0x3501, 0x7b},
 /*
  * 2592x1944 30fps 0.6ms VBlanking 2lane 10Bit
  */
+#if ENABLE_NON_PREVIEW
 static struct ov5693_reg const ov5693_2592x1944_30fps[] = {
        {OV5693_8BIT, 0x3501, 0x7b},
        {OV5693_8BIT, 0x3502, 0x00},
        {OV5693_8BIT, 0x0100, 0x01},
        {OV5693_TOK_TERM, 0, 0}
 };
+#endif
 
 /*
  * 11:9 Full FOV Output, expected FOV Res: 2346x1920
  *
  * WA: Left Offset: 8, Hor scal: 64
  */
+#if ENABLE_NON_PREVIEW
 static struct ov5693_reg const ov5693_1424x1168_30fps[] = {
        {OV5693_8BIT, 0x3501, 0x3b}, /* long exposure[15:8] */
        {OV5693_8BIT, 0x3502, 0x80}, /* long exposure[7:0] */
        {OV5693_8BIT, 0x0100, 0x01},
        {OV5693_TOK_TERM, 0, 0}
 };
+#endif
 
 /*
  * 3:2 Full FOV Output, expected FOV Res: 2560x1706
  * Disable non-preview configurations until the configuration selection is
  * improved.
  */
-#if 0
+#if ENABLE_NON_PREVIEW
 struct ov5693_resolution ov5693_res_still[] = {
        {
                .desc = "ov5693_736x496_30fps",