Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
4ee23cd7
Commit
4ee23cd7
authored
May 20, 2019
by
Tony Lindgren
Browse files
Options
Downloads
Plain Diff
Merge branch 'omap-for-v5.2/ti-sysc' into fixes
parents
f29f24b5
e4f50c8d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
arch/arm/boot/dts/am33xx-l4.dtsi
+6
-8
6 additions, 8 deletions
arch/arm/boot/dts/am33xx-l4.dtsi
arch/arm/boot/dts/am437x-l4.dtsi
+0
-4
0 additions, 4 deletions
arch/arm/boot/dts/am437x-l4.dtsi
drivers/bus/ti-sysc.c
+11
-12
11 additions, 12 deletions
drivers/bus/ti-sysc.c
with
17 additions
and
24 deletions
arch/arm/boot/dts/am33xx-l4.dtsi
+
6
−
8
View file @
4ee23cd7
...
...
@@ -1759,11 +1759,10 @@
target-module@cc000 { /* 0x481cc000, ap 60 46.0 */
compatible = "ti,sysc-omap4", "ti,sysc";
ti,hwmods = "d_can0";
reg = <0xcc000 0x4>;
reg-names = "rev";
/* Domains (P, C): per_pwrdm, l4ls_clkdm */
clocks = <&l4ls_clkctrl AM3_L4LS_D_CAN0_CLKCTRL 0>;
clock-names = "fck";
clocks = <&l4ls_clkctrl AM3_L4LS_D_CAN0_CLKCTRL 0>,
<&dcan0_fck>;
clock-names = "fck", "osc";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0xcc000 0x2000>;
...
...
@@ -1782,11 +1781,10 @@
target-module@d0000 { /* 0x481d0000, ap 62 42.0 */
compatible = "ti,sysc-omap4", "ti,sysc";
ti,hwmods = "d_can1";
reg = <0xd0000 0x4>;
reg-names = "rev";
/* Domains (P, C): per_pwrdm, l4ls_clkdm */
clocks = <&l4ls_clkctrl AM3_L4LS_D_CAN1_CLKCTRL 0>;
clock-names = "fck";
clocks = <&l4ls_clkctrl AM3_L4LS_D_CAN1_CLKCTRL 0>,
<&dcan1_fck>;
clock-names = "fck", "osc";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0xd0000 0x2000>;
...
...
This diff is collapsed.
Click to expand it.
arch/arm/boot/dts/am437x-l4.dtsi
+
0
−
4
View file @
4ee23cd7
...
...
@@ -1575,8 +1575,6 @@
target-module@cc000 { /* 0x481cc000, ap 50 46.0 */
compatible = "ti,sysc-omap4", "ti,sysc";
ti,hwmods = "d_can0";
reg = <0xcc000 0x4>;
reg-names = "rev";
/* Domains (P, C): per_pwrdm, l4ls_clkdm */
clocks = <&l4ls_clkctrl AM4_L4LS_D_CAN0_CLKCTRL 0>;
clock-names = "fck";
...
...
@@ -1596,8 +1594,6 @@
target-module@d0000 { /* 0x481d0000, ap 52 3a.0 */
compatible = "ti,sysc-omap4", "ti,sysc";
ti,hwmods = "d_can1";
reg = <0xd0000 0x4>;
reg-names = "rev";
/* Domains (P, C): per_pwrdm, l4ls_clkdm */
clocks = <&l4ls_clkctrl AM4_L4LS_D_CAN1_CLKCTRL 0>;
clock-names = "fck";
...
...
This diff is collapsed.
Click to expand it.
drivers/bus/ti-sysc.c
+
11
−
12
View file @
4ee23cd7
...
...
@@ -660,12 +660,6 @@ static int sysc_check_registers(struct sysc *ddata)
nr_regs
++
;
}
if
(
nr_regs
<
1
)
{
dev_err
(
ddata
->
dev
,
"missing registers
\n
"
);
return
-
EINVAL
;
}
if
(
nr_matches
>
nr_regs
)
{
dev_err
(
ddata
->
dev
,
"overlapping registers: (%i/%i)"
,
nr_regs
,
nr_matches
);
...
...
@@ -691,12 +685,18 @@ static int sysc_ioremap(struct sysc *ddata)
{
int
size
;
if
(
ddata
->
offsets
[
SYSC_REVISION
]
<
0
&&
ddata
->
offsets
[
SYSC_SYSCONFIG
]
<
0
&&
ddata
->
offsets
[
SYSC_SYSSTATUS
]
<
0
)
{
size
=
ddata
->
module_size
;
}
else
{
size
=
max3
(
ddata
->
offsets
[
SYSC_REVISION
],
ddata
->
offsets
[
SYSC_SYSCONFIG
],
ddata
->
offsets
[
SYSC_SYSSTATUS
]);
if
(
size
<
0
||
(
size
+
sizeof
(
u32
))
>
ddata
->
module_size
)
if
((
size
+
sizeof
(
u32
))
>
ddata
->
module_size
)
return
-
EINVAL
;
}
ddata
->
module_va
=
devm_ioremap
(
ddata
->
dev
,
ddata
->
module_pa
,
...
...
@@ -1128,7 +1128,6 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
SYSC_QUIRK
(
"cpgmac"
,
0
,
0x1200
,
0x1208
,
0x1204
,
0x4edb1902
,
0xffff00f0
,
0
),
SYSC_QUIRK
(
"dcan"
,
0
,
0
,
-
1
,
-
1
,
0xffffffff
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"dcan"
,
0
,
0
,
-
1
,
-
1
,
0x00001401
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"dmic"
,
0
,
0
,
0x10
,
-
1
,
0x50010000
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"dwc3"
,
0
,
0
,
0x10
,
-
1
,
0x500a0200
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"epwmss"
,
0
,
0
,
0x4
,
-
1
,
0x47400001
,
0xffffffff
,
0
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment