From f47f04b65fc7603ec5926dd5f941d6690a0daf91 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Tue, 17 Nov 2015 13:25:28 +0100 Subject: 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 --- utils/hwstub/tools/lua/atj.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/hwstub/tools/lua/atj.lua') 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 = {} hwstub.soc:select("atj213x") require "atj/gpio" require "atj/lcm" +require "atj/dsp" -- cgit v1.2.3