Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
43d1a2c3
Commit
43d1a2c3
authored
13 years ago
by
Gabor Juhos
Browse files
Options
Downloads
Patches
Plain Diff
ramips: rt3883: enable PCI on the RT-N56U board
SVN-Revision: 30528
parent
784be92e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
target/linux/ramips/files/arch/mips/ralink/rt3883/mach-rt-n56u.c
+16
-0
16 additions, 0 deletions
...linux/ramips/files/arch/mips/ralink/rt3883/mach-rt-n56u.c
with
16 additions
and
0 deletions
target/linux/ramips/files/arch/mips/ralink/rt3883/mach-rt-n56u.c
+
16
−
0
View file @
43d1a2c3
...
...
@@ -12,6 +12,8 @@
#include
<linux/platform_device.h>
#include
<linux/rtl8367.h>
#include
<linux/ethtool.h>
#include
<linux/pci.h>
#include
<linux/rt2x00_platform.h>
#include
<asm/mach-ralink/machine.h>
#include
<asm/mach-ralink/dev-gpio-buttons.h>
...
...
@@ -105,6 +107,18 @@ static struct platform_device rt_n56u_rtl8367_device = {
}
};
static
struct
rt2x00_platform_data
rt_n56u_pci_wlan_data
=
{
.
eeprom_file_name
=
"rt2x00pci_1_0.eeprom"
,
};
static
int
rt_n56u_pci_plat_dev_init
(
struct
pci_dev
*
dev
)
{
if
(
dev
->
bus
->
number
==
1
&&
PCI_SLOT
(
dev
->
devfn
)
==
0
)
dev
->
dev
.
platform_data
=
&
rt_n56u_pci_wlan_data
;
return
0
;
}
static
void
__init
rt_n56u_init
(
void
)
{
rt3883_gpio_init
(
RT3883_GPIO_MODE_I2C
|
...
...
@@ -133,6 +147,8 @@ static void __init rt_n56u_init(void)
rt3883_register_wdt
(
false
);
rt3883_register_usbhost
();
rt3883_pci_set_plat_dev_init
(
rt_n56u_pci_plat_dev_init
);
rt3883_pci_init
(
RT3883_PCI_MODE_PCIE
);
}
MIPS_MACHINE
(
RAMIPS_MACH_RT_N56U
,
"RT-N56U"
,
"Asus RT-N56U"
,
rt_n56u_init
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment