DM36x: Set OSCDIV divider
The ability to set up the OSCDIV divider was missing. Signed-off-by: Thomas Koeller <thomas.koeller@baslerweb.com>
This commit is contained in:
parent
4ed89e4e42
commit
14a25cd6de
|
@ -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…
Reference in New Issue