All of lore.kernel.org
 help / color / mirror / Atom feed
* Best way to add subdev that doesn't use I2C or SPI?
@ 2014-06-21  1:58 Devin Heitmueller
  2014-06-21  2:50 ` Antti Palosaari
  2014-06-21 11:17 ` Andy Walls
  0 siblings, 2 replies; 6+ messages in thread
From: Devin Heitmueller @ 2014-06-21  1:58 UTC (permalink / raw)
  To: Linux Media Mailing List

Hello,

I'm in the process of adding support for a new video decoder.  However
in this case it's an IP block on a USB bridge as opposed to the
typical case which is an I2C device.  Changing registers for the
subdev is the same mechanism as changing registers in the rest of the
bridge (a specific region of registers is allocated for the video
decoder).

Doing a subdev driver seems like the logical approach to keep the
video decoder related routines separate from the rest of the bridge.
It also allows the reuse of the code if we find other cases where the
IP block is present in other devices.  However I'm not really sure
what the mechanics are for creating a subdev that isn't really an I2C
device.

I think we've had similar cases with the Conexant parts where the Mako
was actually a block on the main bridge (i.e. cx23885/7/8, cx231xx).
But in that case the cx25840 subdev just issues I2C commands and
leverages the fact that you can talk to the parts over I2C even though
they're really on-chip.

Are there any other cases today where we have a subdev that uses
traditional register access routines provided by the bridge driver to
read/write the video decoder registers?  In this case I would want to
reuse the register read/write routines provided by the bridge, which
ultimately are send as USB control messages.

Any suggestions welcome (and in particular if you can point me to an
example case where this is already being done).

Thanks in advance,

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

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

end of thread, other threads:[~2014-06-22 21:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-21  1:58 Best way to add subdev that doesn't use I2C or SPI? Devin Heitmueller
2014-06-21  2:50 ` Antti Palosaari
2014-06-22 21:31   ` Mauro Carvalho Chehab
2014-06-21 11:17 ` Andy Walls
2014-06-21 14:17   ` Andy Walls
2014-06-21 20:45   ` Steven Toth

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.