On 08.05.2009 03:34, Joseph Smith wrote:
On Fri, 08 May 2009 02:57:27 +0200, Carl-Daniel Hailfinger wrote:
To prepare flashrom for Paraflasher (or other external flasher) support, each chip read/write access is either handled as memory mapped access or external flasher cycle.
External flashers can set the flasher variable to their own ID/number during startup and handle accesses in the switch statement inside chip_{read,write}[bwl].
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Very cool Carl-Daniel! So all we would have to do is add "case FLASHER_PARAFLASHER" and it's external r/w to each one of the swithes and we are good to go?
Correct. Additionally, you need a command line parameter which sets the flasher variable to FLASHER_PARAFLASHER, but that's it. I think Uwe has a patch to do that.
By the way, sorry to be slacking on the Paraflasher project lately, I've been a little busy lately...
No problem. I need to dig up the LPC bus bitbang sources I got from Andy (LPCflasher developer), then someone can integrate them into flashrom.
To be honest, I think a flasher for old-style parallel flash may be easiest because you don't have to implement a big state machine like for LPC/FWH.
Regards, Carl-Daniel