* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
[not found] <EBE38CF866F2F94F95FA9A8CB3EF2284069CAE@singex1.aptina.com>
@ 2012-01-17 15:33 ` Laurent Pinchart
2012-01-19 12:41 ` Gary Thomas
0 siblings, 1 reply; 19+ messages in thread
From: Laurent Pinchart @ 2012-01-17 15:33 UTC (permalink / raw)
To: Abhishek Reddy Kondaveeti, linux-media
Hi Abhishek,
Thank you for the patch, and sorry for the very late reply. For some reason
the mail slipped through and I've only noticed it now.
First of all, please fix your mailer. The message is sent in plain text + HTML
format, which is refused by many mailing lists. You should use plain text
only. The message also has tabs converted to spaces. This will break the
scripts that handle patches sent by e-mail.
The preferred way to send patches is to use the 'git send-email' tool. This
will make sure that patches are properly formatted. I've reformatted the patch
manually to comment it this time, but please make sure it gets formatted
properly next time.
On Tuesday 06 December 2011 12:45:51 Abhishek Reddy Kondaveeti wrote:
> Adding YUV input support for Omap3ISp driver, so that we don't need to
> use entire pipeline while working with SOC camera chips.
>
> Signed-off-by: Abhishek <areddykondaveeti@aptina.com>
>
> From 32d0984fa18fa324dd9dc628d1cfb1d369c2298f Mon Sep 17 00:00:00 2001
> From: Abhishek <areddykondaveeti@aptina.com>
> Date: Tue, 6 Dec 2011 15:11:06 +0530
> Subject: [PATCH 10217/10217] "Added YUV Support for OMAP3ISP driver"
>
> ---
>
> drivers/media/video/omap3isp/isp.c | 2 +-
> drivers/media/video/omap3isp/ispccdc.c | 9 +++++++++
> drivers/media/video/omap3isp/ispvideo.c | 4 ++--
> 3 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/media/video/omap3isp/isp.c
> b/drivers/media/video/omap3isp/isp.c
> index b818cac..417d97b 100644
> --- a/drivers/media/video/omap3isp/isp.c
> +++ b/drivers/media/video/omap3isp/isp.c
> @@ -308,7 +308,7 @@ void omap3isp_configure_bridge(struct isp_device
> *isp,
> case CCDC_INPUT_PARALLEL:
> ispctrl_val |= ISPCTRL_PAR_SER_CLK_SEL_PARALLEL;
> ispctrl_val |= pdata->clk_pol << ISPCTRL_PAR_CLK_POL_SHIFT;
> - ispctrl_val |= pdata->bridge << ISPCTRL_PAR_BRIDGE_SHIFT;
> + ispctrl_val |= pdata->bridge;
Why is this needed ? Board code should use the constants defined in
include/media/omap3isp.h (ISP_BRIDGE_DISABLE, ISP_BRIDGE_LITTLE_ENDIAN or
ISP_BRIDGE_BIG_ENDIAN), so they should be shifted left here.
> shift += pdata->data_lane_shift * 2;
> break;
>
> diff --git a/drivers/media/video/omap3isp/ispccdc.c
> b/drivers/media/video/omap3isp/ispccdc.c
> index b0b0fa5..0268097 100644
> --- a/drivers/media/video/omap3isp/ispccdc.c
> +++ b/drivers/media/video/omap3isp/ispccdc.c
> @@ -58,6 +58,8 @@ static const unsigned int ccdc_fmts[] = {
> V4L2_MBUS_FMT_SRGGB12_1X12,
> V4L2_MBUS_FMT_SBGGR12_1X12,
> V4L2_MBUS_FMT_SGBRG12_1X12,
> + V4L2_MBUS_FMT_UYVY8_1X16,
> + V4L2_MBUS_FMT_YUYV8_1X16,
You should use V4L2_MBUS_FMT_UYVY8_2X8 and V4L2_MBUS_FMT_YUYV8_2X8 instead, as
the sensor bus is 8 bits wide, not 16 bits wide.
The format at the CCDC output, however, will be V4L2_MBUS_FMT_UYVY8_1X16 or
V4L2_MBUS_FMT_YUYV8_1X16. ccdc_try_format() needs to be modified to handle
that.
> };
> /*
>
> @@ -1158,6 +1160,13 @@ static void ccdc_configure(struct isp_ccdc_device
> *ccdc)
> format = &ccdc->formats[CCDC_PAD_SINK];
> syn_mode = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SYN_MODE);
>
> + if((format->code == V4L2_MBUS_FMT_UYVY8_1X16) ||
> + (format->code == V4L2_MBUS_FMT_YUYV8_1X16))
> + {
> + syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;
> + syn_mode |= ISPCCDC_SYN_MODE_DATSIZ_10;
> + }
> +
Why DATSIZ_10 ? Isn't the input data 8-bits wide ?
I already had a couple of YUV support patches in my OMAP3 ISP tree at
git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree and
pushed them to
http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
omap3isp-yuv. Could you please try them, and see if they're usable with your
sensor ?
> /* Use the raw, unprocessed data when writing to memory. The H3A and
> * histogram modules are still fed with lens shading corrected data.
>
> diff --git a/drivers/media/video/omap3isp/ispvideo.c
> b/drivers/media/video/omap3isp/ispvideo.c
> index d100072..be738a5 100644
> --- a/drivers/media/video/omap3isp/ispvideo.c
> +++ b/drivers/media/video/omap3isp/ispvideo.c
> @@ -95,10 +95,10 @@ static struct isp_format_info formats[] = {
> V4L2_MBUS_FMT_SRGGB12_1X12, V4L2_MBUS_FMT_SRGGB8_1X8,
> V4L2_PIX_FMT_SRGGB12, 12, },
> { V4L2_MBUS_FMT_UYVY8_1X16, V4L2_MBUS_FMT_UYVY8_1X16,
> - V4L2_MBUS_FMT_UYVY8_1X16, 0,
> + V4L2_MBUS_FMT_UYVY8_1X16, 8,
> V4L2_PIX_FMT_UYVY, 16, },
> { V4L2_MBUS_FMT_YUYV8_1X16, V4L2_MBUS_FMT_YUYV8_1X16,
> - V4L2_MBUS_FMT_YUYV8_1X16, 0,
> + V4L2_MBUS_FMT_YUYV8_1X16, 8,
> V4L2_PIX_FMT_YUYV, 16, },
> };
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-17 15:33 ` [PATCH] Adding YUV input support for OMAP3ISP driver Laurent Pinchart
@ 2012-01-19 12:41 ` Gary Thomas
2012-01-19 12:50 ` Laurent Pinchart
0 siblings, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 12:41 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
On 2012-01-17 08:33, Laurent Pinchart wrote:
<snip>
>
> I already had a couple of YUV support patches in my OMAP3 ISP tree at
> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree and
> pushed them to
> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
> omap3isp-yuv. Could you please try them, and see if they're usable with your
> sensor ?
I just tried this kernel with my board. The media control infrastructure
comes up and all of the devices are created, but I can't access them.
From the bootup log:
Linux media interface: v0.10
Linux video capture interface: v2.00
When I try to access the devices:
root@cobra3530p73:~# media-ctl -p
Opening media device /dev/media0
media_open_debug: Can't open media device /dev/media0
Failed to open /dev/media0
The devices look OK to me:
root@cobra3530p73:~# ls -l /dev/v* /dev/med*
crw------- 1 root root 252, 0 Nov 8 10:44 /dev/media0
crw-rw---- 1 root video 81, 7 Nov 8 10:44 /dev/v4l-subdev0
crw-rw---- 1 root video 81, 8 Nov 8 10:44 /dev/v4l-subdev1
crw-rw---- 1 root video 81, 9 Nov 8 10:44 /dev/v4l-subdev2
crw-rw---- 1 root video 81, 10 Nov 8 10:44 /dev/v4l-subdev3
crw-rw---- 1 root video 81, 11 Nov 8 10:44 /dev/v4l-subdev4
crw-rw---- 1 root video 81, 12 Nov 8 10:44 /dev/v4l-subdev5
crw-rw---- 1 root video 81, 13 Nov 8 10:44 /dev/v4l-subdev6
crw-rw---- 1 root video 81, 14 Nov 8 10:44 /dev/v4l-subdev7
crw-rw---- 1 root video 81, 15 Nov 8 10:44 /dev/v4l-subdev8
crw-rw---- 1 root tty 7, 0 Nov 8 10:44 /dev/vcs
crw-rw---- 1 root tty 7, 1 Nov 8 10:44 /dev/vcs1
crw-rw---- 1 root tty 7, 128 Nov 8 10:44 /dev/vcsa
crw-rw---- 1 root tty 7, 129 Nov 8 10:44 /dev/vcsa1
crw-rw---- 1 root video 81, 0 Nov 8 10:44 /dev/video0
crw-rw---- 1 root video 81, 1 Nov 8 10:44 /dev/video1
crw-rw---- 1 root video 81, 2 Nov 8 10:44 /dev/video2
crw-rw---- 1 root video 81, 3 Nov 8 10:44 /dev/video3
crw-rw---- 1 root video 81, 4 Nov 8 10:44 /dev/video4
crw-rw---- 1 root video 81, 5 Nov 8 10:44 /dev/video5
crw-rw---- 1 root video 81, 6 Nov 8 10:44 /dev/video6
Ideas?
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 12:41 ` Gary Thomas
@ 2012-01-19 12:50 ` Laurent Pinchart
2012-01-19 13:13 ` Gary Thomas
0 siblings, 1 reply; 19+ messages in thread
From: Laurent Pinchart @ 2012-01-19 12:50 UTC (permalink / raw)
To: Gary Thomas; +Cc: linux-media
Hi Gary,
On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
> On 2012-01-17 08:33, Laurent Pinchart wrote:
> <snip>
>
> > I already had a couple of YUV support patches in my OMAP3 ISP tree at
> > git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree and
> > pushed them to
> > http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
> > omap3isp-yuv. Could you please try them, and see if they're usable with
> > your sensor ?
>
> I just tried this kernel with my board. The media control infrastructure
> comes up and all of the devices are created, but I can't access them.
>
> From the bootup log:
> Linux media interface: v0.10
> Linux video capture interface: v2.00
Any message from the omap3isp driver and from the sensor driver ?
> When I try to access the devices:
> root@cobra3530p73:~# media-ctl -p
> Opening media device /dev/media0
> media_open_debug: Can't open media device /dev/media0
> Failed to open /dev/media0
Could you please strace that ?
> The devices look OK to me:
> root@cobra3530p73:~# ls -l /dev/v* /dev/med*
> crw------- 1 root root 252, 0 Nov 8 10:44 /dev/media0
> crw-rw---- 1 root video 81, 7 Nov 8 10:44 /dev/v4l-subdev0
> crw-rw---- 1 root video 81, 8 Nov 8 10:44 /dev/v4l-subdev1
> crw-rw---- 1 root video 81, 9 Nov 8 10:44 /dev/v4l-subdev2
> crw-rw---- 1 root video 81, 10 Nov 8 10:44 /dev/v4l-subdev3
> crw-rw---- 1 root video 81, 11 Nov 8 10:44 /dev/v4l-subdev4
> crw-rw---- 1 root video 81, 12 Nov 8 10:44 /dev/v4l-subdev5
> crw-rw---- 1 root video 81, 13 Nov 8 10:44 /dev/v4l-subdev6
> crw-rw---- 1 root video 81, 14 Nov 8 10:44 /dev/v4l-subdev7
> crw-rw---- 1 root video 81, 15 Nov 8 10:44 /dev/v4l-subdev8
> crw-rw---- 1 root tty 7, 0 Nov 8 10:44 /dev/vcs
> crw-rw---- 1 root tty 7, 1 Nov 8 10:44 /dev/vcs1
> crw-rw---- 1 root tty 7, 128 Nov 8 10:44 /dev/vcsa
> crw-rw---- 1 root tty 7, 129 Nov 8 10:44 /dev/vcsa1
> crw-rw---- 1 root video 81, 0 Nov 8 10:44 /dev/video0
> crw-rw---- 1 root video 81, 1 Nov 8 10:44 /dev/video1
> crw-rw---- 1 root video 81, 2 Nov 8 10:44 /dev/video2
> crw-rw---- 1 root video 81, 3 Nov 8 10:44 /dev/video3
> crw-rw---- 1 root video 81, 4 Nov 8 10:44 /dev/video4
> crw-rw---- 1 root video 81, 5 Nov 8 10:44 /dev/video5
> crw-rw---- 1 root video 81, 6 Nov 8 10:44 /dev/video6
Have the device nodes have been created manually ?
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 12:50 ` Laurent Pinchart
@ 2012-01-19 13:13 ` Gary Thomas
2012-01-19 13:28 ` Laurent Pinchart
0 siblings, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 13:13 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
[-- Attachment #1: Type: text/plain, Size: 3444 bytes --]
On 2012-01-19 05:50, Laurent Pinchart wrote:
> Hi Gary,
>
> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>> <snip>
>>
>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree and
>>> pushed them to
>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
>>> omap3isp-yuv. Could you please try them, and see if they're usable with
>>> your sensor ?
>>
>> I just tried this kernel with my board. The media control infrastructure
>> comes up and all of the devices are created, but I can't access them.
>>
>> From the bootup log:
>> Linux media interface: v0.10
>> Linux video capture interface: v2.00
>
> Any message from the omap3isp driver and from the sensor driver ?
No, it doesn't appear that the sensor was probed (or maybe it failed but
no messages). I'll check into this.
Has the way of adding the sensors on the i2c bus changed? I have my
TVP5150 on a i2c-2 all by itself and with the 3.0+ kernel, it was being
added when I initialized the camera subsystem.
Do you have an example driver (like the BeagleBoard one that was in
your omap3isp-sensors-next branch previously)?
>
>> When I try to access the devices:
>> root@cobra3530p73:~# media-ctl -p
>> Opening media device /dev/media0
>> media_open_debug: Can't open media device /dev/media0
>> Failed to open /dev/media0
>
> Could you please strace that ?
Attached. Looks like it blows up immediately.
Note: my media-ctl program was built from SRCREV 7266b1b5433b5644a06f05edf61c36864ab11683
>
>> The devices look OK to me:
>> root@cobra3530p73:~# ls -l /dev/v* /dev/med*
>> crw------- 1 root root 252, 0 Nov 8 10:44 /dev/media0
>> crw-rw---- 1 root video 81, 7 Nov 8 10:44 /dev/v4l-subdev0
>> crw-rw---- 1 root video 81, 8 Nov 8 10:44 /dev/v4l-subdev1
>> crw-rw---- 1 root video 81, 9 Nov 8 10:44 /dev/v4l-subdev2
>> crw-rw---- 1 root video 81, 10 Nov 8 10:44 /dev/v4l-subdev3
>> crw-rw---- 1 root video 81, 11 Nov 8 10:44 /dev/v4l-subdev4
>> crw-rw---- 1 root video 81, 12 Nov 8 10:44 /dev/v4l-subdev5
>> crw-rw---- 1 root video 81, 13 Nov 8 10:44 /dev/v4l-subdev6
>> crw-rw---- 1 root video 81, 14 Nov 8 10:44 /dev/v4l-subdev7
>> crw-rw---- 1 root video 81, 15 Nov 8 10:44 /dev/v4l-subdev8
>> crw-rw---- 1 root tty 7, 0 Nov 8 10:44 /dev/vcs
>> crw-rw---- 1 root tty 7, 1 Nov 8 10:44 /dev/vcs1
>> crw-rw---- 1 root tty 7, 128 Nov 8 10:44 /dev/vcsa
>> crw-rw---- 1 root tty 7, 129 Nov 8 10:44 /dev/vcsa1
>> crw-rw---- 1 root video 81, 0 Nov 8 10:44 /dev/video0
>> crw-rw---- 1 root video 81, 1 Nov 8 10:44 /dev/video1
>> crw-rw---- 1 root video 81, 2 Nov 8 10:44 /dev/video2
>> crw-rw---- 1 root video 81, 3 Nov 8 10:44 /dev/video3
>> crw-rw---- 1 root video 81, 4 Nov 8 10:44 /dev/video4
>> crw-rw---- 1 root video 81, 5 Nov 8 10:44 /dev/video5
>> crw-rw---- 1 root video 81, 6 Nov 8 10:44 /dev/video6
>
> Have the device nodes have been created manually ?
>
No, automatically created by udev.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: media-ctl.strace --]
[-- Type: text/plain, Size: 2993 bytes --]
execve("/usr/bin/media-ctl", ["media-ctl", "-p"], [/* 10 vars */]) = 0
brk(0) = 0x13000
uname({sys="Linux", node="cobra3530p73", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40007000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=8733, ...}) = 0
mmap2(NULL, 8733, PROT_READ, MAP_PRIVATE, 3, 0) = 0x400e7000
close(3) = 0
open("/usr/lib/libmediactl.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340\t\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8776, ...}) = 0
mmap2(NULL, 40300, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40182000
mprotect(0x40184000, 28672, PROT_NONE) = 0
mmap2(0x4018b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x4018b000
close(3) = 0
open("/usr/lib/libv4l2subdev.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\350\10\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8220, ...}) = 0
mmap2(NULL, 39692, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400dd000
mprotect(0x400df000, 28672, PROT_NONE) = 0
mmap2(0x400e6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x400e6000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0hy\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1175744, ...}) = 0
mmap2(NULL, 1217808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4018c000
mprotect(0x402a9000, 28672, PROT_NONE) = 0
mmap2(0x402b0000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11c) = 0x402b0000
mmap2(0x402b3000, 9488, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x402b3000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400ea000
set_tls(0x400ea800, 0x400eaed8, 0x400ea800, 0x40042050, 0x40042050) = 0
mprotect(0x402b0000, 8192, PROT_READ) = 0
mprotect(0x40041000, 4096, PROT_READ) = 0
munmap(0x400e7000, 8733) = 0
brk(0) = 0x13000
brk(0x34000) = 0x34000
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(253, 0), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40045000
write(1, "Opening media device /dev/media0"..., 33) = 33
open("/dev/media0", O_RDWR) = -1 ENXIO (No such device or address)
write(1, "media_open_debug: Can't open med"..., 54) = 54
write(1, "Failed to open /dev/media0\n", 27) = 27
exit_group(1) = ?
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 13:13 ` Gary Thomas
@ 2012-01-19 13:28 ` Laurent Pinchart
2012-01-19 13:35 ` Gary Thomas
0 siblings, 1 reply; 19+ messages in thread
From: Laurent Pinchart @ 2012-01-19 13:28 UTC (permalink / raw)
To: Gary Thomas; +Cc: linux-media
Hi Gary,
On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
> On 2012-01-19 05:50, Laurent Pinchart wrote:
> > On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
> >> On 2012-01-17 08:33, Laurent Pinchart wrote:
> >> <snip>
> >>>
> >>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
> >>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
> >>> and pushed them to
> >>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
> >>> - omap3isp-yuv. Could you please try them, and see if they're usable
> >>> with your sensor ?
> >>
> >> I just tried this kernel with my board. The media control
> >> infrastructure comes up and all of the devices are created, but I can't
> >> access them.
> >>
> >> From the bootup log:
> >> Linux media interface: v0.10
> >> Linux video capture interface: v2.00
> >
> > Any message from the omap3isp driver and from the sensor driver ?
>
> No, it doesn't appear that the sensor was probed (or maybe it failed but
> no messages). I'll check into this.
Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko is
loaded first. 'rmmod omap3-isp && modprobe iommu2 && modprobe omap3-isp' is a
quick way to test it.
> Has the way of adding the sensors on the i2c bus changed? I have my
> TVP5150 on a i2c-2 all by itself and with the 3.0+ kernel, it was being
> added when I initialized the camera subsystem.
>
> Do you have an example driver (like the BeagleBoard one that was in
> your omap3isp-sensors-next branch previously)?
>
> >> When I try to access the devices:
> >> root@cobra3530p73:~# media-ctl -p
> >> Opening media device /dev/media0
> >> media_open_debug: Can't open media device /dev/media0
> >> Failed to open /dev/media0
> >
> > Could you please strace that ?
>
> Attached. Looks like it blows up immediately.
>
> Note: my media-ctl program was built from SRCREV
> 7266b1b5433b5644a06f05edf61c36864ab11683
>
> >> The devices look OK to me:
> >> root@cobra3530p73:~# ls -l /dev/v* /dev/med*
> >> crw------- 1 root root 252, 0 Nov 8 10:44 /dev/media0
> >> crw-rw---- 1 root video 81, 7 Nov 8 10:44 /dev/v4l-subdev0
> >> crw-rw---- 1 root video 81, 8 Nov 8 10:44 /dev/v4l-subdev1
> >> crw-rw---- 1 root video 81, 9 Nov 8 10:44 /dev/v4l-subdev2
> >> crw-rw---- 1 root video 81, 10 Nov 8 10:44 /dev/v4l-subdev3
> >> crw-rw---- 1 root video 81, 11 Nov 8 10:44 /dev/v4l-subdev4
> >> crw-rw---- 1 root video 81, 12 Nov 8 10:44 /dev/v4l-subdev5
> >> crw-rw---- 1 root video 81, 13 Nov 8 10:44 /dev/v4l-subdev6
> >> crw-rw---- 1 root video 81, 14 Nov 8 10:44 /dev/v4l-subdev7
> >> crw-rw---- 1 root video 81, 15 Nov 8 10:44 /dev/v4l-subdev8
> >> crw-rw---- 1 root tty 7, 0 Nov 8 10:44 /dev/vcs
> >> crw-rw---- 1 root tty 7, 1 Nov 8 10:44 /dev/vcs1
> >> crw-rw---- 1 root tty 7, 128 Nov 8 10:44 /dev/vcsa
> >> crw-rw---- 1 root tty 7, 129 Nov 8 10:44 /dev/vcsa1
> >> crw-rw---- 1 root video 81, 0 Nov 8 10:44 /dev/video0
> >> crw-rw---- 1 root video 81, 1 Nov 8 10:44 /dev/video1
> >> crw-rw---- 1 root video 81, 2 Nov 8 10:44 /dev/video2
> >> crw-rw---- 1 root video 81, 3 Nov 8 10:44 /dev/video3
> >> crw-rw---- 1 root video 81, 4 Nov 8 10:44 /dev/video4
> >> crw-rw---- 1 root video 81, 5 Nov 8 10:44 /dev/video5
> >> crw-rw---- 1 root video 81, 6 Nov 8 10:44 /dev/video6
> >
> > Have the device nodes have been created manually ?
>
> No, automatically created by udev.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 13:28 ` Laurent Pinchart
@ 2012-01-19 13:35 ` Gary Thomas
2012-01-19 13:52 ` Gary Thomas
2012-01-19 14:11 ` Javier Martinez Canillas
0 siblings, 2 replies; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 13:35 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
[-- Attachment #1: Type: text/plain, Size: 4274 bytes --]
On 2012-01-19 06:28, Laurent Pinchart wrote:
> Hi Gary,
>
> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>> <snip>
>>>>>
>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>> and pushed them to
>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>> with your sensor ?
>>>>
>>>> I just tried this kernel with my board. The media control
>>>> infrastructure comes up and all of the devices are created, but I can't
>>>> access them.
>>>>
>>>> From the bootup log:
>>>> Linux media interface: v0.10
>>>> Linux video capture interface: v2.00
>>>
>>> Any message from the omap3isp driver and from the sensor driver ?
>>
>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>> no messages). I'll check into this.
>
> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko is
> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp' is a
> quick way to test it.
I have everything compiled in - no modules.
My camera init code is attached. In the previous kernel, the I2C bus was
probed implicitly when I initialized the OMAP3ISP. I thought I remembered
some discussion about how that worked (maybe changing), so this is probably
where the problem starts.
If you have an example, I can check my setup against it.
>
>> Has the way of adding the sensors on the i2c bus changed? I have my
>> TVP5150 on a i2c-2 all by itself and with the 3.0+ kernel, it was being
>> added when I initialized the camera subsystem.
>>
>> Do you have an example driver (like the BeagleBoard one that was in
>> your omap3isp-sensors-next branch previously)?
>>
>>>> When I try to access the devices:
>>>> root@cobra3530p73:~# media-ctl -p
>>>> Opening media device /dev/media0
>>>> media_open_debug: Can't open media device /dev/media0
>>>> Failed to open /dev/media0
>>>
>>> Could you please strace that ?
>>
>> Attached. Looks like it blows up immediately.
>>
>> Note: my media-ctl program was built from SRCREV
>> 7266b1b5433b5644a06f05edf61c36864ab11683
>>
>>>> The devices look OK to me:
>>>> root@cobra3530p73:~# ls -l /dev/v* /dev/med*
>>>> crw------- 1 root root 252, 0 Nov 8 10:44 /dev/media0
>>>> crw-rw---- 1 root video 81, 7 Nov 8 10:44 /dev/v4l-subdev0
>>>> crw-rw---- 1 root video 81, 8 Nov 8 10:44 /dev/v4l-subdev1
>>>> crw-rw---- 1 root video 81, 9 Nov 8 10:44 /dev/v4l-subdev2
>>>> crw-rw---- 1 root video 81, 10 Nov 8 10:44 /dev/v4l-subdev3
>>>> crw-rw---- 1 root video 81, 11 Nov 8 10:44 /dev/v4l-subdev4
>>>> crw-rw---- 1 root video 81, 12 Nov 8 10:44 /dev/v4l-subdev5
>>>> crw-rw---- 1 root video 81, 13 Nov 8 10:44 /dev/v4l-subdev6
>>>> crw-rw---- 1 root video 81, 14 Nov 8 10:44 /dev/v4l-subdev7
>>>> crw-rw---- 1 root video 81, 15 Nov 8 10:44 /dev/v4l-subdev8
>>>> crw-rw---- 1 root tty 7, 0 Nov 8 10:44 /dev/vcs
>>>> crw-rw---- 1 root tty 7, 1 Nov 8 10:44 /dev/vcs1
>>>> crw-rw---- 1 root tty 7, 128 Nov 8 10:44 /dev/vcsa
>>>> crw-rw---- 1 root tty 7, 129 Nov 8 10:44 /dev/vcsa1
>>>> crw-rw---- 1 root video 81, 0 Nov 8 10:44 /dev/video0
>>>> crw-rw---- 1 root video 81, 1 Nov 8 10:44 /dev/video1
>>>> crw-rw---- 1 root video 81, 2 Nov 8 10:44 /dev/video2
>>>> crw-rw---- 1 root video 81, 3 Nov 8 10:44 /dev/video3
>>>> crw-rw---- 1 root video 81, 4 Nov 8 10:44 /dev/video4
>>>> crw-rw---- 1 root video 81, 5 Nov 8 10:44 /dev/video5
>>>> crw-rw---- 1 root video 81, 6 Nov 8 10:44 /dev/video6
>>>
>>> Have the device nodes have been created manually ?
>>
>> No, automatically created by udev.
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: omap_camera_init --]
[-- Type: text/plain, Size: 1534 bytes --]
#include <media/tvp5150.h>
#define TVP5150_I2C_ADDR 0x5C
static struct i2c_board_info cobra3530p73_i2c2_sensor_info[] = {
{
I2C_BOARD_INFO("tvp5150", TVP5150_I2C_ADDR),
},
};
static struct isp_subdev_i2c_board_info tvp5150_camera_subdevs[] = {
{
.board_info = cobra3530p73_i2c2_sensor_info,
.i2c_adapter_id = 2,
},
{ NULL, 0, },
};
static struct isp_v4l2_subdevs_group cobra3530p73_camera_subdevs[] = {
{
.subdevs = tvp5150_camera_subdevs,
.interface = ISP_INTERFACE_PARALLEL,
.bus = {
.parallel = {
.data_lane_shift = 0,
.clk_pol = 0,
.bt656 = 1,
}
},
},
{ },
};
static struct isp_platform_data cobra3530p73_isp_platform_data = {
.subdevs = cobra3530p73_camera_subdevs,
};
static int __init cobra3530p73_camera_init(void)
{
int res;
res = gpio_request(CAM_RESET, "CAM RESET");
if (res) {
printk(KERN_ERR "failed to get CAM RESET GPIO\n");
return -EINVAL;
}
gpio_direction_output(CAM_RESET, 0); // Assert RESETn
udelay(100);
gpio_direction_output(CAM_RESET, 1); // Drop RESETn
omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0].i2c_adapter_id, 400, NULL, 0);
omap3_init_camera(&cobra3530p73_isp_platform_data);
return 0;
}
late_initcall(cobra3530p73_camera_init);
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 13:35 ` Gary Thomas
@ 2012-01-19 13:52 ` Gary Thomas
2012-01-19 14:17 ` Enrico
2012-01-19 14:11 ` Javier Martinez Canillas
1 sibling, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 13:52 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
On 2012-01-19 06:35, Gary Thomas wrote:
> On 2012-01-19 06:28, Laurent Pinchart wrote:
>> Hi Gary,
>>
>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>> <snip>
>>>>>>
>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>> and pushed them to
>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>> with your sensor ?
>>>>>
>>>>> I just tried this kernel with my board. The media control
>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>> access them.
>>>>>
>>>>> From the bootup log:
>>>>> Linux media interface: v0.10
>>>>> Linux video capture interface: v2.00
>>>>
>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>
>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>> no messages). I'll check into this.
>>
>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko is
>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp' is a
>> quick way to test it.
>
> I have everything compiled in - no modules.
>
> My camera init code is attached. In the previous kernel, the I2C bus was
> probed implicitly when I initialized the OMAP3ISP. I thought I remembered
> some discussion about how that worked (maybe changing), so this is probably
> where the problem starts.
>
> If you have an example, I can check my setup against it.
Note: I reworked how the sensor+I2C was initialized to be
omap3_init_camera(&cobra3530p73_isp_platform_data);
omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0].i2c_adapter_id, 400,
cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
The TVP5150 is now found, but 'media-ctl -p' still dies :-(
I'm going to see if I can't figure out where the ENXIO is coming from...
>>
>>> Has the way of adding the sensors on the i2c bus changed? I have my
>>> TVP5150 on a i2c-2 all by itself and with the 3.0+ kernel, it was being
>>> added when I initialized the camera subsystem.
>>>
>>> Do you have an example driver (like the BeagleBoard one that was in
>>> your omap3isp-sensors-next branch previously)?
>>>
>>>>> When I try to access the devices:
>>>>> root@cobra3530p73:~# media-ctl -p
>>>>> Opening media device /dev/media0
>>>>> media_open_debug: Can't open media device /dev/media0
>>>>> Failed to open /dev/media0
>>>>
>>>> Could you please strace that ?
>>>
>>> Attached. Looks like it blows up immediately.
>>>
>>> Note: my media-ctl program was built from SRCREV
>>> 7266b1b5433b5644a06f05edf61c36864ab11683
>>>
>>>>> The devices look OK to me:
>>>>> root@cobra3530p73:~# ls -l /dev/v* /dev/med*
>>>>> crw------- 1 root root 252, 0 Nov 8 10:44 /dev/media0
>>>>> crw-rw---- 1 root video 81, 7 Nov 8 10:44 /dev/v4l-subdev0
>>>>> crw-rw---- 1 root video 81, 8 Nov 8 10:44 /dev/v4l-subdev1
>>>>> crw-rw---- 1 root video 81, 9 Nov 8 10:44 /dev/v4l-subdev2
>>>>> crw-rw---- 1 root video 81, 10 Nov 8 10:44 /dev/v4l-subdev3
>>>>> crw-rw---- 1 root video 81, 11 Nov 8 10:44 /dev/v4l-subdev4
>>>>> crw-rw---- 1 root video 81, 12 Nov 8 10:44 /dev/v4l-subdev5
>>>>> crw-rw---- 1 root video 81, 13 Nov 8 10:44 /dev/v4l-subdev6
>>>>> crw-rw---- 1 root video 81, 14 Nov 8 10:44 /dev/v4l-subdev7
>>>>> crw-rw---- 1 root video 81, 15 Nov 8 10:44 /dev/v4l-subdev8
>>>>> crw-rw---- 1 root tty 7, 0 Nov 8 10:44 /dev/vcs
>>>>> crw-rw---- 1 root tty 7, 1 Nov 8 10:44 /dev/vcs1
>>>>> crw-rw---- 1 root tty 7, 128 Nov 8 10:44 /dev/vcsa
>>>>> crw-rw---- 1 root tty 7, 129 Nov 8 10:44 /dev/vcsa1
>>>>> crw-rw---- 1 root video 81, 0 Nov 8 10:44 /dev/video0
>>>>> crw-rw---- 1 root video 81, 1 Nov 8 10:44 /dev/video1
>>>>> crw-rw---- 1 root video 81, 2 Nov 8 10:44 /dev/video2
>>>>> crw-rw---- 1 root video 81, 3 Nov 8 10:44 /dev/video3
>>>>> crw-rw---- 1 root video 81, 4 Nov 8 10:44 /dev/video4
>>>>> crw-rw---- 1 root video 81, 5 Nov 8 10:44 /dev/video5
>>>>> crw-rw---- 1 root video 81, 6 Nov 8 10:44 /dev/video6
>>>>
>>>> Have the device nodes have been created manually ?
>>>
>>> No, automatically created by udev.
>>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 13:35 ` Gary Thomas
2012-01-19 13:52 ` Gary Thomas
@ 2012-01-19 14:11 ` Javier Martinez Canillas
2012-01-19 14:36 ` Gary Thomas
1 sibling, 1 reply; 19+ messages in thread
From: Javier Martinez Canillas @ 2012-01-19 14:11 UTC (permalink / raw)
To: Gary Thomas; +Cc: Laurent Pinchart, linux-media
On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>
>> Hi Gary,
>>
>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>
>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>
>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>
>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>> <snip>
>>>>>>
>>>>>>
>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>> and pushed them to
>>>>>>
>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>> with your sensor ?
>>>>>
>>>>>
>>>>> I just tried this kernel with my board. The media control
>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>> access them.
>>>>>
>>>>> From the bootup log:
>>>>> Linux media interface: v0.10
>>>>> Linux video capture interface: v2.00
>>>>
>>>>
>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>
>>>
>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>> no messages). I'll check into this.
>>
>>
>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko
>> is
>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp'
>> is a
>>
>> quick way to test it.
>
>
> I have everything compiled in - no modules.
>
At least for me, it only worked when compiled both the omap3-isp and
tvp5150 drivers as a module. If I compile them built-in, it fails.
Hope it helps,
--
Javier Martínez Canillas
(+34) 682 39 81 69
Barcelona, Spain
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 13:52 ` Gary Thomas
@ 2012-01-19 14:17 ` Enrico
2012-01-20 12:19 ` Laurent Pinchart
0 siblings, 1 reply; 19+ messages in thread
From: Enrico @ 2012-01-19 14:17 UTC (permalink / raw)
To: Gary Thomas; +Cc: Laurent Pinchart, linux-media
On Thu, Jan 19, 2012 at 2:52 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-01-19 06:35, Gary Thomas wrote:
>> My camera init code is attached. In the previous kernel, the I2C bus was
>> probed implicitly when I initialized the OMAP3ISP. I thought I remembered
>> some discussion about how that worked (maybe changing), so this is
>> probably
>> where the problem starts.
>>
>> If you have an example, I can check my setup against it.
>
>
> Note: I reworked how the sensor+I2C was initialized to be
> omap3_init_camera(&cobra3530p73_isp_platform_data);
>
> omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0].i2c_adapter_id,
> 400,
>
> cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
>
> The TVP5150 is now found, but 'media-ctl -p' still dies :-(
Have a look at [1] (the linux_3.2.bb file to see the list of
patches,inside linux-3.2 directory for the actual patches), it's based
on mainline kernel 3.2 and the bt656 patches i submitted months ago,
it should be easy to adapt it for you board.
<rant>
Really, there are patches for all these problems since months (from
me, Javier, TI), but because no maintainer cared (apart from Laurent)
they were never reviewed/applied and there is always someone who comes
back with all the usual problems (additional yuv format, bt656 mode,
tvp5150 that doesn't work...).
</rant>
Enrico
[1]: https://github.com/ebutera/meta-igep/tree/master/recipes-kernel/linux
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 14:11 ` Javier Martinez Canillas
@ 2012-01-19 14:36 ` Gary Thomas
2012-01-19 16:12 ` Javier Martinez Canillas
2012-01-19 17:08 ` Gary Thomas
0 siblings, 2 replies; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 14:36 UTC (permalink / raw)
To: Javier Martinez Canillas; +Cc: Laurent Pinchart, linux-media
On 2012-01-19 07:11, Javier Martinez Canillas wrote:
> On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>>
>>> Hi Gary,
>>>
>>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>>
>>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>>
>>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>>
>>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>>> <snip>
>>>>>>>
>>>>>>>
>>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>>> and pushed them to
>>>>>>>
>>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>>> with your sensor ?
>>>>>>
>>>>>>
>>>>>> I just tried this kernel with my board. The media control
>>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>>> access them.
>>>>>>
>>>>>> From the bootup log:
>>>>>> Linux media interface: v0.10
>>>>>> Linux video capture interface: v2.00
>>>>>
>>>>>
>>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>>
>>>>
>>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>>> no messages). I'll check into this.
>>>
>>>
>>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko
>>> is
>>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp'
>>> is a
>>>
>>> quick way to test it.
>>
>>
>> I have everything compiled in - no modules.
>>
>
> At least for me, it only worked when compiled both the omap3-isp and
> tvp5150 drivers as a module. If I compile them built-in, it fails.
Can you share your board/sensor init code from your board-init.c
so I can see how to manage this as a module?
n.b. I really don't like messing with modules - it used to work
fine, so IMO it should continue to do so.
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 14:36 ` Gary Thomas
@ 2012-01-19 16:12 ` Javier Martinez Canillas
2012-01-19 17:08 ` Gary Thomas
1 sibling, 0 replies; 19+ messages in thread
From: Javier Martinez Canillas @ 2012-01-19 16:12 UTC (permalink / raw)
To: Gary Thomas, Enrico; +Cc: Laurent Pinchart, linux-media
On Thu, Jan 19, 2012 at 3:36 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-01-19 07:11, Javier Martinez Canillas wrote:
>>
>> On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>
>>> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>>>
>>>>
>>>> Hi Gary,
>>>>
>>>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>>>
>>>>>
>>>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>>>
>>>>>>
>>>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>>>> <snip>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree
>>>>>>>> at
>>>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>>>> and pushed them to
>>>>>>>>
>>>>>>>>
>>>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>>>> with your sensor ?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I just tried this kernel with my board. The media control
>>>>>>> infrastructure comes up and all of the devices are created, but I
>>>>>>> can't
>>>>>>> access them.
>>>>>>>
>>>>>>> From the bootup log:
>>>>>>> Linux media interface: v0.10
>>>>>>> Linux video capture interface: v2.00
>>>>>>
>>>>>>
>>>>>>
>>>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>>>
>>>>>
>>>>>
>>>>> No, it doesn't appear that the sensor was probed (or maybe it failed
>>>>> but
>>>>> no messages). I'll check into this.
>>>>
>>>>
>>>>
>>>> Is the omap3-isp driver compiled as a module ? If so, make sure
>>>> iommu2.ko
>>>> is
>>>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe
>>>> omap3-isp'
>>>> is a
>>>>
>>>> quick way to test it.
>>>
>>>
>>>
>>> I have everything compiled in - no modules.
>>>
>>
>> At least for me, it only worked when compiled both the omap3-isp and
>> tvp5150 drivers as a module. If I compile them built-in, it fails.
>
>
> Can you share your board/sensor init code from your board-init.c
> so I can see how to manage this as a module?
>
Hi Gary,
The board specific init code is the same for both cases
(built-in/module), the only difference is how you compile the
omap3-isp and tvp5150 drivers.
Just set to m the Kconfig symbols CONFIG_VIDEO_OMAP3 and
CONFIG_VIDEO_TVP5150 in your .config file:
CONFIG_VIDEO_OMAP3=m
CONFIG_VIDEO_TVP5150=m
But if it help you, here [1] is the definitions for all the platform
device/data structures needed to register the TVP5150 with the omap3
isp code (isp_platform_data, isp_v4l2_subdevs_group,
isp_subdev_i2c_board_info, etc) and here [2] is the actual camera
initialization configuring the tvp reset and power down GPIO pins and
calling omap3_init_camera().
And take a look to our modified TVP5150 [3] and OMAP3 ISP CCDC [4] drivers.
This is based on an 2.6.37 kernel, but the API has not changed so it
should be also applicable to your kernel.
But I suggested to look at Enrico patches that were forward ported to
3.2, you probably can use those as is.
Hope it helps,
[1]: http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob;f=arch/arm/mach-omap2/exp-igep0022.c;h=475228832412c99a0a52a4652518279a59b87d0c;hb=db3cb47adf10504d3847d54927de50b2fa94c008
[2]: http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob;f=arch/arm/mach-omap2/board-igep00x0.c;h=1051c6fe949b9b8915101c9d8ac324aaed32cd7c;hb=db3cb47adf10504d3847d54927de50b2fa94c008
[3]: http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob;f=drivers/media/video/tvp5150.c;h=0b76e0ead27da45067265bb5c144f17994215db6;hb=db3cb47adf10504d3847d54927de50b2fa94c008
[4]: http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=blob;f=drivers/media/video/isp/ispccdc.c;h=28579f49a2495d25f675dabf37dadfe34a5218fa;hb=db3cb47adf10504d3847d54927de50b2fa94c008
--
Javier Martínez Canillas
(+34) 682 39 81 69
Barcelona, Spain
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 14:36 ` Gary Thomas
2012-01-19 16:12 ` Javier Martinez Canillas
@ 2012-01-19 17:08 ` Gary Thomas
2012-01-19 17:22 ` Gary Thomas
1 sibling, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 17:08 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
[-- Attachment #1: Type: text/plain, Size: 3883 bytes --]
On 2012-01-19 07:36, Gary Thomas wrote:
> On 2012-01-19 07:11, Javier Martinez Canillas wrote:
>> On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>>>
>>>> Hi Gary,
>>>>
>>>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>>>
>>>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>>>
>>>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>>>
>>>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>>>> <snip>
>>>>>>>>
>>>>>>>>
>>>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>>>> and pushed them to
>>>>>>>>
>>>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>>>> with your sensor ?
>>>>>>>
>>>>>>>
>>>>>>> I just tried this kernel with my board. The media control
>>>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>>>> access them.
>>>>>>>
>>>>>>> From the bootup log:
>>>>>>> Linux media interface: v0.10
>>>>>>> Linux video capture interface: v2.00
>>>>>>
>>>>>>
>>>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>>>
>>>>>
>>>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>>>> no messages). I'll check into this.
>>>>
>>>>
>>>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko
>>>> is
>>>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp'
>>>> is a
>>>>
>>>> quick way to test it.
>>>
>>>
>>> I have everything compiled in - no modules.
>>>
>>
>> At least for me, it only worked when compiled both the omap3-isp and
>> tvp5150 drivers as a module. If I compile them built-in, it fails.
>
> Can you share your board/sensor init code from your board-init.c
> so I can see how to manage this as a module?
>
> n.b. I really don't like messing with modules - it used to work
> fine, so IMO it should continue to do so.
I figured out part of the problem - I had tried to reuse my 3.0 kernel
config. Sadly, this left out major chunks, in particular the OMAP3ISP
was left out because OMAP_IOVMMU is new. I got this configured and it's
starting to initialize, but now it fails during boot:
kernel BUG at /local/pinchartl-media/drivers/media/media-entity.c:348
[<c02416c4>] (media_entity_create_link+0x60/0x138) from [<c0251c0c>] (isp_probe+0x938/0xba4)
[<c0251c0c>] (isp_probe+0x938/0xba4) from [<c01e381c>] (platform_drv_probe+0x1c/0x24)
[<c01e381c>] (platform_drv_probe+0x1c/0x24) from [<c01e24f4>] (driver_probe_device+0xcc/0x1b4)
[<c01e24f4>] (driver_probe_device+0xcc/0x1b4) from [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c)
[<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c) from [<c01e2750>] (device_attach+0x74/0xa0)
[<c01e2750>] (device_attach+0x74/0xa0) from [<c01e1838>] (bus_probe_device+0x28/0x50)
[<c01e1838>] (bus_probe_device+0x28/0x50) from [<c01e07f8>] (device_add+0x40c/0x590)
[<c01e07f8>] (device_add+0x40c/0x590) from [<c01e3e44>] (platform_device_add+0x108/0x168)
[<c01e3e44>] (platform_device_add+0x108/0x168) from [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188)
[<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188) from [<c0008730>] (do_one_initcall+0x94/0x15c)
[<c0008730>] (do_one_initcall+0x94/0x15c) from [<c044d21c>] (kernel_init+0x78/0x120)
[<c044d21c>] (kernel_init+0x78/0x120) from [<c00146c8>] (kernel_thread_exit+0x0/0x8)
Any ideas what else I might have missed? My kernel config is attached in case
that helps.
Thanks for any pointers
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 55163 bytes --]
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.2.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_KTIME_SCALAR=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_ARCH_HAS_CPUFREQ=y
CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_VECTORS_BASE=0xffff0000
CONFIG_ARM_PATCH_PHYS_VIRT=y
CONFIG_GENERIC_BUG=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_HAVE_IRQ_WORK=y
#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_LZO is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
# CONFIG_POSIX_MQUEUE is not set
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_FHANDLE is not set
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_AUDIT is not set
CONFIG_HAVE_GENERIC_HARDIRQS=y
#
# IRQ subsystem
#
CONFIG_GENERIC_HARDIRQS=y
CONFIG_HAVE_SPARSE_IRQ=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_CHIP=y
CONFIG_IRQ_DOMAIN=y
# CONFIG_SPARSE_IRQ is not set
#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_TREE_RCU_TRACE is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_CGROUPS is not set
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
# CONFIG_RD_LZO is not set
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_EXPERT=y
CONFIG_UID16=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_EMBEDDED=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_USE_VMALLOC=y
#
# Kernel Performance Events And Counters
#
# CONFIG_PERF_EVENTS is not set
# CONFIG_PERF_COUNTERS is not set
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_COMPAT_BRK=y
CONFIG_SLAB=y
# CONFIG_SLUB is not set
# CONFIG_SLOB is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_CLK=y
CONFIG_HAVE_DMA_API_DEBUG=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_SLABINFO=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_BLOCK=y
CONFIG_LBDAF=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"
# CONFIG_INLINE_SPIN_TRYLOCK is not set
# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set
# CONFIG_INLINE_SPIN_LOCK is not set
# CONFIG_INLINE_SPIN_LOCK_BH is not set
# CONFIG_INLINE_SPIN_LOCK_IRQ is not set
# CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set
CONFIG_INLINE_SPIN_UNLOCK=y
# CONFIG_INLINE_SPIN_UNLOCK_BH is not set
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
# CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set
# CONFIG_INLINE_READ_TRYLOCK is not set
# CONFIG_INLINE_READ_LOCK is not set
# CONFIG_INLINE_READ_LOCK_BH is not set
# CONFIG_INLINE_READ_LOCK_IRQ is not set
# CONFIG_INLINE_READ_LOCK_IRQSAVE is not set
CONFIG_INLINE_READ_UNLOCK=y
# CONFIG_INLINE_READ_UNLOCK_BH is not set
CONFIG_INLINE_READ_UNLOCK_IRQ=y
# CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set
# CONFIG_INLINE_WRITE_TRYLOCK is not set
# CONFIG_INLINE_WRITE_LOCK is not set
# CONFIG_INLINE_WRITE_LOCK_BH is not set
# CONFIG_INLINE_WRITE_LOCK_IRQ is not set
# CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set
CONFIG_INLINE_WRITE_UNLOCK=y
# CONFIG_INLINE_WRITE_UNLOCK_BH is not set
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
# CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set
# CONFIG_MUTEX_SPIN_ON_OWNER is not set
CONFIG_FREEZER=y
#
# System Type
#
CONFIG_MMU=y
# CONFIG_ARCH_INTEGRATOR is not set
# CONFIG_ARCH_REALVIEW is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_BCMRING is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_CNS3XXX is not set
# CONFIG_ARCH_GEMINI is not set
# CONFIG_ARCH_PRIMA2 is not set
# CONFIG_ARCH_EBSA110 is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_FOOTBRIDGE is not set
# CONFIG_ARCH_MXC is not set
# CONFIG_ARCH_MXS is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_H720X is not set
# CONFIG_ARCH_IOP13XX is not set
# CONFIG_ARCH_IOP32X is not set
# CONFIG_ARCH_IOP33X is not set
# CONFIG_ARCH_IXP23XX is not set
# CONFIG_ARCH_IXP2000 is not set
# CONFIG_ARCH_IXP4XX is not set
# CONFIG_ARCH_DOVE is not set
# CONFIG_ARCH_KIRKWOOD is not set
# CONFIG_ARCH_LPC32XX is not set
# CONFIG_ARCH_MV78XX0 is not set
# CONFIG_ARCH_ORION5X is not set
# CONFIG_ARCH_MMP is not set
# CONFIG_ARCH_KS8695 is not set
# CONFIG_ARCH_W90X900 is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_PICOXCELL is not set
# CONFIG_ARCH_PNX4008 is not set
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_MSM is not set
# CONFIG_ARCH_SHMOBILE is not set
# CONFIG_ARCH_RPC is not set
# CONFIG_ARCH_SA1100 is not set
# CONFIG_ARCH_S3C2410 is not set
# CONFIG_ARCH_S3C64XX is not set
# CONFIG_ARCH_S5P64X0 is not set
# CONFIG_ARCH_S5PC100 is not set
# CONFIG_ARCH_S5PV210 is not set
# CONFIG_ARCH_EXYNOS is not set
# CONFIG_ARCH_SHARK is not set
# CONFIG_ARCH_TCC_926 is not set
# CONFIG_ARCH_U300 is not set
# CONFIG_ARCH_U8500 is not set
# CONFIG_ARCH_NOMADIK is not set
# CONFIG_ARCH_DAVINCI is not set
CONFIG_ARCH_OMAP=y
# CONFIG_PLAT_SPEAR is not set
# CONFIG_ARCH_VT8500 is not set
# CONFIG_ARCH_ZYNQ is not set
# CONFIG_GPIO_PCA953X is not set
#
# TI OMAP Common Features
#
CONFIG_ARCH_OMAP_OTG=y
# CONFIG_ARCH_OMAP1 is not set
CONFIG_ARCH_OMAP2PLUS=y
#
# OMAP Feature Selections
#
# CONFIG_OMAP_SMARTREFLEX is not set
CONFIG_OMAP_RESET_CLOCKS=y
CONFIG_OMAP_MUX=y
CONFIG_OMAP_MUX_DEBUG=y
CONFIG_OMAP_MUX_WARNINGS=y
CONFIG_OMAP_MCBSP=y
# CONFIG_OMAP_MBOX_FWK is not set
CONFIG_OMAP_32K_TIMER=y
# CONFIG_OMAP3_L2_AUX_SECURE_SAVE_RESTORE is not set
CONFIG_OMAP_32K_TIMER_HZ=128
CONFIG_OMAP_DM_TIMER=y
CONFIG_OMAP_PM_NOOP=y
# CONFIG_MACH_OMAP_GENERIC is not set
#
# TI OMAP2/3/4 Specific Features
#
CONFIG_ARCH_OMAP2PLUS_TYPICAL=y
# CONFIG_ARCH_OMAP2 is not set
CONFIG_ARCH_OMAP3=y
# CONFIG_ARCH_OMAP4 is not set
CONFIG_SOC_OMAP3430=y
# CONFIG_SOC_OMAPTI816X is not set
CONFIG_OMAP_PACKAGE_CBB=y
#
# OMAP Board Type
#
# CONFIG_MACH_OMAP3_BEAGLE is not set
# CONFIG_MACH_DEVKIT8000 is not set
# CONFIG_MACH_OMAP_LDP is not set
# CONFIG_MACH_OMAP3530_LV_SOM is not set
# CONFIG_MACH_OMAP3_TORPEDO is not set
# CONFIG_MACH_OVERO is not set
# CONFIG_MACH_OMAP3EVM is not set
# CONFIG_MACH_OMAP3517EVM is not set
# CONFIG_MACH_CRANEBOARD is not set
# CONFIG_MACH_OMAP3_PANDORA is not set
# CONFIG_MACH_OMAP3_TOUCHBOOK is not set
# CONFIG_MACH_OMAP_3430SDP is not set
# CONFIG_MACH_NOKIA_RM680 is not set
# CONFIG_MACH_NOKIA_RX51 is not set
# CONFIG_MACH_OMAP_ZOOM2 is not set
# CONFIG_MACH_OMAP_ZOOM3 is not set
# CONFIG_MACH_CM_T35 is not set
# CONFIG_MACH_CM_T3517 is not set
# CONFIG_MACH_IGEP0020 is not set
# CONFIG_MACH_IGEP0030 is not set
# CONFIG_MACH_SBC3530 is not set
# CONFIG_MACH_OMAP_3630SDP is not set
# CONFIG_MACH_OMAP_COBRA3530P60 is not set
# CONFIG_MACH_OMAP_COBRA3530P69 is not set
# CONFIG_MACH_OMAP_COBRA3530P72 is not set
# CONFIG_OMAP_FPGA_INTS is not set
# CONFIG_MACH_OMAP_COBRA3530P75 is not set
# CONFIG_MACH_OMAP_COBRA3530P77 is not set
# CONFIG_MACH_OMAP_COBRA3530P77_TEST is not set
CONFIG_MACH_OMAP_COBRA3530P73=y
# CONFIG_OMAP_EHCI_PHY_MODE is not set
# CONFIG_OMAP3_EMU is not set
# CONFIG_OMAP3_SDRC_AC_TIMING is not set
#
# System MMU
#
#
# Processor Type
#
CONFIG_CPU_V7=y
CONFIG_CPU_32v6K=y
CONFIG_CPU_32v7=y
CONFIG_CPU_ABRT_EV7=y
CONFIG_CPU_PABRT_V7=y
CONFIG_CPU_CACHE_V7=y
CONFIG_CPU_CACHE_VIPT=y
CONFIG_CPU_COPY_V6=y
CONFIG_CPU_TLB_V7=y
CONFIG_CPU_HAS_ASID=y
CONFIG_CPU_CP15=y
CONFIG_CPU_CP15_MMU=y
#
# Processor Features
#
CONFIG_ARM_THUMB=y
CONFIG_ARM_THUMBEE=y
# CONFIG_SWP_EMULATE is not set
# CONFIG_CPU_ICACHE_DISABLE is not set
# CONFIG_CPU_DCACHE_DISABLE is not set
# CONFIG_CPU_BPREDICT_DISABLE is not set
CONFIG_ARM_L1_CACHE_SHIFT_6=y
CONFIG_ARM_L1_CACHE_SHIFT=6
CONFIG_ARM_DMA_MEM_BUFFERABLE=y
# CONFIG_ARM_ERRATA_430973 is not set
# CONFIG_ARM_ERRATA_458693 is not set
# CONFIG_ARM_ERRATA_460075 is not set
# CONFIG_ARM_ERRATA_720789 is not set
# CONFIG_ARM_ERRATA_743622 is not set
# CONFIG_ARM_ERRATA_751472 is not set
# CONFIG_ARM_ERRATA_754322 is not set
#
# Bus support
#
# CONFIG_PCI_SYSCALL is not set
# CONFIG_ARCH_SUPPORTS_MSI is not set
# CONFIG_PCCARD is not set
#
# Kernel Features
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_VMSPLIT_3G=y
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_1G is not set
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_HZ=128
# CONFIG_THUMB2_KERNEL is not set
CONFIG_AEABI=y
CONFIG_OABI_COMPAT=y
CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
CONFIG_HAVE_ARCH_PFN_VALID=y
# CONFIG_HIGHMEM is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_COMPACTION is not set
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
CONFIG_FORCE_MAX_ZONEORDER=11
# CONFIG_LEDS is not set
CONFIG_ALIGNMENT_TRAP=y
# CONFIG_UACCESS_WITH_MEMCPY is not set
# CONFIG_SECCOMP is not set
# CONFIG_CC_STACKPROTECTOR is not set
# CONFIG_DEPRECATED_PARAM_STRUCT is not set
#
# Boot options
#
CONFIG_USE_OF=y
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
# CONFIG_ARM_APPENDED_DTB is not set
CONFIG_CMDLINE="root=/dev/nfs nfsroot=192.168.0.1:/home/user/buildroot ip=192.168.0.2:192.168.0.1:192.168.0.1:255.255.255.0:tgt:eth0:off rw console=ttyS2,115200n8"
CONFIG_CMDLINE_FROM_BOOTLOADER=y
# CONFIG_CMDLINE_EXTEND is not set
# CONFIG_CMDLINE_FORCE is not set
# CONFIG_XIP_KERNEL is not set
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
# CONFIG_AUTO_ZRELADDR is not set
#
# CPU Power Management
#
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
# CONFIG_CPU_IDLE is not set
#
# Floating point emulation
#
#
# At least one emulation must be selected
#
CONFIG_FPE_NWFPE=y
# CONFIG_FPE_NWFPE_XP is not set
# CONFIG_FPE_FASTFPE is not set
CONFIG_VFP=y
CONFIG_VFPv3=y
CONFIG_NEON=y
#
# Userspace binary formats
#
CONFIG_BINFMT_ELF=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
CONFIG_HAVE_AOUT=y
# CONFIG_BINFMT_AOUT is not set
CONFIG_BINFMT_MISC=y
#
# Power management options
#
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_PM_SLEEP=y
CONFIG_PM_RUNTIME=y
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_APM_EMULATION is not set
CONFIG_ARCH_HAS_OPP=y
CONFIG_PM_OPP=y
CONFIG_PM_CLK=y
CONFIG_CPU_PM=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARM_CPU_SUSPEND=y
CONFIG_NET=y
#
# Networking options
#
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_XFRM_STATISTICS is not set
CONFIG_NET_KEY=y
# CONFIG_NET_KEY_MIGRATE is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
# CONFIG_ARPD is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
CONFIG_INET_TUNNEL=m
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_INET_XFRM_MODE_BEET=y
# CONFIG_INET_LRO is not set
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
CONFIG_IPV6=m
# CONFIG_IPV6_PRIVACY is not set
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
CONFIG_INET6_XFRM_MODE_TRANSPORT=m
CONFIG_INET6_XFRM_MODE_TUNNEL=m
CONFIG_INET6_XFRM_MODE_BEET=m
# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
CONFIG_IPV6_SIT=m
# CONFIG_IPV6_SIT_6RD is not set
CONFIG_IPV6_NDISC_NODETYPE=y
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_MULTIPLE_TABLES is not set
# CONFIG_IPV6_MROUTE is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
# CONFIG_NETFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set
CONFIG_DNS_RESOLVER=y
# CONFIG_BATMAN_ADV is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_WIRELESS is not set
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_RFKILL_REGULATOR is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=m
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_CONNECTOR is not set
CONFIG_MTD=y
# CONFIG_MTD_TESTS is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
# CONFIG_MTD_AFS_PARTS is not set
# CONFIG_MTD_OF_PARTS is not set
# CONFIG_MTD_AR7_PARTS is not set
#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set
#
# RAM/ROM/Flash chip drivers
#
# CONFIG_MTD_CFI is not set
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PLATRAM is not set
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set
#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
# CONFIG_MTD_DOCG3 is not set
CONFIG_MTD_NAND_ECC=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_VERIFY_WRITE is not set
# CONFIG_MTD_NAND_ECC_BCH is not set
# CONFIG_MTD_SM_COMMON is not set
# CONFIG_MTD_NAND_MUSEUM_IDS is not set
# CONFIG_MTD_NAND_GPIO is not set
CONFIG_MTD_NAND_OMAP2=y
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_ALAUDA is not set
# CONFIG_MTD_ONENAND is not set
#
# LPDDR flash memory drivers
#
# CONFIG_MTD_LPDDR is not set
# CONFIG_MTD_UBI is not set
CONFIG_DTC=y
CONFIG_OF=y
#
# Device Tree and Open Firmware support
#
# CONFIG_PROC_DEVICETREE is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_IRQ=y
CONFIG_OF_DEVICE=y
CONFIG_OF_GPIO=y
CONFIG_OF_I2C=y
CONFIG_OF_NET=y
CONFIG_OF_MDIO=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
CONFIG_BLK_DEV_CRYPTOLOOP=y
#
# DRBD disabled because PROC_FS, INET or CONNECTOR not selected
#
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_UB is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=32768
# CONFIG_BLK_DEV_XIP is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_MISC_DEVICES is not set
#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not set
CONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
CONFIG_CHR_DEV_SCH=m
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set
CONFIG_SCSI_WAIT_SCAN=m
#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_LIBFC is not set
# CONFIG_LIBFCOE is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
# CONFIG_ATA is not set
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
CONFIG_MII=y
# CONFIG_MACVLAN is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_TUN is not set
# CONFIG_VETH is not set
#
# CAIF transport drivers
#
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
CONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_DM9000 is not set
# CONFIG_DNET is not set
CONFIG_NET_VENDOR_FARADAY=y
# CONFIG_FTMAC100 is not set
# CONFIG_FTGMAC100 is not set
CONFIG_NET_VENDOR_INTEL=y
CONFIG_NET_VENDOR_I825XX=y
CONFIG_NET_VENDOR_MARVELL=y
CONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8851_MLL is not set
CONFIG_NET_VENDOR_NATSEMI=y
CONFIG_NET_VENDOR_8390=y
# CONFIG_AX88796 is not set
# CONFIG_ETHOC is not set
CONFIG_NET_VENDOR_SEEQ=y
# CONFIG_SEEQ8005 is not set
CONFIG_NET_VENDOR_SMSC=y
# CONFIG_SMC91X is not set
# CONFIG_SMC911X is not set
CONFIG_SMSC911X=y
# CONFIG_SMSC911X_ARCH_HOOKS is not set
CONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not set
CONFIG_NET_VENDOR_TI=y
# CONFIG_TI_DAVINCI_EMAC is not set
# CONFIG_TI_DAVINCI_MDIO is not set
# CONFIG_TI_DAVINCI_CPDMA is not set
CONFIG_PHYLIB=y
#
# MII PHY device drivers
#
# CONFIG_MARVELL_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_REALTEK_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_FIXED_PHY is not set
# CONFIG_MDIO_BITBANG is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_WLAN is not set
#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_ISDN is not set
# CONFIG_PHONE is not set
#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
# CONFIG_INPUT_SPARSEKMAP is not set
#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
CONFIG_DEVKMEM=y
#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_RSA=y
# CONFIG_SERIAL_8250_DW is not set
#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_OF_PLATFORM is not set
CONFIG_SERIAL_OMAP=y
CONFIG_SERIAL_OMAP_CONSOLE=y
# CONFIG_SERIAL_TIMBERDALE is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
CONFIG_TTY_PRINTK=y
# CONFIG_HVC_DCC is not set
# CONFIG_IPMI_HANDLER is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_R3964 is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
# CONFIG_RAMOOPS is not set
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_COMPAT=y
CONFIG_I2C_CHARDEV=y
# CONFIG_I2C_MUX is not set
CONFIG_I2C_HELPER_AUTO=y
#
# I2C Hardware Bus support
#
#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set
CONFIG_I2C_OMAP=y
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_SPI is not set
#
# PPS support
#
# CONFIG_PPS is not set
#
# PPS generators support
#
#
# PTP clock support
#
#
# Enable Device Drivers -> PPS to see the PTP clock options.
#
CONFIG_ARCH_REQUIRE_GPIOLIB=y
CONFIG_GPIOLIB=y
# CONFIG_DEBUG_GPIO is not set
CONFIG_GPIO_SYSFS=y
#
# Memory mapped GPIO drivers:
#
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_IT8761E is not set
#
# I2C GPIO expanders:
#
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_SX150X is not set
CONFIG_GPIO_TWL4030=y
# CONFIG_GPIO_ADP5588 is not set
#
# PCI GPIO expanders:
#
#
# SPI GPIO expanders:
#
# CONFIG_GPIO_MCP23S08 is not set
#
# AC97 GPIO expanders:
#
#
# MODULbus GPIO expanders:
#
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_CORE is not set
CONFIG_WATCHDOG_NOWAYOUT=y
#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
CONFIG_OMAP_WATCHDOG=y
# CONFIG_TWL4030_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not set
CONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y
#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_ASIC3 is not set
# CONFIG_HTC_EGPIO is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_HTC_I2CPLD is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
CONFIG_TWL4030_CORE=y
# CONFIG_TWL4030_MADC is not set
CONFIG_TWL4030_POWER=y
# CONFIG_MFD_TWL4030_AUDIO is not set
# CONFIG_TWL6030_PWM is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_T7L66XB is not set
# CONFIG_MFD_TC6387XB is not set
# CONFIG_MFD_TC6393XB is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_AAT2870_CORE is not set
CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not set
# CONFIG_REGULATOR_DUMMY is not set
# CONFIG_REGULATOR_FIXED_VOLTAGE is not set
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
# CONFIG_REGULATOR_GPIO is not set
# CONFIG_REGULATOR_BQ24022 is not set
# CONFIG_REGULATOR_MAX1586 is not set
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8952 is not set
CONFIG_REGULATOR_TWL4030=y
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_TPS65023 is not set
# CONFIG_REGULATOR_TPS6507X is not set
# CONFIG_REGULATOR_ISL6271A is not set
# CONFIG_REGULATOR_AD5398 is not set
CONFIG_MEDIA_SUPPORT=y
#
# Multimedia core support
#
CONFIG_MEDIA_CONTROLLER=y
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_V4L2_SUBDEV_API=y
# CONFIG_DVB_CORE is not set
CONFIG_VIDEO_MEDIA=y
#
# Multimedia drivers
#
# CONFIG_RC_CORE is not set
# CONFIG_MEDIA_ATTACH is not set
CONFIG_MEDIA_TUNER=y
CONFIG_MEDIA_TUNER_CUSTOMISE=y
#
# Customize TV tuners
#
# CONFIG_MEDIA_TUNER_SIMPLE is not set
# CONFIG_MEDIA_TUNER_TDA8290 is not set
# CONFIG_MEDIA_TUNER_TDA827X is not set
# CONFIG_MEDIA_TUNER_TDA18271 is not set
# CONFIG_MEDIA_TUNER_TDA9887 is not set
# CONFIG_MEDIA_TUNER_TEA5761 is not set
# CONFIG_MEDIA_TUNER_TEA5767 is not set
# CONFIG_MEDIA_TUNER_MT20XX is not set
# CONFIG_MEDIA_TUNER_MT2060 is not set
CONFIG_MEDIA_TUNER_MT2063=m
# CONFIG_MEDIA_TUNER_MT2266 is not set
# CONFIG_MEDIA_TUNER_MT2131 is not set
# CONFIG_MEDIA_TUNER_QT1010 is not set
# CONFIG_MEDIA_TUNER_XC2028 is not set
# CONFIG_MEDIA_TUNER_XC5000 is not set
CONFIG_MEDIA_TUNER_XC4000=m
# CONFIG_MEDIA_TUNER_MXL5005S is not set
# CONFIG_MEDIA_TUNER_MXL5007T is not set
# CONFIG_MEDIA_TUNER_MC44S803 is not set
# CONFIG_MEDIA_TUNER_MAX2165 is not set
# CONFIG_MEDIA_TUNER_TDA18218 is not set
# CONFIG_MEDIA_TUNER_TDA18212 is not set
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_CAPTURE_DRIVERS=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set
#
# Encoders, decoders, sensors and other helper chips
#
#
# Audio decoders, processors and mixers
#
# CONFIG_VIDEO_TVAUDIO is not set
# CONFIG_VIDEO_TDA7432 is not set
# CONFIG_VIDEO_TDA9840 is not set
# CONFIG_VIDEO_TEA6415C is not set
# CONFIG_VIDEO_TEA6420 is not set
# CONFIG_VIDEO_MSP3400 is not set
# CONFIG_VIDEO_CS5345 is not set
# CONFIG_VIDEO_CS53L32A is not set
# CONFIG_VIDEO_TLV320AIC23B is not set
# CONFIG_VIDEO_WM8775 is not set
# CONFIG_VIDEO_WM8739 is not set
# CONFIG_VIDEO_VP27SMPX is not set
#
# RDS decoders
#
# CONFIG_VIDEO_SAA6588 is not set
#
# Video decoders
#
# CONFIG_VIDEO_ADV7180 is not set
# CONFIG_VIDEO_BT819 is not set
# CONFIG_VIDEO_BT856 is not set
# CONFIG_VIDEO_BT866 is not set
# CONFIG_VIDEO_KS0127 is not set
# CONFIG_VIDEO_SAA7110 is not set
# CONFIG_VIDEO_SAA711X is not set
# CONFIG_VIDEO_SAA7191 is not set
# CONFIG_VIDEO_TVP514X is not set
CONFIG_VIDEO_TVP5150=y
# CONFIG_VIDEO_TVP7002 is not set
# CONFIG_VIDEO_VPX3220 is not set
#
# Video and audio decoders
#
# CONFIG_VIDEO_SAA717X is not set
# CONFIG_VIDEO_CX25840 is not set
#
# MPEG video encoders
#
# CONFIG_VIDEO_CX2341X is not set
#
# Video encoders
#
# CONFIG_VIDEO_SAA7127 is not set
# CONFIG_VIDEO_SAA7185 is not set
# CONFIG_VIDEO_ADV7170 is not set
# CONFIG_VIDEO_ADV7175 is not set
# CONFIG_VIDEO_ADV7343 is not set
# CONFIG_VIDEO_AK881X is not set
#
# Camera sensor devices
#
# CONFIG_VIDEO_OV7670 is not set
# CONFIG_VIDEO_MT9P031 is not set
# CONFIG_VIDEO_MT9T001 is not set
# CONFIG_VIDEO_MT9V011 is not set
# CONFIG_VIDEO_MT9V032 is not set
# CONFIG_VIDEO_TCM825X is not set
# CONFIG_VIDEO_SR030PC30 is not set
# CONFIG_VIDEO_NOON010PC30 is not set
# CONFIG_VIDEO_M5MOLS is not set
# CONFIG_VIDEO_S5K6AA is not set
#
# Flash devices
#
# CONFIG_VIDEO_ADP1653 is not set
# CONFIG_VIDEO_AS3645A is not set
#
# Video improvement chips
#
# CONFIG_VIDEO_UPD64031A is not set
# CONFIG_VIDEO_UPD64083 is not set
#
# Miscelaneous helper chips
#
# CONFIG_VIDEO_THS7303 is not set
# CONFIG_VIDEO_M52790 is not set
# CONFIG_VIDEO_VIVI is not set
CONFIG_V4L_USB_DRIVERS=y
# CONFIG_USB_VIDEO_CLASS is not set
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
CONFIG_USB_GSPCA=m
# CONFIG_USB_M5602 is not set
# CONFIG_USB_STV06XX is not set
# CONFIG_USB_GL860 is not set
# CONFIG_USB_GSPCA_BENQ is not set
# CONFIG_USB_GSPCA_CONEX is not set
# CONFIG_USB_GSPCA_CPIA1 is not set
# CONFIG_USB_GSPCA_ETOMS is not set
# CONFIG_USB_GSPCA_FINEPIX is not set
# CONFIG_USB_GSPCA_JEILINJ is not set
# CONFIG_USB_GSPCA_JL2005BCD is not set
CONFIG_USB_GSPCA_KINECT=m
CONFIG_USB_GSPCA_KONICA=m
# CONFIG_USB_GSPCA_MARS is not set
# CONFIG_USB_GSPCA_MR97310A is not set
# CONFIG_USB_GSPCA_NW80X is not set
CONFIG_USB_GSPCA_OV519=m
CONFIG_USB_GSPCA_OV534=m
CONFIG_USB_GSPCA_OV534_9=m
# CONFIG_USB_GSPCA_PAC207 is not set
# CONFIG_USB_GSPCA_PAC7302 is not set
# CONFIG_USB_GSPCA_PAC7311 is not set
# CONFIG_USB_GSPCA_SE401 is not set
# CONFIG_USB_GSPCA_SN9C2028 is not set
# CONFIG_USB_GSPCA_SN9C20X is not set
# CONFIG_USB_GSPCA_SONIXB is not set
# CONFIG_USB_GSPCA_SONIXJ is not set
CONFIG_USB_GSPCA_SPCA500=m
CONFIG_USB_GSPCA_SPCA501=m
CONFIG_USB_GSPCA_SPCA505=m
CONFIG_USB_GSPCA_SPCA506=m
CONFIG_USB_GSPCA_SPCA508=m
CONFIG_USB_GSPCA_SPCA561=m
CONFIG_USB_GSPCA_SPCA1528=m
# CONFIG_USB_GSPCA_SQ905 is not set
# CONFIG_USB_GSPCA_SQ905C is not set
# CONFIG_USB_GSPCA_SQ930X is not set
# CONFIG_USB_GSPCA_STK014 is not set
# CONFIG_USB_GSPCA_STV0680 is not set
# CONFIG_USB_GSPCA_SUNPLUS is not set
CONFIG_USB_GSPCA_T613=m
# CONFIG_USB_GSPCA_TOPRO is not set
# CONFIG_USB_GSPCA_TV8532 is not set
# CONFIG_USB_GSPCA_VC032X is not set
# CONFIG_USB_GSPCA_VICAM is not set
# CONFIG_USB_GSPCA_XIRLINK_CIT is not set
CONFIG_USB_GSPCA_ZC3XX=m
# CONFIG_VIDEO_PVRUSB2 is not set
# CONFIG_VIDEO_HDPVR is not set
# CONFIG_VIDEO_EM28XX is not set
# CONFIG_VIDEO_USBVISION is not set
# CONFIG_USB_ET61X251 is not set
# CONFIG_USB_SN9C102 is not set
# CONFIG_USB_PWC is not set
# CONFIG_VIDEO_CPIA2 is not set
# CONFIG_USB_ZR364XX is not set
# CONFIG_USB_STKWEBCAM is not set
# CONFIG_USB_S2255 is not set
CONFIG_V4L_PLATFORM_DRIVERS=y
# CONFIG_VIDEO_VPFE_CAPTURE is not set
# CONFIG_VIDEO_OMAP2_VOUT is not set
CONFIG_VIDEO_OMAP3=y
CONFIG_VIDEO_OMAP3_DEBUG=y
# CONFIG_SOC_CAMERA is not set
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
# CONFIG_RADIO_ADAPTERS is not set
#
# Graphics support
#
# CONFIG_DRM is not set
# CONFIG_VGASTATE is not set
CONFIG_VIDEO_OUTPUT_CONTROL=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_WMT_GE_ROPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set
#
# Frame buffer hardware drivers
#
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_OMAP_BOOTLOADER_INIT is not set
CONFIG_OMAP2_VRAM=y
CONFIG_OMAP2_VRFB=y
CONFIG_OMAP2_DSS=y
CONFIG_OMAP2_VRAM_SIZE=8
CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y
# CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS is not set
CONFIG_OMAP2_DSS_DPI=y
# CONFIG_OMAP2_DSS_RFBI is not set
CONFIG_OMAP2_DSS_VENC=y
# CONFIG_OMAP2_DSS_SDI is not set
# CONFIG_OMAP2_DSS_DSI is not set
# CONFIG_OMAP2_DSS_FAKE_VSYNC is not set
CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=0
CONFIG_OMAP2_DSS_SLEEP_AFTER_VENC_RESET=y
CONFIG_FB_OMAP2=y
CONFIG_FB_OMAP2_DEBUG_SUPPORT=y
CONFIG_FB_OMAP2_NUM_FBS=3
#
# OMAP2/3 Display Device Drivers
#
CONFIG_PANEL_GENERIC_DPI=y
# CONFIG_PANEL_DVI is not set
# CONFIG_PANEL_PICODLP is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set
#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
# CONFIG_LOGO_LINUX_CLUT224 is not set
# CONFIG_SOUND is not set
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
# CONFIG_HIDRAW is not set
#
# USB Input Devices
#
CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set
#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LOGITECH is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_QUANTA is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SONY is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
# CONFIG_USB_ARCH_HAS_XHCI is not set
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#
# CONFIG_USB_DEVICEFS is not set
# CONFIG_USB_DEVICE_CLASS is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_MON is not set
# CONFIG_USB_WUSB is not set
# CONFIG_USB_WUSB_CBAF is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1760_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HWA_HCD is not set
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_TUSB6010 is not set
CONFIG_USB_MUSB_OMAP2PLUS=y
# CONFIG_USB_MUSB_AM35X is not set
# CONFIG_MUSB_PIO_ONLY is not set
# CONFIG_USB_UX500_DMA is not set
CONFIG_USB_INVENTRA_DMA=y
# CONFIG_USB_TI_CPPI_DMA is not set
# CONFIG_USB_RENESAS_USBHS is not set
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#
#
# also be needed; see USB_STORAGE Help for more info
#
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_REALTEK is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_ONETOUCH is not set
# CONFIG_USB_STORAGE_KARMA is not set
# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set
# CONFIG_USB_STORAGE_ENE_UB6250 is not set
# CONFIG_USB_UAS is not set
# CONFIG_USB_LIBUSUAL is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DEBUG=y
CONFIG_USB_GADGET_DEBUG_FILES=y
CONFIG_USB_GADGET_DEBUG_FS=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
# CONFIG_USB_FUSB300 is not set
CONFIG_USB_OMAP=y
# CONFIG_USB_R8A66597 is not set
# CONFIG_USB_GADGET_MUSB_HDRC is not set
# CONFIG_USB_M66592 is not set
# CONFIG_USB_NET2272 is not set
# CONFIG_USB_DUMMY_HCD is not set
CONFIG_USB_GADGET_DUALSPEED=y
# CONFIG_USB_ZERO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_G_NCM is not set
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FUNCTIONFS is not set
# CONFIG_USB_FILE_STORAGE is not set
# CONFIG_USB_MASS_STORAGE is not set
# CONFIG_USB_G_SERIAL is not set
# CONFIG_USB_G_PRINTER is not set
CONFIG_USB_CDC_COMPOSITE=m
# CONFIG_USB_G_ACM_MS is not set
# CONFIG_USB_G_MULTI is not set
# CONFIG_USB_G_HID is not set
# CONFIG_USB_G_DBGP is not set
# CONFIG_USB_G_WEBCAM is not set
#
# OTG and related infrastructure
#
CONFIG_USB_OTG_UTILS=y
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_ISP1301_OMAP is not set
# CONFIG_USB_ULPI is not set
CONFIG_TWL4030_USB=y
# CONFIG_TWL6030_USB is not set
# CONFIG_NOP_USB_XCEIV is not set
CONFIG_MMC=y
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_UNSAFE_RESUME is not set
# CONFIG_MMC_CLKGATE is not set
#
# MMC/SD/SDIO Card Drivers
#
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
CONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_SDHCI_PXAV3 is not set
# CONFIG_MMC_SDHCI_PXAV2 is not set
# CONFIG_MMC_OMAP is not set
CONFIG_MMC_OMAP_HS=y
# CONFIG_MMC_DW is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set
#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
CONFIG_RTC_DRV_TWL4030=y
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set
#
# SPI RTC drivers
#
#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
#
# on-CPU RTC drivers
#
# CONFIG_DMADEVICES is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
#
# Virtio drivers
#
# CONFIG_VIRTIO_BALLOON is not set
# CONFIG_VIRTIO_MMIO is not set
# CONFIG_STAGING is not set
CONFIG_CLKDEV_LOOKUP=y
#
# Hardware Spinlock drivers
#
CONFIG_CLKSRC_MMIO=y
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y
CONFIG_OMAP_IOMMU=y
CONFIG_OMAP_IOVMM=y
# CONFIG_OMAP_IOMMU_DEBUG is not set
# CONFIG_VIRT_DRIVERS is not set
# CONFIG_PM_DEVFREQ is not set
#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
# CONFIG_EXT3_FS_XATTR is not set
# CONFIG_EXT4_FS is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
# CONFIG_FS_POSIX_ACL is not set
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
CONFIG_QUOTA=y
# CONFIG_QUOTA_NETLINK_INTERFACE is not set
CONFIG_PRINT_QUOTA_WARNING=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# Caches
#
# CONFIG_FSCACHE is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
# CONFIG_JFFS2_LZO is not set
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not set
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
# CONFIG_LOGFS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
CONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFS_USE_NEW_IDMAPPER is not set
# CONFIG_NFSD is not set
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
CONFIG_MSDOS_PARTITION=y
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_KARMA_PARTITION is not set
# CONFIG_EFI_PARTITION is not set
# CONFIG_SYSV68_PARTITION is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not set
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set
#
# Kernel hacking
#
# CONFIG_PRINTK_TIME is not set
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
CONFIG_MAGIC_SYSRQ=y
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_LOCKUP_DETECTOR is not set
# CONFIG_HARDLOCKUP_DETECTOR is not set
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
CONFIG_SCHED_DEBUG=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
CONFIG_DEBUG_MUTEXES=y
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_WRITECOUNT is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# CONFIG_LKDTM is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
# CONFIG_SYSCTL_SYSCALL_CHECK is not set
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_ENABLE_DEFAULT_TRACERS is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_DYNAMIC_DEBUG is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_STRICT_DEVMEM is not set
CONFIG_ARM_UNWIND=y
CONFIG_DEBUG_USER=y
CONFIG_DEBUG_LL=y
CONFIG_DEBUG_LL_UART_NONE=y
# CONFIG_DEBUG_ICEDCC is not set
CONFIG_EARLY_PRINTK=y
#
# Security options
#
CONFIG_KEYS=y
# CONFIG_ENCRYPTED_KEYS is not set
# CONFIG_KEYS_DEBUG_PROC_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y
#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_PCOMP2=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
# CONFIG_CRYPTO_GF128MUL is not set
# CONFIG_CRYPTO_NULL is not set
CONFIG_CRYPTO_WORKQUEUE=y
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set
#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_SEQIV is not set
#
# Block modes
#
CONFIG_CRYPTO_CBC=y
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
CONFIG_CRYPTO_ECB=m
# CONFIG_CRYPTO_LRW is not set
CONFIG_CRYPTO_PCBC=m
# CONFIG_CRYPTO_XTS is not set
#
# Hash modes
#
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set
#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set
#
# Ciphers
#
CONFIG_CRYPTO_AES=m
# CONFIG_CRYPTO_ANUBIS is not set
CONFIG_CRYPTO_ARC4=m
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
CONFIG_CRYPTO_DES=y
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set
#
# Compression
#
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_ZLIB is not set
# CONFIG_CRYPTO_LZO is not set
#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
CONFIG_CRYPTO_HW=y
# CONFIG_CRYPTO_DEV_OMAP_SHAM is not set
# CONFIG_CRYPTO_DEV_OMAP_AES is not set
# CONFIG_BINARY_PRINTF is not set
#
# Library routines
#
CONFIG_BITREVERSE=y
CONFIG_CRC_CCITT=y
# CONFIG_CRC16 is not set
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
CONFIG_CRC32=y
# CONFIG_CRC7 is not set
CONFIG_LIBCRC32C=y
# CONFIG_CRC8 is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
# CONFIG_XZ_DEC is not set
# CONFIG_XZ_DEC_BCJ is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_DECOMPRESS_BZIP2=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_NLATTR=y
CONFIG_AVERAGE=y
# CONFIG_CORDIC is not set
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 17:08 ` Gary Thomas
@ 2012-01-19 17:22 ` Gary Thomas
2012-01-19 17:39 ` Gary Thomas
0 siblings, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 17:22 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
On 2012-01-19 10:08, Gary Thomas wrote:
> On 2012-01-19 07:36, Gary Thomas wrote:
>> On 2012-01-19 07:11, Javier Martinez Canillas wrote:
>>> On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>>>>
>>>>> Hi Gary,
>>>>>
>>>>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>>>>
>>>>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>>>>
>>>>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>>>>
>>>>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>>>>> <snip>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>>>>> and pushed them to
>>>>>>>>>
>>>>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>>>>> with your sensor ?
>>>>>>>>
>>>>>>>>
>>>>>>>> I just tried this kernel with my board. The media control
>>>>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>>>>> access them.
>>>>>>>>
>>>>>>>> From the bootup log:
>>>>>>>> Linux media interface: v0.10
>>>>>>>> Linux video capture interface: v2.00
>>>>>>>
>>>>>>>
>>>>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>>>>
>>>>>>
>>>>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>>>>> no messages). I'll check into this.
>>>>>
>>>>>
>>>>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko
>>>>> is
>>>>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp'
>>>>> is a
>>>>>
>>>>> quick way to test it.
>>>>
>>>>
>>>> I have everything compiled in - no modules.
>>>>
>>>
>>> At least for me, it only worked when compiled both the omap3-isp and
>>> tvp5150 drivers as a module. If I compile them built-in, it fails.
>>
>> Can you share your board/sensor init code from your board-init.c
>> so I can see how to manage this as a module?
>>
>> n.b. I really don't like messing with modules - it used to work
>> fine, so IMO it should continue to do so.
>
> I figured out part of the problem - I had tried to reuse my 3.0 kernel
> config. Sadly, this left out major chunks, in particular the OMAP3ISP
> was left out because OMAP_IOVMMU is new. I got this configured and it's
> starting to initialize, but now it fails during boot:
> kernel BUG at /local/pinchartl-media/drivers/media/media-entity.c:348
> [<c02416c4>] (media_entity_create_link+0x60/0x138) from [<c0251c0c>] (isp_probe+0x938/0xba4)
> [<c0251c0c>] (isp_probe+0x938/0xba4) from [<c01e381c>] (platform_drv_probe+0x1c/0x24)
> [<c01e381c>] (platform_drv_probe+0x1c/0x24) from [<c01e24f4>] (driver_probe_device+0xcc/0x1b4)
> [<c01e24f4>] (driver_probe_device+0xcc/0x1b4) from [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c)
> [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c) from [<c01e2750>] (device_attach+0x74/0xa0)
> [<c01e2750>] (device_attach+0x74/0xa0) from [<c01e1838>] (bus_probe_device+0x28/0x50)
> [<c01e1838>] (bus_probe_device+0x28/0x50) from [<c01e07f8>] (device_add+0x40c/0x590)
> [<c01e07f8>] (device_add+0x40c/0x590) from [<c01e3e44>] (platform_device_add+0x108/0x168)
> [<c01e3e44>] (platform_device_add+0x108/0x168) from [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188)
> [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188) from [<c0008730>] (do_one_initcall+0x94/0x15c)
> [<c0008730>] (do_one_initcall+0x94/0x15c) from [<c044d21c>] (kernel_init+0x78/0x120)
> [<c044d21c>] (kernel_init+0x78/0x120) from [<c00146c8>] (kernel_thread_exit+0x0/0x8)
>
> Any ideas what else I might have missed? My kernel config is attached in case
> that helps.
It turns out that drivers/media/video/tvp5150.c is not the most
recent one posted - it has no v4l2_subdev support in it at all :-(
I copied the one I've been using from my 3.0+ kernel and it
now builds. I can run media-ctl and configure the pipeline,
etc, but sadly no data is captured at all :-(
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 17:22 ` Gary Thomas
@ 2012-01-19 17:39 ` Gary Thomas
0 siblings, 0 replies; 19+ messages in thread
From: Gary Thomas @ 2012-01-19 17:39 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
On 2012-01-19 10:22, Gary Thomas wrote:
> On 2012-01-19 10:08, Gary Thomas wrote:
>> On 2012-01-19 07:36, Gary Thomas wrote:
>>> On 2012-01-19 07:11, Javier Martinez Canillas wrote:
>>>> On Thu, Jan 19, 2012 at 2:35 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>>> On 2012-01-19 06:28, Laurent Pinchart wrote:
>>>>>>
>>>>>> Hi Gary,
>>>>>>
>>>>>> On Thursday 19 January 2012 14:13:53 Gary Thomas wrote:
>>>>>>>
>>>>>>> On 2012-01-19 05:50, Laurent Pinchart wrote:
>>>>>>>>
>>>>>>>> On Thursday 19 January 2012 13:41:57 Gary Thomas wrote:
>>>>>>>>>
>>>>>>>>> On 2012-01-17 08:33, Laurent Pinchart wrote:
>>>>>>>>> <snip>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I already had a couple of YUV support patches in my OMAP3 ISP tree at
>>>>>>>>>> git.kernel.org. I've rebased them on top of the lastest V4L/DVB tree
>>>>>>>>>> and pushed them to
>>>>>>>>>>
>>>>>>>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp
>>>>>>>>>> - omap3isp-yuv. Could you please try them, and see if they're usable
>>>>>>>>>> with your sensor ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I just tried this kernel with my board. The media control
>>>>>>>>> infrastructure comes up and all of the devices are created, but I can't
>>>>>>>>> access them.
>>>>>>>>>
>>>>>>>>> From the bootup log:
>>>>>>>>> Linux media interface: v0.10
>>>>>>>>> Linux video capture interface: v2.00
>>>>>>>>
>>>>>>>>
>>>>>>>> Any message from the omap3isp driver and from the sensor driver ?
>>>>>>>
>>>>>>>
>>>>>>> No, it doesn't appear that the sensor was probed (or maybe it failed but
>>>>>>> no messages). I'll check into this.
>>>>>>
>>>>>>
>>>>>> Is the omap3-isp driver compiled as a module ? If so, make sure iommu2.ko
>>>>>> is
>>>>>> loaded first. 'rmmod omap3-isp&& modprobe iommu2&& modprobe omap3-isp'
>>>>>> is a
>>>>>>
>>>>>> quick way to test it.
>>>>>
>>>>>
>>>>> I have everything compiled in - no modules.
>>>>>
>>>>
>>>> At least for me, it only worked when compiled both the omap3-isp and
>>>> tvp5150 drivers as a module. If I compile them built-in, it fails.
>>>
>>> Can you share your board/sensor init code from your board-init.c
>>> so I can see how to manage this as a module?
>>>
>>> n.b. I really don't like messing with modules - it used to work
>>> fine, so IMO it should continue to do so.
>>
>> I figured out part of the problem - I had tried to reuse my 3.0 kernel
>> config. Sadly, this left out major chunks, in particular the OMAP3ISP
>> was left out because OMAP_IOVMMU is new. I got this configured and it's
>> starting to initialize, but now it fails during boot:
>> kernel BUG at /local/pinchartl-media/drivers/media/media-entity.c:348
>> [<c02416c4>] (media_entity_create_link+0x60/0x138) from [<c0251c0c>] (isp_probe+0x938/0xba4)
>> [<c0251c0c>] (isp_probe+0x938/0xba4) from [<c01e381c>] (platform_drv_probe+0x1c/0x24)
>> [<c01e381c>] (platform_drv_probe+0x1c/0x24) from [<c01e24f4>] (driver_probe_device+0xcc/0x1b4)
>> [<c01e24f4>] (driver_probe_device+0xcc/0x1b4) from [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c)
>> [<c01e1a0c>] (bus_for_each_drv+0x4c/0x8c) from [<c01e2750>] (device_attach+0x74/0xa0)
>> [<c01e2750>] (device_attach+0x74/0xa0) from [<c01e1838>] (bus_probe_device+0x28/0x50)
>> [<c01e1838>] (bus_probe_device+0x28/0x50) from [<c01e07f8>] (device_add+0x40c/0x590)
>> [<c01e07f8>] (device_add+0x40c/0x590) from [<c01e3e44>] (platform_device_add+0x108/0x168)
>> [<c01e3e44>] (platform_device_add+0x108/0x168) from [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188)
>> [<c0457c84>] (cobra3530p73_camera_init+0x13c/0x188) from [<c0008730>] (do_one_initcall+0x94/0x15c)
>> [<c0008730>] (do_one_initcall+0x94/0x15c) from [<c044d21c>] (kernel_init+0x78/0x120)
>> [<c044d21c>] (kernel_init+0x78/0x120) from [<c00146c8>] (kernel_thread_exit+0x0/0x8)
>>
>> Any ideas what else I might have missed? My kernel config is attached in case
>> that helps.
>
> It turns out that drivers/media/video/tvp5150.c is not the most
> recent one posted - it has no v4l2_subdev support in it at all :-(
>
> I copied the one I've been using from my 3.0+ kernel and it
> now builds. I can run media-ctl and configure the pipeline,
> etc, but sadly no data is captured at all :-(
>
It also looks like none of the BT656 support is in this driver
either.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-19 14:17 ` Enrico
@ 2012-01-20 12:19 ` Laurent Pinchart
2012-01-30 17:30 ` Gary Thomas
0 siblings, 1 reply; 19+ messages in thread
From: Laurent Pinchart @ 2012-01-20 12:19 UTC (permalink / raw)
To: Enrico; +Cc: Gary Thomas, linux-media
Hi Enrico,
On Thursday 19 January 2012 15:17:57 Enrico wrote:
> On Thu, Jan 19, 2012 at 2:52 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> > On 2012-01-19 06:35, Gary Thomas wrote:
> >> My camera init code is attached. In the previous kernel, the I2C bus was
> >> probed implicitly when I initialized the OMAP3ISP. I thought I
> >> remembered some discussion about how that worked (maybe changing), so
> >> this is probably
> >> where the problem starts.
> >>
> >> If you have an example, I can check my setup against it.
> >
> > Note: I reworked how the sensor+I2C was initialized to be
> > omap3_init_camera(&cobra3530p73_isp_platform_data);
> >
> > omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0]
> > .i2c_adapter_id, 400,
> >
> > cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
> >
> > The TVP5150 is now found, but 'media-ctl -p' still dies :-(
>
> Have a look at [1] (the linux_3.2.bb file to see the list of
> patches,inside linux-3.2 directory for the actual patches), it's based
> on mainline kernel 3.2 and the bt656 patches i submitted months ago,
> it should be easy to adapt it for you board.
>
> <rant>
> Really, there are patches for all these problems since months (from
> me, Javier, TI), but because no maintainer cared (apart from Laurent)
> they were never reviewed/applied and there is always someone who comes
> back with all the usual problems (additional yuv format, bt656 mode,
> tvp5150 that doesn't work...).
> </rant>
I totally understand your feeling.
I'd like to get YUV support integrated in the OMAP3 ISP driver. However, I
have no YUV image source hardware, so I can only review the patches but not
test them.
If someone can rebase the existing patches on top of
http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
omap3isp-yuv and test them, then I'll review the result.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-20 12:19 ` Laurent Pinchart
@ 2012-01-30 17:30 ` Gary Thomas
2012-02-04 11:48 ` Gary Thomas
0 siblings, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-01-30 17:30 UTC (permalink / raw)
To: linux-media; +Cc: Javier Martinez Canillas, Sakari Ailus, Enrico
[-- Attachment #1: Type: text/plain, Size: 2594 bytes --]
On 2012-01-20 05:19, Laurent Pinchart wrote:
> Hi Enrico,
>
> On Thursday 19 January 2012 15:17:57 Enrico wrote:
>> On Thu, Jan 19, 2012 at 2:52 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>> On 2012-01-19 06:35, Gary Thomas wrote:
>>>> My camera init code is attached. In the previous kernel, the I2C bus was
>>>> probed implicitly when I initialized the OMAP3ISP. I thought I
>>>> remembered some discussion about how that worked (maybe changing), so
>>>> this is probably
>>>> where the problem starts.
>>>>
>>>> If you have an example, I can check my setup against it.
>>>
>>> Note: I reworked how the sensor+I2C was initialized to be
>>> omap3_init_camera(&cobra3530p73_isp_platform_data);
>>>
>>> omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0]
>>> .i2c_adapter_id, 400,
>>>
>>> cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
>>>
>>> The TVP5150 is now found, but 'media-ctl -p' still dies :-(
>>
>> Have a look at [1] (the linux_3.2.bb file to see the list of
>> patches,inside linux-3.2 directory for the actual patches), it's based
>> on mainline kernel 3.2 and the bt656 patches i submitted months ago,
>> it should be easy to adapt it for you board.
>>
>> <rant>
>> Really, there are patches for all these problems since months (from
>> me, Javier, TI), but because no maintainer cared (apart from Laurent)
>> they were never reviewed/applied and there is always someone who comes
>> back with all the usual problems (additional yuv format, bt656 mode,
>> tvp5150 that doesn't work...).
>> </rant>
>
> I totally understand your feeling.
>
> I'd like to get YUV support integrated in the OMAP3 ISP driver. However, I
> have no YUV image source hardware, so I can only review the patches but not
> test them.
>
> If someone can rebase the existing patches on top of
> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
> omap3isp-yuv and test them, then I'll review the result.
>
The attached patches produce a working setup against Laurent's tree above.
That said, I don't recall exactly where which changes came from (I'm old
school and not very git savvy, sorry). I've CC'd all the folks I think
provided at least part of these changes. Perhaps we can all work together
to come up with a proper set of patches which can be pushed upstream
for this, once and for all?
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: 0001-Merge-working-driver-for-TVP5150.patch --]
[-- Type: text/x-patch, Size: 16563 bytes --]
>From 2ab6c0c7b481d116c9d7faf120efcff1ef2a732f Mon Sep 17 00:00:00 2001
From: Gary Thomas <gary@mlbassoc.com>
Date: Wed, 25 Jan 2012 07:57:21 -0700
Subject: [PATCH 1/2] Merge working driver for TVP5150
---
drivers/media/video/tvp5150.c | 419 ++++++++++++++++++++++++++++++++++++-----
include/media/tvp5150.h | 6 +
2 files changed, 375 insertions(+), 50 deletions(-)
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c
index 6be9910..a472ebe 100644
--- a/drivers/media/video/tvp5150.c
+++ b/drivers/media/video/tvp5150.c
@@ -5,15 +5,17 @@
* This code is placed under the terms of the GNU General Public License v2
*/
+#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/delay.h>
-#include <linux/module.h>
#include <media/v4l2-device.h>
#include <media/tvp5150.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-ctrls.h>
+#include <media/v4l2-subdev.h>
+#include <media/v4l2-mediabus.h>
#include "tvp5150_reg.h"
@@ -26,11 +28,79 @@ static int debug;
module_param(debug, int, 0);
MODULE_PARM_DESC(debug, "Debug level (0-2)");
+/* enum tvp515x_std - enum for supported standards */
+enum tvp515x_std {
+ STD_PAL_BDGHIN = 0,
+ STD_NTSC_MJ,
+ STD_INVALID
+};
+
+/**
+ * struct tvp515x_std_info - Structure to store standard informations
+ * @width: Line width in pixels
+ * @height:Number of active lines
+ * @video_std: Value to write in REG_VIDEO_STD register
+ * @standard: v4l2 standard structure information
+ */
+struct tvp515x_std_info {
+ u8 video_std;
+ struct v4l2_standard standard;
+ struct v4l2_mbus_framefmt format;
+};
+
+/**
+ * Supported standards -
+ *
+ * Currently supports two standards only, need to add support for rest of the
+ * modes, like SECAM, etc...
+ */
+static struct tvp515x_std_info tvp515x_std_list[] = {
+ /* Standard: STD_NTSC_MJ */
+ /* Standard: STD_PAL_BDGHIN */
+ [STD_PAL_BDGHIN] = {
+ .video_std = VIDEO_STD_PAL_BDGHIN_BIT,
+ .standard = {
+ .index = 1,
+ .id = V4L2_STD_PAL,
+ .name = "PAL",
+ .frameperiod = {1, 25},
+ .framelines = 625
+ },
+ .format = {
+ .width = PAL_NUM_ACTIVE_PIXELS,
+ .height = PAL_NUM_ACTIVE_LINES,
+ .code = V4L2_MBUS_FMT_UYVY8_2X8,
+ .field = V4L2_FIELD_INTERLACED,
+ .colorspace = V4L2_COLORSPACE_SMPTE170M,
+ },
+ },
+ [STD_NTSC_MJ] = {
+ .video_std = VIDEO_STD_NTSC_MJ_BIT,
+ .standard = {
+ .index = 0,
+ .id = V4L2_STD_NTSC,
+ .name = "NTSC",
+ .frameperiod = {1001, 30000},
+ .framelines = 525
+ },
+ .format = {
+ .width = NTSC_NUM_ACTIVE_PIXELS,
+ .height = NTSC_NUM_ACTIVE_LINES,
+ .code = V4L2_MBUS_FMT_UYVY8_2X8,
+ .field = V4L2_FIELD_INTERLACED,
+ .colorspace = V4L2_COLORSPACE_SMPTE170M,
+ },
+ },
+ /* Standard: need to add for additional standard */
+};
+
struct tvp5150 {
struct v4l2_subdev sd;
struct v4l2_ctrl_handler hdl;
-
- v4l2_std_id norm; /* Current set standard */
+ struct media_pad pad;
+ struct v4l2_mbus_framefmt *format;
+ v4l2_std_id std_idx;
+ int norm;
u32 input;
u32 output;
int enable;
@@ -693,6 +763,45 @@ static int tvp5150_get_vbi(struct v4l2_subdev *sd,
return type;
}
+/**
+ * tvp515x_query_current_std() : Query the current standard detected by TVP5151
+ * @sd: ptr to v4l2_subdev struct
+ *
+ * Returns the current standard detected by TVP5151, STD_INVALID if there is no
+ * standard detected.
+ */
+static int tvp515x_query_current_std(struct v4l2_subdev *sd)
+{
+ u8 std, std_status;
+
+ std = tvp5150_read(sd, TVP5150_VIDEO_STD);
+ if ((std & VIDEO_STD_MASK) == VIDEO_STD_AUTO_SWITCH_BIT)
+ /* use the standard status register */
+ std_status = tvp5150_read(sd, TVP5150_STATUS_REG_5);
+ else
+ /* use the standard register itself */
+ std_status = std;
+
+ switch (std_status & VIDEO_STD_MASK) {
+ case VIDEO_STD_NTSC_MJ_BIT:
+ case VIDEO_STD_NTSC_MJ_BIT_AS:
+ return STD_NTSC_MJ;
+
+ case VIDEO_STD_PAL_BDGHIN_BIT:
+ case VIDEO_STD_PAL_BDGHIN_BIT_AS:
+ return STD_PAL_BDGHIN;
+
+ default:
+ return STD_INVALID;
+ }
+
+ return STD_INVALID;
+}
+
+/****************************************************************************
+ V4L2 subdev video operations
+ ****************************************************************************/
+
static int tvp5150_set_std(struct v4l2_subdev *sd, v4l2_std_id std)
{
struct tvp5150 *decoder = to_tvp5150(sd);
@@ -703,7 +812,7 @@ static int tvp5150_set_std(struct v4l2_subdev *sd, v4l2_std_id std)
/* First tests should be against specific std */
if (std == V4L2_STD_ALL) {
- fmt = VIDEO_STD_AUTO_SWITCH_BIT; /* Autodetect mode */
+ fmt = 0; /* Autodetect mode */
} else if (std & V4L2_STD_NTSC_443) {
fmt = VIDEO_STD_NTSC_4_43_BIT;
} else if (std & V4L2_STD_PAL_M) {
@@ -728,11 +837,26 @@ static int tvp5150_set_std(struct v4l2_subdev *sd, v4l2_std_id std)
static int tvp5150_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
{
struct tvp5150 *decoder = to_tvp5150(sd);
+ int i;
+ int num_stds = ARRAY_SIZE(tvp515x_std_list);
if (decoder->norm == std)
return 0;
- return tvp5150_set_std(sd, std);
+ for (i = 0; i < num_stds; i++)
+ if (std & tvp515x_std_list[i].standard.id)
+ break;
+
+ if ((i == num_stds) || (i == STD_INVALID))
+ return -EINVAL;
+
+ tvp5150_write(sd, TVP5150_VIDEO_STD, tvp515x_std_list[i].video_std);
+
+ decoder->norm = i;
+ decoder->norm = std;
+
+/* return tvp5150_set_std(sd, std); */
+ return 0;
}
static int tvp5150_reset(struct v4l2_subdev *sd, u32 val)
@@ -779,70 +903,177 @@ static int tvp5150_s_ctrl(struct v4l2_ctrl *ctrl)
return -EINVAL;
}
-static v4l2_std_id tvp5150_read_std(struct v4l2_subdev *sd)
+static struct v4l2_mbus_framefmt *
+__tvp5150_get_pad_format(struct tvp5150 *tvp5150, struct v4l2_subdev_fh *fh,
+ unsigned int pad, enum v4l2_subdev_format_whence which)
{
- int val = tvp5150_read(sd, TVP5150_STATUS_REG_5);
-
- switch (val & 0x0F) {
- case 0x01:
- return V4L2_STD_NTSC;
- case 0x03:
- return V4L2_STD_PAL;
- case 0x05:
- return V4L2_STD_PAL_M;
- case 0x07:
- return V4L2_STD_PAL_N | V4L2_STD_PAL_Nc;
- case 0x09:
- return V4L2_STD_NTSC_443;
- case 0xb:
- return V4L2_STD_SECAM;
+ switch (which) {
+ case V4L2_SUBDEV_FORMAT_TRY:
+ return v4l2_subdev_get_try_format(fh, pad);
+ case V4L2_SUBDEV_FORMAT_ACTIVE:
+ return tvp5150->format;
default:
- return V4L2_STD_UNKNOWN;
+ return NULL;
}
}
-static int tvp5150_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
- enum v4l2_mbus_pixelcode *code)
+static int tvp5150_get_pad_format(struct v4l2_subdev *subdev,
+ struct v4l2_subdev_fh *fh,
+ struct v4l2_subdev_format *format)
{
- if (index)
- return -EINVAL;
+ struct tvp5150 *tvp5150 = to_tvp5150(subdev);
+
+ format->format = *__tvp5150_get_pad_format(tvp5150, fh, format->pad,
+ format->which);
+
+ return 0;
+}
+
+static int tvp5150_set_pad_format(struct v4l2_subdev *subdev,
+ struct v4l2_subdev_fh *fh,
+ struct v4l2_subdev_format *format)
+{
+ struct tvp5150 *tvp5150 = to_tvp5150(subdev);
+ tvp5150->std_idx = STD_INVALID;
+
+ tvp5150->std_idx = tvp515x_query_current_std(subdev);
+ if (tvp5150->std_idx == STD_INVALID) {
+ v4l2_err(subdev, "Unable to query std\n");
+ return 0;
+ }
+
+ tvp5150->norm = tvp515x_std_list[tvp5150->std_idx].standard.id;
+
+ tvp5150->format = &tvp515x_std_list[tvp5150->std_idx].format;
+
+ format->format = *__tvp5150_get_pad_format(tvp5150, fh, format->pad,
+ format->which);
+
+ v4l2_info(subdev, "code=x%x width=%u height=%u colorspace=0x%x\n",
+ format->format.code, format->format.width,
+ format->format.height, format->format.colorspace);
- *code = V4L2_MBUS_FMT_YUYV8_2X8;
return 0;
}
-static int tvp5150_mbus_fmt(struct v4l2_subdev *sd,
- struct v4l2_mbus_framefmt *f)
+/**
+ * tvp515x_mbus_fmt_cap() - V4L2 decoder interface handler for try/s/g_mbus_fmt
+ * @sd: pointer to standard V4L2 sub-device structure
+ * @f: pointer to the mediabus format structure
+ *
+ * Negotiates the image capture size and mediabus format.
+ */
+static int
+tvp515x_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *f)
{
struct tvp5150 *decoder = to_tvp5150(sd);
- v4l2_std_id std;
if (f == NULL)
return -EINVAL;
- tvp5150_reset(sd, 0);
+ f = decoder->format;
- /* Calculate height and width based on current standard */
- if (decoder->norm == V4L2_STD_ALL)
- std = tvp5150_read_std(sd);
- else
- std = decoder->norm;
+ v4l2_dbg(1, debug, sd, "MBUS_FMT: Width - %d, Height - %d\n",
+ f->width, f->height);
+ return 0;
+}
+
+/*
+ * tvp515x_s_stream() - V4L2 decoder i/f handler for s_stream
+ * @sd: pointer to standard V4L2 sub-device structure
+ * @enable: streaming enable or disable
+ *
+ * Sets streaming to enable or disable, if possible.
+ */
+static int tvp515x_s_stream(struct v4l2_subdev *subdev, int enable)
+{
+
+ /* Initializes TVP5150 to its default values */
+ /* # set PCLK (27MHz) */
+ tvp5150_write(subdev, TVP5150_CONF_SHARED_PIN, 0x00);
- f->width = 720;
- if (std & V4L2_STD_525_60)
- f->height = 480;
+ /* Output format: 8-bit ITU-R BT.656 with embedded syncs */
+ if (enable)
+ tvp5150_write(subdev, TVP5150_MISC_CTL, 0x09);
else
- f->height = 576;
+ tvp5150_write(subdev, TVP5150_MISC_CTL, 0x00);
+
+ return 0;
+}
+
+
+/**
+ * tvp515x_enum_mbus_fmt() - V4L2 decoder interface handler for enum_mbus_fmt
+ * @sd: pointer to standard V4L2 sub-device structure
+ * @index: index of pixelcode to retrieve
+ * @code: receives the pixelcode
+ *
+ * Enumerates supported mediabus formats
+ */
+static int
+tvp515x_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index,
+ enum v4l2_mbus_pixelcode *code)
+{
+ if (index)
+ return -EINVAL;
+
+ *code = V4L2_MBUS_FMT_UYVY8_2X8;
+ return 0;
+}
+
+/**
+ * tvp515x_g_parm() - V4L2 decoder interface handler for g_parm
+ * @sd: pointer to standard V4L2 sub-device structure
+ * @a: pointer to standard V4L2 VIDIOC_G_PARM ioctl structure
+ *
+ * Returns the decoder's video CAPTURE parameters.
+ */
+static int
+tvp515x_g_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *a)
+{
+ struct v4l2_captureparm *cparm;
+
+ if (a == NULL)
+ return -EINVAL;
+
+ if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
+ /* only capture is supported */
+ return -EINVAL;
+
+ cparm = &a->parm.capture;
+ cparm->capability = V4L2_CAP_TIMEPERFRAME;
+ cparm->timeperframe = a->parm.capture.timeperframe;
+
+ return 0;
+}
+
+/**
+ * tvp515x_s_parm() - V4L2 decoder interface handler for s_parm
+ * @sd: pointer to standard V4L2 sub-device structure
+ * @a: pointer to standard V4L2 VIDIOC_S_PARM ioctl structure
+ *
+ * Configures the decoder to use the input parameters, if possible. If
+ * not possible, returns the appropriate error code.
+ */
+static int
+tvp515x_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *a)
+{
+ struct v4l2_fract *timeperframe;
+
+ if (a == NULL)
+ return -EINVAL;
+
+ if (a->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
+ /* only capture is supported */
+ return -EINVAL;
- f->code = V4L2_MBUS_FMT_YUYV8_2X8;
- f->field = V4L2_FIELD_SEQ_TB;
- f->colorspace = V4L2_COLORSPACE_SMPTE170M;
+ timeperframe = &a->parm.capture.timeperframe;
- v4l2_dbg(1, debug, sd, "width = %d, height = %d\n", f->width,
- f->height);
return 0;
}
+
+
/****************************************************************************
I2C Command
****************************************************************************/
@@ -965,7 +1196,33 @@ static int tvp5150_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
return 0;
}
-/* ----------------------------------------------------------------------- */
+/****************************************************************************
+ V4L2 subdev core operations
+ ****************************************************************************/
+
+static int tvp5150_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
+{
+ struct tvp5150 *decoder = to_tvp5150(subdev);
+
+ decoder->std_idx = STD_INVALID;
+
+ decoder->std_idx = tvp515x_query_current_std(subdev);
+
+ if (decoder->std_idx == STD_INVALID) {
+ v4l2_err(subdev, "Unable to query std\n");
+ return 0;
+ }
+
+ decoder->format = (&(tvp515x_std_list[decoder->std_idx].format));
+ decoder->norm = tvp515x_std_list[decoder->std_idx].standard.id;
+
+ return 0;
+}
+
+static int tvp5150_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
+{
+ return 0;
+}
static const struct v4l2_ctrl_ops tvp5150_ctrl_ops = {
.s_ctrl = tvp5150_s_ctrl,
@@ -989,15 +1246,25 @@ static const struct v4l2_subdev_core_ops tvp5150_core_ops = {
#endif
};
+static struct v4l2_subdev_internal_ops tvp5150_subdev_internal_ops = {
+ .open = tvp5150_open,
+ .close = tvp5150_close,
+};
+
static const struct v4l2_subdev_tuner_ops tvp5150_tuner_ops = {
.g_tuner = tvp5150_g_tuner,
};
static const struct v4l2_subdev_video_ops tvp5150_video_ops = {
.s_routing = tvp5150_s_routing,
- .enum_mbus_fmt = tvp5150_enum_mbus_fmt,
- .s_mbus_fmt = tvp5150_mbus_fmt,
- .try_mbus_fmt = tvp5150_mbus_fmt,
+ .s_stream = tvp515x_s_stream,
+ .enum_mbus_fmt = tvp515x_enum_mbus_fmt,
+ .g_mbus_fmt = tvp515x_mbus_fmt,
+ .try_mbus_fmt = tvp515x_mbus_fmt,
+ .s_mbus_fmt = tvp515x_mbus_fmt,
+ .g_parm = tvp515x_g_parm,
+ .s_parm = tvp515x_s_parm,
+ .s_std_output = tvp5150_s_std,
};
static const struct v4l2_subdev_vbi_ops tvp5150_vbi_ops = {
@@ -1007,14 +1274,56 @@ static const struct v4l2_subdev_vbi_ops tvp5150_vbi_ops = {
.s_raw_fmt = tvp5150_s_raw_fmt,
};
+static int tvp515x_enum_mbus_code(struct v4l2_subdev *subdev,
+ struct v4l2_subdev_fh *fh,
+ struct v4l2_subdev_mbus_code_enum *code)
+{
+ if (code->index >= ARRAY_SIZE(tvp515x_std_list))
+ return -EINVAL;
+
+ code->code = V4L2_MBUS_FMT_UYVY8_2X8;
+
+ return 0;
+}
+
+static int tvp515x_enum_frame_size(struct v4l2_subdev *subdev,
+ struct v4l2_subdev_fh *fh,
+ struct v4l2_subdev_frame_size_enum *fse)
+{
+ int current_std = STD_INVALID;
+
+ if (fse->code != V4L2_MBUS_FMT_UYVY8_2X8)
+ return -EINVAL;
+
+ /* query the current standard */
+ current_std = tvp515x_query_current_std(subdev);
+ if (current_std == STD_INVALID) {
+ v4l2_err(subdev, "Unable to query std\n");
+ return 0;
+ }
+
+ fse->min_width = tvp515x_std_list[current_std].format.width;
+ fse->min_height = tvp515x_std_list[current_std].format.height;
+ fse->max_width = fse->min_width;
+ fse->max_height = fse->min_height;
+ return 0;
+}
+
+static struct v4l2_subdev_pad_ops tvp5150_pad_ops = {
+ .enum_mbus_code = tvp515x_enum_mbus_code,
+ .enum_frame_size = tvp515x_enum_frame_size,
+ .get_fmt = tvp5150_get_pad_format,
+ .set_fmt = tvp5150_set_pad_format,
+};
+
static const struct v4l2_subdev_ops tvp5150_ops = {
.core = &tvp5150_core_ops,
.tuner = &tvp5150_tuner_ops,
.video = &tvp5150_video_ops,
.vbi = &tvp5150_vbi_ops,
+ .pad = &tvp5150_pad_ops,
};
-
/****************************************************************************
I2C Client & Driver
****************************************************************************/
@@ -1025,6 +1334,7 @@ static int tvp5150_probe(struct i2c_client *c,
struct tvp5150 *core;
struct v4l2_subdev *sd;
u8 msb_id, lsb_id, msb_rom, lsb_rom;
+ int ret;
/* Check if the adapter supports the needed features */
if (!i2c_check_functionality(c->adapter,
@@ -1060,6 +1370,8 @@ static int tvp5150_probe(struct i2c_client *c,
}
}
+ core->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
+ core->sd.internal_ops = &tvp5150_subdev_internal_ops;
core->norm = V4L2_STD_ALL; /* Default is autodetect */
core->input = TVP5150_COMPOSITE1;
core->enable = 1;
@@ -1085,6 +1397,12 @@ static int tvp5150_probe(struct i2c_client *c,
if (debug > 1)
tvp5150_log_status(sd);
+
+ core->pad.flags = MEDIA_PAD_FL_SOURCE;
+ ret = media_entity_init(&core->sd.entity, 1, &core->pad, 0);
+ if (ret < 0)
+ kfree(core);
+
return 0;
}
@@ -1099,6 +1417,7 @@ static int tvp5150_remove(struct i2c_client *c)
v4l2_device_unregister_subdev(sd);
v4l2_ctrl_handler_free(&decoder->hdl);
+ media_entity_cleanup(&sd->entity);
kfree(to_tvp5150(sd));
return 0;
}
diff --git a/include/media/tvp5150.h b/include/media/tvp5150.h
index 72bd2a2..ccd4ed0 100644
--- a/include/media/tvp5150.h
+++ b/include/media/tvp5150.h
@@ -30,5 +30,11 @@
#define TVP5150_NORMAL 0
#define TVP5150_BLACK_SCREEN 1
+/* Number of pixels and number of lines per frame for different standards */
+#define NTSC_NUM_ACTIVE_PIXELS (720)
+#define NTSC_NUM_ACTIVE_LINES (480)
+#define PAL_NUM_ACTIVE_PIXELS (720)
+#define PAL_NUM_ACTIVE_LINES (576)
+
#endif
--
1.7.7.5
[-- Attachment #3: 0002-Merge-working-BT-656-support.patch --]
[-- Type: text/x-patch, Size: 13230 bytes --]
>From 0eeacda5e878183315df14e9e55055bbf7a2271d Mon Sep 17 00:00:00 2001
From: Gary Thomas <gary@mlbassoc.com>
Date: Wed, 25 Jan 2012 07:57:48 -0700
Subject: [PATCH 2/2] Merge working BT-656 support
---
drivers/media/video/omap3isp/ispccdc.c | 142 +++++++++++++++++++++++++------
drivers/media/video/omap3isp/ispccdc.h | 1 +
drivers/media/video/omap3isp/ispreg.h | 1 +
drivers/media/video/omap3isp/ispvideo.c | 6 +-
drivers/media/video/omap3isp/ispvideo.h | 3 +
include/media/omap3isp.h | 3 +
6 files changed, 128 insertions(+), 28 deletions(-)
diff --git a/drivers/media/video/omap3isp/ispccdc.c b/drivers/media/video/omap3isp/ispccdc.c
index 4327025..6bb29ce 100644
--- a/drivers/media/video/omap3isp/ispccdc.c
+++ b/drivers/media/video/omap3isp/ispccdc.c
@@ -62,6 +62,8 @@ static const unsigned int ccdc_fmts[] = {
V4L2_MBUS_FMT_UYVY8_2X8,
};
+static bool ccdc_input_is_bt656(struct isp_ccdc_device *ccdc);
+
/*
* ccdc_print_status - Print current CCDC Module register values.
* @ccdc: Pointer to ISP CCDC device.
@@ -794,11 +796,16 @@ static void ccdc_apply_controls(struct isp_ccdc_device *ccdc)
void omap3isp_ccdc_restore_context(struct isp_device *isp)
{
struct isp_ccdc_device *ccdc = &isp->isp_ccdc;
+ struct v4l2_mbus_framefmt *format;
isp_reg_set(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_CFG, ISPCCDC_CFG_VDLC);
- ccdc->update = OMAP3ISP_CCDC_ALAW | OMAP3ISP_CCDC_LPF
- | OMAP3ISP_CCDC_BLCLAMP | OMAP3ISP_CCDC_BCOMP;
+ /* CCDC_PAD_SINK */
+ format = &ccdc->formats[CCDC_PAD_SINK];
+ if ((format->code != V4L2_MBUS_FMT_UYVY8_2X8) &&
+ (format->code != V4L2_MBUS_FMT_UYVY8_2X8))
+ ccdc->update = OMAP3ISP_CCDC_ALAW | OMAP3ISP_CCDC_LPF |
+ OMAP3ISP_CCDC_BLCLAMP | OMAP3ISP_CCDC_BCOMP;
ccdc_apply_controls(ccdc);
ccdc_configure_fpc(ccdc);
}
@@ -1012,6 +1019,9 @@ static void ccdc_config_sync_if(struct isp_ccdc_device *ccdc,
if (pdata && pdata->vs_pol)
syn_mode |= ISPCCDC_SYN_MODE_VDPOL;
+ if (pdata && pdata->fldmode)
+ syn_mode |= ISPCCDC_SYN_MODE_FLDMODE;
+
isp_reg_writel(isp, syn_mode, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SYN_MODE);
if (format->code == V4L2_MBUS_FMT_UYVY8_2X8)
@@ -1023,10 +1033,10 @@ static void ccdc_config_sync_if(struct isp_ccdc_device *ccdc,
if (pdata && pdata->bt656)
isp_reg_set(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_REC656IF,
- ISPCCDC_REC656IF_R656ON);
+ ISPCCDC_REC656IF_R656ON | ISPCCDC_REC656IF_ECCFVH);
else
isp_reg_clr(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_REC656IF,
- ISPCCDC_REC656IF_R656ON);
+ ISPCCDC_REC656IF_R656ON | ISPCCDC_REC656IF_ECCFVH);
}
/* CCDC formats descriptions */
@@ -1108,6 +1118,7 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc)
struct isp_parallel_platform_data *pdata = NULL;
struct v4l2_subdev *sensor;
struct v4l2_mbus_framefmt *format;
+ struct v4l2_pix_format pix;
const struct isp_format_info *fmt_info;
struct v4l2_subdev_format fmt_src;
unsigned int depth_out;
@@ -1166,6 +1177,10 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc)
/* CCDC_PAD_SINK */
format = &ccdc->formats[CCDC_PAD_SINK];
+ if (format->code == V4L2_MBUS_FMT_UYVY8_2X8)
+ isp_reg_set(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_CFG,
+ ISPCCDC_CFG_Y8POS);
+
/* Mosaic filter */
switch (format->code) {
case V4L2_MBUS_FMT_SRGGB10_1X10:
@@ -1185,28 +1200,70 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc)
ccdc_pattern = ccdc_sgrbg_pattern;
break;
}
- ccdc_config_imgattr(ccdc, ccdc_pattern);
- /* Generate VD0 on the last line of the image and VD1 on the
- * 2/3 height line.
- */
- isp_reg_writel(isp, ((format->height - 2) << ISPCCDC_VDINT_0_SHIFT) |
- ((format->height * 2 / 3) << ISPCCDC_VDINT_1_SHIFT),
- OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VDINT);
+ if ((format->code != V4L2_MBUS_FMT_YUYV8_2X8) &&
+ (format->code != V4L2_MBUS_FMT_UYVY8_2X8))
+ ccdc_config_imgattr(ccdc, ccdc_pattern);
+
+ /* BT656: Generate VD0 on the last line of each field, and we
+ * don't use VD1.
+ * Non BT656: Generate VD0 on the last line of the image and VD1 on the
+ * 2/3 height line.
+ */
+ if (pdata->bt656)
+ isp_reg_writel(isp,
+ (format->height/2 - 2) << ISPCCDC_VDINT_0_SHIFT,
+ OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VDINT);
+ else
+ isp_reg_writel(isp,
+ ((format->height - 2) << ISPCCDC_VDINT_0_SHIFT) |
+ ((format->height * 2 / 3) << ISPCCDC_VDINT_1_SHIFT),
+ OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VDINT);
/* CCDC_PAD_SOURCE_OF */
format = &ccdc->formats[CCDC_PAD_SOURCE_OF];
- isp_reg_writel(isp, (0 << ISPCCDC_HORZ_INFO_SPH_SHIFT) |
- ((format->width - 1) << ISPCCDC_HORZ_INFO_NPH_SHIFT),
- OMAP3_ISP_IOMEM_CCDC, ISPCCDC_HORZ_INFO);
+ isp_video_mbus_to_pix(&ccdc->video_out, format, &pix);
+
+ /* For BT656 the number of bytes would be width*2 */
+ if (pdata->bt656)
+ isp_reg_writel(isp, (0 << ISPCCDC_HORZ_INFO_SPH_SHIFT) |
+ ((pix.bytesperline - 1) << ISPCCDC_HORZ_INFO_NPH_SHIFT),
+ OMAP3_ISP_IOMEM_CCDC, ISPCCDC_HORZ_INFO);
+ else
+ isp_reg_writel(isp, (0 << ISPCCDC_HORZ_INFO_SPH_SHIFT) |
+ ((format->width - 1) << ISPCCDC_HORZ_INFO_NPH_SHIFT),
+ OMAP3_ISP_IOMEM_CCDC, ISPCCDC_HORZ_INFO);
isp_reg_writel(isp, 0 << ISPCCDC_VERT_START_SLV0_SHIFT,
OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VERT_START);
- isp_reg_writel(isp, (format->height - 1)
- << ISPCCDC_VERT_LINES_NLV_SHIFT,
- OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VERT_LINES);
- ccdc_config_outlineoffset(ccdc, ccdc->video_out.bpl_value, 0, 0);
+ if (pdata->bt656)
+ isp_reg_writel(isp, ((format->height >> 1) - 1) << ISPCCDC_VERT_LINES_NLV_SHIFT,
+ OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VERT_LINES);
+ else
+ isp_reg_writel(isp, (format->height - 1) << ISPCCDC_VERT_LINES_NLV_SHIFT,
+ OMAP3_ISP_IOMEM_CCDC, ISPCCDC_VERT_LINES);
+
+ isp_reg_clr(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SDOFST,
+ ISPCCDC_SDOFST_LOFST_MASK << ISPCCDC_SDOFST_LOFST0_SHIFT);
+ isp_reg_clr(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SDOFST,
+ ISPCCDC_SDOFST_LOFST_MASK << ISPCCDC_SDOFST_LOFST1_SHIFT);
+ isp_reg_clr(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SDOFST,
+ ISPCCDC_SDOFST_LOFST_MASK << ISPCCDC_SDOFST_LOFST2_SHIFT);
+ isp_reg_clr(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SDOFST,
+ ISPCCDC_SDOFST_LOFST_MASK << ISPCCDC_SDOFST_LOFST3_SHIFT);
+
+ /* In case of BT656 each alternate line must be stored into memory */
+ if (pdata->bt656) {
+ ccdc_config_outlineoffset(ccdc, pix.bytesperline, EVENEVEN, 1);
+ ccdc_config_outlineoffset(ccdc, pix.bytesperline, EVENODD, 1);
+ ccdc_config_outlineoffset(ccdc, pix.bytesperline, ODDEVEN, 1);
+ ccdc_config_outlineoffset(ccdc, pix.bytesperline, ODDODD, 1);
+ isp_reg_set(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_SDOFST,
+ ISPCCDC_SDOFST_FINV);
+ } else {
+ ccdc_config_outlineoffset(ccdc, ccdc->video_out.bpl_value, 0, 0);
+ }
/* CCDC_PAD_SOURCE_VP */
format = &ccdc->formats[CCDC_PAD_SOURCE_VP];
@@ -1253,6 +1310,11 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc)
unlock:
spin_unlock_irqrestore(&ccdc->lsc.req_lock, flags);
+ if (pdata->bt656)
+ ccdc->update = OMAP3ISP_CCDC_BLCLAMP;
+ else
+ ccdc->update = 0;
+
ccdc_apply_controls(ccdc);
}
@@ -1264,6 +1326,7 @@ static void __ccdc_enable(struct isp_ccdc_device *ccdc, int enable)
ISPCCDC_PCR_EN, enable ? ISPCCDC_PCR_EN : 0);
}
+static int __ccdc_handle_stopping(struct isp_ccdc_device *ccdc, u32 event);
static int ccdc_disable(struct isp_ccdc_device *ccdc)
{
unsigned long flags;
@@ -1274,6 +1337,11 @@ static int ccdc_disable(struct isp_ccdc_device *ccdc)
ccdc->stopping = CCDC_STOP_REQUEST;
spin_unlock_irqrestore(&ccdc->lock, flags);
+ __ccdc_lsc_enable(ccdc, 0);
+ __ccdc_enable(ccdc, 0);
+ ccdc->stopping = CCDC_STOP_EXECUTED;
+ __ccdc_handle_stopping(ccdc, CCDC_STOP_FINISHED);
+
ret = wait_event_timeout(ccdc->wait,
ccdc->stopping == CCDC_STOP_FINISHED,
msecs_to_jiffies(2000));
@@ -1526,9 +1594,31 @@ static void ccdc_vd0_isr(struct isp_ccdc_device *ccdc)
{
unsigned long flags;
int restart = 0;
-
- if (ccdc->output & CCDC_OUTPUT_MEMORY)
- restart = ccdc_isr_buffer(ccdc);
+ struct isp_device *isp = to_isp_device(ccdc);
+
+ if (ccdc->output & CCDC_OUTPUT_MEMORY) {
+ if (ccdc_input_is_bt656(ccdc)) {
+ u32 fid;
+ u32 syn_mode = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCDC,
+ ISPCCDC_SYN_MODE);
+
+ fid = (syn_mode & ISPCCDC_SYN_MODE_FLDSTAT) == 0;
+ /* toggle the software maintained fid */
+ ccdc->fldstat ^= 1;
+
+ if (fid == ccdc->fldstat) {
+ if (fid == 0) {
+ restart = ccdc_isr_buffer(ccdc);
+ goto done;
+ }
+ } else if (fid == 0) {
+ ccdc->fldstat = fid;
+ }
+ } else {
+ restart = ccdc_isr_buffer(ccdc);
+ }
+ }
+done:
spin_lock_irqsave(&ccdc->lock, flags);
if (__ccdc_handle_stopping(ccdc, CCDC_EVENT_VD0)) {
@@ -1615,7 +1705,8 @@ int omap3isp_ccdc_isr(struct isp_ccdc_device *ccdc, u32 events)
if (ccdc->state == ISP_PIPELINE_STREAM_STOPPED)
return 0;
- if (events & IRQ0STATUS_CCDC_VD1_IRQ)
+ if (!ccdc_input_is_bt656(ccdc) &&
+ (events & IRQ0STATUS_CCDC_VD1_IRQ))
ccdc_vd1_isr(ccdc);
ccdc_lsc_isr(ccdc, events);
@@ -1623,7 +1714,8 @@ int omap3isp_ccdc_isr(struct isp_ccdc_device *ccdc, u32 events)
if (events & IRQ0STATUS_CCDC_VD0_IRQ)
ccdc_vd0_isr(ccdc);
- if (events & IRQ0STATUS_HS_VS_IRQ)
+ if (!ccdc_input_is_bt656(ccdc) &&
+ (events & IRQ0STATUS_HS_VS_IRQ))
ccdc_hs_vs_isr(ccdc);
return 0;
@@ -1737,7 +1829,7 @@ static int ccdc_set_stream(struct v4l2_subdev *sd, int enable)
* links are inactive.
*/
ccdc_config_vp(ccdc);
- ccdc_enable_vp(ccdc, 1);
+ ccdc_enable_vp(ccdc, 0);
ccdc_print_status(ccdc);
}
@@ -2286,7 +2378,7 @@ int omap3isp_ccdc_init(struct isp_device *isp)
ccdc->vpcfg.pixelclk = 0;
- ccdc->update = OMAP3ISP_CCDC_BLCLAMP;
+ ccdc->update = 0;
ccdc_apply_controls(ccdc);
ret = ccdc_init_entities(ccdc);
diff --git a/drivers/media/video/omap3isp/ispccdc.h b/drivers/media/video/omap3isp/ispccdc.h
index 836439a..2d31250 100644
--- a/drivers/media/video/omap3isp/ispccdc.h
+++ b/drivers/media/video/omap3isp/ispccdc.h
@@ -157,6 +157,7 @@ struct isp_ccdc_device {
struct ispccdc_vp vpcfg;
unsigned int underrun:1;
+ unsigned int fldstat:1;
enum isp_pipeline_stream_state state;
spinlock_t lock;
wait_queue_head_t wait;
diff --git a/drivers/media/video/omap3isp/ispreg.h b/drivers/media/video/omap3isp/ispreg.h
index 084ea77..f9c2e47 100644
--- a/drivers/media/video/omap3isp/ispreg.h
+++ b/drivers/media/video/omap3isp/ispreg.h
@@ -824,6 +824,7 @@
#define ISPCCDC_SDOFST_LOFST2_SHIFT 3
#define ISPCCDC_SDOFST_LOFST1_SHIFT 6
#define ISPCCDC_SDOFST_LOFST0_SHIFT 9
+#define ISPCCDC_SDOFST_LOFST_MASK 0x7
#define EVENEVEN 1
#define ODDEVEN 2
#define EVENODD 3
diff --git a/drivers/media/video/omap3isp/ispvideo.c b/drivers/media/video/omap3isp/ispvideo.c
index 9107106..fd7be8d 100644
--- a/drivers/media/video/omap3isp/ispvideo.c
+++ b/drivers/media/video/omap3isp/ispvideo.c
@@ -165,9 +165,9 @@ static bool isp_video_is_shiftable(enum v4l2_mbus_pixelcode in,
*
* Return the number of padding bytes at end of line.
*/
-static unsigned int isp_video_mbus_to_pix(const struct isp_video *video,
- const struct v4l2_mbus_framefmt *mbus,
- struct v4l2_pix_format *pix)
+unsigned int isp_video_mbus_to_pix(const struct isp_video *video,
+ const struct v4l2_mbus_framefmt *mbus,
+ struct v4l2_pix_format *pix)
{
unsigned int bpl = pix->bytesperline;
unsigned int min_bpl;
diff --git a/drivers/media/video/omap3isp/ispvideo.h b/drivers/media/video/omap3isp/ispvideo.h
index d52c508..e6e0a96 100644
--- a/drivers/media/video/omap3isp/ispvideo.h
+++ b/drivers/media/video/omap3isp/ispvideo.h
@@ -204,6 +204,9 @@ void omap3isp_video_unregister(struct isp_video *video);
struct isp_buffer *omap3isp_video_buffer_next(struct isp_video *video);
void omap3isp_video_resume(struct isp_video *video, int continuous);
struct media_pad *omap3isp_video_remote_pad(struct isp_video *video);
+extern unsigned int isp_video_mbus_to_pix(const struct isp_video *video,
+ const struct v4l2_mbus_framefmt *mbus,
+ struct v4l2_pix_format *pix);
const struct isp_format_info *
omap3isp_video_format_info(enum v4l2_mbus_pixelcode code);
diff --git a/include/media/omap3isp.h b/include/media/omap3isp.h
index f67b8c1..e1feb13 100644
--- a/include/media/omap3isp.h
+++ b/include/media/omap3isp.h
@@ -61,6 +61,8 @@ enum {
* 0 - Normal, 1 - One's complement
* @bt656: ITU-R BT656 embedded synchronization
* 0 - HS/VS sync, 1 - BT656 sync
+ * @fldmode: Field mode
+ * 0 - progressive, 1 - Interlaced
*/
struct isp_parallel_platform_data {
unsigned int data_lane_shift:2;
@@ -69,6 +71,7 @@ struct isp_parallel_platform_data {
unsigned int vs_pol:1;
unsigned int data_pol:1;
unsigned int bt656:1;
+ unsigned int fldmode:1;
};
enum {
--
1.7.7.5
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-01-30 17:30 ` Gary Thomas
@ 2012-02-04 11:48 ` Gary Thomas
2012-02-04 15:26 ` Enrico
0 siblings, 1 reply; 19+ messages in thread
From: Gary Thomas @ 2012-02-04 11:48 UTC (permalink / raw)
To: linux-media; +Cc: Javier Martinez Canillas, Sakari Ailus, Enrico
On 2012-01-30 10:30, Gary Thomas wrote:
> On 2012-01-20 05:19, Laurent Pinchart wrote:
>> Hi Enrico,
>>
>> On Thursday 19 January 2012 15:17:57 Enrico wrote:
>>> On Thu, Jan 19, 2012 at 2:52 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>> On 2012-01-19 06:35, Gary Thomas wrote:
>>>>> My camera init code is attached. In the previous kernel, the I2C bus was
>>>>> probed implicitly when I initialized the OMAP3ISP. I thought I
>>>>> remembered some discussion about how that worked (maybe changing), so
>>>>> this is probably
>>>>> where the problem starts.
>>>>>
>>>>> If you have an example, I can check my setup against it.
>>>>
>>>> Note: I reworked how the sensor+I2C was initialized to be
>>>> omap3_init_camera(&cobra3530p73_isp_platform_data);
>>>>
>>>> omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0]
>>>> .i2c_adapter_id, 400,
>>>>
>>>> cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
>>>>
>>>> The TVP5150 is now found, but 'media-ctl -p' still dies :-(
>>>
>>> Have a look at [1] (the linux_3.2.bb file to see the list of
>>> patches,inside linux-3.2 directory for the actual patches), it's based
>>> on mainline kernel 3.2 and the bt656 patches i submitted months ago,
>>> it should be easy to adapt it for you board.
>>>
>>> <rant>
>>> Really, there are patches for all these problems since months (from
>>> me, Javier, TI), but because no maintainer cared (apart from Laurent)
>>> they were never reviewed/applied and there is always someone who comes
>>> back with all the usual problems (additional yuv format, bt656 mode,
>>> tvp5150 that doesn't work...).
>>> </rant>
>>
>> I totally understand your feeling.
>>
>> I'd like to get YUV support integrated in the OMAP3 ISP driver. However, I
>> have no YUV image source hardware, so I can only review the patches but not
>> test them.
>>
>> If someone can rebase the existing patches on top of
>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
>> omap3isp-yuv and test them, then I'll review the result.
>>
>
> The attached patches produce a working setup against Laurent's tree above.
> That said, I don't recall exactly where which changes came from (I'm old
> school and not very git savvy, sorry). I've CC'd all the folks I think
> provided at least part of these changes. Perhaps we can all work together
> to come up with a proper set of patches which can be pushed upstream
> for this, once and for all?
>
> Thanks
>
Ping! Is no one but me interested in getting these changes into
the mainline?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-02-04 11:48 ` Gary Thomas
@ 2012-02-04 15:26 ` Enrico
2012-03-08 15:04 ` Enrico
0 siblings, 1 reply; 19+ messages in thread
From: Enrico @ 2012-02-04 15:26 UTC (permalink / raw)
To: Gary Thomas; +Cc: linux-media, Javier Martinez Canillas, Sakari Ailus
On Sat, Feb 4, 2012 at 12:48 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-01-30 10:30, Gary Thomas wrote:
>>
>> On 2012-01-20 05:19, Laurent Pinchart wrote:
>>>
>>> Hi Enrico,
>>>
>>> On Thursday 19 January 2012 15:17:57 Enrico wrote:
>>>>
>>>> On Thu, Jan 19, 2012 at 2:52 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>>>
>>>>> On 2012-01-19 06:35, Gary Thomas wrote:
>>>>>>
>>>>>> My camera init code is attached. In the previous kernel, the I2C bus
>>>>>> was
>>>>>> probed implicitly when I initialized the OMAP3ISP. I thought I
>>>>>> remembered some discussion about how that worked (maybe changing), so
>>>>>> this is probably
>>>>>> where the problem starts.
>>>>>>
>>>>>> If you have an example, I can check my setup against it.
>>>>>
>>>>>
>>>>> Note: I reworked how the sensor+I2C was initialized to be
>>>>> omap3_init_camera(&cobra3530p73_isp_platform_data);
>>>>>
>>>>>
>>>>> omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0]
>>>>> .i2c_adapter_id, 400,
>>>>>
>>>>> cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
>>>>>
>>>>> The TVP5150 is now found, but 'media-ctl -p' still dies :-(
>>>>
>>>>
>>>> Have a look at [1] (the linux_3.2.bb file to see the list of
>>>> patches,inside linux-3.2 directory for the actual patches), it's based
>>>> on mainline kernel 3.2 and the bt656 patches i submitted months ago,
>>>> it should be easy to adapt it for you board.
>>>>
>>>> <rant>
>>>> Really, there are patches for all these problems since months (from
>>>> me, Javier, TI), but because no maintainer cared (apart from Laurent)
>>>> they were never reviewed/applied and there is always someone who comes
>>>> back with all the usual problems (additional yuv format, bt656 mode,
>>>> tvp5150 that doesn't work...).
>>>> </rant>
>>>
>>>
>>> I totally understand your feeling.
>>>
>>> I'd like to get YUV support integrated in the OMAP3 ISP driver. However,
>>> I
>>> have no YUV image source hardware, so I can only review the patches but
>>> not
>>> test them.
>>>
>>> If someone can rebase the existing patches on top of
>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
>>> omap3isp-yuv and test them, then I'll review the result.
>>>
>>
>> The attached patches produce a working setup against Laurent's tree above.
>> That said, I don't recall exactly where which changes came from (I'm old
>> school and not very git savvy, sorry). I've CC'd all the folks I think
>> provided at least part of these changes. Perhaps we can all work together
>> to come up with a proper set of patches which can be pushed upstream
>> for this, once and for all?
>>
>> Thanks
>>
>
> Ping! Is no one but me interested in getting these changes into
> the mainline?
I am interested, i didn't have time to test it but i will for sure.
And i think it's important to test non bt656/yuv sensors too, but i
have no hardware for that.
Enrico
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] Adding YUV input support for OMAP3ISP driver
2012-02-04 15:26 ` Enrico
@ 2012-03-08 15:04 ` Enrico
0 siblings, 0 replies; 19+ messages in thread
From: Enrico @ 2012-03-08 15:04 UTC (permalink / raw)
To: Gary Thomas, Laurent Pinchart; +Cc: linux-media, Javier Martinez Canillas
On Sat, Feb 4, 2012 at 4:26 PM, Enrico <ebutera@users.berlios.de> wrote:
> On Sat, Feb 4, 2012 at 12:48 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2012-01-30 10:30, Gary Thomas wrote:
>>>
>>> On 2012-01-20 05:19, Laurent Pinchart wrote:
>>>>
>>>> Hi Enrico,
>>>>
>>>> On Thursday 19 January 2012 15:17:57 Enrico wrote:
>>>>>
>>>>> On Thu, Jan 19, 2012 at 2:52 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>>>>>>
>>>>>> On 2012-01-19 06:35, Gary Thomas wrote:
>>>>>>>
>>>>>>> My camera init code is attached. In the previous kernel, the I2C bus
>>>>>>> was
>>>>>>> probed implicitly when I initialized the OMAP3ISP. I thought I
>>>>>>> remembered some discussion about how that worked (maybe changing), so
>>>>>>> this is probably
>>>>>>> where the problem starts.
>>>>>>>
>>>>>>> If you have an example, I can check my setup against it.
>>>>>>
>>>>>>
>>>>>> Note: I reworked how the sensor+I2C was initialized to be
>>>>>> omap3_init_camera(&cobra3530p73_isp_platform_data);
>>>>>>
>>>>>>
>>>>>> omap_register_i2c_bus(cobra3530p73_isp_platform_data.subdevs->subdevs[0]
>>>>>> .i2c_adapter_id, 400,
>>>>>>
>>>>>> cobra3530p73_isp_platform_data.subdevs->subdevs[0].board_info, 1);
>>>>>>
>>>>>> The TVP5150 is now found, but 'media-ctl -p' still dies :-(
>>>>>
>>>>>
>>>>> Have a look at [1] (the linux_3.2.bb file to see the list of
>>>>> patches,inside linux-3.2 directory for the actual patches), it's based
>>>>> on mainline kernel 3.2 and the bt656 patches i submitted months ago,
>>>>> it should be easy to adapt it for you board.
>>>>>
>>>>> <rant>
>>>>> Really, there are patches for all these problems since months (from
>>>>> me, Javier, TI), but because no maintainer cared (apart from Laurent)
>>>>> they were never reviewed/applied and there is always someone who comes
>>>>> back with all the usual problems (additional yuv format, bt656 mode,
>>>>> tvp5150 that doesn't work...).
>>>>> </rant>
>>>>
>>>>
>>>> I totally understand your feeling.
>>>>
>>>> I'd like to get YUV support integrated in the OMAP3 ISP driver. However,
>>>> I
>>>> have no YUV image source hardware, so I can only review the patches but
>>>> not
>>>> test them.
>>>>
>>>> If someone can rebase the existing patches on top of
>>>> http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-
>>>> omap3isp-yuv and test them, then I'll review the result.
>>>>
>>>
>>> The attached patches produce a working setup against Laurent's tree above.
>>> That said, I don't recall exactly where which changes came from (I'm old
>>> school and not very git savvy, sorry). I've CC'd all the folks I think
>>> provided at least part of these changes. Perhaps we can all work together
>>> to come up with a proper set of patches which can be pushed upstream
>>> for this, once and for all?
>>>
>>> Thanks
>>>
>>
>> Ping! Is no one but me interested in getting these changes into
>> the mainline?
>
> I am interested, i didn't have time to test it but i will for sure.
>
> And i think it's important to test non bt656/yuv sensors too, but i
> have no hardware for that.
>
> Enrico
I had some time to test your patches, i can confirm they work in my
setup too but i have some doubts.
1- in the tvp5150 driver there is a hardcoded pal height (active area)
of 576px, while it's true that it's the max pal area you will get i
think it's wrong to force it in the driver because you will loose some
image area (see [1] and [2]). It is better to return the max frame
size and let the application crop it. And if i'm not wrong i think
Javier posted a patch to add crop support in tvp5150 driver and that's
even better.
2- as you can see from [1] and [2] image quality is very different,
but i think it's just that in [1] top/bottom fields are swapped.
For the above reasons and if there is a general consensus i propose to
Laurent to just have a look at the patches i made some time ago (and i
use everyday) from [3] and [4]. They are against mainline kernel but
can be ported to whatever branch, once and for all.
Enrico
[1]: http://img822.imageshack.us/img822/1208/frame08.png
[2]: http://img688.imageshack.us/img688/81/frame081.png
[3]: https://github.com/ebutera/meta-igep/tree/master/recipes-kernel/linux/linux-3.2/omap3isp
[4]: https://github.com/ebutera/meta-igep/tree/master/recipes-kernel/linux/linux-3.2/tvp5150
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2012-03-08 15:04 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <EBE38CF866F2F94F95FA9A8CB3EF2284069CAE@singex1.aptina.com>
2012-01-17 15:33 ` [PATCH] Adding YUV input support for OMAP3ISP driver Laurent Pinchart
2012-01-19 12:41 ` Gary Thomas
2012-01-19 12:50 ` Laurent Pinchart
2012-01-19 13:13 ` Gary Thomas
2012-01-19 13:28 ` Laurent Pinchart
2012-01-19 13:35 ` Gary Thomas
2012-01-19 13:52 ` Gary Thomas
2012-01-19 14:17 ` Enrico
2012-01-20 12:19 ` Laurent Pinchart
2012-01-30 17:30 ` Gary Thomas
2012-02-04 11:48 ` Gary Thomas
2012-02-04 15:26 ` Enrico
2012-03-08 15:04 ` Enrico
2012-01-19 14:11 ` Javier Martinez Canillas
2012-01-19 14:36 ` Gary Thomas
2012-01-19 16:12 ` Javier Martinez Canillas
2012-01-19 17:08 ` Gary Thomas
2012-01-19 17:22 ` Gary Thomas
2012-01-19 17:39 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).