[U-Boot] [PATCH v3] andes_spi: add andes_spi interface

Wolfgang Denk wd at denx.de
Mon Jul 25 23:40:24 CEST 2011


Dear Macpaul Lin,

In message <1303718498-20740-1-git-send-email-macpaul at andestech.com> you wrote:
> andes_spi is an spi interface developed by Andes Tech.
> 
> Signed-off-by: Macpaul Lin <macpaul at andestech.com>
> Cc: Wolfgang Denk <wd at denx.de>
> Cc: Mike Frysinger <vapier at gentoo.org>
> ---
> Changes for v2:
>   - Replace redundant length checking by min(len, 4).
>   - Remove redundant debug marco.
>   - Replace reading register in debug() by local variable.
>   - Add Baud rate setup code (APB register) according to datasheet.
> Changes for v3:
>   - Add comment to explain why the hardware doesn't allow changing
>     frequency.
>   - Remove unnecessary varible initialization to zero.
>   - Refine the loop of data writing.
> 
>  drivers/spi/Makefile    |    1 +
>  drivers/spi/andes_spi.c |  302 +++++++++++++++++++++++++++++++++++++++++++++++
>  drivers/spi/andes_spi.h |  128 ++++++++++++++++++++
>  3 files changed, 431 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/spi/andes_spi.c
>  create mode 100644 drivers/spi/andes_spi.h

Applied, thanks.

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
It became apparent that one reason why the Ice Giants were  known  as
the  Ice  Giants  was  because they were, well, giants. The other was
that they were made of ice.              -Terry Pratchett, _Sourcery_


More information about the U-Boot mailing list