From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp15.mail.ru ([94.100.176.133]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SXTet-0003nS-PD for barebox@lists.infradead.org; Thu, 24 May 2012 08:44:37 +0000 From: Alexander Shiyan Date: Thu, 24 May 2012 12:44:29 +0400 Message-Id: <1337849069-1893-1-git-send-email-shc_work@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] i.MX51: Raise frequency for SDHC by switch to PLL2 source To: barebox@lists.infradead.org Currently, both SDHC clock source is PLL3. We can raise clock for SDHC driver by change source from PLL3 to PLL2. Below, is debug ouputs with old and new settings. Detection (PLL3): set clock: wanted: 400000 got: 375000 Operation (PLL3): set clock: wanted: 25000000 got: 18000000 Operation SD4.0 (PLL3): set clock: wanted: 52000000 got: 27000000 Detection (PLL2): set clock: wanted: 400000 got: 399639 Operation (PLL2): set clock: wanted: 25000000 got: 23750000 Operation SD4.0 (PLL2): set clock: wanted: 52000000 got: 41562500 Signed-off-by: Alexander Shiyan --- arch/arm/mach-imx/imx51.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/imx51.c b/arch/arm/mach-imx/imx51.c index 25cc6da..53205a9 100644 --- a/arch/arm/mach-imx/imx51.c +++ b/arch/arm/mach-imx/imx51.c @@ -269,7 +269,7 @@ void imx51_init_lowlevel(unsigned int cpufreq_mhz) writel(0xffffffff, ccm + MX5_CCM_CCGR6); /* Use PLL 2 for UART's, get 66.5MHz from it */ - writel(0xA5A2A020, ccm + MX5_CCM_CSCMR1); + writel(0xA591A020, ccm + MX5_CCM_CSCMR1); writel(0x00C30321, ccm + MX5_CCM_CSCDR1); /* make sure divider effective */ -- 1.7.3.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox