Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0bde4897
Commit
0bde4897
authored
May 24, 2016
by
Linus Walleij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "pinctrl: tegra: avoid parked_reg and parked_bank""
This reverts commit
0d535833
.
parent
aeb99c85
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
20 deletions
+14
-20
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
+1
-5
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
+1
-3
drivers/pinctrl/tegra/pinctrl-tegra30.c
drivers/pinctrl/tegra/pinctrl-tegra30.c
+2
-2
No files found.
drivers/pinctrl/tegra/pinctrl-tegra.c
View file @
0bde4897
...
...
@@ -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
)
{
if
(
pmx
->
soc
->
groups
[
i
].
parked_reg
>=
0
)
{
g
=
&
pmx
->
soc
->
groups
[
i
];
val
=
pmx_readl
(
pmx
,
g
->
parked_bank
,
g
->
parked_reg
);
if
(
g
->
parked_bit
>=
0
)
{
val
=
pmx_readl
(
pmx
,
g
->
mux_bank
,
g
->
mux_reg
);
val
&=
~
(
1
<<
g
->
parked_bit
);
pmx_writel
(
pmx
,
val
,
g
->
parked_bank
,
g
->
parked
_reg
);
pmx_writel
(
pmx
,
val
,
g
->
mux_bank
,
g
->
mux
_reg
);
}
}
}
...
...
drivers/pinctrl/tegra/pinctrl-tegra.h
View file @
0bde4897
...
...
@@ -93,9 +93,7 @@ struct tegra_function {
* @tri_reg: Tri-state register offset.
* @tri_bank: Tri-state register bank.
* @tri_bit: Tri-state register bit.
* @parked_reg: Parked register offset. -1 if unsupported.
* @parked_bank: Parked register bank. 0 if unsupported.
* @parked_bit: Parked register bit. 0 if unsupported.
* @parked_bit: Parked register bit. -1 if unsupported.
* @einput_bit: Enable-input register bit.
* @odrain_bit: Open-drain register bit.
* @lock_bit: Lock register bit.
...
...
@@ -138,12 +136,10 @@ 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
View file @
0bde4897
...
...
@@ -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_
reg
= -1, \
.parked_
bit
= -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_
reg
= -1, \
.parked_
bit
= -1, \
.hsm_bit = hsm_b, \
.schmitt_bit = schmitt_b, \
.lpmd_bit = lpmd_b, \
...
...
drivers/pinctrl/tegra/pinctrl-tegra124.c
View file @
0bde4897
...
...
@@ -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_
reg
= -1, \
.parked_
bit
= -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_
reg
= -1, \
.parked_
bit
= -1, \
.hsm_bit = hsm_b, \
.schmitt_bit = schmitt_b, \
.lpmd_bit = lpmd_b, \
...
...
drivers/pinctrl/tegra/pinctrl-tegra20.c
View file @
0bde4897
...
...
@@ -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_
reg
= -1, \
.parked_
bit
= -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_
reg
= -1, \
.parked_
bit
= -1, \
}
/* Pin groups for drive strength registers (configurable version) */
...
...
drivers/pinctrl/tegra/pinctrl-tegra210.c
View file @
0bde4897
...
...
@@ -1310,8 +1310,6 @@ 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, \
...
...
@@ -1345,7 +1343,7 @@ static struct tegra_function tegra210_functions[] = {
.rcv_sel_bit = -1, \
.drv_reg = DRV_PINGROUP_REG(r), \
.drv_bank = 0, \
.parked_
reg
= -1, \
.parked_
bit
= -1, \
.hsm_bit = -1, \
.schmitt_bit = -1, \
.lpmd_bit = -1, \
...
...
drivers/pinctrl/tegra/pinctrl-tegra30.c
View file @
0bde4897
...
...
@@ -2139,7 +2139,7 @@ static struct tegra_function tegra30_functions[] = {
.lock_bit = 7, \
.ioreset_bit = PINGROUP_BIT_##ior(8), \
.rcv_sel_bit = -1, \
.parked_
reg
= -1, \
.parked_
bit
= -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_
reg
= -1, \
.parked_
bit
= -1, \
.hsm_bit = hsm_b, \
.schmitt_bit = schmitt_b, \
.lpmd_bit = lpmd_b, \
...
...
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