[U-Boot] [PATCH v2 05/22] dm: sound: Create a uclass for i2s

sjg at google.com sjg at google.com
Fri Dec 14 15:38:55 UTC 2018


The i2s bus is commonly used with audio codecs. It provides a way to
stream digital data sychronously in both directions. U-Boot only supports
audio output, so this uclass is very simple, with a single tx_data()
method.

Add a uclass and a test for i2s.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 arch/sandbox/dts/test.dts       |  7 +++-
 arch/sandbox/include/asm/test.h | 10 ++++++
 drivers/sound/Makefile          |  1 +
 drivers/sound/i2s-uclass.c      | 25 ++++++++++++++
 drivers/sound/sandbox.c         | 60 ++++++++++++++++++++++++++++++++-
 include/dm/uclass-id.h          |  1 +
 include/i2s.h                   | 32 +++++++++++++++---
 test/dm/Makefile                |  1 +
 test/dm/i2s.c                   | 32 ++++++++++++++++++
 9 files changed, 163 insertions(+), 6 deletions(-)
 create mode 100644 drivers/sound/i2s-uclass.c
 create mode 100644 test/dm/i2s.c

Applied to u-boot-dm/master


More information about the U-Boot mailing list