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
885abe07
Commit
885abe07
authored
Jan 20, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add PXA MCI resources and device structure.
parent
e5297dd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/generic.c
+40
-0
No files found.
arch/arm/mach-pxa/generic.c
View file @
885abe07
...
@@ -20,9 +20,12 @@
...
@@ -20,9 +20,12 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/ioport.h>
#include <linux/pm.h>
#include <linux/pm.h>
#include <asm/hardware.h>
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/system.h>
#include <asm/system.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/mach/map.h>
#include <asm/mach/map.h>
...
@@ -138,3 +141,40 @@ void __init pxa_map_io(void)
...
@@ -138,3 +141,40 @@ void __init pxa_map_io(void)
iotable_init
(
standard_io_desc
,
ARRAY_SIZE
(
standard_io_desc
));
iotable_init
(
standard_io_desc
,
ARRAY_SIZE
(
standard_io_desc
));
get_clk_frequency_khz
(
1
);
get_clk_frequency_khz
(
1
);
}
}
static
struct
resource
pxamci_resources
[]
=
{
[
0
]
=
{
.
start
=
0x41100000
,
.
end
=
0x41100fff
,
.
flags
=
IORESOURCE_MEM
,
},
[
1
]
=
{
.
start
=
IRQ_MMC
,
.
end
=
IRQ_MMC
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
u64
pxamci_dmamask
=
0xffffffffUL
;
static
struct
platform_device
pxamci_device
=
{
.
name
=
"pxamci"
,
.
id
=
0
,
.
dev
=
{
.
dma_mask
=
&
pxamci_dmamask
,
},
.
num_resources
=
ARRAY_SIZE
(
pxamci_resources
),
.
resource
=
pxamci_resources
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
pxamci_device
,
};
static
int
__init
pxa_init
(
void
)
{
return
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
}
subsys_initcall
(
pxa_init
);
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