Advertisement
Guest User

Untitled

a guest
Nov 14th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.29 KB | None | 0 0
  1. diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp
  2. index e5d3a72..b2838eb 100644
  3. --- a/utils/hwstub/tools/hwstub_shell.cpp
  4. +++ b/utils/hwstub/tools/hwstub_shell.cpp
  5. @@ -283,6 +283,8 @@ bool my_lua_import_hwstub()
  6.      lua_setfield(g_lua, -2, "PP");
  7.      lua_pushinteger(g_lua, HWSTUB_TARGET_RK27);
  8.      lua_setfield(g_lua, -2, "RK27");
  9. +    lua_pushinteger(g_lua, HWSTUB_TARGET_ATJ);
  10. +    lua_setfield(g_lua, -2, "ATJ");
  11.      lua_setfield(g_lua, -2, "target");
  12.  
  13.      if(g_hwdev_target.dID == HWSTUB_TARGET_STMP)
  14. diff --git a/utils/hwstub/tools/lua/atj.lua b/utils/hwstub/tools/lua/atj.lua
  15. new file mode 100644
  16. index 0000000..de725f4
  17. --- /dev/null
  18. +++ b/utils/hwstub/tools/lua/atj.lua
  19. @@ -0,0 +1,8 @@
  20. +---
  21. +--- Chip Identification
  22. +---
  23. +
  24. +ATJ = {}
  25. +
  26. +hwstub.soc:select("atj213x")
  27. +
  28. diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua
  29. index b996e3b..86f01f7 100644
  30. --- a/utils/hwstub/tools/lua/load.lua
  31. +++ b/utils/hwstub/tools/lua/load.lua
  32. @@ -6,6 +6,8 @@ elseif hwstub.dev.target.id == hwstub.dev.target.PP then
  33.      require "pp"
  34.  elseif hwstub.dev.target.id == hwstub.dev.target.RK27 then
  35.      require "rk27xx"
  36. +elseif hwstub.dev.target.id == hwstub.dev.target.ATJ then
  37. +    require "atj"
  38.  end
  39.  
  40.  require "dumper"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement