Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41434
b: refs/heads/master
c: 89783b1
h: refs/heads/master
v: v3
  • Loading branch information
Juha Yrjola juha.yrjola authored and Pierre Ossman committed Dec 1, 2006
1 parent bb6ffc4 commit de341a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab7aefd0b38297e6d2d71f43e8f81f9f4a36cdae
refs/heads/master: 89783b1e44d3a6fc63be911468e09494ebbba3e3
16 changes: 9 additions & 7 deletions trunk/drivers/mmc/omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ struct mmc_omap_host {
unsigned char id; /* 16xx chips have 2 MMC blocks */
struct clk * iclk;
struct clk * fclk;
struct resource *res;
void __iomem *base;
struct resource *mem_res;
void __iomem *virt_base;
unsigned int phys_base;
int irq;
unsigned char bus_mode;
unsigned char hw_bus_mode;
Expand Down Expand Up @@ -354,9 +355,9 @@ mmc_omap_xfer_data(struct mmc_omap_host *host, int write)
host->data->bytes_xfered += n;

if (write) {
__raw_writesw(host->base + OMAP_MMC_REG_DATA, host->buffer, n);
__raw_writesw(host->virt_base + OMAP_MMC_REG_DATA, host->buffer, n);
} else {
__raw_readsw(host->base + OMAP_MMC_REG_DATA, host->buffer, n);
__raw_readsw(host->virt_base + OMAP_MMC_REG_DATA, host->buffer, n);
}
}

Expand Down Expand Up @@ -581,7 +582,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data)
int dst_port = 0;
int sync_dev = 0;

data_addr = io_v2p((u32) host->base) + OMAP_MMC_REG_DATA;
data_addr = host->phys_base + OMAP_MMC_REG_DATA;
frame = data->blksz;
count = sg_dma_len(sg);

Expand Down Expand Up @@ -1001,7 +1002,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
host->dma_timer.data = (unsigned long) host;

host->id = pdev->id;
host->res = r;
host->mem_res = r;
host->irq = irq;

if (cpu_is_omap24xx()) {
Expand Down Expand Up @@ -1032,7 +1033,8 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
host->dma_ch = -1;

host->irq = pdev->resource[1].start;
host->base = (void __iomem*)IO_ADDRESS(r->start);
host->phys_base = host->mem_res->start;
host->virt_base = (void __iomem *) IO_ADDRESS(host->phys_base);

mmc->ops = &mmc_omap_ops;
mmc->f_min = 400000;
Expand Down

0 comments on commit de341a7

Please sign in to comment.