Pin 13, which we use as F_RESET, was originally routed to BCM Pin 21.
All other revisions of the board map it to BCM Pin 27.
Check for the original version of the board, and re-assign F_RESET as
necessary.
Signed-off-by: Sean Cross <sean@xobs.io>
The silkscreen on the hacker version uses "S" for chip select and
"C" for clock. Have the help screen and "-g" parameter use this
convention for arguments.
This fixes Github issue #2.
Signed-off-by: Sean Cross <sean@xobs.io>
We have different-sized SPI flash chips, so when possible set the
capacity based on various id codes.
Also allow for manually overriding capacity with the -b option.
Signed-off-by: Sean Cross <sean@xobs.io>