Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1552181

Re: [PATCH 1/5] drivers: mmc: sunxi: fix A64 calibration routine

From Maxime Ripard <maxime.ripard@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] drivers: mmc: sunxi: fix A64 calibration routine
Date 2017-01-05 19:00 +0100
Message-ID <sWkut-6eE-9@gated-at.bofh.it> (permalink)
References <sVjTQ-5zO-7@gated-at.bofh.it> <sVjTQ-5zO-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

On Mon, Jan 02, 2017 at 11:03:42PM +0000, Andre Przywara wrote:
> The calibration facility in the A64 MMC block seems to have been
> misunderstood: the result value is not the value to program into the
> delay bits, but is the number of delay cells that result in a full clock
> cycle delay. So this value has to be scaled by the desired phase, which
> we still have to know and program.
> Change the calibration routine to take a phase parameter and scale the
> calibration value accordingly.
> Also introduce sun50i-a64 delay parameters to store the required phase.
> Looking at the BSP kernel the sample delay for anything below HS200 is
> 0, so we go with that value.
> Once the driver supports HS200 and faster modes, we can enter confirmed
> working values in there.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Exactly how that works hasn't been confirmed, and the only thing that
this patch actually do is... nothing, since the delay is always 0. If
and when we get HS400 to work and we know for a fact how the
calibration works, then we'll be able to use it. Until then, we can
just clear those bits.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/5] drivers: mmc: sunxi: fix A64 calibration routine Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-01-05 19:00 +0100
  Re: [PATCH 1/5] drivers: mmc: sunxi: fix A64 calibration routine André Przywara <andre.przywara@arm.com> - 2017-01-09 01:10 +0100

csiph-web