532bda5d9c
Patch from Lennert Buytenhek On the Double Espresso board, the IXP2350s are PCI slave devices and we skip calling pci_common_init() as that enumerates the bus. But even though we are a PCI slave device, there is still some PCI-related setup that has to be done. Create ixp23xx_pci_common_init(), move the common initialisation bits there, and have this function called from both the PCI master and the PCI slave init path. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
32 lines
796 B
C
32 lines
796 B
C
/*
|
|
* include/asm-arm/arch-ixp23xx/platform.h
|
|
*
|
|
* Various bits of code used by platform-level code.
|
|
*
|
|
* Author: Deepak Saxena <dsaxena@plexity.net>
|
|
*
|
|
* Copyright 2005 (c) MontaVista Software, Inc.
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct pci_sys_data;
|
|
|
|
void ixp23xx_map_io(void);
|
|
void ixp23xx_init_irq(void);
|
|
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;
|
|
|
|
#define IXP23XX_UART_XTAL 14745600
|
|
|
|
|
|
#endif
|