summaryrefslogtreecommitdiff
path: root/utils/hwstub/tools/lua (follow)
Commit message (Collapse)AuthorAge
* hwstub: port hwstub_shell to the new libraryAmaury Pouly2016-04-08
| | | | | | | | | | | | | | | Also use this opportunity to cleanup support for multiple devices: the shell now supports dynamic changes in the device and will call init() everytime a new device is selected, to prepare a new environment. The shell now honors register width on register read/write. The shell also provides access to variants as follows by creating a subtable under the register using the variant type in UPPER case and having the same layout as a register. For example if register HW.GPIO.DIR has variants "set" and "clr", those can be used like this: HW.GPIO.DIR.SET.write(0xff) HW.GPIO.DIR.CLR.write(0xff00) Change-Id: I943947fa98bce875de0cba4338e8b7196a4c1165
* hwstub: fix atj213x dsp lua codeMarcin Bukat2015-11-17
| | | | Change-Id: I5fbd1799b958bedbe74f91bdcdd8a544e15d2a78
* hwstub: Add ajt213x lua interface for DSP blockMarcin Bukat2015-11-17
| | | | | | | | | | | | | | | | | | | | | | With this you can upload and run code on DSP core in atj213x. The files can be produced using as2181. You can download this assembler from https://github.com/wodz/as2181 You should use extended mode (-x switch) since DSP core in atj is non standard and uses 24bit operands. PX register has different meaning as well and is used as MSB when loading other registers with immediates (immediate field is 16bit in instruction so to set register to 24bit value you need to store MSB in PX prior to this). MAC MR is 56bit accordingly. HIP interface seems to be mapped at standard addresses (except that regular 218x doesn't have HIP). Have a fun! Change-Id: I9a80ca0dd3718ba8435ae8579bfffa66e067e022
* hwstub: Add completion and some pretty printing to the shellMarcin Bukat2015-06-28
| | | | | | | This uses slightly hacked luaprompt to provide all the goodis. See https://github.com/dpapavas/luaprompt for original. Change-Id: Iedddb79abae5809299322bc215722dd928c35cca
* hwstub_shell: add support for call and jumpMarcin Bukat2014-11-28
| | | | | | | Change-Id: Ie09d0db21831b79255da858bada7382a08ff4eef Reviewed-on: http://gerrit.rockbox.org/1052 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* hwstub: lua functions for atj213x/irivere150Marcin Bukat2014-11-28
| | | | | | | Change-Id: I3ab32996b4b6603fd7d66eee5b3bfd795b79eee1 Reviewed-on: http://gerrit.rockbox.org/1049 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* hwstub_shell: add atj targetAmaury Pouly2014-11-15
| | | | | | Change-Id: I566694f19dfb110dbf245be7b7f139a4c616e16b Reviewed-on: http://gerrit.rockbox.org/1041 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
* hwstub: load rk27xx specific bitsMarcin Bukat2014-06-15
| | | | Change-Id: Ie0c68925f933aebeb9b3497800a29de2d69fead2
* hwstub: Add support for rk27xx lradc blockMarcin Bukat2014-06-15
| | | | Change-Id: I8fe15ad8207ac7098944bb85d6b66b91b9858e8f
* hwstub: add some PP and Sansa View codeAmaury Pouly2014-05-11
| | | | Change-Id: If188a01adee2a0e1c7a46c424a0a9cde9f666831
* hwstub: fix hwstub_shellAmaury Pouly2014-05-11
| | | | Change-Id: I008a55675054c86fd206cc5248f2bd9475e80b49
* hwstub: add proper PP supportAmaury Pouly2014-04-12
| | | | | | | | | | | - drop support for PP500x: it's very different from other PP and although it would be possible to support them, I don't have one to test the code - make sure only the CPU is started - add PP descriptor to report chip ID and revision - add code in shell and lua to support pp (no register description yet) - compile for ARMv4 because PP502x is an ARM7TDMI Change-Id: I36c4e465dfc2cfdfe7433b2f65cc8f6f0720fe62
* hwstub: update zenxfistyle codeAmaury Pouly2013-12-24
| | | | Change-Id: I7e85101eca7dfc0f68c215936be4aa19749923ad
* hwstub: use delay in zenxfistyle codeAmaury Pouly2013-12-24
| | | | Change-Id: Ia9576162b3b28d3778fe479cc321c879d73247c6
* hwstub: fix lcdif pin setup for 18-bit busAmaury Pouly2013-12-24
| | | | Change-Id: I30a2cedb1170abbee5a80c33206c147eb4207ca5
* hwstub: add ZEN X-Fi Style code (preliminary)Amaury Pouly2013-12-24
| | | | Change-Id: I535d54bc3fb2263c174b7ae983ea4f5ed68e6390
* hwstub: fix lcdif code for 18-bit word lengthAmaury Pouly2013-12-24
| | | | Change-Id: I38cf0b5808443d5c19ebddb329c2a1636bcc4b28
* hwstub: implement i2c and i2c eeprom dumpAmaury Pouly2013-12-06
| | | | Change-Id: Iff1b4f40affb88c104e7322e25cdbe34f8886476
* hstub: add Sansa Express lcd codeAmaury Pouly2013-12-03
| | | | Change-Id: I61fc58e3c97a3666eac98d21226865181b85eef1
* hwstub rk27xx portMarcin Bukat2013-11-24
| | | | Change-Id: I85ac57117911544b65ccd56eb16303e30be67cab
* hwstub: only load stmp files on stmp targetsAmaury Pouly2013-11-20
| | | | Change-Id: I9266ec6db457b1d649cbdcb6c9bd1d0f3223b867
* hwstub: rework i2c completelyAmaury Pouly2013-10-22
| | | | Change-Id: I1e5f87f15f0ca9586d8185316ffcaeef6d9d4d38
* hwstub: fix lcd drivers for sony NWZAmaury Pouly2013-09-26
| | | | Change-Id: I8d581ec906ec2bab0d983aacfb0e8479b77d0c57
* hwstub: add some code for the NWZ-E360/E370Amaury Pouly2013-09-25
| | | | Change-Id: I9fe5da773705ec4c3d014b8ac7f78ad614e20a30
* hwstub: add stmp i2c codeAmaury Pouly2013-09-25
| | | | Change-Id: I6787e682a9e22cb34e6d94d25bf68d7575d784c4
* hwstub: add pix clock setupAmaury Pouly2013-09-10
| | | | Change-Id: I94f764c0fcfb47bd9ccafe23f6d6079b42f23826
* hwstub: various fixAmaury Pouly2013-09-10
| | | | Change-Id: I4dee8e115e282d1d6540013c9b9f1263e30690de
* hwstub: improve lcdif, digtctl, add sony nwz-e370Amaury Pouly2013-09-05
| | | | Change-Id: I5316cc9fd9addfca8a674628695fed1c1bf9269f
* hwstub: add stmp clkctrl code and generic register dumperAmaury Pouly2013-08-11
| | | | Change-Id: I432853fb4171f07ed23b73dc0499814fe8ce8748
* hwstub: introduce lua code for the STMP and Creative ZEN V/MozaicAmaury Pouly2013-06-13
Change-Id: Ice5f509a2e0d2114436d4760f338b9203ef96691