From 14cbadcd285280cbc9ca9a3e8852814e6a5ab13d Mon Sep 17 00:00:00 2001 From: yajin Date: Fri, 16 Jan 2009 03:58:30 +0800 Subject: [PATCH] add debug information for emc --- hw/mips_jz.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/mips_jz.c b/hw/mips_jz.c index d4cf4959a5..a4a0829cfb 100755 --- a/hw/mips_jz.c +++ b/hw/mips_jz.c @@ -51,7 +51,9 @@ #define DEBUG_TCU (1<<0x4) #define DEBUG_LCDC (1<<0x5) #define DEBUG_DMA (1<<0x6) -#define DEBUG_FLAG 0//DEBUG_TCU// (DEBUG_CPM|DEBUG_EMC|DEBUG_GPIO \ +#define DEBUG_FLAG (DEBUG_CPM|DEBUG_EMC|DEBUG_GPIO \ + | DEBUG_RTC | DEBUG_TCU | DEBUG_LCDC | DEBUG_DMA) + //DEBUG_TCU// (DEBUG_CPM|DEBUG_EMC|DEBUG_GPIO // | DEBUG_RTC | DEBUG_TCU | DEBUG_LCDC | DEBUG_DMA) @@ -220,6 +222,7 @@ static inline void jz4740_cpccr_update(struct jz4740_cpm_s *s, s->cpccr = new_value; debug_out(DEBUG_CPM, "write to cpccr 0x%x\n", new_value); + jz4740_dump_clocks(jz_findclk(s->soc, "osc_extal")); } @@ -320,7 +323,9 @@ static void jz4740_cpm_write(void *opaque, target_phys_addr_t addr, uint32_t value) { struct jz4740_cpm_s *s = (struct jz4740_cpm_s *) opaque; - + + debug_out(DEBUG_CPM, "write to cpm addr %x value 0x%x\n", addr,value); + switch (addr) { case 0x0: -- 2.11.4.GIT