diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-11-14 23:24:22 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-11-15 13:01:24 +0100 |
| commit | 16dcde4012483ee8354efd3ddea380404cd6f168 (patch) | |
| tree | 42aa91763bf0c07f053116f9fed86357adbc4a66 | |
| parent | edb0c6c92f40db70be778bf9162ff116f5f01e31 (diff) | |
| download | rockbox-16dcde4012483ee8354efd3ddea380404cd6f168.zip rockbox-16dcde4012483ee8354efd3ddea380404cd6f168.tar.gz rockbox-16dcde4012483ee8354efd3ddea380404cd6f168.tar.bz2 rockbox-16dcde4012483ee8354efd3ddea380404cd6f168.tar.xz | |
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.cpp | 2 | ||||
| -rw-r--r-- | utils/hwstub/tools/lua/atj.lua | 8 | ||||
| -rw-r--r-- | utils/hwstub/tools/lua/load.lua | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index e5d3a72..b2838eb 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 0000000..de725f4 --- /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 b996e3b..86f01f7 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" |