Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f543254f
Commit
f543254f
authored
Aug 11, 2005
by
Juha Yrjola
Committed by
Tony Lindgren
Aug 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ARM: OMAP: Add USB clock
Add USB clock
parent
90ab2b4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/clock.c
+16
-3
No files found.
arch/arm/plat-omap/clock.c
View file @
f543254f
...
@@ -142,7 +142,7 @@ static struct clk arm_ck = {
...
@@ -142,7 +142,7 @@ static struct clk arm_ck = {
static
struct
clk
armper_ck
=
{
static
struct
clk
armper_ck
=
{
.
name
=
"armper_ck"
,
.
name
=
"armper_ck"
,
.
parent
=
&
ck_dpll1
,
.
parent
=
&
ck_dpll1
,
.
flags
=
CLOCK_IN_OMAP
730
|
CLOCK_IN_OMAP
1510
|
CLOCK_IN_OMAP16XX
|
.
flags
=
CLOCK_IN_OMAP1510
|
CLOCK_IN_OMAP16XX
|
RATE_CKCTL
,
RATE_CKCTL
,
.
enable_reg
=
ARM_IDLECT2
,
.
enable_reg
=
ARM_IDLECT2
,
.
enable_bit
=
EN_PERCK
,
.
enable_bit
=
EN_PERCK
,
...
@@ -386,7 +386,8 @@ static struct clk uart2_ck = {
...
@@ -386,7 +386,8 @@ static struct clk uart2_ck = {
.
name
=
"uart2_ck"
,
.
name
=
"uart2_ck"
,
/* Direct from ULPD, no parent */
/* Direct from ULPD, no parent */
.
rate
=
12000000
,
.
rate
=
12000000
,
.
flags
=
CLOCK_IN_OMAP1510
|
CLOCK_IN_OMAP16XX
|
ENABLE_REG_32BIT
,
.
flags
=
CLOCK_IN_OMAP1510
|
CLOCK_IN_OMAP16XX
|
ENABLE_REG_32BIT
|
ALWAYS_ENABLED
,
.
enable_reg
=
MOD_CONF_CTRL_0
,
.
enable_reg
=
MOD_CONF_CTRL_0
,
.
enable_bit
=
30
,
/* Chooses between 12MHz and 48MHz */
.
enable_bit
=
30
,
/* Chooses between 12MHz and 48MHz */
.
set_rate
=
&
set_uart_rate
,
.
set_rate
=
&
set_uart_rate
,
...
@@ -444,6 +445,15 @@ static struct clk usb_hhc_ck16xx = {
...
@@ -444,6 +445,15 @@ static struct clk usb_hhc_ck16xx = {
.
enable_bit
=
8
/* UHOST_EN */
,
.
enable_bit
=
8
/* UHOST_EN */
,
};
};
static
struct
clk
usb_dc_ck
=
{
.
name
=
"usb_dc_ck"
,
/* Direct from ULPD, no parent */
.
rate
=
48000000
,
.
flags
=
CLOCK_IN_OMAP16XX
|
RATE_FIXED
,
.
enable_reg
=
SOFT_REQ_REG
,
.
enable_bit
=
4
,
};
static
struct
clk
mclk_1510
=
{
static
struct
clk
mclk_1510
=
{
.
name
=
"mclk"
,
.
name
=
"mclk"
,
/* Direct from ULPD, no parent. May be enabled by ext hardware. */
/* Direct from ULPD, no parent. May be enabled by ext hardware. */
...
@@ -553,6 +563,7 @@ static struct clk * onchip_clks[] = {
...
@@ -553,6 +563,7 @@ static struct clk * onchip_clks[] = {
&
uart3_16xx
,
&
uart3_16xx
,
&
usb_clko
,
&
usb_clko
,
&
usb_hhc_ck1510
,
&
usb_hhc_ck16xx
,
&
usb_hhc_ck1510
,
&
usb_hhc_ck16xx
,
&
usb_dc_ck
,
&
mclk_1510
,
&
mclk_16xx
,
&
mclk_1510
,
&
mclk_16xx
,
&
bclk_1510
,
&
bclk_16xx
,
&
bclk_1510
,
&
bclk_16xx
,
&
mmc1_ck
,
&
mmc1_ck
,
...
@@ -1273,7 +1284,9 @@ static int __init omap_late_clk_reset(void)
...
@@ -1273,7 +1284,9 @@ static int __init omap_late_clk_reset(void)
struct
clk
*
p
;
struct
clk
*
p
;
__u32
regval32
;
__u32
regval32
;
omap_writew
(
0
,
SOFT_REQ_REG
);
/* USB_REQ_EN will be disabled later if necessary (usb_dc_ck) */
regval32
=
omap_readw
(
SOFT_REQ_REG
)
&
(
1
<<
4
);
omap_writew
(
regval32
,
SOFT_REQ_REG
);
omap_writew
(
0
,
SOFT_REQ_REG2
);
omap_writew
(
0
,
SOFT_REQ_REG2
);
list_for_each_entry
(
p
,
&
clocks
,
node
)
{
list_for_each_entry
(
p
,
&
clocks
,
node
)
{
...
...
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