Re: [Qemu-devel] [PATCH v2 10/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-01-27 Thread Kuo-Jung Su
2013/1/26 Paul Brook > > +if (!(s->dcr & DCR_WR) && (s->datacnt > 0)) { > > +ret = sd_read_data(s->card) > > +| sd_read_data(s->card) << 8 > > +| sd_read_data(s->card) << 16 > > +| sd_read_data(s->card) << 24; > > +s-

Re: [Qemu-devel] [PATCH v2 10/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-01-25 Thread Paul Brook
> +if (!(s->dcr & DCR_WR) && (s->datacnt > 0)) { > +ret = sd_read_data(s->card) > +| sd_read_data(s->card) << 8 > +| sd_read_data(s->card) << 16 > +| sd_read_data(s->card) << 24; > +s->datacnt -= 4; > +if (s

[Qemu-devel] [PATCH v2 10/20] arm: add Faraday FTSDC010 MMC/SD controller support

2013-01-25 Thread Kuo-Jung Su
From: Kuo-Jung Su The FTSDC010 functions as the master in an SD memory card interface. It controls the communication between the AHB/APB bus and the SD card. Its core supports the SD bus of the SD/SDIO operations and the MMC bus of the MMC operation as well. Signed-off-by: Kuo-Jung Su --- hw/f