summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/davinci.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/tcl/target/davinci.cfg b/tcl/target/davinci.cfg
index 11ae093f..6e9091e5 100644
--- a/tcl/target/davinci.cfg
+++ b/tcl/target/davinci.cfg
@@ -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)]