On Fri, Jun 08, 2012 at 11:02:31AM +0200, javier Martin wrote: > Hi, > I've checked this matter with a colleague and we have several reasons > to doubt that the i.MX27 and the i.MX53 can share the same driver for > their Video Processing Units (VPU): > > 1. The VPU in the i.MX27 is a "codadx6" with support for H.264, H.263 > and MPEG4-Part2 [1]. Provided Freescale is using the same IP provider > for i.MX53 and looking at the features that the VPU in this SoC > supports (1080p resolution, VP8) we are probably dealing with a "coda > 9 series" [2]. > > 2. An important part of the functionality for controlling the > "codadx6" is implemented using software messages between the main CPU > and the VPU, this means that a different firmware loaded in the VPU > can substantially change the way it is handled. As previously stated, > i.MX27 and i.MX53 have different IP blocks and because of this, those > messages will be very different. > > For these reasons we suggest that we carry on developing different > drivers for the i.MX27 and the i.MX53. Though it's true that both > drivers could share some overhead given by the use of mem2mem > framework, I don't think this is a good enough reason the merge them. > > By the way, driver for the VPU in the i.MX27 will be called > "codadx6"[3], I suggest you call your driver "coda9" to avoid > confusion. Well, our driver works on i.MX27 and i.MX5. Yes, it needs some abstraction for different register layouts and different features, but the cores behave sufficiently similar that it makes sense to share the code in a single driver. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html