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
25f536d5
Commit
25f536d5
authored
Feb 06, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Add platform device and resources for SMC91C96 devices.
parent
29052eba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/lubbock.c
+26
-0
arch/arm/mach-sa1100/neponset.c
arch/arm/mach-sa1100/neponset.c
+26
-0
No files found.
arch/arm/mach-pxa/lubbock.c
View file @
25f536d5
...
...
@@ -119,8 +119,34 @@ static struct platform_device sa1111_device = {
.
resource
=
sa1111_resources
,
};
static
struct
resource
smc91x_resources
[]
=
{
[
0
]
=
{
.
start
=
0x0c000000
,
.
end
=
0x0c0fffff
,
.
flags
=
IORESOURCE_MEM
,
},
[
1
]
=
{
.
start
=
LUBBOCK_ETH_IRQ
,
.
end
=
LUBBOCK_ETH_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
},
[
2
]
=
{
.
start
=
0x0e000000
,
.
end
=
0x0e0fffff
,
.
flags
=
IORESOURCE_MEM
,
},
};
static
struct
platform_device
smc91x_device
=
{
.
name
=
"smc91x"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
smc91x_resources
),
.
resource
=
smc91x_resources
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
sa1111_device
,
&
smc91x_device
,
};
static
void
__init
lubbock_init
(
void
)
...
...
arch/arm/mach-sa1100/neponset.c
View file @
25f536d5
...
...
@@ -256,9 +256,35 @@ static struct platform_device sa1111_device = {
.
resource
=
sa1111_resources
,
};
static
struct
resource
smc91x_resources
[]
=
{
[
0
]
=
{
.
start
=
SA1100_CS3_PHYS
,
.
end
=
SA1100_CS3_PHYS
+
0x01ffffff
,
.
flags
=
IORESOURCE_MEM
,
},
[
1
]
=
{
.
start
=
IRQ_NEPONSET_SMC9196
,
.
end
=
IRQ_NEPONSET_SMC9196
,
.
flags
=
IORESOURCE_IRQ
,
},
[
2
]
=
{
.
start
=
SA1100_CS3_PHYS
+
0x02000000
,
.
end
=
SA1100_CS3_PHYS
+
0x03ffffff
,
.
flags
=
IORESOURCE_MEM
,
},
};
static
struct
platform_device
smc91x_device
=
{
.
name
=
"smc91x"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
smc91x_resources
),
.
resource
=
smc91x_resources
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
neponset_device
,
&
sa1111_device
,
&
smc91x_device
,
};
static
int
__init
neponset_init
(
void
)
...
...
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