diff options
author | Thomas 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 |
commit | 98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db (patch) | |
tree | 3a4a7be46cf6709ff52e6558b3a75f1ce1738cea /tcl/target/davinci.cfg | |
parent | a8c8c238f2dd1abe102f83bfa392ac40f313dd73 (diff) | |
download | riscv-openocd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.zip riscv-openocd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.tar.gz riscv-openocd-98d2579c61aea1cfc4c1e4bd391b9acf1b1ff5db.tar.bz2 |
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/target/davinci.cfg')
-rw-r--r-- | tcl/target/davinci.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl/target/davinci.cfg b/tcl/target/davinci.cfg index 6c6769f..b736c6e 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] } { |