⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sfr6410.h

📁 s3c6410基于USB OTG下载内核至NORFLASH的源代码
💻 H
字号:
/**************************************************************************************
* 
*	Project Name : S3C6410 Validation
*
*	Copyright 2006 by Samsung Electronics, Inc.
*	All rights reserved.
*
*	Project Description :
*		This software is only for validating functions of the S3C6410.
*		Anybody can use this software without our permission.
*  
*--------------------------------------------------------------------------------------
* 
*	File Name : sfr6410.h
*  
*	File Description : This file defines SFR base addresses.
*
*	Author : Haksoo,Kim
*	Dept. : AP Development Team
*	Created Date : 2006/11/08
*	Version : 0.1 
* 
*	History
*	- Created(Haksoo,Kim 2006/11/08)
*	- Added - AHB_S  (wonjoon.jang 2007/1/2 ) 
*  
**************************************************************************************/


#ifndef __sfr6410_H__
#define __sfr6410_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "def.h"

////
//AHB_SMC
//
//SMC
#define SROM_BASE				(0x70000000)	//SROM
#define ONENAND0_BASE			(0x70100000)	//OneNAND
#define ONENAND1_BASE			(0x70180000)
#define NFCON_BASE				(0x70200000)	//Nand Flash
#define CFCON_BASE				(0x70300000)	//CF


////
//TZIC
//
//TZIC
#define TZIC0_BASE				(0x71000000)
#define TZIC1_BASE				(0x71100000)


////
//VIC
//
//VIC
#define VIC0_BASE				(0x71200000)
#define VIC1_BASE				(0x71300000)


////
//AHB_ETB
//
//ETB
#define ETBMEM_BASE				(0x73000000)
#define ETBSFR_BASE				(0x73100000)


////
//AHB_T
//
//HOST i/f
#define INDIRECT_HOSTIF_BASE	(0x74000000)
#define DIRECT_HOSTIF_BASE		(0x74100000)
//USB HOST
#define USBHOST_BASE			(0x74300000)
#define MDPIF_BASE				(0x74400000)


////
//AHB_M
//
//DMA
#define DMA0_BASE				(0x75000000)
#define DMA1_BASE				(0x75100000)


////
//AHB_P
//
// 2D
#define TWOD_BASE				(0x76100000)
//TV
#define TVENC_BASE				(0x76200000)
#define TVSCALER_BASE			(0X76300000)


////
//AHB_F
//
//POST
#define POST0_BASE				(0x77000000)
//LCD
#define LCD_BASE				(0x77100000)
//ROTATOR
#define ROTATOR_BASE			(0x77200000)


////
//AHB_I
//
//CAMERA I/F
#define CAMERA_BASE				(0x78000000)
//JPEG
#define JPEG_BASE				(0x78800000)


////
//AHB_X
//
//USB OTG
#define USBOTG_LINK_BASE		(0x7C000000)
#define USBOTG_PHY_BASE			(0x7C100000)
//HS MMC
#define HSMMC0_BASE				(0x7C200000)
#define HSMMC1_BASE				(0x7C300000)
#define HSMMC2_BASE				(0x7C400000)


////
//AHB_S
//
//D&I Security Sub System Base
#define DnI_BASE				(0x7D000000)
#define AES_RX_BASE				(0x7D100000)
#define DES_RX_BASE				(0x7D200000)
#define HASH_RX_BASE			(0x7D300000)
#define RX_SFR_BASE				(0x7D400000)
#define AES_TX_BASE				(0x7D500000)
#define DES_TX_BASE				(0x7D600000)
#define HASH_TX_BASE			(0x7D700000)
#define TX_SFR_BASE				(0x7D800000)
#define RX_FIFO_BASE			(0x7D900000)
#define TX_FIFO_BASE			(0x7DA00000)
// SDMA Controller
#define SDMA0_BASE				(0x7DB00000)
#define SDMA1_BASE				(0x7DC00000)


