Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KED Linux Kernel Fork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KED Software Projects
Miscellaneous
KED Linux Kernel Fork
Commits
ed847782
Commit
ed847782
authored
16 years ago
by
Ian Molton
Browse files
Options
Downloads
Patches
Plain Diff
Clocklib: Provide for GPIO 12 clock on PXA
Signed-off-by:
Ian Molton
<
spyro@f2s.com
>
parent
aa9ae8eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/arm/mach-pxa/clock.h
+9
-0
9 additions, 0 deletions
arch/arm/mach-pxa/clock.h
arch/arm/mach-pxa/pxa25x.c
+24
-0
24 additions, 0 deletions
arch/arm/mach-pxa/pxa25x.c
with
33 additions
and
0 deletions
arch/arm/mach-pxa/clock.h
+
9
−
0
View file @
ed847782
...
...
@@ -47,6 +47,15 @@ struct clk {
.other = _other, \
}
#define INIT_CLK(_name, _ops, _rate, _delay, _dev) \
{ \
.name = _name, \
.dev = _dev, \
.ops = _ops, \
.rate = _rate, \
.delay = _delay, \
}
extern
const
struct
clkops
clk_cken_ops
;
void
clk_cken_enable
(
struct
clk
*
clk
);
...
...
This diff is collapsed.
Click to expand it.
arch/arm/mach-pxa/pxa25x.c
+
24
−
0
View file @
ed847782
...
...
@@ -109,6 +109,29 @@ static const struct clkops clk_pxa25x_lcd_ops = {
.
getrate
=
clk_pxa25x_lcd_getrate
,
};
static
unsigned
long
gpio12_config_32k
[]
=
{
GPIO12_32KHz
,
};
static
unsigned
long
gpio12_config_gpio
[]
=
{
GPIO12_GPIO
,
};
static
void
clk_gpio12_enable
(
struct
clk
*
clk
)
{
pxa2xx_mfp_config
(
gpio12_config_32k
,
1
);
}
static
void
clk_gpio12_disable
(
struct
clk
*
clk
)
{
pxa2xx_mfp_config
(
gpio12_config_gpio
,
1
);
}
static
const
struct
clkops
clk_pxa25x_gpio12_ops
=
{
.
enable
=
clk_gpio12_enable
,
.
disable
=
clk_gpio12_disable
,
};
/*
* 3.6864MHz -> OST, GPIO, SSP, PWM, PLLs (95.842MHz, 147.456MHz)
* 95.842MHz -> MMC 19.169MHz, I2C 31.949MHz, FICP 47.923MHz, USB 47.923MHz
...
...
@@ -128,6 +151,7 @@ static struct clk pxa25x_clks[] = {
INIT_CKEN
(
"UARTCLK"
,
BTUART
,
14745600
,
1
,
&
pxa_device_btuart
.
dev
),
INIT_CKEN
(
"UARTCLK"
,
STUART
,
14745600
,
1
,
NULL
),
INIT_CKEN
(
"UDCCLK"
,
USB
,
47923000
,
5
,
&
pxa25x_device_udc
.
dev
),
INIT_CLK
(
"GPIO12_CLK"
,
&
clk_pxa25x_gpio12_ops
,
32768
,
0
,
NULL
),
INIT_CKEN
(
"MMCCLK"
,
MMC
,
19169000
,
0
,
&
pxa_device_mci
.
dev
),
INIT_CKEN
(
"I2CCLK"
,
I2C
,
31949000
,
0
,
&
pxa_device_i2c
.
dev
),
...
...
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