[U-Boot-Users] Soft SPI support for all SPI modes

Wolfgang Denk wd at denx.de
Thu Aug 9 23:00:20 CEST 2007


In message <5CBE65F7D9232C47861CB09B0954861C66A346 at MAIL.infinitychannel.local> you wrote:
> Here is a patch that will allow the soft SPI driver to support all
> different SPI modes (CPOL=0/1, CPHA=0/1).
> 
> Signed-off-by: Zach Sadecki <zach.sadecki at ripcode.com>

Sorry...


> +
> +
>  
> /*=====================================================================*
> /
>  /*                         Public Functions
> */
>  
> /*=====================================================================*
> /
^^^^^^^^^^
>         PRINTD("spi_xfer: chipsel %08X dout %08X din %08X bitlen %d\n",
>                 (int)chipsel, *(uint *)dout, *(uint *)din, bitlen);
> 
> +       SPI_SCL(SPI_CLOCK_IDLE); /* Ensure SPI clock starts in idle
> state */
^^^^^^^^^^

etc. Your patch is correupted because your mailer wrapped long lines.
Please repost after reconfiguring your mailer not to do such things.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I don't want to be young again, I just don't want to get any older.




More information about the U-Boot mailing list