summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/debug-imx31.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-03-22 01:50:48 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-03-22 01:50:48 +0000
commitb7f7655dc2ae979fee8b01ed894224e5c2f7c719 (patch)
tree6540a83276514c2ea27b9c633ac9872588e126be /firmware/target/arm/imx31/debug-imx31.c
parent6a76ebbab10594f425edbd26e1fa35b0e37a61e5 (diff)
downloadrockbox-b7f7655dc2ae979fee8b01ed894224e5c2f7c719.tar.gz
rockbox-b7f7655dc2ae979fee8b01ed894224e5c2f7c719.zip
imx31/mc13783: Do some housekeeping with register macros, function names and other defines. No functional changes (except to alter a couple int priorities).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20442 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/debug-imx31.c')
-rw-r--r--firmware/target/arm/imx31/debug-imx31.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/firmware/target/arm/imx31/debug-imx31.c b/firmware/target/arm/imx31/debug-imx31.c
index ad436ea231..abf180cfd2 100644
--- a/firmware/target/arm/imx31/debug-imx31.c
+++ b/firmware/target/arm/imx31/debug-imx31.c
@@ -50,15 +50,15 @@ bool __dbg_hw_info(void)
50 iim_system_rev()); 50 iim_system_rev());
51 lcd_puts(0, line++, buf); line++; 51 lcd_puts(0, line++, buf); line++;
52 52
53 mpctl = CLKCTL_MPCTL; 53 mpctl = CCM_MPCTL;
54 spctl = CLKCTL_SPCTL; 54 spctl = CCM_SPCTL;
55 upctl = CLKCTL_UPCTL; 55 upctl = CCM_UPCTL;
56 56
57 pllref = imx31_clkctl_get_pll_ref_clk(); 57 pllref = ccm_get_pll_ref_clk();
58 58
59 mcu_pllfreq = imx31_clkctl_get_pll(PLL_MCU); 59 mcu_pllfreq = ccm_get_pll(PLL_MCU);
60 ser_pllfreq = imx31_clkctl_get_pll(PLL_SERIAL); 60 ser_pllfreq = ccm_get_pll(PLL_SERIAL);
61 usb_pllfreq = imx31_clkctl_get_pll(PLL_USB); 61 usb_pllfreq = ccm_get_pll(PLL_USB);
62 62
63 snprintf(buf, sizeof (buf), "pll_ref_clk: %u", pllref); 63 snprintf(buf, sizeof (buf), "pll_ref_clk: %u", pllref);
64 lcd_puts(0, line++, buf); line++; 64 lcd_puts(0, line++, buf); line++;
@@ -70,7 +70,7 @@ bool __dbg_hw_info(void)
70 snprintf(buf, sizeof (buf), " mpl_dpdgck_clk: %u", mcu_pllfreq); 70 snprintf(buf, sizeof (buf), " mpl_dpdgck_clk: %u", mcu_pllfreq);
71 lcd_puts(0, line++, buf); line++; 71 lcd_puts(0, line++, buf); line++;
72 72
73 regval = CLKCTL_PDR0; 73 regval = CCM_PDR0;
74 snprintf(buf, sizeof (buf), " PDR0: %08lX", regval); 74 snprintf(buf, sizeof (buf), " PDR0: %08lX", regval);
75 lcd_puts(0, line++, buf); 75 lcd_puts(0, line++, buf);
76 76
@@ -111,7 +111,7 @@ bool __dbg_hw_info(void)
111 snprintf(buf, sizeof (buf), " upl_dpdgck_clk: %u", usb_pllfreq); 111 snprintf(buf, sizeof (buf), " upl_dpdgck_clk: %u", usb_pllfreq);
112 lcd_puts(0, line++, buf); line++; 112 lcd_puts(0, line++, buf); line++;
113 113
114 regval = CLKCTL_PDR1; 114 regval = CCM_PDR1;
115 snprintf(buf, sizeof (buf), " PDR1: %08lX", regval); 115 snprintf(buf, sizeof (buf), " PDR1: %08lX", regval);
116 lcd_puts(0, line++, buf); 116 lcd_puts(0, line++, buf);
117 117
@@ -120,7 +120,7 @@ bool __dbg_hw_info(void)
120 snprintf(buf, sizeof (buf), " usb_clk: %u", freq); 120 snprintf(buf, sizeof (buf), " usb_clk: %u", freq);
121 lcd_puts(0, line++, buf); 121 lcd_puts(0, line++, buf);
122 122
123 freq = usb_pllfreq / (((CLKCTL_PDR0 >> 16) & 0x1f) + 1); 123 freq = usb_pllfreq / (((CCM_PDR0 >> 16) & 0x1f) + 1);
124 snprintf(buf, sizeof (buf), " ipg_per_baud: %u", freq); 124 snprintf(buf, sizeof (buf), " ipg_per_baud: %u", freq);
125 lcd_puts(0, line++, buf); 125 lcd_puts(0, line++, buf);
126 126