From 16dcde4012483ee8354efd3ddea380404cd6f168 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 14 Nov 2014 23:24:22 +0100 Subject: hwstub_shell: add atj target Change-Id: I566694f19dfb110dbf245be7b7f139a4c616e16b Reviewed-on: http://gerrit.rockbox.org/1041 Reviewed-by: Amaury Pouly --- utils/hwstub/tools/hwstub_shell.cpp | 2 ++ utils/hwstub/tools/lua/atj.lua | 8 ++++++++ utils/hwstub/tools/lua/load.lua | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 utils/hwstub/tools/lua/atj.lua (limited to 'utils/hwstub') diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index e5d3a72abf..b2838ebed0 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp @@ -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) diff --git a/utils/hwstub/tools/lua/atj.lua b/utils/hwstub/tools/lua/atj.lua new file mode 100644 index 0000000000..de725f4a5d --- /dev/null +++ b/utils/hwstub/tools/lua/atj.lua @@ -0,0 +1,8 @@ +--- +--- Chip Identification +--- + +ATJ = {} + +hwstub.soc:select("atj213x") + diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua index b996e3b6e0..86f01f7f0c 100644 --- a/utils/hwstub/tools/lua/load.lua +++ b/utils/hwstub/tools/lua/load.lua @@ -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" -- cgit v1.2.3