diff options
Diffstat (limited to 'drivers/rkflash/rkflash_debug.h')
-rw-r--r-- | drivers/rkflash/rkflash_debug.h | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/drivers/rkflash/rkflash_debug.h b/drivers/rkflash/rkflash_debug.h index a844df814681..4ae471834b30 100644 --- a/drivers/rkflash/rkflash_debug.h +++ b/drivers/rkflash/rkflash_debug.h @@ -6,6 +6,11 @@ #define _RKFLASH_DEBUG_H /* + * Test switch + */ +#define BLK_STRESS_TEST_EN 0 + +/* * Print switch, set to 1 if needed * I - info * E - error @@ -16,9 +21,9 @@ #define PRINT_SWI_SFC_E 1 #define PRINT_SWI_SFC_HEX 1 -/* - * Test switch - */ +#define PRINT_SWI_NANDC_I 0 +#define PRINT_SWI_NANDC_E 1 +#define PRINT_SWI_NANDC_HEX 1 #if (PRINT_SWI_SFC_I) #define PRINT_SFC_I(...) pr_info(__VA_ARGS__) @@ -27,18 +32,38 @@ #endif #if (PRINT_SWI_SFC_E) -#define PRINT_SFC_E(...) pr_err(__VA_ARGS__) +#define PRINT_SFC_E(...) pr_info(__VA_ARGS__) #else #define PRINT_SFC_E(...) #endif #if (PRINT_SWI_SFC_HEX) #define PRINT_SFC_HEX(s, buf, width, len)\ - rkflash_print_hex(s, buf, width, len) + rknand_print_hex(s, buf, width, len) #else #define PRINT_SFC_HEX(s, buf, width, len) #endif +#if (PRINT_SWI_NANDC_I) +#define PRINT_NANDC_I(...) pr_info(__VA_ARGS__) +#else +#define PRINT_NANDC_I(...) +#endif + +#if (PRINT_SWI_NANDC_E) +#define PRINT_NANDC_E(...) pr_info(__VA_ARGS__) +#else +#define PRINT_NANDC_E(...) +#endif + +#if (PRINT_SWI_NANDC_HEX) +#define PRINT_NANDC_HEX(s, buf, width, len)\ + rknand_print_hex(s, buf, width, len) +#else +#define PRINT_NANDC_HEX(s, buf, width, len) +#endif + void rkflash_print_hex(char *s, void *buf, u32 width, u32 len); #endif + |