hwstub_shell: add atj target

Change-Id: I566694f19dfb110dbf245be7b7f139a4c616e16b
Reviewed-on: http://gerrit.rockbox.org/1041
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
This commit is contained in:
Amaury Pouly 2014-11-14 23:24:22 +01:00
parent edb0c6c92f
commit 16dcde4012
3 changed files with 12 additions and 0 deletions

View file

@ -283,6 +283,8 @@ bool my_lua_import_hwstub()
lua_setfield(g_lua, -2, "PP");
lua_pushinteger(g_lua, HWSTUB_TARGET_RK27);
lua_setfield(g_lua, -2, "RK27");
lua_pushinteger(g_lua, HWSTUB_TARGET_ATJ);
lua_setfield(g_lua, -2, "ATJ");
lua_setfield(g_lua, -2, "target");
if(g_hwdev_target.dID == HWSTUB_TARGET_STMP)

View file

@ -0,0 +1,8 @@
---
--- Chip Identification
---
ATJ = {}
hwstub.soc:select("atj213x")

View file

@ -6,6 +6,8 @@ elseif hwstub.dev.target.id == hwstub.dev.target.PP then
require "pp"
elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
require "rk27xx"
elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
require "atj"
end
require "dumper"