////
//APB0
//
//DMC
#define DMC0_BASE				(0x7E000000)
#define DMC1_BASE				(0x7E001000)
//MFC
#define MFC_BASE				(0x7E002000)
//WDT
#define WDT_BASE				(0x7E004000)
//RTC
#define RTC_BASE				(0x7E005000)
//HSI
#define HSITX_BASE				(0x7E006000)
#define HSIRX_BASE				(0x7E007000)
//KEYPAD I/F
#define KEYPADIF_BASE			(0x7E00A000)
//ADC TS
#define ADCTS_BASE				(0x7E00B000)
//ETM
#define ETM_BASE				(0x7E00C000)
//KEY
#define KEY_BASE				(0x7E00D000)
//Chip ID
#define CHIPID_BASE				(0x7E00E000)
//SYSCON
#define SYSCON_BASE				(0x7E00F000)


////
//APB1
//
//TZPC
#define TZPC_BASE				(0x7F000000)
//AC97
#define AC97_BASE				(0x7F001000)
//I2S
#define I2S0_BASE				(0x7F002000)
#define I2S1_BASE				(0x7F003000)
//I2C
#define I2C_BASE				(0x7F004000)
//UART
#define UART_BASE				(0x7F005000)
//PWM TIMER
#define PWMTIMER_BASE			(0x7F006000)
//IRDA
#define IRDA_BASE				(0x7F007000)
//GPIO
#define GPIO_BASE				(0x7F008000)
//PCM
#define PCM0_BASE				(0x7F009000)
#define PCM1_BASE				(0x7F00A000)
//SPI
#define SPI0_BASE				(0x7F00B000)
#define SPI1_BASE				(0x7F00C000)

#if (VIC_MODE == 0)
//ISR Address
#define pISR_RESET     			(*(unsigned *)(_Exception_Vector+0x0))
#define pISR_UNDEF     			(*(unsigned *)(_Exception_Vector+0x4))
#define pISR_SWI       			(*(unsigned *)(_Exception_Vector+0x8))
#define pISR_PABORT    			(*(unsigned *)(_Exception_Vector+0xc))
#define pISR_DABORT    			(*(unsigned *)(_Exception_Vector+0x10))
#define pISR_RESERVED  			(*(unsigned *)(_Exception_Vector+0x14))
#define pISR_IRQ       			(*(unsigned *)(_Exception_Vector+0x18))
#define pISR_FIQ       			(*(unsigned *)(_Exception_Vector+0x1c))

//Main Source Interrupt
#define	pISR_EXTINT0			(*(unsigned *)(_Exception_Vector +0x20))       
#define	pISR_EXTINT1			(*(unsigned *)(_Exception_Vector +0x24))        
#define	pISR_RTC_TIC			(*(unsigned *)(_Exception_Vector +0x28))        
#define	pISR_CAMIF_C			(*(unsigned *)(_Exception_Vector +0x2c))             
#define	pISR_CAMIF_P			(*(unsigned *)(_Exception_Vector +0x30))             
#define	pISR_RESERVED0			(*(unsigned *)(_Exception_Vector +0x34))             
#define	pISR_RESERVED1			(*(unsigned *)(_Exception_Vector +0x38))             
#define	pISR_RESERVED2			(*(unsigned *)(_Exception_Vector +0x3c))                     
#define	pISR_RESERVED3			(*(unsigned *)(_Exception_Vector +0x40))                     
#define	pISR_POST0				(*(unsigned *)(_Exception_Vector +0x44))                     
#define	pISR_ROTATOR			(*(unsigned *)(_Exception_Vector +0x48))                     
#define	pISR_2D					(*(unsigned *)(_Exception_Vector +0x4c))             
#define	pISR_TVENC				(*(unsigned *)(_Exception_Vector +0x50))        
#define	pISR_SCALER				(*(unsigned *)(_Exception_Vector +0x54))
#define	pISR_BATF				(*(unsigned *)(_Exception_Vector +0x58))
#define	pISR_JPEG				(*(unsigned *)(_Exception_Vector +0x5c))
#define	pISR_MFC				(*(unsigned *)(_Exception_Vector +0x60))
#define	pISR_SDMA0				(*(unsigned *)(_Exception_Vector +0x64))        
#define	pISR_SDMA1				(*(unsigned *)(_Exception_Vector +0x68))
#define	pISR_ARM_DMAERR			(*(unsigned *)(_Exception_Vector +0x6c))
#define	pISR_ARM_DMA			(*(unsigned *)(_Exception_Vector +0x70))
#define	pISR_ARM_DMAS			(*(unsigned *)(_Exception_Vector +0x74))        
#define	pISR_KEYPAD				(*(unsigned *)(_Exception_Vector +0x78))        
#define	pISR_TIMER0				(*(unsigned *)(_Exception_Vector +0x7c))        
#define	pISR_TIMER1				(*(unsigned *)(_Exception_Vector +0x80))
#define	pISR_TIMER2				(*(unsigned *)(_Exception_Vector +0x84))
#define	pISR_WDT				(*(unsigned *)(_Exception_Vector +0x88))        
#define	pISR_TIMER3				(*(unsigned *)(_Exception_Vector +0x8c))        
#define	pISR_TIMER4				(*(unsigned *)(_Exception_Vector +0x90))
#define	pISR_LCD0				(*(unsigned *)(_Exception_Vector +0x94))        
#define	pISR_LCD1				(*(unsigned *)(_Exception_Vector +0x98))        
#define	pISR_LCD2				(*(unsigned *)(_Exception_Vector +0x9c))

