summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-11-14 23:24:22 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-11-15 13:01:24 +0100
commit16dcde4012483ee8354efd3ddea380404cd6f168 (patch)
tree42aa91763bf0c07f053116f9fed86357adbc4a66
parentedb0c6c92f40db70be778bf9162ff116f5f01e31 (diff)
downloadrockbox-16dcde4012483ee8354efd3ddea380404cd6f168.tar.gz
rockbox-16dcde4012483ee8354efd3ddea380404cd6f168.zip
hwstub_shell: add atj target
Change-Id: I566694f19dfb110dbf245be7b7f139a4c616e16b Reviewed-on: http://gerrit.rockbox.org/1041 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
-rw-r--r--utils/hwstub/tools/hwstub_shell.cpp2
-rw-r--r--utils/hwstub/tools/lua/atj.lua8
-rw-r--r--utils/hwstub/tools/lua/load.lua2
3 files changed, 12 insertions, 0 deletions
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()
283 lua_setfield(g_lua, -2, "PP"); 283 lua_setfield(g_lua, -2, "PP");
284 lua_pushinteger(g_lua, HWSTUB_TARGET_RK27); 284 lua_pushinteger(g_lua, HWSTUB_TARGET_RK27);
285 lua_setfield(g_lua, -2, "RK27"); 285 lua_setfield(g_lua, -2, "RK27");
286 lua_pushinteger(g_lua, HWSTUB_TARGET_ATJ);
287 lua_setfield(g_lua, -2, "ATJ");
286 lua_setfield(g_lua, -2, "target"); 288 lua_setfield(g_lua, -2, "target");
287 289
288 if(g_hwdev_target.dID == HWSTUB_TARGET_STMP) 290 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 @@
1---
2--- Chip Identification
3---
4
5ATJ = {}
6
7hwstub.soc:select("atj213x")
8
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
6 require "pp" 6 require "pp"
7elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then 7elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
8 require "rk27xx" 8 require "rk27xx"
9elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
10 require "atj"
9end 11end
10 12
11require "dumper" 13require "dumper"