| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 | #ifndef _M32700UT_M32700UT_PLD_H#define _M32700UT_M32700UT_PLD_H/* * include/asm-m32r/m32700ut/m32700ut_pld.h * * Definitions for Programmable Logic Device(PLD) on M32700UT board. * * Copyright (c) 2002	Takeo Takahashi * * This file is subject to the terms and conditions of the GNU General * Public License.  See the file "COPYING" in the main directory of * this archive for more details. */#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_USRV)#define PLD_PLAT_BASE		0x04c00000#else#error "no platform configuration"#endif#ifndef __ASSEMBLY__/* * C functions use non-cache address. */#define PLD_BASE		(PLD_PLAT_BASE /* + NONCACHE_OFFSET */)#define __reg8			(volatile unsigned char *)#define __reg16			(volatile unsigned short *)#define __reg32			(volatile unsigned int *)#else#define PLD_BASE		(PLD_PLAT_BASE + NONCACHE_OFFSET)#define __reg8#define __reg16#define __reg32#endif /* __ASSEMBLY__ *//* CFC */#define	PLD_CFRSTCR		__reg16(PLD_BASE + 0x0000)#define PLD_CFSTS		__reg16(PLD_BASE + 0x0002)#define PLD_CFIMASK		__reg16(PLD_BASE + 0x0004)#define PLD_CFBUFCR		__reg16(PLD_BASE + 0x0006)#define PLD_CFVENCR		__reg16(PLD_BASE + 0x0008)#define PLD_CFCR0		__reg16(PLD_BASE + 0x000a)#define PLD_CFCR1		__reg16(PLD_BASE + 0x000c)#define PLD_IDERSTCR		__reg16(PLD_BASE + 0x0010)/* MMC */#define PLD_MMCCR		__reg16(PLD_BASE + 0x4000)#define PLD_MMCMOD		__reg16(PLD_BASE + 0x4002)#define PLD_MMCSTS		__reg16(PLD_BASE + 0x4006)#define PLD_MMCBAUR		__reg16(PLD_BASE + 0x400a)#define PLD_MMCCMDBCUT		__reg16(PLD_BASE + 0x400c)#define PLD_MMCCDTBCUT		__reg16(PLD_BASE + 0x400e)#define PLD_MMCDET		__reg16(PLD_BASE + 0x4010)#define PLD_MMCWP		__reg16(PLD_BASE + 0x4012)#define PLD_MMCWDATA		__reg16(PLD_BASE + 0x5000)#define PLD_MMCRDATA		__reg16(PLD_BASE + 0x6000)#define PLD_MMCCMDDATA		__reg16(PLD_BASE + 0x7000)#define PLD_MMCRSPDATA		__reg16(PLD_BASE + 0x7006)/* ICU *  ICUISTS:	status register *  ICUIREQ0: 	request register *  ICUIREQ1: 	request register *  ICUCR3:	control register for CFIREQ# interrupt *  ICUCR4:	control register for CFC Card insert interrupt *  ICUCR5:	control register for CFC Card eject interrupt *  ICUCR6:	control register for external interrupt *  ICUCR11:	control register for MMC Card insert/eject interrupt *  ICUCR13:	control register for SC error interrupt *  ICUCR14:	control register for SC receive interrupt *  ICUCR15:	control register for SC send interrupt *  ICUCR16:	control register for SIO0 receive interrupt *  ICUCR17:	control register for SIO0 send interrupt */#if !defined(CONFIG_PLAT_USRV)#define PLD_IRQ_INT0		(M32700UT_PLD_IRQ_BASE + 0)	/* None */#define PLD_IRQ_INT1		(M32700UT_PLD_IRQ_BASE + 1)	/* reserved */#define PLD_IRQ_INT2		(M32700UT_PLD_IRQ_BASE + 2)	/* reserved */#define PLD_IRQ_CFIREQ		(M32700UT_PLD_IRQ_BASE + 3)	/* CF IREQ */#define PLD_IRQ_CFC_INSERT	(M32700UT_PLD_IRQ_BASE + 4)	/* CF Insert */#define PLD_IRQ_CFC_EJECT	(M32700UT_PLD_IRQ_BASE + 5)	/* CF Eject */#define PLD_IRQ_EXINT		(M32700UT_PLD_IRQ_BASE + 6)	/* EXINT */#define PLD_IRQ_INT7		(M32700UT_PLD_IRQ_BASE + 7)	/* reserved */#define PLD_IRQ_INT8		(M32700UT_PLD_IRQ_BASE + 8)	/* reserved */#define PLD_IRQ_INT9		(M32700UT_PLD_IRQ_BASE + 9)	/* reserved */#define PLD_IRQ_INT10		(M32700UT_PLD_IRQ_BASE + 10)	/* reserved */#define PLD_IRQ_MMCCARD		(M32700UT_PLD_IRQ_BASE + 11)	/* MMC Insert/Eject */#define PLD_IRQ_INT12		(M32700UT_PLD_IRQ_BASE + 12)	/* reserved */#define PLD_IRQ_SC_ERROR	(M32700UT_PLD_IRQ_BASE + 13)	/* SC error */#define PLD_IRQ_SC_RCV		(M32700UT_PLD_IRQ_BASE + 14)	/* SC receive */#define PLD_IRQ_SC_SND		(M32700UT_PLD_IRQ_BASE + 15)	/* SC send */#define PLD_IRQ_SIO0_RCV	(M32700UT_PLD_IRQ_BASE + 16)	/* SIO receive */#define PLD_IRQ_SIO0_SND	(M32700UT_PLD_IRQ_BASE + 17)	/* SIO send */#define PLD_IRQ_INT18		(M32700UT_PLD_IRQ_BASE + 18)	/* reserved */#define PLD_IRQ_INT19		(M32700UT_PLD_IRQ_BASE + 19)	/* reserved */#define PLD_IRQ_INT20		(M32700UT_PLD_IRQ_BASE + 20)	/* reserved */#define PLD_IRQ_INT21		(M32700UT_PLD_IRQ_BASE + 21)	/* reserved */#define PLD_IRQ_INT22		(M32700UT_PLD_IRQ_BASE + 22)	/* reserved */#define PLD_IRQ_INT23		(M32700UT_PLD_IRQ_BASE + 23)	/* reserved */#define PLD_IRQ_INT24		(M32700UT_PLD_IRQ_BASE + 24)	/* reserved */#define PLD_IRQ_INT25		(M32700UT_PLD_IRQ_BASE + 25)	/* reserved */#define PLD_IRQ_INT26		(M32700UT_PLD_IRQ_BASE + 26)	/* reserved */#define PLD_IRQ_INT27		(M32700UT_PLD_IRQ_BASE + 27)	/* reserved */#define PLD_IRQ_INT28		(M32700UT_PLD_IRQ_BASE + 28)	/* reserved */#define PLD_IRQ_INT29		(M32700UT_PLD_IRQ_BASE + 29)	/* reserved */#define PLD_IRQ_INT30		(M32700UT_PLD_IRQ_BASE + 30)	/* reserved */#define PLD_IRQ_INT31		(M32700UT_PLD_IRQ_BASE + 31)	/* reserved */#else	/* CONFIG_PLAT_USRV */#define PLD_IRQ_INT0		(M32700UT_PLD_IRQ_BASE + 0)	/* None */#define PLD_IRQ_INT1		(M32700UT_PLD_IRQ_BASE + 1)	/* reserved */#define PLD_IRQ_INT2		(M32700UT_PLD_IRQ_BASE + 2)	/* reserved */#define PLD_IRQ_CF0		(M32700UT_PLD_IRQ_BASE + 3)	/* CF0# */#define PLD_IRQ_CF1		(M32700UT_PLD_IRQ_BASE + 4)	/* CF1# */#define PLD_IRQ_CF2		(M32700UT_PLD_IRQ_BASE + 5)	/* CF2# */#define PLD_IRQ_CF3		(M32700UT_PLD_IRQ_BASE + 6)	/* CF3# */#define PLD_IRQ_CF4		(M32700UT_PLD_IRQ_BASE + 7)	/* CF4# */#define PLD_IRQ_INT8		(M32700UT_PLD_IRQ_BASE + 8)	/* reserved */#define PLD_IRQ_INT9		(M32700UT_PLD_IRQ_BASE + 9)	/* reserved */#define PLD_IRQ_INT10		(M32700UT_PLD_IRQ_BASE + 10)	/* reserved */#define PLD_IRQ_INT11		(M32700UT_PLD_IRQ_BASE + 11)	/* reserved */#define PLD_IRQ_UART0		(M32700UT_PLD_IRQ_BASE + 12)	/* UARTIRQ0 */#define PLD_IRQ_UART1		(M32700UT_PLD_IRQ_BASE + 13)	/* UARTIRQ1 */#define PLD_IRQ_INT14		(M32700UT_PLD_IRQ_BASE + 14)	/* reserved */#define PLD_IRQ_INT15		(M32700UT_PLD_IRQ_BASE + 15)	/* reserved */#define PLD_IRQ_SNDINT		(M32700UT_PLD_IRQ_BASE + 16)	/* SNDINT# */#define PLD_IRQ_INT17		(M32700UT_PLD_IRQ_BASE + 17)	/* reserved */#define PLD_IRQ_INT18		(M32700UT_PLD_IRQ_BASE + 18)	/* reserved */#define PLD_IRQ_INT19		(M32700UT_PLD_IRQ_BASE + 19)	/* reserved */#define PLD_IRQ_INT20		(M32700UT_PLD_IRQ_BASE + 20)	/* reserved */#define PLD_IRQ_INT21		(M32700UT_PLD_IRQ_BASE + 21)	/* reserved */#define PLD_IRQ_INT22		(M32700UT_PLD_IRQ_BASE + 22)	/* reserved */#define PLD_IRQ_INT23		(M32700UT_PLD_IRQ_BASE + 23)	/* reserved */#define PLD_IRQ_INT24		(M32700UT_PLD_IRQ_BASE + 24)	/* reserved */#define PLD_IRQ_INT25		(M32700UT_PLD_IRQ_BASE + 25)	/* reserved */#define PLD_IRQ_INT26		(M32700UT_PLD_IRQ_BASE + 26)	/* reserved */#define PLD_IRQ_INT27		(M32700UT_PLD_IRQ_BASE + 27)	/* reserved */#define PLD_IRQ_INT28		(M32700UT_PLD_IRQ_BASE + 28)	/* reserved */#define PLD_IRQ_INT29		(M32700UT_PLD_IRQ_BASE + 29)	/* reserved */#define PLD_IRQ_INT30		(M32700UT_PLD_IRQ_BASE + 30)	/* reserved */#endif	/* CONFIG_PLAT_USRV */
 |