Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement