I'm trying to capture images using an MT9M112 image sensor. The first step is to get vpfe-capture up and running, but I can't seem to get the recipe right.
Here is the message I get when booting.
[ 3.000000] vpfe_init
[ 3.010000] vpfe-capture: Unable to get vpfe config
[ 3.020000] vpfe-capture: probe of vpfe-capture failed with error -2
[ 3.020000] vpfe_register_ccdc_device: DM355 CCDC
[ 3.030000] vpfe capture not initialized
Looking at vpfe_capture.c, "Unable to get vpfe config" occurs when the following code is executed.
vpfe_dev->pdev = &pdev->dev;
if (NULL == pdev->dev.platform_data) {
v4l2_err(pdev->dev.driver, "Unable to get vpfe config\n");
ret = -ENOENT;
goto probe_free_dev_mem;
}
So dev.platform_data is NULL, but I can't figure out how or where it is supposed to get set to real data.
What do I need to do for platform_data to be non-NULL?
Thanks,
David