diff options
author | Jesse Gilles <jgilles@multitech.com> | 2012-09-12 10:49:45 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2012-09-18 13:36:56 -0500 |
commit | 06fd3f18f1a66734ce9e7ec1ee5e862f45fe3225 (patch) | |
tree | 4c7c0a389af239f66c1b32bd40ba0056ce6aaa66 | |
parent | 43ffbfe292405cb6195cddcc430d4f4a41b4dd7c (diff) |
linux-2.6.39.4: mt100eocg-pcie-dk: add mci clock debug, force mmc clock to 13MHz by default
3 files changed, 20 insertions, 4 deletions
diff --git a/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-at91-mci-clock-debug.patch b/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-at91-mci-clock-debug.patch new file mode 100644 index 0000000..2554386 --- /dev/null +++ b/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-at91-mci-clock-debug.patch @@ -0,0 +1,14 @@ +Index: linux-2.6.39.4/drivers/mmc/host/at91_mci.c +=================================================================== +--- linux-2.6.39.4.orig/drivers/mmc/host/at91_mci.c 2012-09-10 14:29:38.217293988 -0500 ++++ linux-2.6.39.4/drivers/mmc/host/at91_mci.c 2012-09-10 14:41:35.352414089 -0500 +@@ -724,7 +724,8 @@ + else + clkdiv = (at91_master_clock / ios->clock) / 2; + +- pr_debug("clkdiv = %d. mcck = %ld\n", clkdiv, ++ pr_info("MMC: requested clock: %ld\n", ios->clock); ++ pr_info("MMC: clkdiv = %d. mcck = %ld\n", clkdiv, + at91_master_clock / (2 * (clkdiv + 1))); + } + if (ios->bus_width == MMC_BUS_WIDTH_4 && host->board->wire4) { diff --git a/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-mmc-core-maxclock.patch b/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-mmc-core-maxclock.patch index 9ffaa5a..9f8303a 100644 --- a/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-mmc-core-maxclock.patch +++ b/multitech/recipes/linux/linux-2.6.39.4/linux-2.6.39.4-mmc-core-maxclock.patch @@ -1,18 +1,19 @@ Index: linux-2.6.39.4/drivers/mmc/core/core.c =================================================================== --- linux-2.6.39.4.orig/drivers/mmc/core/core.c 2011-08-03 14:43:28.000000000 -0500 -+++ linux-2.6.39.4/drivers/mmc/core/core.c 2012-06-15 15:37:50.263414987 -0500 -@@ -46,7 +46,9 @@ ++++ linux-2.6.39.4/drivers/mmc/core/core.c 2012-09-12 10:45:57.246686939 -0500 +@@ -46,7 +46,10 @@ * So we allow it it to be disabled. */ int use_spi_crc = 1; -+int max_clock = 0; ++/* MTPCIE: default max clock to 13MHz */ ++int max_clock = 13000000; module_param(use_spi_crc, bool, 0); +module_param(max_clock, int, 0); /* * We normally treat cards as removed during suspend if they are not -@@ -628,6 +630,12 @@ +@@ -628,6 +631,12 @@ if (ios->clock > 0) mmc_set_ungated(host); diff --git a/multitech/recipes/linux/linux_2.6.39.4.bb b/multitech/recipes/linux/linux_2.6.39.4.bb index 393be38..93f21ca 100644 --- a/multitech/recipes/linux/linux_2.6.39.4.bb +++ b/multitech/recipes/linux/linux_2.6.39.4.bb @@ -15,6 +15,7 @@ SRC_URI_append_mt100eocg-pcie-dk = "file://defconfig \ file://linux-2.6.38-sierra-1.7.40.patch \ file://linux-2.6.32.3-option-telit.patch \ file://linux-2.6.39.4-mmc-core-maxclock.patch \ + file://linux-2.6.39.4-at91-mci-clock-debug.patch \ " SRC_URI[kernel.md5sum] = "a17c748c2070168f1e784e9605ca043d" |