Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
83d25e2d
Commit
83d25e2d
authored
Nov 24, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VPFE capture device with TV5150
parent
f9d5ef79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
22 deletions
+67
-22
arch/arm/mach-davinci/board-neuros-osd2.c
arch/arm/mach-davinci/board-neuros-osd2.c
+67
-22
No files found.
arch/arm/mach-davinci/board-neuros-osd2.c
View file @
83d25e2d
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/gpio.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/partitions.h>
#include <linux/clk.h>
#include <linux/videodev2.h>
#include <linux/videodev2.h>
#include <media/tvp51
4x
.h>
#include <media/tvp51
50
.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
...
@@ -181,14 +181,9 @@ static struct platform_device ntosd2_leds_dev = {
...
@@ -181,14 +181,9 @@ static struct platform_device ntosd2_leds_dev = {
},
},
};
};
static
struct
tvp514x_platform_data
tvp5146_pdata
=
{
/* Inputs available at the TVP5150 */
.
clk_polarity
=
0
,
#ifdef CONFIG_VIDEO_TVP5150
.
hs_polarity
=
1
,
static
struct
v4l2_input
tvp5150_inputs
[]
=
{
.
vs_polarity
=
1
};
/* Inputs available at the TVP5146 */
static
struct
v4l2_input
tvp5146_inputs
[]
=
{
{
{
.
index
=
0
,
.
index
=
0
,
.
name
=
"Composite-rear"
,
.
name
=
"Composite-rear"
,
...
@@ -207,6 +202,19 @@ static struct v4l2_input tvp5146_inputs[] = {
...
@@ -207,6 +202,19 @@ static struct v4l2_input tvp5146_inputs[] = {
},
},
{
{
.
index
=
2
,
.
index
=
2
,
.
name
=
"S-Video"
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
audioset
=
2
,
.
tuner
=
0
,
.
std
=
V4L2_STD_ALL
,
},
};
#endif
#ifdef CONFIG_VIDEO_TVP7000
static
struct
v4l2_input
tvp7000_inputs
[]
=
{
{
.
index
=
0
,
.
name
=
"Component"
,
.
name
=
"Component"
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
audioset
=
2
,
.
audioset
=
2
,
...
@@ -214,30 +222,47 @@ static struct v4l2_input tvp5146_inputs[] = {
...
@@ -214,30 +222,47 @@ static struct v4l2_input tvp5146_inputs[] = {
.
std
=
V4L2_STD_ALL
,
.
std
=
V4L2_STD_ALL
,
},
},
};
};
#endif
/*
/*
* this is the route info for connecting each input to decoder
* this is the route info for connecting each input to decoder
* ouput that goes to vpfe. There is a one to one correspondence
* ouput that goes to vpfe. There is a one to one correspondence
* with
ntosd2_vpfe
_inputs
* with
tvp5150
_inputs
*/
*/
static
struct
vpfe_route
tvp5146_routes
[]
=
{
#ifdef CONFIG_VIDEO_TVP5150
static
struct
vpfe_route
tvp5150_routes
[]
=
{
{
{
.
input
=
INPUT_CVBS_VI2B
,
.
input
=
TVP5150_COMPOSITE0
,
.
output
=
OUTPUT_10BIT_422_EMBEDDED_SYNC
,
.
output
=
TVP5150_NORMAL
,
},
},
{
{
.
input
=
INPUT_SVIDEO_VI2C_VI1C
,
.
input
=
TVP5150_COMPOSITE1
,
.
output
=
OUTPUT_10BIT_422_EMBEDDED_SYNC
,
.
output
=
TVP5150_NORMAL
,
},
{
.
input
=
TVP5150_SVIDEO
,
.
output
=
TVP5150_NORMAL
,
},
},
};
};
#endif
#ifdef CONFIG_VIDEO_TVP7000
static
struct
vpfe_route
tvp7000_routes
[]
=
{
{
.
input
=
TVP7000_COMPONENT
,
.
output
=
TVP7000_NORMAL_SCREEN
,
},
};
#endif
static
struct
vpfe_subdev_info
ntosd2_vpfe_sub_devs
[]
=
{
static
struct
vpfe_subdev_info
ntosd2_vpfe_sub_devs
[]
=
{
#ifdef CONFIG_VIDEO_TVP5150
{
{
.
name
=
"tvp51
46
"
,
.
name
=
"tvp51
50
"
,
.
grp_id
=
0
,
.
grp_id
=
0
,
.
num_inputs
=
ARRAY_SIZE
(
tvp51
46
_inputs
),
.
num_inputs
=
ARRAY_SIZE
(
tvp51
50
_inputs
),
.
inputs
=
tvp51
46
_inputs
,
.
inputs
=
tvp51
50
_inputs
,
.
routes
=
tvp51
46
_routes
,
.
routes
=
tvp51
50
_routes
,
.
can_route
=
1
,
.
can_route
=
1
,
.
ccdc_if_params
=
{
.
ccdc_if_params
=
{
.
if_type
=
VPFE_BT656
,
.
if_type
=
VPFE_BT656
,
...
@@ -245,10 +270,30 @@ static struct vpfe_subdev_info ntosd2_vpfe_sub_devs[] = {
...
@@ -245,10 +270,30 @@ static struct vpfe_subdev_info ntosd2_vpfe_sub_devs[] = {
.
vdpol
=
VPFE_PINPOL_POSITIVE
,
.
vdpol
=
VPFE_PINPOL_POSITIVE
,
},
},
.
board_info
=
{
.
board_info
=
{
I2C_BOARD_INFO
(
"tvp51
46"
,
0x5d
),
I2C_BOARD_INFO
(
"tvp51
50"
,
0x5d
),
// 0x4c
.
platform_data
=
&
tvp5146_pdata
,
.
platform_data
=
NULL
,
},
},
},
},
#endif
#ifdef CONFIG_VIDEO_TVP7000
{
.
name
=
"tvp7000"
,
.
grp_id
=
0
,
.
num_inputs
=
ARRAY_SIZE
(
tvp7000_inputs
),
.
inputs
=
tvp7000_inputs
,
.
routes
=
tvp7000_routes
,
.
can_route
=
1
,
.
ccdc_if_params
=
{
.
if_type
=
VPFE_BT656
,
.
hdpol
=
VPFE_PINPOL_POSITIVE
,
.
vdpol
=
VPFE_PINPOL_POSITIVE
,
},
.
board_info
=
{
I2C_BOARD_INFO
(
"tvp7000"
,
0x5c
),
// 0xfa
.
platform_data
=
NULL
,
// &tvp7000_pdata,
},
},
#endif
};
};
static
struct
vpfe_config
ntosd2_vpfe_cfg
=
{
static
struct
vpfe_config
ntosd2_vpfe_cfg
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment