Path: blob/master/arch/arm/mach-ixp2000/include/mach/ixdp2x01.h
10820 views
/*1* arch/arm/mach-ixp2000/include/mach/ixdp2x01.h2*3* Platform definitions for IXDP2X01 && IXDP2801 systems4*5* Author: Deepak Saxena <[email protected]>6*7* Copyright 2004 (c) MontaVista Software, Inc.8*9* Based on original code Copyright (c) 2002-2003 Intel Corporation10*11* This file is licensed under the terms of the GNU General Public12* License version 2. This program is licensed "as is" without any13* warranty of any kind, whether express or implied.14*/1516#ifndef __IXDP2X01_H__17#define __IXDP2X01_H__1819#define IXDP2X01_PHYS_CPLD_BASE 0xc602400020#define IXDP2X01_VIRT_CPLD_BASE 0xfe00000021#define IXDP2X01_CPLD_REGION_SIZE 0x001000002223#define IXDP2X01_CPLD_VIRT_REG(reg) (volatile unsigned long*)(IXDP2X01_VIRT_CPLD_BASE | reg)24#define IXDP2X01_CPLD_PHYS_REG(reg) (IXDP2X01_PHYS_CPLD_BASE | reg)2526#define IXDP2X01_UART1_VIRT_BASE IXDP2X01_CPLD_VIRT_REG(0x40)27#define IXDP2X01_UART1_PHYS_BASE IXDP2X01_CPLD_PHYS_REG(0x40)2829#define IXDP2X01_UART2_VIRT_BASE IXDP2X01_CPLD_VIRT_REG(0x60)30#define IXDP2X01_UART2_PHYS_BASE IXDP2X01_CPLD_PHYS_REG(0x60)3132#define IXDP2X01_CS8900_VIRT_BASE IXDP2X01_CPLD_VIRT_REG(0x80)33#define IXDP2X01_CS8900_VIRT_END (IXDP2X01_CS8900_VIRT_BASE + 16)3435#define IXDP2X01_CPLD_RESET_REG IXDP2X01_CPLD_VIRT_REG(0x00)36#define IXDP2X01_INT_MASK_SET_REG IXDP2X01_CPLD_VIRT_REG(0x08)37#define IXDP2X01_INT_STAT_REG IXDP2X01_CPLD_VIRT_REG(0x0C)38#define IXDP2X01_INT_RAW_REG IXDP2X01_CPLD_VIRT_REG(0x10)39#define IXDP2X01_INT_MASK_CLR_REG IXDP2X01_INT_RAW_REG40#define IXDP2X01_INT_SIM_REG IXDP2X01_CPLD_VIRT_REG(0x14)4142#define IXDP2X01_CPLD_FLASH_REG IXDP2X01_CPLD_VIRT_REG(0x20)4344#define IXDP2X01_CPLD_FLASH_INTERN 0x800045#define IXDP2X01_CPLD_FLASH_BANK_MASK 0xF46#define IXDP2X01_FLASH_WINDOW_BITS 2547#define IXDP2X01_FLASH_WINDOW_SIZE (1 << IXDP2X01_FLASH_WINDOW_BITS)48#define IXDP2X01_FLASH_WINDOW_MASK (IXDP2X01_FLASH_WINDOW_SIZE - 1)4950#define IXDP2X01_UART_CLK 18432005152#define IXDP2X01_GPIO_I2C_ENABLE 0x0253#define IXDP2X01_GPIO_SCL 0x0754#define IXDP2X01_GPIO_SDA 0x065556#endif /* __IXDP2x01_H__ */575859