\r
static void rockchip_mmc_of_dump(struct rk_sdmmc_of *rk_mmc_property)\r
{\r
-\r
-printk("%d..%s: ===test ==\n", __LINE__, __FUNCTION__);\r
- MMC_DBG_BOOT_FUNC("=========rockchip mmc dts dump info start== 2014-03-05 16:08 ======\n");\r
- MMC_DBG_BOOT_FUNC("mmc,caps: 0x%x\n",rk_mmc_property->mmc_caps);\r
- MMC_DBG_BOOT_FUNC("mmc,ocr: 0x%x\n",rk_mmc_property->mmc_ocr);\r
- MMC_DBG_BOOT_FUNC("mmc,int: 0x%x\n",rk_mmc_property->mmc_int_type);\r
- MMC_DBG_BOOT_FUNC("mmc,emmc_is_selected: 0x%x\n",rk_mmc_property->emmc_is_selected);\r
- MMC_DBG_BOOT_FUNC("mmc,use_dma: %d %d\n",rk_mmc_property->mmc_dma_is_used[0],\r
+ mmc_debug_level = MMC_DBG_ALL;//set the value refer to file rk_sdmmc_of.h\r
+ \r
+ MMC_DBG_BOOT_FUNC("=========rockchip mmc dts dump info start== 2014-03-05 16:08 ======");\r
+ MMC_DBG_BOOT_FUNC("mmc,caps: 0x%x",rk_mmc_property->mmc_caps);\r
+ MMC_DBG_BOOT_FUNC("mmc,ocr: 0x%x",rk_mmc_property->mmc_ocr);\r
+ MMC_DBG_BOOT_FUNC("mmc,int: 0x%x",rk_mmc_property->mmc_int_type);\r
+ MMC_DBG_BOOT_FUNC("mmc,emmc_is_selected: 0x%x",rk_mmc_property->emmc_is_selected);\r
+ MMC_DBG_BOOT_FUNC("mmc,use_dma: %d %d",rk_mmc_property->mmc_dma_is_used[0],\r
rk_mmc_property->mmc_dma_is_used[1]);\r
- MMC_DBG_BOOT_FUNC("mmc,dma_ch: %d\n",rk_mmc_property->mmc_dma_chn);\r
- MMC_DBG_BOOT_FUNC("=========rockchip mmc dts dump info end================\n");\r
+ MMC_DBG_BOOT_FUNC("mmc,dma_ch: %d",rk_mmc_property->mmc_dma_chn);\r
+ MMC_DBG_BOOT_FUNC("=========rockchip mmc dts dump info end================");\r
}\r
\r
\r
MMC_DBG_INFO = BIT(3),\r
MMC_DBG_CMD = BIT(4),\r
MMC_DBG_DBG = BIT(5),\r
- MMC_DBG_ALL = ~0,\r
+ MMC_DBG_ALL = 0xFF,\r
\r
};\r
-//extern u32 mmc_debug_level = MMC_DBG_ALL;\r
+extern u32 mmc_debug_level;\r
\r
#define MMC_DBG_BOOT_FUNC(fmt, arg...) \\r
if(mmc_debug_level >= MMC_DBG_BOOT){ printk(DRIVER_PREFIX "BOOT " fmt "\n", ##arg);}\r
#define MMC_DBG_INFO_FUNC(fmt, arg...) \\r
if(mmc_debug_level >= MMC_DBG_INFO){ printk(DRIVER_PREFIX fmt "\n", ##arg);} \r
#define MMC_DBG_CMD_FUNC(fmt, arg...) \\r
- if(mmc_debug_level >= MMC_DBG_CMD){ printk(DRIVER_PREFIX "CMD" fmt "\n", ##arg);}\r
+ if(mmc_debug_level >= MMC_DBG_CMD){ printk(DRIVER_PREFIX "CMD " fmt "\n", ##arg);}\r
\r
\r
\r