Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
0ec202d1
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0ec202d1
编写于
11月 25, 2008
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (9759): em28xx: move gpio tables to the top of em28xx-cards
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
2a29a0d7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
72 addition
and
69 deletion
+72
-69
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/em28xx/em28xx-cards.c
+72
-69
未找到文件。
drivers/media/video/em28xx/em28xx-cards.c
浏览文件 @
0ec202d1
...
...
@@ -51,6 +51,78 @@ struct em28xx_hash_table {
unsigned
int
tuner
;
};
/*
* Reset sequences for analog/digital modes
*/
/* Reset for the most [analog] boards */
static
struct
em28xx_reg_seq
default_analog
[]
=
{
{
EM28XX_R08_GPIO
,
0x6d
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Reset for the most [digital] boards */
static
struct
em28xx_reg_seq
default_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x6e
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Board Hauppauge WinTV HVR 900 analog */
static
struct
em28xx_reg_seq
hauppauge_wintv_hvr_900_analog
[]
=
{
{
EM28XX_R08_GPIO
,
0x2d
,
~
EM_GPIO_4
,
10
},
{
0x05
,
0xff
,
0x10
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Board Hauppauge WinTV HVR 900 digital */
static
struct
em28xx_reg_seq
hauppauge_wintv_hvr_900_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x2e
,
~
EM_GPIO_4
,
10
},
{
EM2880_R04_GPO
,
0x04
,
0x0f
,
10
},
{
EM2880_R04_GPO
,
0x0c
,
0x0f
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */
static
struct
em28xx_reg_seq
em2880_msi_digivox_ad_analog
[]
=
{
{
EM28XX_R08_GPIO
,
0x69
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */
static
struct
em28xx_reg_seq
em2880_msi_digivox_ad_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x6a
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Board - EM2870 Kworld 355u
Analog - No input analog */
static
struct
em28xx_reg_seq
em2870_kworld_355u_digital
[]
=
{
{
EM2880_R04_GPO
,
0x01
,
0xff
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Callback for the most boards */
static
struct
em28xx_reg_seq
default_callback
[]
=
{
{
EM28XX_R08_GPIO
,
EM_GPIO_4
,
EM_GPIO_4
,
10
},
{
EM28XX_R08_GPIO
,
0
,
EM_GPIO_4
,
10
},
{
EM28XX_R08_GPIO
,
EM_GPIO_4
,
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Pinnacle PCTV HD Mini (80e) GPIOs
0-5: not used
6: demod reset, active low
7: LED on, active high */
static
struct
em28xx_reg_seq
em2874_pinnacle_80e_digital
[]
=
{
{
EM28XX_R06_I2C_CLK
,
0x45
,
0xff
,
10
},
/*400 KHz*/
{
EM2874_R80_GPIO
,
0x80
,
0xff
,
100
},
/*Demod reset*/
{
EM2874_R80_GPIO
,
0xc0
,
0xff
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/*
* Board definitions
*/
struct
em28xx_board
em28xx_boards
[]
=
{
[
EM2750_BOARD_UNKNOWN
]
=
{
.
name
=
"Unknown EM2750/EM2751 webcam grabber"
,
...
...
@@ -1148,75 +1220,6 @@ struct usb_device_id em28xx_id_table [] = {
};
MODULE_DEVICE_TABLE
(
usb
,
em28xx_id_table
);
/*
* Reset sequences for analog/digital modes
*/
/* Reset for the most [analog] boards */
static
struct
em28xx_reg_seq
default_analog
[]
=
{
{
EM28XX_R08_GPIO
,
0x6d
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Reset for the most [digital] boards */
static
struct
em28xx_reg_seq
default_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x6e
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Board Hauppauge WinTV HVR 900 analog */
static
struct
em28xx_reg_seq
hauppauge_wintv_hvr_900_analog
[]
=
{
{
EM28XX_R08_GPIO
,
0x2d
,
~
EM_GPIO_4
,
10
},
{
0x05
,
0xff
,
0x10
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Board Hauppauge WinTV HVR 900 digital */
static
struct
em28xx_reg_seq
hauppauge_wintv_hvr_900_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x2e
,
~
EM_GPIO_4
,
10
},
{
EM2880_R04_GPO
,
0x04
,
0x0f
,
10
},
{
EM2880_R04_GPO
,
0x0c
,
0x0f
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */
static
struct
em28xx_reg_seq
em2880_msi_digivox_ad_analog
[]
=
{
{
EM28XX_R08_GPIO
,
0x69
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Boards - EM2880 MSI DIGIVOX AD and EM2880_BOARD_MSI_DIGIVOX_AD_II */
static
struct
em28xx_reg_seq
em2880_msi_digivox_ad_digital
[]
=
{
{
EM28XX_R08_GPIO
,
0x6a
,
~
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Board - EM2870 Kworld 355u
Analog - No input analog */
static
struct
em28xx_reg_seq
em2870_kworld_355u_digital
[]
=
{
{
EM2880_R04_GPO
,
0x01
,
0xff
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Callback for the most boards */
static
struct
em28xx_reg_seq
default_callback
[]
=
{
{
EM28XX_R08_GPIO
,
EM_GPIO_4
,
EM_GPIO_4
,
10
},
{
EM28XX_R08_GPIO
,
0
,
EM_GPIO_4
,
10
},
{
EM28XX_R08_GPIO
,
EM_GPIO_4
,
EM_GPIO_4
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/* Pinnacle PCTV HD Mini (80e) GPIOs
0-5: not used
6: demod reset, active low
7: LED on, active high */
static
struct
em28xx_reg_seq
em2874_pinnacle_80e_digital
[]
=
{
{
EM28XX_R06_I2C_CLK
,
0x45
,
0xff
,
10
},
/*400 KHz*/
{
EM2874_R80_GPIO
,
0x80
,
0xff
,
100
},
/*Demod reset*/
{
EM2874_R80_GPIO
,
0xc0
,
0xff
,
10
},
{
-
1
,
-
1
,
-
1
,
-
1
},
};
/*
* EEPROM hash table for devices with generic USB IDs
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录