select VIDEOBUF2_DMA_CONTIG
        select V4L2_MEM2MEM_DEV
        select VIDEO_TI_VPDMA
+       select VIDEO_TI_SC
        default n
        ---help---
          Support for the TI VPE(Video Processing Engine) block
 config VIDEO_TI_VPDMA
        tristate
 
+config VIDEO_TI_SC
+       tristate
+
 menuconfig V4L_TEST_DRIVERS
        bool "Media test drivers"
        depends on MEDIA_CAMERA_SUPPORT
 
 
 #include <linux/err.h>
 #include <linux/io.h>
+#include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
 
 #undef DUMPREG
 }
+EXPORT_SYMBOL(sc_dump_regs);
 
 /*
  * set the horizontal scaler coefficients according to the ratio of output to
 
        sc->load_coeff_h = true;
 }
+EXPORT_SYMBOL(sc_set_hs_coeffs);
 
 /*
  * set the vertical scaler coefficients according to the ratio of output to
 
        sc->load_coeff_v = true;
 }
+EXPORT_SYMBOL(sc_set_vs_coeffs);
 
 void sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8,
                u32 *sc_reg17, unsigned int src_w, unsigned int src_h,
 
        *sc_reg24 = (src_w << CFG_ORG_W_SHIFT) | (src_h << CFG_ORG_H_SHIFT);
 }
+EXPORT_SYMBOL(sc_config_scaler);
 
-struct sc_data *sc_create(struct platform_device *pdev)
+struct sc_data *sc_create(struct platform_device *pdev, const char *res_name)
 {
        struct sc_data *sc;
 
 
        sc->pdev = pdev;
 
-       sc->res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "sc");
+       sc->res = platform_get_resource_byname(pdev, IORESOURCE_MEM, res_name);
        if (!sc->res) {
-               dev_err(&pdev->dev, "missing platform resources data\n");
+               dev_err(&pdev->dev, "missing '%s' platform resources data\n",
+                       res_name);
                return ERR_PTR(-ENODEV);
        }
 
 
        return sc;
 }
+EXPORT_SYMBOL(sc_create);
+
+MODULE_DESCRIPTION("TI VIP/VPE Scaler");
+MODULE_AUTHOR("Texas Instruments Inc.");
+MODULE_LICENSE("GPL v2");
 
 void sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8,
                u32 *sc_reg17, unsigned int src_w, unsigned int src_h,
                unsigned int dst_w, unsigned int dst_h);
-struct sc_data *sc_create(struct platform_device *pdev);
+struct sc_data *sc_create(struct platform_device *pdev, const char *res_name);
 
 #endif