tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / bl_trace.h
1 /******************************************************************************
2     David.Jia   2007.10.29      share_version_union
3
4     TCC -fpu None -O2 -bi -g+ -apcs /interwork -D__RUN_IN_SDRAM main.c
5 SC6600R    -D_BL_NF_SC6600R_
6 SC6600H    -D_BL_NF_SC6600H_
7 SC6600I    -D_BL_NF_SC6600I_
8 SC6800     -gtp -cpu ARM926EJ-S -D_REF_SC6800_ -D_BL_NF_SC6800_
9 ******************************************************************************/
10 #ifndef BL_TRACE_H
11 #define BL_TRACE_H
12
13 #ifdef BL_TRACE_ENABLED
14 #include "sio_drv.h"
15
16 #if 0
17 #define BL_TRACE_OPEN()     sio_open()
18 #define BL_TRACE0           sio_putstr
19 #else
20 #define BL_TRACE_OPEN(...)
21 #define BL_TRACE0(...)
22 #endif
23
24
25 #if (defined PLATFORM_SC8800H)||(defined PLATFORM_SC6800H)||(defined PLATFORM_SC8800G)||(defined CONFIG_SC8810)
26 #define BL_TRACE(...)
27 #endif  //#if (defined PLATFORM_SC8800H)||(defined PLATFORM_SC6800H)||(defined PLATFORM_SC8800G)||(defined CONFIG_SC8810)
28
29 #else
30 __inline int sio_putstr_stub (const char *str)
31 {
32     (void) str;
33     return 0;
34 }
35
36 __inline int printk_stub (const char *fmt, ...)
37 {
38     (void) fmt;
39     return 0;
40 }
41
42 #define BL_TRACE_OPEN()     ( ( void )0 )
43 #define BL_TRACE0           sio_putstr_stub
44 #define BL_TRACE            printk_stub
45
46 #endif /* BL_TRACE_ENABLED */
47
48 #endif /* BL_TRACE_H */