Browse Source

DM36x: Set OSCDIV divider

The ability to set up the OSCDIV divider was missing.

Signed-off-by: Thomas Koeller <thomas.koeller@baslerweb.com>
tags/v0.5.0-rc1
Thomas Koeller 13 years ago
committed by Øyvind Harboe
parent
commit
14a25cd6de
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      tcl/target/davinci.cfg

+ 7
- 0
tcl/target/davinci.cfg View File

@@ -222,6 +222,13 @@ proc pll_v03_setup {pll_addr mult config} {
} else {
mww [expr $pll_addr + 0x0120] 0
}
if { [dict exists $config oscdiv] } {
set div [dict get $config oscdiv]
set div [expr 0x8000 | ($div - 1)]
mww [expr $pll_addr + 0x0124] $div
} else {
mww [expr $pll_addr + 0x0124] 0
}
if { [dict exists $config div4] } {
set div [dict get $config div4]
set div [expr 0x8000 | ($div - 1)]


Loading…
Cancel
Save