I try to add a driver for ar0330 aptina image sensor in linux.
Here are my steps:
1. Adding a new entry on the ltib Catalog
=> Editing the Kconfig file
I added this part.
depends on !VIDEO_MXC_EMMA_CAMERA
depends on ARCH_MX6Q
select MXC_MIPI_CSI2 if ARCH_MX6Q
If you plan to use the ar0330 Camera with mipi interface in your MXC system, say Y here.
2. Editing the Makefile
I added this part:
ar0330-objs := ar0330.o
obj-$(CONFIG_MXC_AR0330) += ar0330_camera_mipi.o
3. I copied the file ov6540_mipi.c and renamed it to ar0330.c
4. Tried to build linux
make: *** No rule to make target `drivers/media/video/mxc/capture/ar0330_camera_mipi.c', needed by `drivers/media/video/mxc/capture/ar0330_camera_mipi.o'. Stop.
I can't find any camera_mipi.c file for other sensors, however they dont cause errors.
Do you know how to solve the problem?