[flashrom] [PATCH] Add pinout for ByteBlaster to rayer_spi.c.

Kyösti Mälkki kyosti.malkki at gmail.com
Mon Mar 4 23:39:04 CET 2013


On Wed, 2013-01-23 at 03:30 +0400, mmcx at mail.ru wrote:
> Add pinout for ByteBlaster to rayer_spi.c.
> 
> Signed-off-by: Maksim Kuleshov <mmcx at mail.ru>

Thanks.

> ---
>  rayer_spi.c |   91 +++++++++++++++++++++++++++++++++++++++--------------------
>  1 file changed, 61 insertions(+), 30 deletions(-)

> +} rayer_pinouts [] = {
> +	{"rayer","RayeR SPIPGM",5,6,7,6},
> +	{"xilinx","Xilinx Parallel Cable III (DLC 5)",2,1,0,4},
> +	{"byteblaster","Altera ByteBlaster",1,0,6,7,rayer_byteblaster_preinit,rayer_byteblaster_shutdown},
> +	{0},
>  };

This isn't exactly pretty, I will rewrite.

>  
> +static void rayer_byteblaster_preinit(void * data){
> +	msg_pdbg("byteblaster_init\n");
> +	OUTB(2, lpt_iobase + 2 );//clear #EN signal
> +}
> +
> +static int rayer_byteblaster_shutdown(void * data){
> +	msg_pdbg("byteblaster_shutdown\n");
> +	OUTB(0, lpt_iobase + 2 );//set #EN signal
> +	return 0;
> +}

Seems the buffered version of DLC-5 needs this same approach,
different bits only.

Regards,
   Kyösti






More information about the flashrom mailing list