summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorThomas Koeller <thomas.koeller@baslerweb.com>2010-08-10 14:56:42 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-08-12 08:59:02 +0200
commit98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db (patch)
tree3a4a7be46cf6709ff52e6558b3a75f1ce1738cea /tcl
parenta8c8c238f2dd1abe102f83bfa392ac40f313dd73 (diff)
downloadopenocd+libswd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.tar.gz
openocd+libswd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.tar.bz2
openocd+libswd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.tar.xz
openocd+libswd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.zip
DM36x: Use enable bit for PLL pre-divider
The PLL pre- and postdividers seem to have enable bits, although these are not mentioned in the chip documentation. Signed-off-by: Thomas Koeller <thomas.koeller@baslerweb.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/davinci.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/davinci.cfg b/tcl/target/davinci.cfg
index 6c6769fa..b736c6ef 100644
--- a/tcl/target/davinci.cfg
+++ b/tcl/target/davinci.cfg
@@ -179,7 +179,7 @@ proc pll_v03_setup {pll_addr mult config} {
mww [expr $pll_addr + 0x0110] [expr ($mult / 2) & 0x1ff]
if { [dict exists $config prediv] } {
set div [dict get $config prediv]
- set div [expr ($div - 1)]
+ set div [expr 0x8000 | ($div - 1)]
mww [expr $pll_addr + 0x0114] $div
}
if { [dict exists $config postdiv] } {