Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
0d535833
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
0d535833
编写于
5月 13, 2016
作者:
L
Linus Walleij
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "pinctrl: tegra: avoid parked_reg and parked_bank"
This reverts commit
1d18a3f0
.
上级
d6d5c125
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
20 addition
and
14 deletion
+20
-14
drivers/pinctrl/tegra/pinctrl-tegra.c
drivers/pinctrl/tegra/pinctrl-tegra.c
+4
-4
drivers/pinctrl/tegra/pinctrl-tegra.h
drivers/pinctrl/tegra/pinctrl-tegra.h
+5
-1
drivers/pinctrl/tegra/pinctrl-tegra114.c
drivers/pinctrl/tegra/pinctrl-tegra114.c
+2
-2
drivers/pinctrl/tegra/pinctrl-tegra124.c
drivers/pinctrl/tegra/pinctrl-tegra124.c
+2
-2
drivers/pinctrl/tegra/pinctrl-tegra20.c
drivers/pinctrl/tegra/pinctrl-tegra20.c
+2
-2
drivers/pinctrl/tegra/pinctrl-tegra210.c
drivers/pinctrl/tegra/pinctrl-tegra210.c
+3
-1
drivers/pinctrl/tegra/pinctrl-tegra30.c
drivers/pinctrl/tegra/pinctrl-tegra30.c
+2
-2
未找到文件。
drivers/pinctrl/tegra/pinctrl-tegra.c
浏览文件 @
0d535833
...
...
@@ -632,11 +632,11 @@ static void tegra_pinctrl_clear_parked_bits(struct tegra_pmx *pmx)
u32
val
;
for
(
i
=
0
;
i
<
pmx
->
soc
->
ngroups
;
++
i
)
{
g
=
&
pmx
->
soc
->
groups
[
i
];
if
(
g
->
parked_bit
>=
0
)
{
val
=
pmx_readl
(
pmx
,
g
->
mux_bank
,
g
->
mux
_reg
);
if
(
pmx
->
soc
->
groups
[
i
].
parked_reg
>=
0
)
{
g
=
&
pmx
->
soc
->
groups
[
i
];
val
=
pmx_readl
(
pmx
,
g
->
parked_bank
,
g
->
parked
_reg
);
val
&=
~
(
1
<<
g
->
parked_bit
);
pmx_writel
(
pmx
,
val
,
g
->
mux_bank
,
g
->
mux
_reg
);
pmx_writel
(
pmx
,
val
,
g
->
parked_bank
,
g
->
parked
_reg
);
}
}
}
...
...
drivers/pinctrl/tegra/pinctrl-tegra.h
浏览文件 @
0d535833
...
...
@@ -93,7 +93,9 @@ struct tegra_function {
* @tri_reg: Tri-state register offset.
* @tri_bank: Tri-state register bank.
* @tri_bit: Tri-state register bit.
* @parked_bit: Parked register bit. -1 if unsupported.
* @parked_reg: Parked register offset. -1 if unsupported.
* @parked_bank: Parked register bank. 0 if unsupported.
* @parked_bit: Parked register bit. 0 if unsupported.
* @einput_bit: Enable-input register bit.
* @odrain_bit: Open-drain register bit.
* @lock_bit: Lock register bit.
...
...
@@ -136,10 +138,12 @@ struct tegra_pingroup {
s16
pupd_reg
;
s16
tri_reg
;
s16
drv_reg
;
s16
parked_reg
;
u32
mux_bank
:
2
;
u32
pupd_bank
:
2
;
u32
tri_bank
:
2
;
u32
drv_bank
:
2
;
u32
parked_bank
:
2
;
s32
mux_bit
:
6
;
s32
pupd_bit
:
6
;
s32
tri_bit
:
6
;
...
...
drivers/pinctrl/tegra/pinctrl-tegra114.c
浏览文件 @
0d535833
...
...
@@ -1578,7 +1578,7 @@ static struct tegra_function tegra114_functions[] = {
.lock_bit = 7, \
.ioreset_bit = PINGROUP_BIT_##ior(8), \
.rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.drv_reg = -1, \
}
...
...
@@ -1599,7 +1599,7 @@ static struct tegra_function tegra114_functions[] = {
.rcv_sel_bit = -1, \
.drv_reg = DRV_PINGROUP_REG(r), \
.drv_bank = 0, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.hsm_bit = hsm_b, \
.schmitt_bit = schmitt_b, \
.lpmd_bit = lpmd_b, \
...
...
drivers/pinctrl/tegra/pinctrl-tegra124.c
浏览文件 @
0d535833
...
...
@@ -1747,7 +1747,7 @@ static struct tegra_function tegra124_functions[] = {
.lock_bit = 7, \
.ioreset_bit = PINGROUP_BIT_##ior(8), \
.rcv_sel_bit = PINGROUP_BIT_##rcv_sel(9), \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.drv_reg = -1, \
}
...
...
@@ -1768,7 +1768,7 @@ static struct tegra_function tegra124_functions[] = {
.rcv_sel_bit = -1, \
.drv_reg = DRV_PINGROUP_REG(r), \
.drv_bank = 0, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.hsm_bit = hsm_b, \
.schmitt_bit = schmitt_b, \
.lpmd_bit = lpmd_b, \
...
...
drivers/pinctrl/tegra/pinctrl-tegra20.c
浏览文件 @
0d535833
...
...
@@ -1994,7 +1994,7 @@ static struct tegra_function tegra20_functions[] = {
.tri_reg = ((tri_r) - TRISTATE_REG_A), \
.tri_bank = 0, \
.tri_bit = tri_b, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.einput_bit = -1, \
.odrain_bit = -1, \
.lock_bit = -1, \
...
...
@@ -2014,7 +2014,7 @@ static struct tegra_function tegra20_functions[] = {
.pupd_bank = 2, \
.pupd_bit = pupd_b, \
.drv_reg = -1, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
}
/* Pin groups for drive strength registers (configurable version) */
...
...
drivers/pinctrl/tegra/pinctrl-tegra210.c
浏览文件 @
0d535833
...
...
@@ -1310,6 +1310,8 @@ static struct tegra_function tegra210_functions[] = {
.lock_bit = 7, \
.ioreset_bit = -1, \
.rcv_sel_bit = PINGROUP_BIT_##e_io_hv(10), \
.parked_reg = PINGROUP_REG(r), \
.parked_bank = 1, \
.parked_bit = 5, \
.hsm_bit = PINGROUP_BIT_##hsm(9), \
.schmitt_bit = 12, \
...
...
@@ -1343,7 +1345,7 @@ static struct tegra_function tegra210_functions[] = {
.rcv_sel_bit = -1, \
.drv_reg = DRV_PINGROUP_REG(r), \
.drv_bank = 0, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.hsm_bit = -1, \
.schmitt_bit = -1, \
.lpmd_bit = -1, \
...
...
drivers/pinctrl/tegra/pinctrl-tegra30.c
浏览文件 @
0d535833
...
...
@@ -2139,7 +2139,7 @@ static struct tegra_function tegra30_functions[] = {
.lock_bit = 7, \
.ioreset_bit = PINGROUP_BIT_##ior(8), \
.rcv_sel_bit = -1, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.drv_reg = -1, \
}
...
...
@@ -2160,7 +2160,7 @@ static struct tegra_function tegra30_functions[] = {
.rcv_sel_bit = -1, \
.drv_reg = DRV_PINGROUP_REG(r), \
.drv_bank = 0, \
.parked_
bit
= -1, \
.parked_
reg
= -1, \
.hsm_bit = hsm_b, \
.schmitt_bit = schmitt_b, \
.lpmd_bit = lpmd_b, \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录