RE: [PATCH 4/5] OMAP3xx: Add DMA and IRQ definition for McBSP 1 and 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > > >  #define OMAP24XX_DMA_MS                      63      /* S_DMA_62 */
> > > >  #define OMAP242X_DMA_EXT_DMAREQ5     64      /* S_DMA_63 */
> > > >  #define OMAP243X_DMA_EXT_DMAREQ6     64      /* S_DMA_63 */
> > > > +#define OMAP34XX_DMA_MCBSP1_TX               31      /* S_DMA_30 */
> > > > +#define OMAP34XX_DMA_MCBSP1_RX               32      /* S_DMA_31 */
> > > > +#define OMAP34XX_DMA_MCBSP2_TX               33      /* S_DMA_32 */
> > > > +#define OMAP34XX_DMA_MCBSP2_RX               34      /* S_DMA_33 */
> > > >  #define OMAP34XX_DMA_EXT_DMAREQ3     64      /* S_DMA_63 */
> > > >  #define OMAP34XX_DMA_AES2_TX         65      /* S_DMA_64 */
> > > >  #define OMAP34XX_DMA_AES2_RX         66      /* S_DMA_65 */
> > >
> > >  What's the point of this patch? Can't you use OMAP24XX_DMA_MCBSP*
> names?
> >
> > Yes, OMAP24XX_DMA_MCBSP* can be used as they have same values.
> > There is no big difference, but readability. That's the point
> > of this patch.
> > Defining names OMAP34XX_DMA_MCBSP* would let people to
> > write more readable code when specifying things specific for OMAP34XX.
> 
> I was under the impression that one wouldn't be writing code specific to
> OMAP34XX given that it would work with zero modifications on a 24XX as in
> this case. In such a case, would it not make more sense to use the more
> generic name? That was why I left it that way - anything common to a 24XX
> and a 34XX gets the OMAP24XX name.
> 
> __Quote__
> OMAP242X_* for 2420 specific names
> OMAP243X_* for 2430 specific names/names present from 243X onwards
> OMAP24XX_* for names common to all 24XX, 34XX
> OMAP34XX_* for 34XX specific names
> __End_Quote__
> 

One small correction, can we make OMAP34XX as just OMAP3, today we have OMAP3410, 3420, 3430 and OMAP3530, 3503. We also have OMAP2530, but changing OMAP24XX to OMAP2 will be a painful task. Let's just take this up for OMAP3 alone.

Regards,
Khasim


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux