• Stefan Tauner's avatar
    serprog: Add support for setting the SPI frequency · b98f6eb3
    Stefan Tauner authored
    
    Introduce a new opcode (0x14) that sends the requested frequency as a 32b
    long value in Hertz to the programmer and receives the frequency eventually
    chosen by the programmer. The user can specify this with the programmer
    parameter "spispeed" (named after the similar parameter for the buspirate)
    including an optional suffix of 'M' or 'k' for specifying megahertz or kilohertz
    respectively (lowercase suffixes are also accepted).
    
    Thanks to Idwer and Uwe (and maybe others) for their feedback especially
    regarding the unit of frequency to use.
    
    Corresponding to flashrom svn r1571.
    Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    b98f6eb3
serprog.c 28.1 KB