forked from len0rd/rockbox
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:
parent
edb0c6c92f
commit
16dcde4012
3 changed files with 12 additions and 0 deletions
|
|
@ -283,6 +283,8 @@ bool my_lua_import_hwstub()
|
||||||
lua_setfield(g_lua, -2, "PP");
|
lua_setfield(g_lua, -2, "PP");
|
||||||
lua_pushinteger(g_lua, HWSTUB_TARGET_RK27);
|
lua_pushinteger(g_lua, HWSTUB_TARGET_RK27);
|
||||||
lua_setfield(g_lua, -2, "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");
|
lua_setfield(g_lua, -2, "target");
|
||||||
|
|
||||||
if(g_hwdev_target.dID == HWSTUB_TARGET_STMP)
|
if(g_hwdev_target.dID == HWSTUB_TARGET_STMP)
|
||||||
|
|
|
||||||
8
utils/hwstub/tools/lua/atj.lua
Normal file
8
utils/hwstub/tools/lua/atj.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
--- Chip Identification
|
||||||
|
---
|
||||||
|
|
||||||
|
ATJ = {}
|
||||||
|
|
||||||
|
hwstub.soc:select("atj213x")
|
||||||
|
|
||||||
|
|
@ -6,6 +6,8 @@ elseif hwstub.dev.target.id == hwstub.dev.target.PP then
|
||||||
require "pp"
|
require "pp"
|
||||||
elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
|
elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
|
||||||
require "rk27xx"
|
require "rk27xx"
|
||||||
|
elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
|
||||||
|
require "atj"
|
||||||
end
|
end
|
||||||
|
|
||||||
require "dumper"
|
require "dumper"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue