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
Kirill Smelkov
linux
Commits
6597cb84
Commit
6597cb84
authored
Nov 06, 2008
by
Russell King
Committed by
Russell King
Nov 06, 2008
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'omap-fixes' of
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
parents
878708f2
5c32f62b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-omap2/gpmc.c
+2
-4
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/clock.c
+10
-10
arch/arm/plat-omap/include/mach/entry-macro.S
arch/arm/plat-omap/include/mach/entry-macro.S
+3
-1
arch/arm/plat-omap/include/mach/irqs.h
arch/arm/plat-omap/include/mach/irqs.h
+1
-1
No files found.
arch/arm/mach-omap2/gpmc.c
View file @
6597cb84
...
@@ -429,18 +429,16 @@ void __init gpmc_init(void)
...
@@ -429,18 +429,16 @@ void __init gpmc_init(void)
gpmc_l3_clk
=
clk_get
(
NULL
,
ck
);
gpmc_l3_clk
=
clk_get
(
NULL
,
ck
);
if
(
IS_ERR
(
gpmc_l3_clk
))
{
if
(
IS_ERR
(
gpmc_l3_clk
))
{
printk
(
KERN_ERR
"Could not get GPMC clock %s
\n
"
,
ck
);
printk
(
KERN_ERR
"Could not get GPMC clock %s
\n
"
,
ck
);
return
-
ENODEV
;
BUG
()
;
}
}
gpmc_base
=
ioremap
(
l
,
SZ_4K
);
gpmc_base
=
ioremap
(
l
,
SZ_4K
);
if
(
!
gpmc_base
)
{
if
(
!
gpmc_base
)
{
clk_put
(
gpmc_l3_clk
);
clk_put
(
gpmc_l3_clk
);
printk
(
KERN_ERR
"Could not get GPMC register memory
\n
"
);
printk
(
KERN_ERR
"Could not get GPMC register memory
\n
"
);
return
-
ENOMEM
;
BUG
()
;
}
}
BUG_ON
(
IS_ERR
(
gpmc_l3_clk
));
l
=
gpmc_read_reg
(
GPMC_REVISION
);
l
=
gpmc_read_reg
(
GPMC_REVISION
);
printk
(
KERN_INFO
"GPMC revision %d.%d
\n
"
,
(
l
>>
4
)
&
0x0f
,
l
&
0x0f
);
printk
(
KERN_INFO
"GPMC revision %d.%d
\n
"
,
(
l
>>
4
)
&
0x0f
,
l
&
0x0f
);
/* Set smart idle mode and automatic L3 clock gating */
/* Set smart idle mode and automatic L3 clock gating */
...
...
arch/arm/plat-omap/clock.c
View file @
6597cb84
...
@@ -428,23 +428,23 @@ static int clk_debugfs_register_one(struct clk *c)
...
@@ -428,23 +428,23 @@ static int clk_debugfs_register_one(struct clk *c)
if
(
c
->
id
!=
0
)
if
(
c
->
id
!=
0
)
sprintf
(
p
,
":%d"
,
c
->
id
);
sprintf
(
p
,
":%d"
,
c
->
id
);
d
=
debugfs_create_dir
(
s
,
pa
?
pa
->
dent
:
clk_debugfs_root
);
d
=
debugfs_create_dir
(
s
,
pa
?
pa
->
dent
:
clk_debugfs_root
);
if
(
IS_ERR
(
d
)
)
if
(
!
d
)
return
PTR_ERR
(
d
)
;
return
-
ENOMEM
;
c
->
dent
=
d
;
c
->
dent
=
d
;
d
=
debugfs_create_u8
(
"usecount"
,
S_IRUGO
,
c
->
dent
,
(
u8
*
)
&
c
->
usecount
);
d
=
debugfs_create_u8
(
"usecount"
,
S_IRUGO
,
c
->
dent
,
(
u8
*
)
&
c
->
usecount
);
if
(
IS_ERR
(
d
)
)
{
if
(
!
d
)
{
err
=
PTR_ERR
(
d
)
;
err
=
-
ENOMEM
;
goto
err_out
;
goto
err_out
;
}
}
d
=
debugfs_create_u32
(
"rate"
,
S_IRUGO
,
c
->
dent
,
(
u32
*
)
&
c
->
rate
);
d
=
debugfs_create_u32
(
"rate"
,
S_IRUGO
,
c
->
dent
,
(
u32
*
)
&
c
->
rate
);
if
(
IS_ERR
(
d
)
)
{
if
(
!
d
)
{
err
=
PTR_ERR
(
d
)
;
err
=
-
ENOMEM
;
goto
err_out
;
goto
err_out
;
}
}
d
=
debugfs_create_x32
(
"flags"
,
S_IRUGO
,
c
->
dent
,
(
u32
*
)
&
c
->
flags
);
d
=
debugfs_create_x32
(
"flags"
,
S_IRUGO
,
c
->
dent
,
(
u32
*
)
&
c
->
flags
);
if
(
IS_ERR
(
d
)
)
{
if
(
!
d
)
{
err
=
PTR_ERR
(
d
)
;
err
=
-
ENOMEM
;
goto
err_out
;
goto
err_out
;
}
}
return
0
;
return
0
;
...
@@ -483,8 +483,8 @@ static int __init clk_debugfs_init(void)
...
@@ -483,8 +483,8 @@ static int __init clk_debugfs_init(void)
int
err
;
int
err
;
d
=
debugfs_create_dir
(
"clock"
,
NULL
);
d
=
debugfs_create_dir
(
"clock"
,
NULL
);
if
(
IS_ERR
(
d
)
)
if
(
!
d
)
return
PTR_ERR
(
d
)
;
return
-
ENOMEM
;
clk_debugfs_root
=
d
;
clk_debugfs_root
=
d
;
list_for_each_entry
(
c
,
&
clocks
,
node
)
{
list_for_each_entry
(
c
,
&
clocks
,
node
)
{
...
...
arch/arm/plat-omap/include/mach/entry-macro.S
View file @
6597cb84
...
@@ -65,7 +65,8 @@
...
@@ -65,7 +65,8 @@
#include <mach/omap34xx.h>
#include <mach/omap34xx.h>
#endif
#endif
#define INTCPS_SIR_IRQ_OFFSET 0x0040 /* Active interrupt number */
#define INTCPS_SIR_IRQ_OFFSET 0x0040 /* Active interrupt offset */
#define ACTIVEIRQ_MASK 0x7f /* Active interrupt bits */
.
macro
disable_fiq
.
macro
disable_fiq
.
endm
.
endm
...
@@ -88,6 +89,7 @@
...
@@ -88,6 +89,7 @@
cmp
\
irqnr
,
#
0x0
cmp
\
irqnr
,
#
0x0
2222
:
2222
:
ldrne
\
irqnr
,
[
\
base
,
#
INTCPS_SIR_IRQ_OFFSET
]
ldrne
\
irqnr
,
[
\
base
,
#
INTCPS_SIR_IRQ_OFFSET
]
and
\
irqnr
,
\
irqnr
,
#
ACTIVEIRQ_MASK
/*
Clear
spurious
bits
*/
.
endm
.
endm
...
...
arch/arm/plat-omap/include/mach/irqs.h
View file @
6597cb84
...
@@ -372,7 +372,7 @@
...
@@ -372,7 +372,7 @@
/* External TWL4030 gpio interrupts are optional */
/* External TWL4030 gpio interrupts are optional */
#define TWL4030_GPIO_IRQ_BASE TWL4030_PWR_IRQ_END
#define TWL4030_GPIO_IRQ_BASE TWL4030_PWR_IRQ_END
#ifdef CONFIG_
TWL4030_GPIO
#ifdef CONFIG_
GPIO_TWL4030
#define TWL4030_GPIO_NR_IRQS 18
#define TWL4030_GPIO_NR_IRQS 18
#else
#else
#define TWL4030_GPIO_NR_IRQS 0
#define TWL4030_GPIO_NR_IRQS 0
...
...
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