Skip to content

Commit

Permalink
soundwire: cadence: add BTP/BRA helpers to format data
Browse files Browse the repository at this point in the history
The Cadence IP expects a specific format (detailed in the
Documentation). Add helpers to copy the data into the DMA buffer.

The crc8 table is for now only used by the Cadence driver. This table
might be moved to a common module at a later point if needed by other
controller implementations.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Tested-by: shumingf@realtek.com
Link: https://lore.kernel.org/r/20250227140615.8147-10-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Pierre-Louis Bossart authored and Vinod Koul committed Mar 10, 2025
1 parent 8e4a239 commit 8eb5d7a
Show file tree
Hide file tree
Showing 3 changed files with 655 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soundwire/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ config SOUNDWIRE_AMD

config SOUNDWIRE_CADENCE
tristate
select CRC8

config SOUNDWIRE_INTEL
tristate "Intel SoundWire Master driver"
Expand Down
Loading

0 comments on commit 8eb5d7a

Please sign in to comment.