Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
3be5e10d
Commit
3be5e10d
authored
6 years ago
by
Tony Lindgren
Browse files
Options
Download
Plain Diff
Merge branch 'omap-for-v4.21/ti-sysc' into omap-for-v4.21/driver
parents
03b10fec
f0106700
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
Documentation/devicetree/bindings/bus/ti-sysc.txt
Documentation/devicetree/bindings/bus/ti-sysc.txt
+1
-0
drivers/bus/ti-sysc.c
drivers/bus/ti-sysc.c
+21
-2
No files found.
Documentation/devicetree/bindings/bus/ti-sysc.txt
View file @
3be5e10d
...
@@ -35,6 +35,7 @@ Required standard properties:
...
@@ -35,6 +35,7 @@ Required standard properties:
"ti,sysc-omap3-sham"
"ti,sysc-omap3-sham"
"ti,sysc-omap-aes"
"ti,sysc-omap-aes"
"ti,sysc-mcasp"
"ti,sysc-mcasp"
"ti,sysc-dra7-mcasp"
"ti,sysc-usb-host-fs"
"ti,sysc-usb-host-fs"
"ti,sysc-dra7-mcan"
"ti,sysc-dra7-mcan"
...
...
This diff is collapsed.
Click to expand it.
drivers/bus/ti-sysc.c
View file @
3be5e10d
...
@@ -214,8 +214,13 @@ static int sysc_get_clocks(struct sysc *ddata)
...
@@ -214,8 +214,13 @@ static int sysc_get_clocks(struct sysc *ddata)
if
(
!
ddata
->
clocks
)
if
(
!
ddata
->
clocks
)
return
-
ENOMEM
;
return
-
ENOMEM
;
for
(
i
=
0
;
i
<
ddata
->
nr_clocks
;
i
++
)
{
for
(
i
=
0
;
i
<
SYSC_MAX_CLOCKS
;
i
++
)
{
error
=
sysc_get_one_clock
(
ddata
,
ddata
->
clock_roles
[
i
]);
const
char
*
name
=
ddata
->
clock_roles
[
i
];
if
(
!
name
)
continue
;
error
=
sysc_get_one_clock
(
ddata
,
name
);
if
(
error
&&
error
!=
-
ENOENT
)
if
(
error
&&
error
!=
-
ENOENT
)
return
error
;
return
error
;
}
}
...
@@ -815,6 +820,7 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
...
@@ -815,6 +820,7 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
SYSC_QUIRK
(
"ocp2scp"
,
0
,
0
,
0x10
,
0x14
,
0x50060005
,
0xfffffff0
,
0
),
SYSC_QUIRK
(
"ocp2scp"
,
0
,
0
,
0x10
,
0x14
,
0x50060005
,
0xfffffff0
,
0
),
SYSC_QUIRK
(
"ocp2scp"
,
0
,
0
,
-
1
,
-
1
,
0x50060007
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"ocp2scp"
,
0
,
0
,
-
1
,
-
1
,
0x50060007
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"padconf"
,
0
,
0
,
0x10
,
-
1
,
0x4fff0800
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"padconf"
,
0
,
0
,
0x10
,
-
1
,
0x4fff0800
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"padconf"
,
0
,
0
,
-
1
,
-
1
,
0x40001100
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"prcm"
,
0
,
0
,
-
1
,
-
1
,
0x40000100
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"prcm"
,
0
,
0
,
-
1
,
-
1
,
0x40000100
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"prcm"
,
0
,
0
,
-
1
,
-
1
,
0x00004102
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"prcm"
,
0
,
0
,
-
1
,
-
1
,
0x00004102
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"prcm"
,
0
,
0
,
-
1
,
-
1
,
0x40000400
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"prcm"
,
0
,
0
,
-
1
,
-
1
,
0x40000400
,
0xffffffff
,
0
),
...
@@ -833,7 +839,9 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
...
@@ -833,7 +839,9 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
SYSC_QUIRK
(
"rtc"
,
0
,
0x74
,
0x78
,
-
1
,
0x4eb01908
,
0xffff00f0
,
0
),
SYSC_QUIRK
(
"rtc"
,
0
,
0x74
,
0x78
,
-
1
,
0x4eb01908
,
0xffff00f0
,
0
),
SYSC_QUIRK
(
"timer32k"
,
0
,
0
,
0x4
,
-
1
,
0x00000060
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"timer32k"
,
0
,
0
,
0x4
,
-
1
,
0x00000060
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usbhstll"
,
0
,
0
,
0x10
,
0x14
,
0x00000004
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usbhstll"
,
0
,
0
,
0x10
,
0x14
,
0x00000004
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usbhstll"
,
0
,
0
,
0x10
,
0x14
,
0x00000008
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usb_host_hs"
,
0
,
0
,
0x10
,
0x14
,
0x50700100
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usb_host_hs"
,
0
,
0
,
0x10
,
0x14
,
0x50700100
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usb_host_hs"
,
0
,
0
,
0x10
,
-
1
,
0x50700101
,
0xffffffff
,
0
),
SYSC_QUIRK
(
"usb_otg_hs"
,
0
,
0x400
,
0x404
,
0x408
,
0x00000050
,
SYSC_QUIRK
(
"usb_otg_hs"
,
0
,
0x400
,
0x404
,
0x408
,
0x00000050
,
0xffffffff
,
0
),
0xffffffff
,
0
),
SYSC_QUIRK
(
"wdt"
,
0
,
0
,
0x10
,
0x14
,
0x502a0500
,
0xfffff0f0
,
0
),
SYSC_QUIRK
(
"wdt"
,
0
,
0
,
0x10
,
0x14
,
0x502a0500
,
0xfffff0f0
,
0
),
...
@@ -1498,6 +1506,16 @@ static const struct sysc_regbits sysc_regbits_omap4_mcasp = {
...
@@ -1498,6 +1506,16 @@ static const struct sysc_regbits sysc_regbits_omap4_mcasp = {
static
const
struct
sysc_capabilities
sysc_omap4_mcasp
=
{
static
const
struct
sysc_capabilities
sysc_omap4_mcasp
=
{
.
type
=
TI_SYSC_OMAP4_MCASP
,
.
type
=
TI_SYSC_OMAP4_MCASP
,
.
regbits
=
&
sysc_regbits_omap4_mcasp
,
.
regbits
=
&
sysc_regbits_omap4_mcasp
,
.
mod_quirks
=
SYSC_QUIRK_OPT_CLKS_NEEDED
,
};
/*
* McASP found on dra7 and later
*/
static
const
struct
sysc_capabilities
sysc_dra7_mcasp
=
{
.
type
=
TI_SYSC_OMAP4_SIMPLE
,
.
regbits
=
&
sysc_regbits_omap4_simple
,
.
mod_quirks
=
SYSC_QUIRK_OPT_CLKS_NEEDED
,
};
};
/*
/*
...
@@ -1726,6 +1744,7 @@ static const struct of_device_id sysc_match[] = {
...
@@ -1726,6 +1744,7 @@ static const struct of_device_id sysc_match[] = {
{
.
compatible
=
"ti,sysc-omap3-sham"
,
.
data
=
&
sysc_omap3_sham
,
},
{
.
compatible
=
"ti,sysc-omap3-sham"
,
.
data
=
&
sysc_omap3_sham
,
},
{
.
compatible
=
"ti,sysc-omap-aes"
,
.
data
=
&
sysc_omap3_aes
,
},
{
.
compatible
=
"ti,sysc-omap-aes"
,
.
data
=
&
sysc_omap3_aes
,
},
{
.
compatible
=
"ti,sysc-mcasp"
,
.
data
=
&
sysc_omap4_mcasp
,
},
{
.
compatible
=
"ti,sysc-mcasp"
,
.
data
=
&
sysc_omap4_mcasp
,
},
{
.
compatible
=
"ti,sysc-dra7-mcasp"
,
.
data
=
&
sysc_dra7_mcasp
,
},
{
.
compatible
=
"ti,sysc-usb-host-fs"
,
{
.
compatible
=
"ti,sysc-usb-host-fs"
,
.
data
=
&
sysc_omap4_usb_host_fs
,
},
.
data
=
&
sysc_omap4_usb_host_fs
,
},
{
.
compatible
=
"ti,sysc-dra7-mcan"
,
.
data
=
&
sysc_dra7_mcan
,
},
{
.
compatible
=
"ti,sysc-dra7-mcan"
,
.
data
=
&
sysc_dra7_mcan
,
},
...
...
This diff is collapsed.
Click to expand it.
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