Thread (27 messages) 27 messages, 5 authors, 2019-07-25

Re: [alsa-devel] [PATCH 09/10] ASoC: fsl_sai: Add support for SAI new version

From: Daniel Baluta <hidden>
Date: 2019-07-25 06:06:42
Also in: alsa-devel, lkml

On Thu, Jul 25, 2019 at 2:32 AM Nicolin Chen [off-list ref] wrote:
On Mon, Jul 22, 2019 at 03:48:32PM +0300, Daniel Baluta wrote:
quoted
New IP version introduces Version ID and Parameter registers
and optionally added Timestamp feature.

VERID and PARAM registers are placed at the top of registers
address space and some registers are shifted according to
the following table:

Tx/Rx data registers and Tx/Rx FIFO registers keep their
addresses, all other registers are shifted by 8.
Feels like Lucas's approach is neater. I saw that Register TMR
at 0x60 is exceptional during your previous discussion. So can
we apply an offset-cancellation for it exceptionally? I haven't
checked all the registers so this would look okay to me as well
if there are more than just Register TMR.
It is not just TMR exceptional. There are like half of the registers.
Thus: half of the registers need to be shifted and half of them
need to stay the same as in previous version of SAI.

I'm not seeing yet a neater approach. Lucas idea would somehow
work if regmap will allow some sort of translation function applied
over registers before being accessed.

Maybe Mark has some clues here?

thanks,
daniel.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help