All of lore.kernel.org
 help / color / mirror / Atom feed
* McBSP register question
@ 2008-12-12 18:21 Jason Marini
  2008-12-15  2:38 ` shekhar, chandra
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Marini @ 2008-12-12 18:21 UTC (permalink / raw)
  To: linux-omap

Looking at the latest git head, I see that omap_mcbsp_pollwrite() and
omap_mcbsp_pollread() improperly use readw() and writew() instead of
OMAP_MCBSP_READ() and OMAP_MCBSP_WRITE() in the file
arch/arm/plat-omap/mcbsp.c.

But while I was editing this file, I also saw writes to
OMAP_MCBSP_REG_DXR1, which is #define'd for ARCH_OMAP_34XX and
ARCH_OMAP_24XX to be at an offset of 0x0C.  The McBSP section of the
TRM for the OMAP34xx has no mention of any registers existing at this
offset.

Why is this DXR1 and not just DXR?

-Jason Marini
Associate Software Engineer
Vocollect, Inc.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: McBSP register question
  2008-12-12 18:21 McBSP register question Jason Marini
@ 2008-12-15  2:38 ` shekhar, chandra
  2008-12-15 15:38   ` Jason Marini
  0 siblings, 1 reply; 3+ messages in thread
From: shekhar, chandra @ 2008-12-15  2:38 UTC (permalink / raw)
  To: Jason Marini, linux-omap

----- Original Message ----- 
From: "Jason Marini" <jason.marini@gmail.com>
To: <linux-omap@vger.kernel.org>
Sent: Friday, December 12, 2008 11:51 PM
Subject: McBSP register question


> Looking at the latest git head, I see that omap_mcbsp_pollwrite() and
> omap_mcbsp_pollread() improperly use readw() and writew() instead of
> OMAP_MCBSP_READ() and OMAP_MCBSP_WRITE() in the file
> arch/arm/plat-omap/mcbsp.c.
>
> But while I was editing this file, I also saw writes to
> OMAP_MCBSP_REG_DXR1, which is #define'd for ARCH_OMAP_34XX and
> ARCH_OMAP_24XX to be at an offset of 0x0C.  The McBSP section of the
> TRM for the OMAP34xx has no mention of any registers existing at this
> offset.
>
> Why is this DXR1 and not just DXR?

It so happens that McBSP on 2420 has DXR1 and DXR2 registers, but not on 
omap2430/34xx.
To provide multi-omap suport and avoid ifdefs dxr1/2 and drr1/2 has been 
retained along with dxr and drr  (same code mach-omap2/mcbsp.c supports 2420.) .



>
> -Jason Marini
> Associate Software Engineer
> Vocollect, Inc.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: McBSP register question
  2008-12-15  2:38 ` shekhar, chandra
@ 2008-12-15 15:38   ` Jason Marini
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Marini @ 2008-12-15 15:38 UTC (permalink / raw)
  To: linux-omap

On Sun, Dec 14, 2008 at 9:38 PM, shekhar, chandra <x0044955@ti.com> wrote:
> ----- Original Message ----- From: "Jason Marini" <jason.marini@gmail.com>
> To: <linux-omap@vger.kernel.org>
> Sent: Friday, December 12, 2008 11:51 PM
> Subject: McBSP register question
>
>
>> Looking at the latest git head, I see that omap_mcbsp_pollwrite() and
>> omap_mcbsp_pollread() improperly use readw() and writew() instead of
>> OMAP_MCBSP_READ() and OMAP_MCBSP_WRITE() in the file
>> arch/arm/plat-omap/mcbsp.c.
>>
>> But while I was editing this file, I also saw writes to
>> OMAP_MCBSP_REG_DXR1, which is #define'd for ARCH_OMAP_34XX and
>> ARCH_OMAP_24XX to be at an offset of 0x0C.  The McBSP section of the
>> TRM for the OMAP34xx has no mention of any registers existing at this
>> offset.
>>
>> Why is this DXR1 and not just DXR?
>
> It so happens that McBSP on 2420 has DXR1 and DXR2 registers, but not on
> omap2430/34xx.
> To provide multi-omap suport and avoid ifdefs dxr1/2 and drr1/2 has been
> retained along with dxr and drr  (same code mach-omap2/mcbsp.c supports
> 2420.) .

I suspected as much - thank you for the response.

-Jason

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-15 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 18:21 McBSP register question Jason Marini
2008-12-15  2:38 ` shekhar, chandra
2008-12-15 15:38   ` Jason Marini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.