[U-Boot] [PATCH 00/33] x86: Add support for sound

Simon Glass sjg at chromium.org
Tue Jan 22 01:12:37 UTC 2019


At present no x86 boards support sound. This series adds several options:

   - legacy beep
   - Intel HDA
   - I2S with codec

These are enabled on coreboot, link and samus, respectively.

A number of related patches are included to make the above work.


Simon Glass (33):
  log: Add a Kconfig option to set the default log level
  log: Add documentation for convenience functions
  log: Allow #define LOG_DEBUG to enable logging in a file
  dm: syscon: Don't require a regmap for PCI devices
  i2c: designware: Add error checking on init
  pci: Don't export pci_hose_config_device()
  pci: Fix comment in struct pci_child_platdata
  gpio: Show inactive GPIOs when explicitly requested
  gpio: Use case-insentive matching on the GPIO name
  pci: Add IDs for Intel high-definition audio
  sandbox: Add a note about the growing state_info struct
  x86: Adjust I/O macros to work on 64-bit machines
  x86: samus: Increase the pre-reloc memory
  x86: link: Increase malloc size and decrease code size
  x86: sandbox: pch: Add a CONFIG option for PCH
  sandbox: pch: Add a test for the PCH uclass
  pch: Add ioctl support
  x86: ivybridge: Add a way to get the HDA config setting
  sound: Mark sound_setup() as optional
  sound: Add uclass operations for beeping
  sound: Add support for Intel HDA
  sandbox: sound: Silence sound for testing
  sound: x86: link: Add sound support
  sound: x86: Add beeping support in i8254
  sound: Add a driver for the i8254 beep
  x86: coreboot: Enable the beeper sound driver
  x86: broadwell: Add support for the ADSP
  x86: broadwell: Don't bother probing the PCH for pinctrl
  x86: broadwell: Add support for serial I/O devices
  x86: sound: Add support for broadwell I2S
  sound: Add a driver for RealTek RT5677
  x86: sound: Add sound support for samus (broadwell)
  x86: Add sound support for samus

 arch/Kconfig                                  |    2 +
 arch/sandbox/dts/test.dts                     |    5 +
 arch/sandbox/include/asm/state.h              |    9 +
 arch/sandbox/include/asm/test.h               |   24 +
 arch/x86/cpu/broadwell/Makefile               |    1 +
 arch/x86/cpu/broadwell/adsp.c                 |  157 ++
 arch/x86/cpu/broadwell/pch.c                  |  110 ++
 arch/x86/cpu/broadwell/pinctrl_broadwell.c    |    3 +-
 arch/x86/cpu/ivybridge/Kconfig                |    1 +
 arch/x86/cpu/ivybridge/bd82x6x.c              |   19 +
 arch/x86/cpu/ivybridge/northbridge.c          |   27 +
 arch/x86/dts/chromebook_link.dts              |   91 ++
 arch/x86/dts/chromebook_samus.dts             |   49 +-
 arch/x86/include/asm/arch-broadwell/adsp.h    |   46 +
 arch/x86/include/asm/arch-broadwell/pch.h     |    3 +
 arch/x86/include/asm/arch-broadwell/rcb.h     |    2 +
 .../x86/include/asm/arch-broadwell/serialio.h |   82 +
 .../include/asm/arch-ivybridge/sandybridge.h  |    3 +
 arch/x86/include/asm/i8254.h                  |   18 +
 arch/x86/include/asm/io.h                     |   16 +-
 arch/x86/lib/i8254.c                          |   36 +-
 cmd/gpio.c                                    |   10 +-
 common/Kconfig                                |    9 +
 common/log.c                                  |    2 +-
 configs/chromebook_link_defconfig             |    5 +-
 configs/chromebook_samus_defconfig            |   11 +-
 configs/coreboot_defconfig                    |    3 +
 doc/README.log                                |   40 +
 doc/device-tree-bindings/sound/intel-hda.txt  |   26 +
 drivers/Kconfig                               |    2 +
 drivers/Makefile                              |    2 +-
 drivers/core/syscon-uclass.c                  |    4 +
 drivers/i2c/designware_i2c.c                  |   29 +-
 drivers/pch/Kconfig                           |    9 +
 drivers/pch/Makefile                          |    1 +
 drivers/pch/pch-uclass.c                      |   10 +
 drivers/pch/sandbox_pch.c                     |   86 +
 drivers/pci/pci.c                             |    7 +-
 drivers/sound/Kconfig                         |   40 +
 drivers/sound/Makefile                        |    5 +
 drivers/sound/broadwell_i2s.c                 |  306 ++++
 drivers/sound/broadwell_i2s.h                 |  301 ++++
 drivers/sound/broadwell_sound.c               |   65 +
 drivers/sound/hda_codec.c                     |  545 +++++++
 drivers/sound/i8254_beep.c                    |   38 +
 drivers/sound/ivybridge_sound.c               |  137 ++
 drivers/sound/rt5677.c                        |  334 ++++
 drivers/sound/rt5677.h                        | 1428 +++++++++++++++++
 drivers/sound/sandbox.c                       |   69 +-
 drivers/sound/sound-uclass.c                  |   36 +-
 include/dt-bindings/sound/azalia.h            |   29 +
 include/hda_codec.h                           |  103 ++
 include/log.h                                 |    7 +-
 include/pch.h                                 |   51 +-
 include/pci.h                                 |    8 +-
 include/pci_ids.h                             |    4 +
 include/sound.h                               |   46 +-
 test/dm/Makefile                              |    1 +
 test/dm/pch.c                                 |   55 +
 test/dm/sound.c                               |   21 +
 60 files changed, 4531 insertions(+), 58 deletions(-)
 create mode 100644 arch/x86/cpu/broadwell/adsp.c
 create mode 100644 arch/x86/include/asm/arch-broadwell/adsp.h
 create mode 100644 arch/x86/include/asm/arch-broadwell/serialio.h
 create mode 100644 doc/device-tree-bindings/sound/intel-hda.txt
 create mode 100644 drivers/pch/Kconfig
 create mode 100644 drivers/pch/sandbox_pch.c
 create mode 100644 drivers/sound/broadwell_i2s.c
 create mode 100644 drivers/sound/broadwell_i2s.h
 create mode 100644 drivers/sound/broadwell_sound.c
 create mode 100644 drivers/sound/hda_codec.c
 create mode 100644 drivers/sound/i8254_beep.c
 create mode 100644 drivers/sound/ivybridge_sound.c
 create mode 100644 drivers/sound/rt5677.c
 create mode 100644 drivers/sound/rt5677.h
 create mode 100644 include/dt-bindings/sound/azalia.h
 create mode 100644 include/hda_codec.h
 create mode 100644 test/dm/pch.c

-- 
2.20.1.321.g9e740568ce-goog



More information about the U-Boot mailing list