return 0;
 }
 
+static int ov6650_enum_frame_interval(struct v4l2_subdev *sd,
+                                   struct v4l2_subdev_state *sd_state,
+                                   struct v4l2_subdev_frame_interval_enum *fie)
+{
+       int i;
+
+       /* enumerate supported frame intervals not exceeding 1 second */
+       if (fie->index > CLKRC_DIV_MASK ||
+           GET_CLKRC_DIV(fie->index) > FRAME_RATE_MAX)
+               return -EINVAL;
+
+       for (i = 0; i < ARRAY_SIZE(ov6650_codes); i++)
+               if (fie->code == ov6650_codes[i])
+                       break;
+       if (i == ARRAY_SIZE(ov6650_codes))
+               return -EINVAL;
+
+       if (!fie->width || fie->width > W_CIF ||
+           !fie->height || fie->height > H_CIF)
+               return -EINVAL;
+
+       fie->interval.numerator = GET_CLKRC_DIV(fie->index);
+       fie->interval.denominator = FRAME_RATE_MAX;
+
+       return 0;
+}
+
 static int ov6650_g_frame_interval(struct v4l2_subdev *sd,
                                   struct v4l2_subdev_frame_interval *ival)
 {
 };
 
 static const struct v4l2_subdev_pad_ops ov6650_pad_ops = {
-       .enum_mbus_code = ov6650_enum_mbus_code,
-       .get_selection  = ov6650_get_selection,
-       .set_selection  = ov6650_set_selection,
-       .get_fmt        = ov6650_get_fmt,
-       .set_fmt        = ov6650_set_fmt,
-       .get_mbus_config = ov6650_get_mbus_config,
+       .enum_mbus_code         = ov6650_enum_mbus_code,
+       .enum_frame_interval    = ov6650_enum_frame_interval,
+       .get_selection          = ov6650_get_selection,
+       .set_selection          = ov6650_set_selection,
+       .get_fmt                = ov6650_get_fmt,
+       .set_fmt                = ov6650_set_fmt,
+       .get_mbus_config        = ov6650_get_mbus_config,
 };
 
 static const struct v4l2_subdev_ops ov6650_subdev_ops = {