summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/atmel-mci-regs.h
diff options
context:
space:
mode:
authorLudovic Desroches2012-03-21 16:41:23 +0100
committerChris Ball2012-04-06 02:32:22 +0200
commitfaf8180b20882b52145b96d6d4ed082d41908f90 (patch)
tree457276f731216938caa2b82d851c770cf3b7dd1e /drivers/mmc/host/atmel-mci-regs.h
parentmmc: atmel-mci: r/w proof capability only available since v2xx (diff)
downloadkernel-qcow2-linux-faf8180b20882b52145b96d6d4ed082d41908f90.tar.gz
kernel-qcow2-linux-faf8180b20882b52145b96d6d4ed082d41908f90.tar.xz
kernel-qcow2-linux-faf8180b20882b52145b96d6d4ed082d41908f90.zip
mmc: atmel-mci: add support for odd clock dividers
Add an odd clock divider capability available from v5xx. It also involves changing the clock divider calculation, and changing the switch-case statement to use top-down fallthrough. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/atmel-mci-regs.h')
-rw-r--r--drivers/mmc/host/atmel-mci-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/host/atmel-mci-regs.h b/drivers/mmc/host/atmel-mci-regs.h
index 000b3ad0f5ca..787aba1682bb 100644
--- a/drivers/mmc/host/atmel-mci-regs.h
+++ b/drivers/mmc/host/atmel-mci-regs.h
@@ -31,6 +31,7 @@
# define ATMCI_MR_PDCFBYTE ( 1 << 13) /* Force Byte Transfer */
# define ATMCI_MR_PDCPADV ( 1 << 14) /* Padding Value */
# define ATMCI_MR_PDCMODE ( 1 << 15) /* PDC-oriented Mode */
+# define ATMCI_MR_CLKODD(x) ((x) << 16) /* LSB of Clock Divider */
#define ATMCI_DTOR 0x0008 /* Data Timeout */
# define ATMCI_DTOCYC(x) ((x) << 0) /* Data Timeout Cycles */
# define ATMCI_DTOMUL(x) ((x) << 4) /* Data Timeout Multiplier */