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
c5142e84
Commit
c5142e84
authored
Jan 20, 2009
by
Steve Glendinning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: convert realview platform to use smsc911x
Signed-off-by:
Steve Glendinning
<
steve.glendinning@smsc.com
>
parent
4353318e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
arch/arm/mach-realview/core.c
arch/arm/mach-realview/core.c
+9
-8
No files found.
arch/arm/mach-realview/core.c
View file @
c5142e84
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include <linux/clocksource.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/clockchips.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/smc911x.h>
#include <linux/sm
s
c911x.h>
#include <linux/ata_platform.h>
#include <linux/ata_platform.h>
#include <asm/clkdev.h>
#include <asm/clkdev.h>
...
@@ -128,14 +128,15 @@ int realview_flash_register(struct resource *res, u32 num)
...
@@ -128,14 +128,15 @@ int realview_flash_register(struct resource *res, u32 num)
return
platform_device_register
(
&
realview_flash_device
);
return
platform_device_register
(
&
realview_flash_device
);
}
}
static
struct
smc911x_platdata
realview_smc911x_platdata
=
{
static
struct
smsc911x_platform_config
smsc911x_config
=
{
.
flags
=
SMC911X_USE_32BIT
,
.
flags
=
SMSC911X_USE_32BIT
,
.
irq_flags
=
IRQF_SHARED
,
.
irq_polarity
=
SMSC911X_IRQ_POLARITY_ACTIVE_HIGH
,
.
irq_polarity
=
1
,
.
irq_type
=
SMSC911X_IRQ_TYPE_PUSH_PULL
,
.
phy_interface
=
PHY_INTERFACE_MODE_MII
,
};
};
static
struct
platform_device
realview_eth_device
=
{
static
struct
platform_device
realview_eth_device
=
{
.
name
=
"smc911x"
,
.
name
=
"sm
s
c911x"
,
.
id
=
0
,
.
id
=
0
,
.
num_resources
=
2
,
.
num_resources
=
2
,
};
};
...
@@ -145,8 +146,8 @@ int realview_eth_register(const char *name, struct resource *res)
...
@@ -145,8 +146,8 @@ int realview_eth_register(const char *name, struct resource *res)
if
(
name
)
if
(
name
)
realview_eth_device
.
name
=
name
;
realview_eth_device
.
name
=
name
;
realview_eth_device
.
resource
=
res
;
realview_eth_device
.
resource
=
res
;
if
(
strcmp
(
realview_eth_device
.
name
,
"smc911x"
)
==
0
)
if
(
strcmp
(
realview_eth_device
.
name
,
"sm
s
c911x"
)
==
0
)
realview_eth_device
.
dev
.
platform_data
=
&
realview_smc911x_platdata
;
realview_eth_device
.
dev
.
platform_data
=
&
smsc911x_config
;
return
platform_device_register
(
&
realview_eth_device
);
return
platform_device_register
(
&
realview_eth_device
);
}
}
...
...
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