Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332839
b: refs/heads/master
c: 6bf2af8
h: refs/heads/master
i:
  332837: ff10503
  332835: 21d2528
  332831: f473a05
v: v3
  • Loading branch information
Hein_Tibosch authored and Chris Ball committed Oct 3, 2012
1 parent 9fca792 commit 40bda3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: ccdfe6122f61b40592820d48b4cde021295418a0
refs/heads/master: 6bf2af8cd2cb35f6098953a33b9a160a4ca0b626
7 changes: 7 additions & 0 deletions trunk/drivers/mmc/host/atmel-mci-regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@
#define atmci_writel(port,reg,value) \
__raw_writel((value), (port)->regs + reg)

/* On AVR chips the Peripheral DMA Controller is not connected to MCI. */
#ifdef CONFIG_AVR32
# define ATMCI_PDC_CONNECTED 0
#else
# define ATMCI_PDC_CONNECTED 1
#endif

/*
* Fix sconfig's burst size according to atmel MCI. We need to convert them as:
* 1 -> 0, 4 -> 1, 8 -> 2, 16 -> 3.
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mmc/host/atmel-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ static void __init atmci_get_cap(struct atmel_mci *host)
"version: 0x%x\n", version);

host->caps.has_dma_conf_reg = 0;
host->caps.has_pdc = 1;
host->caps.has_pdc = ATMCI_PDC_CONNECTED;
host->caps.has_cfg_reg = 0;
host->caps.has_cstor_reg = 0;
host->caps.has_highspeed = 0;
Expand Down

0 comments on commit 40bda3f

Please sign in to comment.