diff options
author | Antti Palosaari <crope@iki.fi> | 2011-04-27 20:03:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 08:30:00 -0400 |
commit | 107d7b181ddeaeea92d1aa25f2e1e5a3acb7da40 (patch) | |
tree | 1b18ffd6a3f729b5ea876ef9c0bfeefc6f3975d6 /drivers/media/dvb/frontends/cx24116.h | |
parent | f3b1af19647f375efb96cbd0589f9279caea7023 (diff) |
[media] cx24116: add config option to split firmware download
It is very rare I2C adapter hardware which can provide 32kB I2C write
as one write. Add .i2c_wr_max option to set desired max packet size.
Split transaction to smaller pieces according to that option.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Cc: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24116.h')
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/cx24116.h b/drivers/media/dvb/frontends/cx24116.h index b1b76b47a14c..7d90ab949c03 100644 --- a/drivers/media/dvb/frontends/cx24116.h +++ b/drivers/media/dvb/frontends/cx24116.h | |||
@@ -35,6 +35,9 @@ struct cx24116_config { | |||
35 | 35 | ||
36 | /* Need to set MPEG parameters */ | 36 | /* Need to set MPEG parameters */ |
37 | u8 mpg_clk_pos_pol:0x02; | 37 | u8 mpg_clk_pos_pol:0x02; |
38 | |||
39 | /* max bytes I2C provider can write at once */ | ||
40 | u16 i2c_wr_max; | ||
38 | }; | 41 | }; |
39 | 42 | ||
40 | #if defined(CONFIG_DVB_CX24116) || \ | 43 | #if defined(CONFIG_DVB_CX24116) || \ |