1/*********************************************************************** 2 * Copyright 2001 MontaVista Software Inc. 3 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net 4 * 5 * include/asm-mips/gt64120/momenco-ocelot/gt64120-dep.h 6 * Board-dependent definitions for GT-64120 chip. 7 * 8 * This program is free software; you can redistribute it and/or modify it 9 * under the terms of the GNU General Public License as published by the 10 * Free Software Foundation; either version 2 of the License, or (at your 11 * option) any later version. 12 *********************************************************************** 13 */ 14 15#ifndef _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H 16#define _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H 17 18#include <asm/addrspace.h> /* for KSEG1ADDR() */ 19#include <asm/byteorder.h> /* for cpu_to_le32() */ 20 21/* 22 * PCI address allocation 23 */ 24#define GT_PCI_MEM_BASE (0x22000000) 25#define GT_PCI_MEM_SIZE GT_DEF_PCI0_MEM0_SIZE 26#define GT_PCI_IO_BASE (0x20000000) 27#define GT_PCI_IO_SIZE GT_DEF_PCI0_IO_SIZE 28 29extern unsigned long gt64120_base; 30 31#define GT64120_BASE (gt64120_base) 32 33/* 34 * Because of an error/peculiarity in the Galileo chip, we need to swap the 35 * bytes when running bigendian. 36 */ 37 38#define GT_WRITE(ofs, data) \ 39 *(volatile u32 *)(GT64120_BASE+ofs) = cpu_to_le32(data) 40#define GT_READ(ofs, data) \ 41 *data = le32_to_cpu(*(volatile u32 *)(GT64120_BASE+ofs)) 42 43 44/* 45 * gt timer irq 46 */ 47#define TIMER 6 48 49#endif /* _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H */ 50