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
a9fc7492
Commit
a9fc7492
authored
Dec 03, 2010
by
Paul Mundt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh/urgent' into sh-fixes-for-linus
parents
fa3c9f3d
c44352c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
38 deletions
+5
-38
arch/sh/boards/mach-se/7724/setup.c
arch/sh/boards/mach-se/7724/setup.c
+5
-38
No files found.
arch/sh/boards/mach-se/7724/setup.c
View file @
a9fc7492
...
...
@@ -283,31 +283,6 @@ static struct platform_device ceu1_device = {
};
/* FSI */
/*
* FSI-A use external clock which came from ak464x.
* So, we should change parent of fsi
*/
#define FCLKACR 0xa4150008
static
void
fsimck_init
(
struct
clk
*
clk
)
{
u32
status
=
__raw_readl
(
clk
->
enable_reg
);
/* use external clock */
status
&=
~
0x000000ff
;
status
|=
0x00000080
;
__raw_writel
(
status
,
clk
->
enable_reg
);
}
static
struct
clk_ops
fsimck_clk_ops
=
{
.
init
=
fsimck_init
,
};
static
struct
clk
fsimcka_clk
=
{
.
ops
=
&
fsimck_clk_ops
,
.
enable_reg
=
(
void
__iomem
*
)
FCLKACR
,
.
rate
=
0
,
/* unknown */
};
/* change J20, J21, J22 pin to 1-2 connection to use slave mode */
static
struct
sh_fsi_platform_info
fsi_info
=
{
.
porta_flags
=
SH_FSI_BRS_INV
|
...
...
@@ -852,22 +827,14 @@ static int __init devices_setup(void)
gpio_request
(
GPIO_FN_KEYOUT0
,
NULL
);
/* enable FSI */
gpio_request
(
GPIO_FN_FSIMCKB
,
NULL
);
gpio_request
(
GPIO_FN_FSIMCKA
,
NULL
);
gpio_request
(
GPIO_FN_FSIIASD
,
NULL
);
gpio_request
(
GPIO_FN_FSIOASD
,
NULL
);
gpio_request
(
GPIO_FN_FSIIABCK
,
NULL
);
gpio_request
(
GPIO_FN_FSIIALRCK
,
NULL
);
gpio_request
(
GPIO_FN_FSIOABCK
,
NULL
);
gpio_request
(
GPIO_FN_FSIOALRCK
,
NULL
);
gpio_request
(
GPIO_FN_CLKAUDIOAO
,
NULL
);
gpio_request
(
GPIO_FN_FSIIBSD
,
NULL
);
gpio_request
(
GPIO_FN_FSIOBSD
,
NULL
);
gpio_request
(
GPIO_FN_FSIIBBCK
,
NULL
);
gpio_request
(
GPIO_FN_FSIIBLRCK
,
NULL
);
gpio_request
(
GPIO_FN_FSIOBBCK
,
NULL
);
gpio_request
(
GPIO_FN_FSIOBLRCK
,
NULL
);
gpio_request
(
GPIO_FN_CLKAUDIOBO
,
NULL
);
gpio_request
(
GPIO_FN_FSIIASD
,
NULL
);
/* set SPU2 clock to 83.4 MHz */
clk
=
clk_get
(
NULL
,
"spu_clk"
);
...
...
@@ -879,10 +846,10 @@ static int __init devices_setup(void)
/* change parent of FSI A */
clk
=
clk_get
(
NULL
,
"fsia_clk"
);
if
(
!
IS_ERR
(
clk
))
{
clk_register
(
&
fsimcka_clk
);
clk_set_
parent
(
clk
,
&
fsimcka_clk
);
clk_set_
rate
(
clk
,
11000
);
clk_set_rate
(
&
fsimcka_clk
,
11
000
);
/* 48kHz dummy clock was used to make sure 1/1 divide */
clk_set_
rate
(
&
sh7724_fsimcka_clk
,
48000
);
clk_set_
parent
(
clk
,
&
sh7724_fsimcka_clk
);
clk_set_rate
(
clk
,
48
000
);
clk_put
(
clk
);
}
...
...
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