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
0d53cc8b
Commit
0d53cc8b
authored
Mar 06, 2020
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'omap-for-v5.7/omap1' into omap-for-v5.7/soc
parents
f4a5ac7b
b75ca521
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
29 deletions
+15
-29
arch/arm/mach-omap1/pm.c
arch/arm/mach-omap1/pm.c
+6
-7
arch/arm/mach-omap1/time.c
arch/arm/mach-omap1/time.c
+3
-7
arch/arm/mach-omap1/timer32k.c
arch/arm/mach-omap1/timer32k.c
+3
-7
arch/arm/mach-omap2/timer.c
arch/arm/mach-omap2/timer.c
+3
-8
No files found.
arch/arm/mach-omap1/pm.c
View file @
0d53cc8b
...
...
@@ -596,11 +596,6 @@ static irqreturn_t omap_wakeup_interrupt(int irq, void *dev)
return
IRQ_HANDLED
;
}
static
struct
irqaction
omap_wakeup_irq
=
{
.
name
=
"peripheral wakeup"
,
.
handler
=
omap_wakeup_interrupt
};
static
const
struct
platform_suspend_ops
omap_pm_ops
=
{
...
...
@@ -613,6 +608,7 @@ static const struct platform_suspend_ops omap_pm_ops = {
static
int
__init
omap_pm_init
(
void
)
{
int
error
=
0
;
int
irq
;
if
(
!
cpu_class_is_omap1
())
return
-
ENODEV
;
...
...
@@ -656,9 +652,12 @@ static int __init omap_pm_init(void)
arm_pm_idle
=
omap1_pm_idle
;
if
(
cpu_is_omap7xx
())
setup_irq
(
INT_7XX_WAKE_UP_REQ
,
&
omap_wakeup_irq
)
;
irq
=
INT_7XX_WAKE_UP_REQ
;
else
if
(
cpu_is_omap16xx
())
setup_irq
(
INT_1610_WAKE_UP_REQ
,
&
omap_wakeup_irq
);
irq
=
INT_1610_WAKE_UP_REQ
;
if
(
request_irq
(
irq
,
omap_wakeup_interrupt
,
0
,
"peripheral wakeup"
,
NULL
))
pr_err
(
"Failed to request irq %d (peripheral wakeup)
\n
"
,
irq
);
/* Program new power ramp-up time
* (0 for most boards since we don't lower voltage when in deep sleep)
...
...
arch/arm/mach-omap1/time.c
View file @
0d53cc8b
...
...
@@ -155,15 +155,11 @@ static irqreturn_t omap_mpu_timer1_interrupt(int irq, void *dev_id)
return
IRQ_HANDLED
;
}
static
struct
irqaction
omap_mpu_timer1_irq
=
{
.
name
=
"mpu_timer1"
,
.
flags
=
IRQF_TIMER
|
IRQF_IRQPOLL
,
.
handler
=
omap_mpu_timer1_interrupt
,
};
static
__init
void
omap_init_mpu_timer
(
unsigned
long
rate
)
{
setup_irq
(
INT_TIMER1
,
&
omap_mpu_timer1_irq
);
if
(
request_irq
(
INT_TIMER1
,
omap_mpu_timer1_interrupt
,
IRQF_TIMER
|
IRQF_IRQPOLL
,
"mpu_timer1"
,
NULL
))
pr_err
(
"Failed to request irq %d (mpu_timer1)
\n
"
,
INT_TIMER1
);
omap_mpu_timer_start
(
0
,
(
rate
/
HZ
)
-
1
,
1
);
clockevent_mpu_timer1
.
cpumask
=
cpumask_of
(
0
);
...
...
arch/arm/mach-omap1/timer32k.c
View file @
0d53cc8b
...
...
@@ -148,15 +148,11 @@ static irqreturn_t omap_32k_timer_interrupt(int irq, void *dev_id)
return
IRQ_HANDLED
;
}
static
struct
irqaction
omap_32k_timer_irq
=
{
.
name
=
"32KHz timer"
,
.
flags
=
IRQF_TIMER
|
IRQF_IRQPOLL
,
.
handler
=
omap_32k_timer_interrupt
,
};
static
__init
void
omap_init_32k_timer
(
void
)
{
setup_irq
(
INT_OS_TIMER
,
&
omap_32k_timer_irq
);
if
(
request_irq
(
INT_OS_TIMER
,
omap_32k_timer_interrupt
,
IRQF_TIMER
|
IRQF_IRQPOLL
,
"32KHz timer"
,
NULL
))
pr_err
(
"Failed to request irq %d(32KHz timer)
\n
"
,
INT_OS_TIMER
);
clockevent_32k_timer
.
cpumask
=
cpumask_of
(
0
);
clockevents_config_and_register
(
&
clockevent_32k_timer
,
...
...
arch/arm/mach-omap2/timer.c
View file @
0d53cc8b
...
...
@@ -91,12 +91,6 @@ static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id)
return
IRQ_HANDLED
;
}
static
struct
irqaction
omap2_gp_timer_irq
=
{
.
name
=
"gp_timer"
,
.
flags
=
IRQF_TIMER
|
IRQF_IRQPOLL
,
.
handler
=
omap2_gp_timer_interrupt
,
};
static
int
omap2_gp_timer_set_next_event
(
unsigned
long
cycles
,
struct
clock_event_device
*
evt
)
{
...
...
@@ -382,8 +376,9 @@ static void __init omap2_gp_clockevent_init(int gptimer_id,
&
clockevent_gpt
.
name
,
OMAP_TIMER_POSTED
);
BUG_ON
(
res
);
omap2_gp_timer_irq
.
dev_id
=
&
clkev
;
setup_irq
(
clkev
.
irq
,
&
omap2_gp_timer_irq
);
if
(
request_irq
(
clkev
.
irq
,
omap2_gp_timer_interrupt
,
IRQF_TIMER
|
IRQF_IRQPOLL
,
"gp_timer"
,
&
clkev
))
pr_err
(
"Failed to request irq %d (gp_timer)
\n
"
,
clkev
.
irq
);
__omap_dm_timer_int_enable
(
&
clkev
,
OMAP_TIMER_INT_OVERFLOW
);
...
...
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