Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
67ad0644
Commit
67ad0644
authored
Oct 18, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge source.mvista.com:/home/git/linux-omap-2.6
parents
d99adea7
e7bdb7ed
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
19 deletions
+31
-19
arch/arm/mach-omap1/irq.c
arch/arm/mach-omap1/irq.c
+7
-4
arch/arm/plat-omap/pm.c
arch/arm/plat-omap/pm.c
+15
-13
include/asm-arm/arch-omap/entry-macro.S
include/asm-arm/arch-omap/entry-macro.S
+7
-1
include/asm-arm/arch-omap/irqs.h
include/asm-arm/arch-omap/irqs.h
+2
-1
No files found.
arch/arm/mach-omap1/irq.c
View file @
67ad0644
...
...
@@ -47,6 +47,7 @@
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/arch/gpio.h>
#include <asm/arch/cpu.h>
#include <asm/io.h>
...
...
@@ -234,9 +235,11 @@ void __init omap_init_irq(void)
}
/* Unmask level 2 handler */
if
(
cpu_is_omap730
())
{
if
(
cpu_is_omap730
())
omap_unmask_irq
(
INT_730_IH2_IRQ
);
}
else
{
omap_unmask_irq
(
INT_IH2_IRQ
);
}
else
if
(
cpu_is_omap1510
())
omap_unmask_irq
(
INT_1510_IH2_IRQ
);
else
if
(
cpu_is_omap16xx
())
omap_unmask_irq
(
INT_1610_IH2_IRQ
);
}
arch/arm/plat-omap/pm.c
View file @
67ad0644
...
...
@@ -121,7 +121,7 @@ void omap_pm_idle(void)
*/
static
void
omap_pm_wakeup_setup
(
void
)
{
u32
level1_wake
=
OMAP_IRQ_BIT
(
INT_IH2_IRQ
)
;
u32
level1_wake
=
0
;
u32
level2_wake
=
OMAP_IRQ_BIT
(
INT_UART2
);
/*
...
...
@@ -130,27 +130,29 @@ static void omap_pm_wakeup_setup(void)
* drivers must still separately call omap_set_gpio_wakeup() to
* wake up to a GPIO interrupt.
*/
if
(
cpu_is_omap1510
()
||
cpu_is_omap16xx
())
level1_wake
|=
OMAP_IRQ_BIT
(
INT_GPIO_BANK1
);
else
if
(
cpu_is_omap730
())
level1_wake
|=
OMAP_IRQ_BIT
(
INT_730_GPIO_BANK1
);
if
(
cpu_is_omap730
())
level1_wake
=
OMAP_IRQ_BIT
(
INT_730_GPIO_BANK1
)
|
OMAP_IRQ_BIT
(
INT_730_IH2_IRQ
);
else
if
(
cpu_is_omap1510
())
level1_wake
=
OMAP_IRQ_BIT
(
INT_GPIO_BANK1
)
|
OMAP_IRQ_BIT
(
INT_1510_IH2_IRQ
);
else
if
(
cpu_is_omap16xx
())
level1_wake
=
OMAP_IRQ_BIT
(
INT_GPIO_BANK1
)
|
OMAP_IRQ_BIT
(
INT_1610_IH2_IRQ
);
omap_writel
(
~
level1_wake
,
OMAP_IH1_MIR
);
if
(
cpu_is_omap730
())
{
omap_writel
(
~
level2_wake
,
OMAP_IH2_0_MIR
);
omap_writel
(
~
(
OMAP_IRQ_BIT
(
INT_730_WAKE_UP_REQ
)
|
OMAP_IRQ_BIT
(
INT_730_MPUIO_KEYPAD
)),
OMAP_IH2_1_MIR
);
}
if
(
cpu_is_omap1510
())
{
}
else
if
(
cpu_is_omap1510
())
{
level2_wake
|=
OMAP_IRQ_BIT
(
INT_KEYBOARD
);
omap_writel
(
~
level2_wake
,
OMAP_IH2_MIR
);
}
/* INT_1610_WAKE_UP_REQ is needed for GPIO wakeup... */
if
(
cpu_is_omap16xx
())
{
}
else
if
(
cpu_is_omap16xx
())
{
level2_wake
|=
OMAP_IRQ_BIT
(
INT_KEYBOARD
);
omap_writel
(
~
level2_wake
,
OMAP_IH2_0_MIR
);
/* INT_1610_WAKE_UP_REQ is needed for GPIO wakeup... */
omap_writel
(
~
OMAP_IRQ_BIT
(
INT_1610_WAKE_UP_REQ
),
OMAP_IH2_1_MIR
);
omap_writel
(
~
0x0
,
OMAP_IH2_2_MIR
);
omap_writel
(
~
0x0
,
OMAP_IH2_3_MIR
);
...
...
include/asm-arm/arch-omap/entry-macro.S
View file @
67ad0644
...
...
@@ -14,8 +14,14 @@
(
defined
(
CONFIG_ARCH_OMAP15XX
)
||
defined
(
CONFIG_ARCH_OMAP16XX
))
#error "FIXME: OMAP730 doesn't support multiple-OMAP"
#elif defined(CONFIG_ARCH_OMAP730)
#undef INT_IH2_IRQ
#define INT_IH2_IRQ INT_730_IH2_IRQ
#elif defined(CONFIG_ARCH_OMAP15XX)
#define INT_IH2_IRQ INT_1510_IH2_IRQ
#elif defined(CONFIG_ARCH_OMAP16XX)
#define INT_IH2_IRQ INT_1610_IH2_IRQ
#else
#warning "IH2 IRQ defaulted"
#define INT_IH2_IRQ INT_1510_IH2_IRQ
#endif
.
macro
disable_fiq
...
...
include/asm-arm/arch-omap/irqs.h
View file @
67ad0644
...
...
@@ -31,7 +31,6 @@
* NOTE: See also the OMAP-1510 and 1610 specific IRQ numbers below
*
*/
#define INT_IH2_IRQ 0
#define INT_CAMERA 1
#define INT_FIQ 3
#define INT_RTDX 6
...
...
@@ -60,6 +59,7 @@
/*
* OMAP-1510 specific IRQ numbers for interrupt handler 1
*/
#define INT_1510_IH2_IRQ 0
#define INT_1510_RES2 2
#define INT_1510_SPI_TX 4
#define INT_1510_SPI_RX 5
...
...
@@ -71,6 +71,7 @@
/*
* OMAP-1610 specific IRQ numbers for interrupt handler 1
*/
#define INT_1610_IH2_IRQ 0
#define INT_1610_IH2_FIQ 2
#define INT_1610_McBSP2_TX 4
#define INT_1610_McBSP2_RX 5
...
...
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