mmc: atmel-mci: add support for odd clock dividers
authorLudovic Desroches <ludovic.desroches@atmel.com>
Wed, 21 Mar 2012 15:41:23 +0000 (16:41 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 6 Apr 2012 00:32:22 +0000 (20:32 -0400)
commitfaf8180b20882b52145b96d6d4ed082d41908f90
tree457276f731216938caa2b82d851c770cf3b7dd1e
parent33ab4bbbdf6c60a8c196b5a28215a93aa2a4ed2e
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>
drivers/mmc/host/atmel-mci-regs.h
drivers/mmc/host/atmel-mci.c