]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/flash/arm/mxc/v2_0/include/mxc_mmc.h
Initial revision
[karo-tx-redboot.git] / packages / devs / flash / arm / mxc / v2_0 / include / mxc_mmc.h
1 /*=================================================================================
2
3     Module Name:  mxc_mmc.h
4
5     General Description: Limited Bootloader eSDHC Driver.
6
7 ===================================================================================
8                                Copyright: 2004,2005,2006,2007,2008 FREESCALE, INC.
9                    All Rights Reserved. This file contains copyrighted material.
10                    Use of this file is restricted by the provisions of a
11                    Freescale Software License Agreement, which has either
12                    accompanied the delivery of this software in shrink wrap
13                    form or been expressly executed between the parties.
14
15
16 Revision History:
17                             Modification     Tracking
18 Author (core ID)                Date          Number     Description of Changes
19 -------------------------   ------------    ----------   --------------------------
20 Lewis Liu                  18-Feb-2008
21
22
23 Portability: Portable to other compilers or platforms.
24
25 ====================================================================================================*/
26
27 #ifndef __MXC_MMC_H__
28 #define __MXC_MMC_H__
29
30 #include <pkgconf/system.h>
31
32 #define FLASH_DEBUG_MIN 1
33 #define FLASH_DEBUG_MED 2
34 #define FLASH_DEBUG_MAX 3
35 #define FLASH_DEBUG_LEVEL FLASH_DEBUG_MED
36 #define flash_dprintf(level, args...)          \
37    do {                                \
38          if (FLASH_DEBUG_LEVEL >= level)     \
39             diag_printf(args);          \
40    } while(0)
41
42 #define CHECK_RUN_TIMES(n) { \
43         static int count = 0;\
44         if(++count > n){\
45                 diag_printf("%s: the loop gets the limitation, WRONG!\n", __FUNCTION__);break;}
46
47 #endif //__MXC_MMC_H__