diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2012-03-21 16:41:23 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-04-05 20:32:22 -0400 |
commit | faf8180b20882b52145b96d6d4ed082d41908f90 (patch) | |
tree | 457276f731216938caa2b82d851c770cf3b7dd1e /drivers/mmc/host/atmel-mci-regs.h | |
parent | 33ab4bbbdf6c60a8c196b5a28215a93aa2a4ed2e (diff) | |
download | linux-faf8180b20882b52145b96d6d4ed082d41908f90.tar.gz linux-faf8180b20882b52145b96d6d4ed082d41908f90.tar.bz2 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.h | 1 |
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 */ |