/****************************************************************************/
/* Copyright 2007, © Bendor Research Pty. Ltd. All rights reserved.			*/
/* Permission is granted to use this software for any purpose whatsoever	*/
/* as long as this copyright notice is preserved. The code is provided		*/
/* "as is", with no explicit, implicit or implied warranty or guarantee		*/
/* of any kind and Bendor Research Pty. Ltd. can not be held liable for		*/
/* any loss or damages arising out of the use of this software.				*/
/****************************************************************************/
/*																			*/
/*	Include file describing the NXP LPC2362 chip							*/
/*	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~							*/
/*																			*/
/*	2010 May	ZK		Original											*/
/*																			*/
/****************************************************************************/

#ifndef __LPC2362_H
#define __LPC2362_H

/*
*	Define the chip sepcific things.
*
*	The LPC2362:
*	- Does not have EMC
*	- Has USB
*	- Has HCI for the USB (one port only)
*	- Has OTG for the USB
*	- Has Ethernet controller with 16K of RAM
*	- Does not have MMC/SD controller
*	- Has CAN controller
*	- The ADC has 6 channels
*	- Has 128K of FLASH (in 11 sectors)
*	- Has 32K of RAM
*/

#define	LPC2362_CHIP_ID			(0x1600ff22)
#define	LPC2362_HAS_EMC			(0)
#define	LPC2362_HAS_MCI			(0)
#define	LPC2362_HAS_CAN			(1)
#define	LPC2362_HAS_HCI			(1)
#define	LPC2362_HAS_OTG			(1)
#define	LPC2362_HAS_USB			(1)
#define	LPC2362_HAS_ETH			(1)
#define	LPC2362_HAS_ADC			(6)
#define	LPC2362_USB_RAM_SIZE	(8*1024)
#define	LPC2362_USB_RAM_BASE	(0x7fd00000)
#define	LPC2362_ETH_RAM_SIZE	(16*1024)
#define	LPC2362_ETH_RAM_BASE	(0x7fe00000)
#define LPC2362_RTC_RAM_SIZE	(2*1024)
#define	LPC2362_RTC_RAM_BASE	(0xe0084000)
#define	LPC2362_RAM_BASE		(0x40000000)
#define	LPC2362_ROM_SIZE		(128*1024)
#define	LPC2362_RAM_SIZE		(32*1024)
#define	LPC2362_NUM_SECT		(11)
#define	LPC2362_SIZ_SECT		{  4,  4,  4,  4,  4,  4,  4,  4, 32, 32, 32 }

#endif

