Thread (17 messages) flat view 17 messages, 3 authors, 2012-07-09

Clock problems in i.MX27 Visstrim M10 (linux-3.5-rc5).

From: javier Martin <hidden>
Date: 2012-07-04 07:48:13

Hi,

On 3 July 2012 15:13, Fabio Estevam [off-list ref] wrote:
Hi Javier,

On Tue, Jul 3, 2012 at 8:09 AM, javier Martin
[off-list ref] wrote:
quoted
Hi,
I've found the following problems in linux-3.5-rc5
(6887a4131da3adaab011613776d865f4bcfb5678) in our Visstrim M10 board:
Could you please try the two attached patches?

They should fix the dma and mx2-camera issues.

I will try to look at the ssi problem, but my mx27pdk board still does
not have audio supported.

Regards,
thanks for the patches. The first one solves the issue with the audio.
Now I can do an aplay properly too.

However, second patch for the mx2-camera seems that it's not right
yet. I get a timeout here:

static int mx27_camera_emma_prp_reset(struct mx2_camera_dev *pcdev)
{
	u32 cntl;
	int count = 0;

	cntl = readl(pcdev->base_emma + PRP_CNTL);
	writel(PRP_CNTL_SWRST, pcdev->base_emma + PRP_CNTL);
	while (count++ < 100) {
		if (!(readl(pcdev->base_emma + PRP_CNTL) & PRP_CNTL_SWRST))
			return 0;
		barrier();
		udelay(1);
	}

	return -ETIMEDOUT;
}

Keeping this in mind I infer that probably emma clocks have not been
properly enabled.


-- 
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help