Re: regmap: Question about devices with unequal register sizes

2013-05-06 Thread Mark Brown
On Mon, May 06, 2013 at 06:32:12PM +0200, Daniel Mack wrote: > On 17.02.2013 17:23, Mark Brown wrote: > > The regmap I/O code isn't making any effort to support such devices, the > > hardware is just too crazy to worry about. The best you can do is use > > the no-bus support and open code your ph

Re: regmap: Question about devices with unequal register sizes

2013-05-06 Thread Daniel Mack
On 17.02.2013 17:23, Mark Brown wrote: > On Sat, Feb 16, 2013 at 06:03:51PM +0100, Daniel Mack wrote: > >> The register layout is described on page 26, and they call their >> registers 'subaddresses'. Up to sub-address 0x1c, I see no problem >> mapping that to a simple 8-bit regmap layout, but abo

Re: regmap: Question about devices with unequal register sizes

2013-02-17 Thread Mark Brown
On Sat, Feb 16, 2013 at 06:03:51PM +0100, Daniel Mack wrote: > The register layout is described on page 26, and they call their > registers 'subaddresses'. Up to sub-address 0x1c, I see no problem > mapping that to a simple 8-bit regmap layout, but above that, access > gets trickier because regist

regmap: Question about devices with unequal register sizes

2013-02-16 Thread Daniel Mack
Hi Mark and everyone, I'm writing a driver for an I2C audio codec which has an unusual register map. The datasheet can be found here: http://www.ti.com/lit/gpn/tas5086 The register layout is described on page 26, and they call their registers 'subaddresses'. Up to sub-address 0x1c, I see no pr