mmc: sdhci-s3c: Support controllers with no internal clock divider
authorJeongbae Seo <jeongbae.seo@samsung.com>
Fri, 8 Oct 2010 08:46:21 +0000 (17:46 +0900)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:22 +0000 (23:52 -0500)
commit253e0a7c3dc4bbbc69fc6bfd7c01bc4c9397a5e5
tree5c56f6ed391fc7fcc96918d9ee657c319d81e962
parentb3824f2c6f16ef19060a53ef9345a124de175098
mmc: sdhci-s3c: Support controllers with no internal clock divider

This patch supports controllers with no internal clock divider in SDHCI,
such as the s5pc210 board.  The external clock divider can be used to
make a proper clock because SDHCI doesn't support internal clock divider
by itself.

If external clock divider type is selected, some functions related
to clock control will be overrided by other functions.

The current clock control index is added to let you know which
clock bus is used for SDHCI when overriding functions.

Checking functions are added into sdhci_s3c_consider_clock, because
the clock divider step is different from that of host controller.

Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c