diff options
Diffstat (limited to 'tcl/target/davinci.cfg')
-rw-r--r-- | tcl/target/davinci.cfg | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tcl/target/davinci.cfg b/tcl/target/davinci.cfg index 6e9091e5..9e9369dc 100644 --- a/tcl/target/davinci.cfg +++ b/tcl/target/davinci.cfg @@ -7,20 +7,7 @@ proc davinci_pinmux {soc reg value} { mww [expr [dict get $soc sysbase] + 4 * $reg] $value } -# mrw: "memory read word", returns value of $reg -proc mrw {reg} { - set value "" - mem2array value 32 $reg 1 - return $value(0) -} - -# mmw: "memory modify word", updates value of $reg -# $reg <== ((value & ~$clearbits) | $setbits) -proc mmw {reg setbits clearbits} { - set old [mrw $reg] - set new [expr ($old & ~$clearbits) | $setbits] - mww $reg $new -} +source [find mem_helper.tcl] # # pll_setup: initialize PLL |