mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 15:42:28 -05:00
imx233: fix clkctrl naming
Move to a more consistent naming convention like the other devices Change-Id: I4ddbbee27ee9f5ae775c5776592ec7ce02b30948
This commit is contained in:
parent
9022c69b64
commit
553aeae9c6
8 changed files with 100 additions and 98 deletions
|
|
@ -235,19 +235,19 @@ bool dbg_hw_info_clkctrl(void)
|
|||
#define c dbg_clk[i]
|
||||
lcd_putsf(0, i + 1, "%4s", c.name);
|
||||
if(c.has_enable)
|
||||
lcd_putsf(5, i + 1, "%2d", imx233_is_clock_enable(c.clk));
|
||||
lcd_putsf(5, i + 1, "%2d", imx233_clkctrl_is_clock_enabled(c.clk));
|
||||
if(c.has_bypass)
|
||||
lcd_putsf(8, i + 1, "%2d", imx233_get_bypass_pll(c.clk));
|
||||
if(c.has_idiv && imx233_get_clock_divisor(c.clk) != 0)
|
||||
lcd_putsf(10, i + 1, "%4d", imx233_get_clock_divisor(c.clk));
|
||||
if(c.has_fdiv && imx233_get_fractional_divisor(c.clk) != 0)
|
||||
lcd_putsf(16, i + 1, "%4d", imx233_get_fractional_divisor(c.clk));
|
||||
lcd_putsf(8, i + 1, "%2d", imx233_clkctrl_get_bypass_pll(c.clk));
|
||||
if(c.has_idiv && imx233_clkctrl_get_clock_divisor(c.clk) != 0)
|
||||
lcd_putsf(10, i + 1, "%4d", imx233_clkctrl_get_clock_divisor(c.clk));
|
||||
if(c.has_fdiv && imx233_clkctrl_get_fractional_divisor(c.clk) != 0)
|
||||
lcd_putsf(16, i + 1, "%4d", imx233_clkctrl_get_fractional_divisor(c.clk));
|
||||
if(c.has_freq)
|
||||
lcd_putsf(21, i + 1, "%9d", imx233_get_clock_freq(c.clk));
|
||||
lcd_putsf(21, i + 1, "%9d", imx233_clkctrl_get_clock_freq(c.clk));
|
||||
#undef c
|
||||
}
|
||||
int line = ARRAYLEN(dbg_clk) + 1;
|
||||
lcd_putsf(0, line, "auto slow: %d", imx233_is_auto_slow_enable());
|
||||
lcd_putsf(0, line, "auto slow: %d", imx233_clkctrl_is_auto_slow_enabled());
|
||||
line++;
|
||||
lcd_putsf(0, line, "as monitor: ");
|
||||
int x_off = 12;
|
||||
|
|
@ -255,7 +255,7 @@ bool dbg_hw_info_clkctrl(void)
|
|||
unsigned line_w = lcd_getwidth() / font_get_width(font_get(lcd_getfont()), ' ');
|
||||
for(unsigned i = 0; i < ARRAYLEN(dbg_as_monitor); i++)
|
||||
{
|
||||
if(!imx233_is_auto_slow_monitor_enable(dbg_as_monitor[i].monitor))
|
||||
if(!imx233_clkctrl_is_auto_slow_monitor_enabled(dbg_as_monitor[i].monitor))
|
||||
continue;
|
||||
if(!first)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue