Path: blob/master/arch/arm/mach-ixp23xx/include/mach/platform.h
15157 views
/*1* arch/arm/mach-ixp23xx/include/mach/platform.h2*3* Various bits of code used by platform-level code.4*5* Author: Deepak Saxena <[email protected]>6*7* Copyright 2005 (c) MontaVista Software, Inc.8*9* This file is licensed under the terms of the GNU General Public10* License version 2. This program is licensed "as is" without any11* warranty of any kind, whether express or implied.12*/1314#ifndef __ASSEMBLY__1516static inline unsigned long ixp2000_reg_read(volatile void *reg)17{18return *((volatile unsigned long *)reg);19}2021static inline void ixp2000_reg_write(volatile void *reg, unsigned long val)22{23*((volatile unsigned long *)reg) = val;24}2526static inline void ixp2000_reg_wrb(volatile void *reg, unsigned long val)27{28*((volatile unsigned long *)reg) = val;29}3031struct pci_sys_data;3233void ixp23xx_map_io(void);34void ixp23xx_init_irq(void);35void ixp23xx_sys_init(void);36int ixp23xx_pci_setup(int, struct pci_sys_data *);37void ixp23xx_pci_preinit(void);38struct pci_bus *ixp23xx_pci_scan_bus(int, struct pci_sys_data*);39void ixp23xx_pci_slave_init(void);4041extern struct sys_timer ixp23xx_timer;4243#define IXP23XX_UART_XTAL 147456004445#ifndef __ASSEMBLY__46/*47* Is system memory on the XSI or CPP bus?48*/49static inline unsigned ixp23xx_cpp_boot(void)50{51return (*IXP23XX_EXP_CFG0 & IXP23XX_EXP_CFG0_XSI_NOT_PRES);52}53#endif545556#endif575859