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
e4e4146e
Commit
e4e4146e
authored
Aug 27, 2008
by
Russell King
Committed by
Russell King
Aug 27, 2008
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-rmk' of
git://git.marvell.com/orion
parents
9abc6461
8e05de88
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
138 additions
and
50 deletions
+138
-50
arch/arm/configs/orion5x_defconfig
arch/arm/configs/orion5x_defconfig
+113
-33
arch/arm/mach-orion5x/common.h
arch/arm/mach-orion5x/common.h
+1
-0
arch/arm/mach-orion5x/dns323-setup.c
arch/arm/mach-orion5x/dns323-setup.c
+1
-5
arch/arm/mach-orion5x/kurobox_pro-setup.c
arch/arm/mach-orion5x/kurobox_pro-setup.c
+3
-1
arch/arm/mach-orion5x/pci.c
arch/arm/mach-orion5x/pci.c
+10
-3
arch/arm/mach-orion5x/ts209-setup.c
arch/arm/mach-orion5x/ts209-setup.c
+5
-4
arch/arm/mach-orion5x/ts409-setup.c
arch/arm/mach-orion5x/ts409-setup.c
+5
-4
No files found.
arch/arm/configs/orion5x_defconfig
View file @
e4e4146e
This diff is collapsed.
Click to expand it.
arch/arm/mach-orion5x/common.h
View file @
e4e4146e
...
...
@@ -41,6 +41,7 @@ struct pci_bus;
struct
pci_sys_data
;
void
orion5x_pcie_id
(
u32
*
dev
,
u32
*
rev
);
void
orion5x_pci_disable
(
void
);
void
orion5x_pci_set_cardbus_mode
(
void
);
int
orion5x_pci_sys_setup
(
int
nr
,
struct
pci_sys_data
*
sys
);
struct
pci_bus
*
orion5x_pci_sys_scan_bus
(
int
nr
,
struct
pci_sys_data
*
sys
);
...
...
arch/arm/mach-orion5x/dns323-setup.c
View file @
e4e4146e
...
...
@@ -245,12 +245,8 @@ static struct orion5x_mpp_mode dns323_mpp_modes[] __initdata = {
static
struct
i2c_board_info
__initdata
dns323_i2c_devices
[]
=
{
{
I2C_BOARD_INFO
(
"g760a"
,
0x3e
),
#if 0
/* this entry requires the new-style driver model lm75 driver,
* for the meantime "insmod lm75.ko force_lm75=0,0x48" is needed */
},
{
I2C_BOARD_INFO("g751", 0x48),
#endif
I2C_BOARD_INFO
(
"lm75"
,
0x48
),
},
{
I2C_BOARD_INFO
(
"m41t80"
,
0x68
),
},
...
...
arch/arm/mach-orion5x/kurobox_pro-setup.c
View file @
e4e4146e
...
...
@@ -146,8 +146,10 @@ static struct hw_pci kurobox_pro_pci __initdata = {
static
int
__init
kurobox_pro_pci_init
(
void
)
{
if
(
machine_is_kurobox_pro
())
if
(
machine_is_kurobox_pro
())
{
orion5x_pci_disable
();
pci_common_init
(
&
kurobox_pro_pci
);
}
return
0
;
}
...
...
arch/arm/mach-orion5x/pci.c
View file @
e4e4146e
...
...
@@ -541,6 +541,13 @@ static void __devinit rc_pci_fixup(struct pci_dev *dev)
}
DECLARE_PCI_FIXUP_HEADER
(
PCI_VENDOR_ID_MARVELL
,
PCI_ANY_ID
,
rc_pci_fixup
);
static
int
orion5x_pci_disabled
__initdata
;
void
__init
orion5x_pci_disable
(
void
)
{
orion5x_pci_disabled
=
1
;
}
void
__init
orion5x_pci_set_cardbus_mode
(
void
)
{
orion5x_pci_cardbus_mode
=
1
;
...
...
@@ -553,7 +560,7 @@ int __init orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys)
if
(
nr
==
0
)
{
orion_pcie_set_local_bus_nr
(
PCIE_BASE
,
sys
->
busnr
);
ret
=
pcie_setup
(
sys
);
}
else
if
(
nr
==
1
)
{
}
else
if
(
nr
==
1
&&
!
orion5x_pci_disabled
)
{
orion5x_pci_set_bus_nr
(
sys
->
busnr
);
ret
=
pci_setup
(
sys
);
}
...
...
@@ -567,7 +574,7 @@ struct pci_bus __init *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys
if
(
nr
==
0
)
{
bus
=
pci_scan_bus
(
sys
->
busnr
,
&
pcie_ops
,
sys
);
}
else
if
(
nr
==
1
)
{
}
else
if
(
nr
==
1
&&
!
orion5x_pci_disabled
)
{
bus
=
pci_scan_bus
(
sys
->
busnr
,
&
pci_ops
,
sys
);
}
else
{
bus
=
NULL
;
...
...
@@ -584,7 +591,7 @@ int __init orion5x_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
/*
* PCIe endpoint?
*/
if
(
bus
<
orion5x_pci_local_bus_nr
())
if
(
orion5x_pci_disabled
||
bus
<
orion5x_pci_local_bus_nr
())
return
IRQ_ORION5X_PCIE0_INT
;
return
-
1
;
...
...
arch/arm/mach-orion5x/ts209-setup.c
View file @
e4e4146e
...
...
@@ -287,6 +287,10 @@ static void __init qnap_ts209_init(void)
/*
* Configure peripherals.
*/
orion5x_setup_dev_boot_win
(
QNAP_TS209_NOR_BOOT_BASE
,
QNAP_TS209_NOR_BOOT_SIZE
);
platform_device_register
(
&
qnap_ts209_nor_flash
);
orion5x_ehci0_init
();
orion5x_ehci1_init
();
qnap_tsx09_find_mac_addr
(
QNAP_TS209_NOR_BOOT_BASE
+
...
...
@@ -296,12 +300,9 @@ static void __init qnap_ts209_init(void)
orion5x_i2c_init
();
orion5x_sata_init
(
&
qnap_ts209_sata_data
);
orion5x_uart0_init
();
orion5x_uart1_init
();
orion5x_xor_init
();
orion5x_setup_dev_boot_win
(
QNAP_TS209_NOR_BOOT_BASE
,
QNAP_TS209_NOR_BOOT_SIZE
);
platform_device_register
(
&
qnap_ts209_nor_flash
);
platform_device_register
(
&
qnap_ts209_button_device
);
/* Get RTC IRQ and register the chip */
...
...
arch/arm/mach-orion5x/ts409-setup.c
View file @
e4e4146e
...
...
@@ -278,6 +278,10 @@ static void __init qnap_ts409_init(void)
/*
* Configure peripherals.
*/
orion5x_setup_dev_boot_win
(
QNAP_TS409_NOR_BOOT_BASE
,
QNAP_TS409_NOR_BOOT_SIZE
);
platform_device_register
(
&
qnap_ts409_nor_flash
);
orion5x_ehci0_init
();
qnap_tsx09_find_mac_addr
(
QNAP_TS409_NOR_BOOT_BASE
+
qnap_ts409_partitions
[
5
].
offset
,
...
...
@@ -285,10 +289,7 @@ static void __init qnap_ts409_init(void)
orion5x_eth_init
(
&
qnap_tsx09_eth_data
);
orion5x_i2c_init
();
orion5x_uart0_init
();
orion5x_setup_dev_boot_win
(
QNAP_TS409_NOR_BOOT_BASE
,
QNAP_TS409_NOR_BOOT_SIZE
);
platform_device_register
(
&
qnap_ts409_nor_flash
);
orion5x_uart1_init
();
platform_device_register
(
&
qnap_ts409_button_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