I am unable to decrease cpufrequency below 180 MHz either at init time, or after in Linux.
- ARMCLK is provided py PLL2 SYSCLK2
- PLL2 freq is 540 MHz
- At init time (ie before enabling PLL) setting PLLDIV2 to 1 (270 MHz) or 2 (180 MHz) works. If however I set it to 3 (135 MHz), my first stage bootloader continue to work, but U-boot crahes while booting
- At runtime, ie using the cpufreq architecture (I extended the patch for DA850, so that it works for dm365 too) I use davinci_set_sysclk_rate on pll2 sysclk2 to modify the frequency, so basically the same thing as in the bootloader, except that the pll is running. I can use the 180 MHz settings, but the 135 MHz settings also hangs the board.
What is stopping me from using a lower cpufreq (DDR is on PLL1) ?