
25 Jul
2011
25 Jul
'11
11:40 p.m.
Dear Macpaul Lin,
In message 1303718498-20740-1-git-send-email-macpaul@andestech.com you wrote:
andes_spi is an spi interface developed by Andes Tech.
Signed-off-by: Macpaul Lin macpaul@andestech.com Cc: Wolfgang Denk wd@denx.de Cc: Mike Frysinger vapier@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@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_