Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25282
b: refs/heads/master
c: 532bda5
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Apr 1, 2006
1 parent 5dfed2a commit f4ac918
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50c37e216132d2185a15d5cf6b966adf6ecea535
refs/heads/master: 532bda5d9cd2f94a9e374765c23858c7d8641f66
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-ixp23xx/espresso.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
#include <asm/mach/irq.h>
#include <asm/mach/pci.h>

static int __init espresso_pci_init(void)
{
if (machine_is_espresso())
ixp23xx_pci_slave_init();

return 0;
};
subsys_initcall(espresso_pci_init);

static void __init espresso_init(void)
{
physmap_configure(0x90000000, 0x02000000, 2, NULL);
Expand Down
12 changes: 11 additions & 1 deletion trunk/arch/arm/mach-ixp23xx/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int clear_master_aborts(void)
return 0;
}

void __init ixp23xx_pci_preinit(void)
static void __init ixp23xx_pci_common_init(void)
{
#ifdef __ARMEB__
*IXP23XX_PCI_CONTROL |= 0x20000; /* set I/O swapping */
Expand All @@ -220,6 +220,11 @@ void __init ixp23xx_pci_preinit(void)
} else {
*IXP23XX_PCI_CPP_ADDR_BITS |= (1 << 1);
}
}

void __init ixp23xx_pci_preinit(void)
{
ixp23xx_pci_common_init();

hook_fault_code(16+6, ixp23xx_pci_abort_handler, SIGBUS,
"PCI config cycle to non-existent device");
Expand Down Expand Up @@ -273,3 +278,8 @@ int ixp23xx_pci_setup(int nr, struct pci_sys_data *sys)

return 1;
}

void ixp23xx_pci_slave_init(void)
{
ixp23xx_pci_common_init();
}
1 change: 1 addition & 0 deletions trunk/include/asm-arm/arch-ixp23xx/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void ixp23xx_sys_init(void);
int ixp23xx_pci_setup(int, struct pci_sys_data *);
void ixp23xx_pci_preinit(void);
struct pci_bus *ixp23xx_pci_scan_bus(int, struct pci_sys_data*);
void ixp23xx_pci_slave_init(void);

extern struct sys_timer ixp23xx_timer;

Expand Down

0 comments on commit f4ac918

Please sign in to comment.