@@ -801,8 +801,7 @@ static int dm644x_venc_setup_clock(enum vpbe_enc_timings_type type,
switch (mode) {
case V4L2_DV_480P59_94:
case V4L2_DV_576P50:
- v |= DM644X_VPSS_MUXSEL_PLL2_MODE |
- DM644X_VPSS_DACCLKEN;
+ v |= DM644X_VPSS_DACCLKEN;
writel(v, DAVINCI_SYSMOD_VIRT(SYSMOD_VPSS_CLKCTL));
break;
case V4L2_DV_720P60:
@@ -1005,8 +1004,15 @@ void __init dm644x_init(void)
int __init dm644x_init_video(struct vpfe_config *vpfe_cfg,
struct vpbe_config *vpbe_cfg)
{
- if (vpfe_cfg || vpbe_cfg)
+ if (vpfe_cfg || vpbe_cfg) {
+ /* Add vpss clock aliases */
+ clk_add_alias("master", dm644x_vpss_device.name,
+ "vpss_master", NULL);
+ clk_add_alias("slave", dm644x_vpss_device.name,
+ "vpss_slave", NULL);
+
platform_device_register(&dm644x_vpss_device);
+ }
if (vpfe_cfg) {
dm644x_vpfe_dev.dev.platform_data = vpfe_cfg;