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
478893c4
Commit
478893c4
authored
Nov 24, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VFPE capture driver support for Neuros OSD 2.
parent
08cfadd9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
+80
-0
arch/arm/mach-davinci/board-neuros-osd2.c
arch/arm/mach-davinci/board-neuros-osd2.c
+80
-0
No files found.
arch/arm/mach-davinci/board-neuros-osd2.c
View file @
478893c4
...
@@ -27,6 +27,9 @@
...
@@ -27,6 +27,9 @@
#include <linux/gpio.h>
#include <linux/gpio.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/partitions.h>
#include <linux/videodev2.h>
#include <media/tvp514x.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
...
@@ -178,6 +181,82 @@ static struct platform_device ntosd2_leds_dev = {
...
@@ -178,6 +181,82 @@ static struct platform_device ntosd2_leds_dev = {
},
},
};
};
static
struct
tvp514x_platform_data
tvp5146_pdata
=
{
.
clk_polarity
=
0
,
.
hs_polarity
=
1
,
.
vs_polarity
=
1
};
/* Inputs available at the TVP5146 */
static
struct
v4l2_input
tvp5146_inputs
[]
=
{
{
.
index
=
0
,
.
name
=
"Composite-rear"
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
audioset
=
2
,
.
tuner
=
0
,
.
std
=
V4L2_STD_ALL
,
},
{
.
index
=
1
,
.
name
=
"Composite-front"
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
audioset
=
2
,
.
tuner
=
0
,
.
std
=
V4L2_STD_ALL
,
},
{
.
index
=
2
,
.
name
=
"Component"
,
.
type
=
V4L2_INPUT_TYPE_CAMERA
,
.
audioset
=
2
,
.
tuner
=
0
,
.
std
=
V4L2_STD_ALL
,
},
};
/*
* this is the route info for connecting each input to decoder
* ouput that goes to vpfe. There is a one to one correspondence
* with ntosd2_vpfe_inputs
*/
static
struct
vpfe_route
tvp5146_routes
[]
=
{
{
.
input
=
INPUT_CVBS_VI2B
,
.
output
=
OUTPUT_10BIT_422_EMBEDDED_SYNC
,
},
{
.
input
=
INPUT_SVIDEO_VI2C_VI1C
,
.
output
=
OUTPUT_10BIT_422_EMBEDDED_SYNC
,
},
};
static
struct
vpfe_subdev_info
ntosd2_vpfe_sub_devs
[]
=
{
{
.
name
=
"tvp5146"
,
.
grp_id
=
0
,
.
num_inputs
=
ARRAY_SIZE
(
tvp5146_inputs
),
.
inputs
=
tvp5146_inputs
,
.
routes
=
tvp5146_routes
,
.
can_route
=
1
,
.
ccdc_if_params
=
{
.
if_type
=
VPFE_BT656
,
.
hdpol
=
VPFE_PINPOL_POSITIVE
,
.
vdpol
=
VPFE_PINPOL_POSITIVE
,
},
.
board_info
=
{
I2C_BOARD_INFO
(
"tvp5146"
,
0x5d
),
.
platform_data
=
&
tvp5146_pdata
,
},
},
};
static
struct
vpfe_config
ntosd2_vpfe_cfg
=
{
.
num_subdevs
=
ARRAY_SIZE
(
ntosd2_vpfe_sub_devs
),
.
sub_devs
=
ntosd2_vpfe_sub_devs
,
.
card_name
=
"DM6446 EVM"
,
.
ccdc
=
"DM6446 CCDC"
,
};
static
struct
platform_device
*
davinci_ntosd2_devices
[]
__initdata
=
{
static
struct
platform_device
*
davinci_ntosd2_devices
[]
__initdata
=
{
&
davinci_fb_device
,
&
davinci_fb_device
,
...
@@ -190,6 +269,7 @@ static struct davinci_uart_config uart_config __initdata = {
...
@@ -190,6 +269,7 @@ static struct davinci_uart_config uart_config __initdata = {
static
void
__init
davinci_ntosd2_map_io
(
void
)
static
void
__init
davinci_ntosd2_map_io
(
void
)
{
{
dm644x_set_vpfe_config
(
&
ntosd2_vpfe_cfg
);
dm644x_init
();
dm644x_init
();
}
}
...
...
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