public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] generic mmc_spi driver
@ 2010-12-24  7:16 Thomas Chou
  2010-12-24  7:16 ` [U-Boot] [PATCH 1/4] lib: add crc7 from Linux Thomas Chou
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Thomas Chou @ 2010-12-24  7:16 UTC (permalink / raw)
  To: u-boot

This is the v9 update of the mmc_spi driver. Please enable DEBUG on the top of
mmc_spi.c and help me perform the tests.

A new spi_set_speed() is added to meet the 400KHz clock requirement during mmc card
initialization. An example update to bfin_spi is included. The altera_spi core does
not support speed change, so I am going to post a new opencore ip for this.

The driver now claims and releases the spi bus for each mmc command, as Mike suggested.

Thomas Chou (4):
  lib: add crc7 from Linux
  spi: add spi_set_speed func
  bfin_spi: add spi_set_speed
  mmc: add generic mmc spi driver

 common/Makefile        |    1 +
 common/cmd_mmc_spi.c   |   88 +++++++++++++++
 drivers/mmc/Makefile   |    1 +
 drivers/mmc/mmc.c      |   93 +++++++++++++----
 drivers/mmc/mmc_spi.c  |  278 ++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/spi/Makefile   |    1 +
 drivers/spi/bfin_spi.c |   32 ++++---
 drivers/spi/spi.c      |    9 ++
 include/linux/crc7.h   |   14 +++
 include/mmc.h          |    5 +
 include/spi.h          |    8 ++
 lib/Makefile           |    1 +
 lib/crc7.c             |   62 +++++++++++
 13 files changed, 560 insertions(+), 33 deletions(-)
 create mode 100644 common/cmd_mmc_spi.c
 create mode 100644 drivers/mmc/mmc_spi.c
 create mode 100644 drivers/spi/spi.c
 create mode 100644 include/linux/crc7.h
 create mode 100644 lib/crc7.c

-- 
1.7.3.4

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-04-18  7:00 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-24  7:16 [U-Boot] [PATCH 0/4] generic mmc_spi driver Thomas Chou
2010-12-24  7:16 ` [U-Boot] [PATCH 1/4] lib: add crc7 from Linux Thomas Chou
2011-01-10 20:59   ` Wolfgang Denk
2011-01-11  1:38     ` [U-Boot] [PATCH v2] " Thomas Chou
2011-01-18 22:38       ` Wolfgang Denk
2010-12-24  7:16 ` [U-Boot] [PATCH 2/4] spi: add spi_set_speed func Thomas Chou
2010-12-24 17:09   ` Mike Frysinger
2010-12-24 23:13   ` [U-Boot] [PATCH 2/4 v2] " Thomas Chou
2011-01-18 22:37     ` Wolfgang Denk
2011-01-19  1:34       ` [U-Boot] [PATCH 2/4 v3] " Thomas Chou
2010-12-24  7:16 ` [U-Boot] [PATCH 3/4] bfin_spi: add spi_set_speed Thomas Chou
2010-12-24 17:25   ` Mike Frysinger
2010-12-24  7:16 ` [U-Boot] [PATCH 4/4] mmc: add generic mmc spi driver Thomas Chou
2010-12-24 23:12   ` [U-Boot] [PATCH 4/4 v10] " Thomas Chou
2010-12-24 17:24 ` [U-Boot] [PATCH 0/4] generic mmc_spi driver Mike Frysinger
2010-12-24 19:06   ` Reinhard Meyer
2010-12-24 19:45     ` Mike Frysinger
2010-12-24 23:21       ` Thomas Chou
2011-04-12  6:58 ` Mike Frysinger
2011-04-13 10:17   ` Andy Fleming
2011-04-13 19:46     ` Mike Frysinger
2011-04-18  7:00     ` [U-Boot] [PATCH] mmc_spi: add mmc_init call Thomas Chou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox