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>
Sun, 1 Apr 2012 03:42:34 +0000 (23:42 -0400)
commitb2c2f36038ffb24a94d3ec8167bf099ff3e18511
treefb8e4710549137fe489a38c23a87d7dc270941c6
parente4a0e921820a4f90f0c1566f8f7128aadaa2f691
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