Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
97008082
Commit
97008082
authored
Jun 16, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/rmk/linux-2.6-arm
parents
043cf3fd
22f11c4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
1 deletion
+60
-1
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/lubbock.c
+30
-0
arch/arm/mach-pxa/mainstone.c
arch/arm/mach-pxa/mainstone.c
+30
-1
No files found.
arch/arm/mach-pxa/lubbock.c
View file @
97008082
...
...
@@ -15,6 +15,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/sysdev.h>
#include <linux/major.h>
#include <linux/fb.h>
#include <linux/interrupt.h>
...
...
@@ -106,6 +107,35 @@ static void __init lubbock_init_irq(void)
set_irq_type
(
IRQ_GPIO
(
0
),
IRQT_FALLING
);
}
#ifdef CONFIG_PM
static
int
lubbock_irq_resume
(
struct
sys_device
*
dev
)
{
LUB_IRQ_MASK_EN
=
lubbock_irq_enabled
;
return
0
;
}
static
struct
sysdev_class
lubbock_irq_sysclass
=
{
set_kset_name
(
"cpld_irq"
),
.
resume
=
lubbock_irq_resume
,
};
static
struct
sys_device
lubbock_irq_device
=
{
.
cls
=
&
lubbock_irq_sysclass
,
};
static
int
__init
lubbock_irq_device_init
(
void
)
{
int
ret
=
sysdev_class_register
(
&
lubbock_irq_sysclass
);
if
(
ret
==
0
)
ret
=
sysdev_register
(
&
lubbock_irq_device
);
return
ret
;
}
device_initcall
(
lubbock_irq_device_init
);
#endif
static
int
lubbock_udc_is_connected
(
void
)
{
return
(
LUB_MISC_RD
&
(
1
<<
9
))
==
0
;
...
...
arch/arm/mach-pxa/mainstone.c
View file @
97008082
...
...
@@ -15,6 +15,7 @@
#include <linux/init.h>
#include <linux/device.h>
#include <linux/sysdev.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/bitops.h>
...
...
@@ -62,7 +63,6 @@ static struct irqchip mainstone_irq_chip = {
.
unmask
=
mainstone_unmask_irq
,
};
static
void
mainstone_irq_handler
(
unsigned
int
irq
,
struct
irqdesc
*
desc
,
struct
pt_regs
*
regs
)
{
...
...
@@ -100,6 +100,35 @@ static void __init mainstone_init_irq(void)
set_irq_type
(
IRQ_GPIO
(
0
),
IRQT_FALLING
);
}
#ifdef CONFIG_PM
static
int
mainstone_irq_resume
(
struct
sys_device
*
dev
)
{
MST_INTMSKENA
=
mainstone_irq_enabled
;
return
0
;
}
static
struct
sysdev_class
mainstone_irq_sysclass
=
{
set_kset_name
(
"cpld_irq"
),
.
resume
=
mainstone_irq_resume
,
};
static
struct
sys_device
mainstone_irq_device
=
{
.
cls
=
&
mainstone_irq_sysclass
,
};
static
int
__init
mainstone_irq_device_init
(
void
)
{
int
ret
=
sysdev_class_register
(
&
mainstone_irq_sysclass
);
if
(
ret
==
0
)
ret
=
sysdev_register
(
&
mainstone_irq_device
);
return
ret
;
}
device_initcall
(
mainstone_irq_device_init
);
#endif
static
struct
resource
smc91x_resources
[]
=
{
[
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