summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools/lua/atj.lua
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2015-11-17 13:25:28 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2015-11-17 13:35:09 +0100
commitf47f04b65fc7603ec5926dd5f941d6690a0daf91 (patch)
treedfb19cbe3eb22552df68f3d96aff62a6947bf489 /utils/hwstub/tools/lua/atj.lua
parent5b7c9d40e749e96bd382e332ab9e25b6a18435b2 (diff)
downloadrockbox-f47f04b65fc7603ec5926dd5f941d6690a0daf91.tar.gz
rockbox-f47f04b65fc7603ec5926dd5f941d6690a0daf91.zip
hwstub: Add ajt213x lua interface for DSP block
With this you can upload and run code on DSP core in atj213x. The files can be produced using as2181. You can download this assembler from https://github.com/wodz/as2181 You should use extended mode (-x switch) since DSP core in atj is non standard and uses 24bit operands. PX register has different meaning as well and is used as MSB when loading other registers with immediates (immediate field is 16bit in instruction so to set register to 24bit value you need to store MSB in PX prior to this). MAC MR is 56bit accordingly. HIP interface seems to be mapped at standard addresses (except that regular 218x doesn't have HIP). Have a fun! Change-Id: I9a80ca0dd3718ba8435ae8579bfffa66e067e022
Diffstat (limited to 'utils/hwstub/tools/lua/atj.lua')
-rw-r--r--utils/hwstub/tools/lua/atj.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/hwstub/tools/lua/atj.lua b/utils/hwstub/tools/lua/atj.lua
index 1f59a141fc..a1ad0c7505 100644
--- a/utils/hwstub/tools/lua/atj.lua
+++ b/utils/hwstub/tools/lua/atj.lua
@@ -7,3 +7,4 @@ ATJ = {}
7hwstub.soc:select("atj213x") 7hwstub.soc:select("atj213x")
8require "atj/gpio" 8require "atj/gpio"
9require "atj/lcm" 9require "atj/lcm"
10require "atj/dsp"