aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/DocBook/mmc.tmpl6
-rwxr-xr-xarch/arm/mach-ux500/include/mach/mmc.h30
-rw-r--r--drivers/mmc/host/mmc-u8500.c15
3 files changed, 36 insertions, 15 deletions
diff --git a/Documentation/DocBook/mmc.tmpl b/Documentation/DocBook/mmc.tmpl
index 04820cd6cde..24f9343a283 100644
--- a/Documentation/DocBook/mmc.tmpl
+++ b/Documentation/DocBook/mmc.tmpl
@@ -19,8 +19,8 @@
</authorgroup>
<copyright>
- <year>2007-2008</year>
- <holder>ST-Ericsson 2009</holder>
+ <year>2009</year>
+ <holder>ST-Ericsson</holder>
</copyright>
<legalnotice>
@@ -67,7 +67,7 @@
This chapter contains the autogenerated documentation of the structures which are
used in the SDMMC driver.
</para>
-!Iarch/arm/mach-u8500/include/mach/mmc.h
+!Iarch/arm/mach-ux500/include/mach/mmc.h
</chapter>
<chapter id="intfunctions">
diff --git a/arch/arm/mach-ux500/include/mach/mmc.h b/arch/arm/mach-ux500/include/mach/mmc.h
index 3dd72603c7f..b2f3f920aa1 100755
--- a/arch/arm/mach-ux500/include/mach/mmc.h
+++ b/arch/arm/mach-ux500/include/mach/mmc.h
@@ -237,12 +237,40 @@
* struct u8500_mmci_host - host device structure
* @base: pointer to the device baseaddress
* @mrq: pointer to the request structure
+ * @cmd: pointer to the command structure
* @data: pointer to the data structure
* @mmc: pointer to the mmc_host structure
- * @clk: pointer to the clock
+ * @clk: pointer to the clock structure
* @data_xfered: variable which updates the data_transfered
* @lock: spinlock variable
* @sg_ptr: scatter list pointer
+ * @mclk: master clock
+ * @cclk: card clock
+ * @card_detect_intr_value: callback for the carddetection
+ * @oldstat: card detection value
+ * @dmach_mmc2mem: dma pipeid card to memory
+ * @dmach_mem2mmc: dma pipeid from memory to card
+ * @dma_fifo_addr: dma fifo address
+ * @dma_fifo_dev_type_rx: rx channel number
+ * @dma_fifo_dev_type_tx: tx channel number
+ * @level_shifter: variable for checking level shifter
+ * @dma: ponter to dma_addr_t structure
+ * @caps: host capabilities
+ * @sg_len: scatter gather length
+ * @sg_off: offset address
+ * @size: data size
+ * @buffer: buffer used in polling mode
+ * @dma_buffer: buffer used in dma mode
+ * @dma_done: variable for dma completion
+ * @devicemode: variable for device mode
+ * @is_sdio: variable for sdio
+ * @board: pointer to the board structure
+ * @regulator: pointer to the regulator structure
+ * @sdio_setirq: set irq status for SDIO
+ * @sdio_irqstatus: current irq status for SDIO
+ * @aligned_blksz: aligned block size value for SDIO
+ * @aligned_size: aligned size value for SDIO
+ * @reg_context: array to store register context
*
* host controller Internal device structure
*/
diff --git a/drivers/mmc/host/mmc-u8500.c b/drivers/mmc/host/mmc-u8500.c
index 986ffe3bc13..11ba4ad8745 100644
--- a/drivers/mmc/host/mmc-u8500.c
+++ b/drivers/mmc/host/mmc-u8500.c
@@ -59,10 +59,7 @@
#include "mmc-u8500.h"
-/**
- * SDIO host controller does not support byte mode, so S/W workaround is
- * required for alignment of transfer size to power of two.
- */
+/* Workaround for SDIO Multibyte mode, not suuported in H/W */
#ifdef SDIO_MULTIBYTE_WORKAROUND
#undef SDIO_MULTIBYTE_WORKAROUND
/* Not fully validated, to be enabled from menuconfig later */
@@ -163,7 +160,6 @@ u8500_mmci_init_sg(struct u8500_mmci_host *host, struct mmc_data *data)
*/
static inline void u8500_mmc_clearirqsrc(void *base, u32 irqsrc)
{
- u32 temp_reg;
irqsrc &= ~(MCI_SDIOIT);
writel(irqsrc, (base + MMCICLEAR));
}
@@ -201,8 +197,7 @@ static inline void u8500_mmc_enableirqsrc(void *base, u32 irqsrc)
}
/**
- * u8500_mmci_request_end() - Informs the stack regarding the
- * completion of the request
+ * u8500_mmci_request_end() - Informs the stack regarding the completion of the request
* @host: pointer to the u8500_mmci_host structure
* @mrq: pointer to the mmc_request structure
*
@@ -252,6 +247,7 @@ static void u8500_mmci_stop_data(struct u8500_mmci_host *host)
* @cmd: cmd number to be sent
* @arg: arg value need to be paased along with command
* @flags: flags need to be set for the cmd
+ * @devicemode: devicemode for the data transfer
*
* this function will send the cmd to the card by enabling the
* command path state machine and writing the cmd number and arg to the
@@ -358,7 +354,6 @@ static void wait_for_command_end(struct u8500_mmci_host *host)
/**
* check_for_data_err() - checks the status register value for the error
- * generated
* @hoststatus: value of the host status register
*
* this function will read the status register and will return the
@@ -501,7 +496,6 @@ void u8500_mmc_dmaclbk(void *data, enum dma_event event)
/**
* u8500_mmc_set_dma() - initiates the DMA transfer
* @host: pointer to the u8500_mmci_host register
- * @mmc_id: mmc_id for selecting sdmmc or emmc
*
* configures the DMA channel and selects the burst size depending on the
* data size and enables the dma transfer for the corresponding device
@@ -1096,7 +1090,6 @@ static irqreturn_t u8500_mmci_irq(int irq, void *dev_id)
* @host: Pointer to the host structure for MMC
* @data: Pointer to the mmc data structure
* @cmd: Pointer to the mmc comand structure
- * @mmc_id: device id to find sdmmc or emmc
*/
static void u8500_mmci_start_data(struct u8500_mmci_host *host,
struct mmc_data *data,
@@ -1364,7 +1357,7 @@ static struct mmc_host_ops u8500_mmci_ops = {
/**
* u8500_mmci_check_status() - checks the status of the card on every interval
- * @void: No arguments
+ * @data: pointer to the current host
*
* this function will check the status of the card on every interval
* of the time configured and inform the status to the mmc stack