From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Date: Thu, 21 Jun 2012 00:47:51 +0000 Subject: Re: [PATCH] mmc: sh_mmcif: mmc->f_max heuristic Message-Id: <20120621004751.GB10003@verge.net.au> List-Id: References: <1340171905-12534-1-git-send-email-horms@verge.net.au> <20120620070227.GN20030@verge.net.au> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Brandt, Chris" Cc: Guennadi Liakhovetski , "linux-mmc@vger.kernel.org" , "linux-sh@vger.kernel.org" , Chris Ball , Magnus Damm On Wed, Jun 20, 2012 at 07:56:44AM -0700, Brandt, Chris wrote: > > I would be very happy if someone with access to > > the documentation could shed some further light on this. > > According to the SH7757 manual, setting the CLKDIV[3:0] in the CE_CLK_CTRL register 0xF selects Pck as the bus clock frequency. So, unlike other devices where Pck/2 (CLKDIV[3:0]=0) is the max bus speed, the SH7757 can run at Pck when CLKDIV=0xF. Thanks Chris, please correct me if I am wrong, but that seems to indicate the heuristic is correct. At least for the sh7757 and sh7372.