|
@@ -645,3 +645,81 @@ static struct vpbe_enc_mode_info dm644xevm_enc_std_timing[] = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+/* venc dv preset timings */
|
|
|
+static struct vpbe_enc_mode_info dm644xevm_enc_preset_timing[] = {
|
|
|
+ {
|
|
|
+ .name = "480p59_94",
|
|
|
+ .timings_type = VPBE_ENC_CUSTOM_TIMINGS,
|
|
|
+ .dv_timings = V4L2_DV_BT_CEA_720X480P59_94,
|
|
|
+ .interlaced = 0,
|
|
|
+ .xres = 720,
|
|
|
+ .yres = 480,
|
|
|
+ .aspect = {1, 1},
|
|
|
+ .fps = {5994, 100},
|
|
|
+ .left_margin = 0x80,
|
|
|
+ .upper_margin = 0x20,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .name = "576p50",
|
|
|
+ .timings_type = VPBE_ENC_CUSTOM_TIMINGS,
|
|
|
+ .dv_timings = V4L2_DV_BT_CEA_720X576P50,
|
|
|
+ .interlaced = 0,
|
|
|
+ .xres = 720,
|
|
|
+ .yres = 576,
|
|
|
+ .aspect = {1, 1},
|
|
|
+ .fps = {50, 1},
|
|
|
+ .left_margin = 0x7e,
|
|
|
+ .upper_margin = 0x30,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/*
|
|
|
+ * The outputs available from VPBE + encoders. Keep the order same
|
|
|
+ * as that of encoders. First those from venc followed by that from
|
|
|
+ * encoders. Index in the output refers to index on a particular encoder.
|
|
|
+ * Driver uses this index to pass it to encoder when it supports more
|
|
|
+ * than one output. Userspace applications use index of the array to
|
|
|
+ * set an output.
|
|
|
+ */
|
|
|
+static struct vpbe_output dm644xevm_vpbe_outputs[] = {
|
|
|
+ {
|
|
|
+ .output = {
|
|
|
+ .index = 0,
|
|
|
+ .name = "Composite",
|
|
|
+ .type = V4L2_OUTPUT_TYPE_ANALOG,
|
|
|
+ .std = VENC_STD_ALL,
|
|
|
+ .capabilities = V4L2_OUT_CAP_STD,
|
|
|
+ },
|
|
|
+ .subdev_name = VPBE_VENC_SUBDEV_NAME,
|
|
|
+ .default_mode = "ntsc",
|
|
|
+ .num_modes = ARRAY_SIZE(dm644xevm_enc_std_timing),
|
|
|
+ .modes = dm644xevm_enc_std_timing,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .output = {
|
|
|
+ .index = 1,
|
|
|
+ .name = "Component",
|
|
|
+ .type = V4L2_OUTPUT_TYPE_ANALOG,
|
|
|
+ .capabilities = V4L2_OUT_CAP_DV_TIMINGS,
|
|
|
+ },
|
|
|
+ .subdev_name = VPBE_VENC_SUBDEV_NAME,
|
|
|
+ .default_mode = "480p59_94",
|
|
|
+ .num_modes = ARRAY_SIZE(dm644xevm_enc_preset_timing),
|
|
|
+ .modes = dm644xevm_enc_preset_timing,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct vpbe_config dm644xevm_display_cfg = {
|
|
|
+ .module_name = "dm644x-vpbe-display",
|
|
|
+ .i2c_adapter_id = 1,
|
|
|
+ .osd = {
|
|
|
+ .module_name = VPBE_OSD_SUBDEV_NAME,
|
|
|
+ },
|
|
|
+ .venc = {
|
|
|
+ .module_name = VPBE_VENC_SUBDEV_NAME,
|
|
|
+ },
|
|
|
+ .num_outputs = ARRAY_SIZE(dm644xevm_vpbe_outputs),
|
|
|
+ .outputs = dm644xevm_vpbe_outputs,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device *davinci_evm_devices[] __initdata = {
|