summaryrefslogtreecommitdiffstats
path: root/utils/hwstub
AgeCommit message (Collapse)AuthorFilesLines
2014-11-18hwstub/qeditor: add support for atomic read/writesMarcin Bukat11-22/+252
The current code assumed that READ/WRITE would produce atomic read/writes for 8/16/32-bit words, which in turned put assumption on the memcpy function. Since some memcpy implementation do not always guarantee such strong assumption, introduce two new operation READ/WRITE_ATOMIC which provide the necessary tools to do correct read and write to register in a single memory access. Change-Id: I37451bd5057bb0dcaf5a800d8aef8791c792a090
2014-11-15hwstub_shell: add atj targetAmaury Pouly3-0/+12
Change-Id: I566694f19dfb110dbf245be7b7f139a4c616e16b Reviewed-on: http://gerrit.rockbox.org/1041 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-11-05hwstub: Add atj213x supportbootloader_zenxfi3_v1Marcin Bukat14-7/+4659
Change-Id: Ic32200f9ab2c6977e503307a9cbe43a1328d0341
2014-09-11hwstub: small fixup in rk27xx usb driverMarcin Bukat1-1/+1
Change-Id: Ibf3b91af11041834ce650f663b213bac0113f721
2014-09-08hwstub: add support for jump/call in libraryAmaury Pouly2-20/+16
Change-Id: Ia57ca613609a5e89e41ff927d7fc137c6841046a
2014-09-08hwstub: implement jump/call in stubAmaury Pouly1-6/+25
Change-Id: I876fa012c5ae1509e57f5816a8ed31dc69d62ca0
2014-09-08hwstub: trivial changesAmaury Pouly2-2/+3
Change-Id: Iacb1721db1ae59d5f359d244fd68234915e611cf
2014-09-07hwstub: fix compile issueAmaury Pouly1-1/+1
Change-Id: I939c05d3c1319b122fe64bff0f0ea300ecbd1180
2014-09-07hwstub: library now check version on openAmaury Pouly2-3/+14
Change-Id: I672a882ad06780da93c1d811af2b28ff60d07469
2014-09-07hwstub: add string versionAmaury Pouly1-0/+4
Change-Id: I919c27eb7ea69fdac7b3a65785a5a6eb3723a80e
2014-09-07hwstub_shell: add support for set/clr/tog without SCT using read and writeAmaury Pouly1-1/+41
Change-Id: Ib0a5123e5cc51ee193ef761c36af63467740c670
2014-09-07hwstub: fix missing \nAmaury Pouly1-3/+3
Change-Id: I077a38d8a8905b7ad686d0d00b2a8a48bd206ade
2014-09-07hwstub: fix horrible bugAmaury Pouly1-2/+1
Change-Id: I8042f692045a23dbb545d840e5169ce4b99fe5d2
2014-09-07hwstub: don't put revision in the protocol, it's specific to the implementationAmaury Pouly4-13/+8
Change-Id: I1311a22da41fe977f1613f1e313a864baa03027c
2014-09-07hwstub: fix library to actually work and compile, still miss some functionsAmaury Pouly2-6/+53
Change-Id: I968dafb4dca7d674165a43e3a435762fe38ed37f
2014-09-07hwstub: remove protocol to make it use its own interfaceAmaury Pouly5-135/+347
This way, hwstub can be implemented along with other usb features/interfaces. Change-Id: I7148cab845049cc0a8b8e740fa0d52d3a385eaed
2014-06-15hwstub: load rk27xx specific bitsMarcin Bukat1-0/+2
Change-Id: Ie0c68925f933aebeb9b3497800a29de2d69fead2
2014-06-15hwstub: Add support for rk27xx lradc blockMarcin Bukat2-0/+20
Change-Id: I8fe15ad8207ac7098944bb85d6b66b91b9858e8f
2014-06-15Add RKW build target in rk27xx hwstubMarcin Bukat1-0/+3
Change-Id: I5ad44916bc1ac5e8a9384db2369f07b137a1a715
2014-06-15hwstub: fix usb driver for rk27xxMarcin Bukat1-28/+50
Change-Id: I299e76837715c320987177eaea8459f8f199cb96
2014-05-11hwstub: add some PP and Sansa View codeAmaury Pouly3-0/+235
Change-Id: If188a01adee2a0e1c7a46c424a0a9cde9f666831
2014-05-11hwstub: hwstub_shell can now run files/cmd provides on command lineAmaury Pouly1-4/+31
Change-Id: Id5cb3bee52b39e2ddec95c646ca9b4a3334bdf92
2014-05-11qeditor: add support for deletion of itemsAmaury Pouly1-0/+4
Change-Id: I886e15585bd3bfed3303e4b845cd8960a9461277
2014-05-11hwstub: fix hwstub_shellAmaury Pouly2-2/+5
Change-Id: I008a55675054c86fd206cc5248f2bd9475e80b49
2014-04-12hwstub: add proper PP supportAmaury Pouly8-19/+182
- 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
2014-04-12hwstub: fix error in config descriptor, cleanup some codeAmaury Pouly4-7/+2
Change-Id: I853340ed2c187a044726ca03ec52aed655707e27
2014-04-07Add hwstub support for portal player (manufacturer mode)Amaury Pouly7-0/+209
It is very similar to how e200tool from MrH works but uses the framework of hwstub which is makes it completely trivial since we already have the USB driver written. Change-Id: I61cdc245d3f828c2682bcd6ecfed5a1cc0094139
2014-02-12Fix redAmaury Pouly1-5/+5
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
2014-02-10hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly1-5/+5
A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
2014-02-10utils/hwstub: make stmp stub able to load in a MMU'ed environementAmaury Pouly1-6/+10
In might be useful to load hwstub in an environment with the MMU active, in which case care must be taken on the order in which things are done. Mostly, one should not disable the MMU before moving stuff around. The code assumes the linking address (0 currently) is identity mapped. Change-Id: I8d54ce9e8cadcde2e08990353ca7a46803731ca7
2014-02-10utils/hwstub: completely rework the protocol, drop unused featuresAmaury Pouly10-652/+278
The protocol has evolved a lot during the 2.x.y lifetime, bringing more features which later got unused. This commit removes all the unused stuff and simplifies everything: - drop the feature mask: everything is mandatory or stalled on error - remove the info request and put all static information in standard USB descriptors which are part of the configuration descriptor (and can be retrieved using the standard GetDescriptor request). - remove the USB interface, we had only one anyway - remove all endpoint descriptors - remove the exit/atexit stuff, it never worked as intended anyway - update the hwstub library and make it able to handle any device - update the tools (mostly renaming and removing of code) Change-Id: I1872bba7f4177fc3891180e8f944aab88f5bde31
2013-12-24hwstub: update zenxfistyle codeAmaury Pouly1-12/+8
Change-Id: I7e85101eca7dfc0f68c215936be4aa19749923ad
2013-12-24hwstub: use delay in zenxfistyle codeAmaury Pouly1-7/+7
Change-Id: Ia9576162b3b28d3778fe479cc321c879d73247c6
2013-12-24hwstub: fix lcdif pin setup for 18-bit busAmaury Pouly1-1/+8
Change-Id: I30a2cedb1170abbee5a80c33206c147eb4207ca5
2013-12-24hwstub: add delay functionAmaury Pouly2-0/+21
Change-Id: Iab208ed59a9a2540a64b190357411d3de28f288e
2013-12-24hwstub: add ZEN X-Fi Style code (preliminary)Amaury Pouly1-0/+187
Change-Id: I535d54bc3fb2263c174b7ae983ea4f5ed68e6390
2013-12-24hwstub: fix lcdif code for 18-bit word lengthAmaury Pouly1-0/+5
Change-Id: I38cf0b5808443d5c19ebddb329c2a1636bcc4b28
2013-12-13hwstub/stmp: disable watchdogAmaury Pouly1-0/+11
Some targets like Sony NWZ use a watchdog, so we must disable it to prevent spurious reboot when we take over Change-Id: I138a8d7f9a1b089acb2d08d7f6c4a58e8b088b3a
2013-12-13hwstub/stmp: cleanupAmaury Pouly1-4/+1
Conditional no longer needed since ctr0.S is private to target, also setup stack just before jumping to C code only Change-Id: I74116239be9e87bbe53e8fa814c45f04f242f1c1
2013-12-06hwstub: Prepare for multi arch supportMarcin Bukat4-3/+5
Change-Id: Id38411ff95660e60ee23f99350b275b92b3e4578 Reviewed-on: http://gerrit.rockbox.org/690 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-12-06hwstub: forgot the db command file for stmpAmaury Pouly1-0/+15
Change-Id: I08ca6be221d3633c5b6e5e4b023afca33713e428
2013-12-06hwstub: implement i2c and i2c eeprom dumpAmaury Pouly2-1/+72
Change-Id: Iff1b4f40affb88c104e7322e25cdbe34f8886476
2013-12-03hstub: add Sansa Express lcd codeAmaury Pouly2-3/+110
Change-Id: I61fc58e3c97a3666eac98d21226865181b85eef1
2013-11-24hwstub rk27xx portMarcin Bukat15-24/+1932
Change-Id: I85ac57117911544b65ccd56eb16303e30be67cab
2013-11-20hwstub: only load stmp files on stmp targetsAmaury Pouly2-1/+7
Change-Id: I9266ec6db457b1d649cbdcb6c9bd1d0f3223b867
2013-11-18hwstub: use a more reasonable hclk frequencyAmaury Pouly1-1/+1
The old code would set CPU to 64MHz and HCLK to 9MHz but that's too low for many things like usb and gpmi. So change HCLK to ~32MHZ. Change-Id: I6459f25900e42603333cebccb7b0ed26c59640ad
2013-10-26hwstub: fix stmp3600Amaury Pouly1-3/+7
The microseconds register has a different address Change-Id: I29d2e7feea9eb34b0d539ee217babd092542b612
2013-10-26hwstub: produce sb1 image too (for STMP3600)Amaury Pouly1-4/+11
Change-Id: Ib7f38fba1e524ed7438cdc395441d801c5eabcaa
2013-10-22utils/hwstub: fix zen target idAmaury Pouly1-1/+1
Change-Id: I9199f573a050223a811a8e82e403f113fb876cca
2013-10-22hwstub: rework i2c completelyAmaury Pouly4-13/+52
Change-Id: I1e5f87f15f0ca9586d8185316ffcaeef6d9d4d38