#define	pISR_EXTINT2			(*(unsigned *)(_Exception_Vector +0xa0))       
#define	pISR_EXTINT3			(*(unsigned *)(_Exception_Vector +0xa4))        
#define	pISR_PCM0				(*(unsigned *)(_Exception_Vector +0xa8))        
#define	pISR_PCM1				(*(unsigned *)(_Exception_Vector +0xac))             
#define	pISR_AC97				(*(unsigned *)(_Exception_Vector +0xb0))             
#define	pISR_UART0				(*(unsigned *)(_Exception_Vector +0xb4))             
#define	pISR_UART1				(*(unsigned *)(_Exception_Vector +0xb8))             
#define	pISR_UART2				(*(unsigned *)(_Exception_Vector +0xbc))                     
#define	pISR_UART3				(*(unsigned *)(_Exception_Vector +0xc0))                     
#define	pISR_DMA0				(*(unsigned *)(_Exception_Vector +0xc4))                     
#define	pISR_DMA1				(*(unsigned *)(_Exception_Vector +0xc8))                     
#define	pISR_ONENAND0			(*(unsigned *)(_Exception_Vector +0xcc))             
#define	pISR_ONENAND1			(*(unsigned *)(_Exception_Vector +0xd0))        
#define	pISR_NFC				(*(unsigned *)(_Exception_Vector +0xd4))
#define	pISR_CFC				(*(unsigned *)(_Exception_Vector +0xd8))
#define	pISR_UHOST				(*(unsigned *)(_Exception_Vector +0xdc))
#define	pISR_SPI0				(*(unsigned *)(_Exception_Vector +0xe0))
#define	pISR_SPI1_HSMMC2		(*(unsigned *)(_Exception_Vector +0xe4))        
#define	pISR_I2C				(*(unsigned *)(_Exception_Vector +0xe8))
#define	pISR_HSITX				(*(unsigned *)(_Exception_Vector +0xec))
#define	pISR_HSIRX				(*(unsigned *)(_Exception_Vector +0xf0))
#define	pISR_EXTINT4			(*(unsigned *)(_Exception_Vector +0xf4))        
#define	pISR_MSM				(*(unsigned *)(_Exception_Vector +0xf8))        
#define	pISR_HOSTIF				(*(unsigned *)(_Exception_Vector +0xfc))        
#define	pISR_HSMMC0				(*(unsigned *)(_Exception_Vector +0x100))
#define	pISR_HSMMC1				(*(unsigned *)(_Exception_Vector +0x104))
#define	pISR_OTG				(*(unsigned *)(_Exception_Vector +0x108))        
#define	pISR_IrDA				(*(unsigned *)(_Exception_Vector +0x10c))        
#define	pISR_RTC_ALARM			(*(unsigned *)(_Exception_Vector +0x110))
#define	pISR_SEC				(*(unsigned *)(_Exception_Vector +0x114))        
#define	pISR_PENDN				(*(unsigned *)(_Exception_Vector +0x118))        
#define	pISR_ADC				(*(unsigned *)(_Exception_Vector +0x11c))

#endif

#ifdef __cplusplus
}
#endif

#endif /*__sfr6410_H__*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -