tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8800g / sc8800g_mem_cfg.h
1 /******************************************************************************
2  ** File Name:    sc8800g_mem_cfg.h                                         *
3  ** Author:       Steve.Zhan                                                 *
4  ** DATE:         06/05/2010                                                  *
5  ** Copyright:    2010 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                                 *
12  ** 06/05/2010    Steve.Zhan      Create.                                     *
13  ******************************************************************************/
14 #ifndef _SC8800G_MEM_CFG_H_
15 #define _SC8800G_MEM_CFG_H_
16
17 #include "sci_types.h"
18 #include "sc8800g_reg_base.h"
19 #include "sc8800g_reg_ahb.h"
20 #include "iram_mgr.h"
21
22 /*----------------------------------------------------------------------------*
23  **                         Dependencies                                      *
24  **------------------------------------------------------------------------- */
25
26 /**---------------------------------------------------------------------------*
27  **                             Compiler Flag                                 *
28  **--------------------------------------------------------------------------*/
29 #ifdef   __cplusplus
30 extern   "C"
31 {
32 #endif
33 /**---------------------------------------------------------------------------*
34 **                               Micro Define                                **
35 **---------------------------------------------------------------------------*/
36 typedef struct
37 {
38     uint32  mem_start;
39     uint32  mem_end;
40     uint32  acc_condition;
41 } MEMORY_ACCESS_INFO_T;
42
43 #define READ_ACC        (1 << 0)
44 #define WRITE_ACC       (1 << 1)
45 #define BYTE_ACC        (1 << 2)
46 #define WORD_ACC        (1 << 3)
47 #define DWORD_ACC       (1 << 4)
48
49 #define SCI_NULL                    0x0
50 /**----------------------------------------------------------------------------*
51 **                           Function Prototype                               **
52 **----------------------------------------------------------------------------*/
53 MEMORY_ACCESS_INFO_T *Mem_getAccTable (uint32 *pSize);
54
55
56 /**----------------------------------------------------------------------------*
57 **                         Compiler Flag                                      **
58 **----------------------------------------------------------------------------*/
59 #ifdef   __cplusplus
60 }
61 #endif
62 /**---------------------------------------------------------------------------*/
63 #endif
64 // End