i.MX31: Now that it matters because there's a debug screeen that allows changing things while running, some DVFS/DPTC stuff has to be done more carefully. Trim out some stuff and group functions better as well.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29122 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-01-23 20:21:35 +00:00
parent 264e27d5b0
commit 480c663e5b
7 changed files with 214 additions and 254 deletions

View file

@ -71,10 +71,11 @@ void INIT_ATTR kernel_device_init(void)
spi_init();
enable_interrupt(IRQ_FIQ_STATUS);
mc13783_init();
dvfs_dptc_init();
dvfs_wfi_monitor(true); /* Monitor the WFI signal */
dvfs_dptc_init(); /* Init also sets default points */
#ifndef BOOTLOADER
dvfs_dptc_start(); /* Should be ok to start even so early */
dvfs_wfi_monitor(true); /* Monitor the WFI signal */
dvfs_start(); /* Should be ok to start even so early */
dptc_start();
#endif
}