]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0a301da3730e8adefaa5ffbea104b3c6ff79193
tree457276f731216938caa2b82d851c770cf3b7dd1e
parent3c66bd619f72c3ae8fef52e21601411dc3f076d5
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