📄 adm01_register.h
字号:
/******************************************************************************
* Filename : Adm_reg.h *
* Start date : 2002.12.24 *
* By : Lee Kyung Tae *
* Contact : kyungtae.lee@samsung.com *
* Description : Adm control registers *
* $Log:$ *
******************************************************************************
*/
#ifndef _ADM01_REG_H_
#define _ADM01_REG_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
D E F I N E S
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#define ADM_SFR_BASE 0x39000000
#define CHANNEL_BUF_SIZE ( 8 )
#define CHANNEL_BUF_PTR ( ADM_SFR_BASE + 0x10 )
#define DOWNLOAD_DATA_PTR ( CHANNEL_BUF_PTR )
#define UPLOAD_DATA_PTR ( CHANNEL_BUF_PTR + 0x20 )
#define S5H_WriteReg( register, value ) ( register = (unsigned) value )
#define S5H_ReadReg( value, register ) ( *value = (unsigned) register )
/*
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
R E G I S T E R S
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
#define rADM_CONFIG ( *(volatile unsigned *) (ADM_SFR_BASE + 0x00) )
#define rADM_COMMUN ( *(volatile unsigned *) (ADM_SFR_BASE + 0x04) )
#define rADM_DDATA0 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x10) )
#define rADM_DDATA1 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x14) )
#define rADM_DDATA2 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x18) )
#define rADM_DDATA3 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x1C) )
#define rADM_DDATA4 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x20) )
#define rADM_DDATA5 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x24) )
#define rADM_DDATA6 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x28) )
#define rADM_DDATA7 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x2C) )
#define rADM_UDATA0 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x30) )
#define rADM_UDATA1 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x34) )
#define rADM_UDATA2 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x38) )
#define rADM_UDATA3 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x3C) )
#define rADM_UDATA4 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x40) )
#define rADM_UDATA5 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x44) )
#define rADM_UDATA6 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x48) )
#define rADM_UDATA7 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x4C) )
#if AUD_SUPPORT_5005_ADM
#define rADM_IBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x50) )
#define rADM_IBASE0 rADM_IBASE
#define rADM_IBASE1 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x54) )
#define rADM_IBASE2 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x58) )
#define rADM_IBASE3 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x5c) )
#define rADM_IBASE4 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x60) )
#define rADM_IBASE5 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x64) )
#define rADM_IBASE6 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x68) )
#define rADM_IBASE7 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x6c) )
#define rADM_DBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x70) )
#define rADM_DBASE0 rADM_DBASE
#define rADM_DBASE1 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x74) )
#define rADM_DBASE2 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x78) )
#define rADM_DBASE3 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x7c) )
#define rADM_XBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x80) )
#define rADM_YBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x84) )
#define rADM_S0BASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x88) )
#define rADM_S1BASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x8C) )
#else
/*
5015 has the same register-map as 5008, so _USE_5015 will come here
*/
#define rADM_IBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x50) )
#define rADM_DBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x54) )
#define rADM_XBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x58) )
#define rADM_YBASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x5C) )
#define rADM_S0BASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x60) )
#define rADM_S1BASE ( *(volatile unsigned *) (ADM_SFR_BASE + 0x64) )
/*
below rADM_IBASE1 is supported only at 5015 now.
So, AUD_SUPPORT_CODE_REGION_FEATURE is supported only for 5015
-- hspark 060315
*/
#define rADM_IBASE1 ( *(volatile unsigned *) (ADM_SFR_BASE + 0x68) )
#endif
//#define rADM_DHCCON ( *(volatile unsigned *) (ADM_SFR_BASE + 0x68) )
#ifdef __cplusplus
}
#endif
#endif /* _ADM_REG_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -