ASoC: Intel/SOF: add initial support for Tiger Lake and Elhkart Lake
Subsystems (4)
cover ASoC: Intel/SOF: add initial support for Tiger Lake and Elhkart Lake
Add initial/minimal support for PCI enumeration, hardware descriptions and ACPI match tables.
Follow-up patches will be provided to enable multi-core support (requires new IPC calls). Machine drivers will be provided at a later point as well when there are fewer configurations. And last HDMI work is required to handle the 4 converters (which may be combined with the transition from hdac_hdmi to patch_hdmi already mentioned by Kai).
Pan Xiuli (4):
ASoC: Intel: common: add ACPI matching tables for Tiger Lake
ASoC: SOF: Intel: initial support for Tiger Lake.
ASoC: Intel: common: add ACPI matching tables for EHL
ASoC: SOF: Intel: initial support for Elkhart Lake
include/sound/soc-acpi-intel-match.h | 2 + sound/soc/intel/common/Makefile | 1 + .../intel/common/soc-acpi-intel-ehl-match.c | 18 ++++++++ .../intel/common/soc-acpi-intel-tgl-match.c | 24 ++++++++++ sound/soc/sof/intel/Kconfig | 32 ++++++++++++++ sound/soc/sof/intel/cnl.c | 32 ++++++++++++++ sound/soc/sof/intel/hda.h | 2 + sound/soc/sof/sof-pci-dev.c | 44 +++++++++++++++++++ 8 files changed, 155 insertions(+) create mode 100644 sound/soc/intel/common/soc-acpi-intel-ehl-match.c create mode 100644 sound/soc/intel/common/soc-acpi-intel-tgl-match.c
Signature · 1 line
2.20.1
PATCH 1/4 ASoC: Intel: common: add ACPI matching tables for Tiger Lake
From: Pan Xiuli <[email protected]>
Initial support for TGL w/ RT1308
--- include/sound/soc-acpi-intel-match.h | 1 + sound/soc/intel/common/Makefile | 1 + .../intel/common/soc-acpi-intel-tgl-match.c | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 sound/soc/intel/common/soc-acpi-intel-tgl-match.c
include/sound/soc-acpi-intel-match.h +1 -0
@@ -25,6 +25,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_bxt_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[]; +extern struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[];/* * generic table used for HDA codec-based platforms, possibly with
sound/soc/intel/common/Makefile +1 -0
@@ -8,6 +8,7 @@ snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-m soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \ soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \ soc-acpi-intel-cnl-match.o soc-acpi-intel-icl-match.o \ + soc-acpi-intel-tgl-match.o \ soc-acpi-intel-hda-match.o obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
sound/soc/intel/common/soc-acpi-intel-tgl-match.c new file +24 -0
@@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* soc-apci-intel-tgl-match.c - tables and support for ICL ACPI enumeration. +* +* Copyright (c) 2019, Intel Corporation. +* +*/ + +#include <sound/soc-acpi.h> +#include <sound/soc-acpi-intel-match.h> + +struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[] = { + { + .id ="10EC1308" , + .drv_name ="tgl_rt1308" , + .sof_fw_filename ="sof-tgl.ri" , + .sof_tplg_filename ="sof-tgl-rt1308.tplg" , + }, + {}, +}; +EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_tgl_machines); + +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("Intel Common ACPI Match module" );
Signature · 1 line
2.20.1
Mark Brown
maintainerRe: [PATCH 1/4] ASoC: Intel: common: add ACPI matching tables for Tiger Lake
sound/soc/intel/common/soc-acpi-intel-tgl-match.c line 3
Quoted 7 lines · Pierre-Louis Bossart
index 000000000000..57a6298d6dca
sound/soc/intel/common/soc-acpi-intel-tgl-match.c new file +3
-0@@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* soc-apci-intel-tgl-match.c - tables and support for ICL ACPI enumeration.
Please make the whole header C++ style so things look more intentional.
Mark Brown
maintainerApplied "ASoC: Intel: common: add ACPI matching tables for Tiger Lake" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: common: add ACPI matching tables for Tiger Lake
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
5f7af9ecebce7fab78b0237b0cd998f2ed3de03cMon Sep 17 00:00:00 2001
From: Pan Xiuli <[email protected]>
Date: Thu, 15 Aug 2019 10:57:46 -0500
Subject: [PATCH] ASoC: Intel: common: add ACPI matching tables for Tiger Lake
Initial support for TGL w/ RT1308
--- include/sound/soc-acpi-intel-match.h | 1 + sound/soc/intel/common/Makefile | 1 + .../intel/common/soc-acpi-intel-tgl-match.c | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 sound/soc/intel/common/soc-acpi-intel-tgl-match.c
include/sound/soc-acpi-intel-match.h +1 -0
@@ -25,6 +25,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_bxt_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[]; +extern struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[];/* * generic table used for HDA codec-based platforms, possibly with
sound/soc/intel/common/Makefile +1 -0
@@ -8,6 +8,7 @@ snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-m soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \ soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \ soc-acpi-intel-cnl-match.o soc-acpi-intel-icl-match.o \ + soc-acpi-intel-tgl-match.o \ soc-acpi-intel-hda-match.o obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
sound/soc/intel/common/soc-acpi-intel-tgl-match.c new file +24 -0
@@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* soc-apci-intel-tgl-match.c - tables and support for ICL ACPI enumeration. +* +* Copyright (c) 2019, Intel Corporation. +* +*/ + +#include <sound/soc-acpi.h> +#include <sound/soc-acpi-intel-match.h> + +struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[] = { + { + .id ="10EC1308" , + .drv_name ="tgl_rt1308" , + .sof_fw_filename ="sof-tgl.ri" , + .sof_tplg_filename ="sof-tgl-rt1308.tplg" , + }, + {}, +}; +EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_tgl_machines); + +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("Intel Common ACPI Match module" );
Signature · 1 line
2.20.1
PATCH 2/4 ASoC: SOF: Intel: initial support for Tiger Lake.
In reply to Pierre-Louis BossartFrom: Pan Xiuli <[email protected]>
Add Kconfig, PCI ID and chip info for Tiger Lake platform.
Note that the core mask is different from previous platforms, only Core0 can be controlled by the host. Additional patches will be required for multi-core functionality.
--- sound/soc/sof/intel/Kconfig | 16 ++++++++++++++++ sound/soc/sof/intel/cnl.c | 16 ++++++++++++++++ sound/soc/sof/intel/hda.h | 1 + sound/soc/sof/sof-pci-dev.c | 22 ++++++++++++++++++++++ 4 files changed, 55 insertions(+)
sound/soc/sof/intel/Kconfig +16 -0
@@ -27,6 +27,7 @@ config SND_SOC_SOF_INTEL_PCI select SND_SOC_SOF_ICELAKE if SND_SOC_SOF_ICELAKE_SUPPORT select SND_SOC_SOF_COMETLAKE_LP if SND_SOC_SOF_COMETLAKE_LP_SUPPORT select SND_SOC_SOF_COMETLAKE_H if SND_SOC_SOF_COMETLAKE_H_SUPPORT + select SND_SOC_SOF_TIGERLAKE if SND_SOC_SOF_TIGERLAKE_SUPPORT help This option is not user-selectable but automagically handled by 'select' statements at a higher level
@@ -212,6 +213,21 @@ config SND_SOC_SOF_COMETLAKE_H_SUPPORT Say Y if you have such a device. If unsure select "N". +config SND_SOC_SOF_TIGERLAKE_SUPPORT + bool "SOF support for Tigerlake" + help + This adds support for Sound Open Firmware for Intel(R) platforms + using the Tigerlake processors. + Say Y if you have such a device. + If unsure select "N". + +config SND_SOC_SOF_TIGERLAKE + tristate + select SND_SOC_SOF_HDA_COMMON + help + This option is not user-selectable but automagically handled by + 'select' statements at a higher level + config SND_SOC_SOF_HDA_COMMON tristate select SND_SOC_SOF_INTEL_COMMON
sound/soc/sof/intel/cnl.c +16 -0
@@ -295,3 +295,19 @@ const struct sof_intel_dsp_desc icl_chip_info = { .ssp_base_offset = CNL_SSP_BASE_OFFSET, };EXPORT_SYMBOL (icl_chip_info); + +const struct sof_intel_dsp_desc tgl_chip_info = { +/* Tigerlake */ + .cores_num =4 , + .init_core_mask =1 , + .cores_mask =HDA_DSP_CORE_MASK (0 ), + .ipc_req =CNL_DSP_REG_HIPCIDR , + .ipc_req_mask =CNL_DSP_REG_HIPCIDR_BUSY , + .ipc_ack =CNL_DSP_REG_HIPCIDA , + .ipc_ack_mask =CNL_DSP_REG_HIPCIDA_DONE , + .ipc_ctl =CNL_DSP_REG_HIPCCTL , + .rom_init_timeout =300 , + .ssp_count =ICL_SSP_COUNT , + .ssp_base_offset =CNL_SSP_BASE_OFFSET , +}; +EXPORT_SYMBOL (tgl_chip_info);
sound/soc/sof/intel/hda.h +1 -0
@@ -599,5 +599,6 @@ extern const struct sof_intel_dsp_desc apl_chip_info;extern const struct sof_intel_dsp_desc cnl_chip_info;extern const struct sof_intel_dsp_desc skl_chip_info;extern const struct sof_intel_dsp_desc icl_chip_info; +extern const struct sof_intel_dsp_desc tgl_chip_info;#endif
sound/soc/sof/sof-pci-dev.c +22 -0
@@ -203,6 +203,24 @@ static const struct sof_dev_desc kbl_desc = { };#endif +#if IS_ENABLED (CONFIG_SND_SOC_SOF_TIGERLAKE ) +static const struct sof_dev_desc tgl_desc = { + .machines = snd_soc_acpi_intel_tgl_machines, + .resindex_lpe_base =0 , + .resindex_pcicfg_base =-1 , + .resindex_imr_base =-1 , + .irqindex_host_ipc =-1 , + .resindex_dma_base =-1 , + .chip_info = &tgl_chip_info, + .default_fw_path ="intel/sof" , + .default_tplg_path ="intel/sof-tplg" , + .nocodec_fw_filename ="sof-tgl.ri" , + .nocodec_tplg_filename ="sof-tgl-nocodec.tplg" , + .ops = &sof_cnl_ops, + .arch_ops = &sof_xtensa_arch_ops +}; +#endif +static const struct dev_pm_ops sof_pci_pm = { SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) SET_RUNTIME_PM_OPS(snd_sof_runtime_suspend, snd_sof_runtime_resume,
@@ -384,6 +402,10 @@ static const struct pci_device_id sof_pci_ids[] = { #if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_H) { PCI_DEVICE(0x8086, 0x06c8), .driver_data = (unsigned long)&cml_desc}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE) + { PCI_DEVICE(0x8086, 0xa0c8), + .driver_data = (unsigned long)&tgl_desc}, #endif { 0, } };
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: SOF: Intel: initial support for Tiger Lake." to the asoc tree
The patch
ASoC: SOF: Intel: initial support for Tiger Lake.
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
1205c81edd5ef220ca32318572e499b4b180b1f3Mon Sep 17 00:00:00 2001
From: Pan Xiuli <[email protected]>
Date: Thu, 15 Aug 2019 10:57:47 -0500
Subject: [PATCH] ASoC: SOF: Intel: initial support for Tiger Lake.
Add Kconfig, PCI ID and chip info for Tiger Lake platform.
Note that the core mask is different from previous platforms, only Core0 can be controlled by the host. Additional patches will be required for multi-core functionality.
--- sound/soc/sof/intel/Kconfig | 16 ++++++++++++++++ sound/soc/sof/intel/cnl.c | 16 ++++++++++++++++ sound/soc/sof/intel/hda.h | 1 + sound/soc/sof/sof-pci-dev.c | 22 ++++++++++++++++++++++ 4 files changed, 55 insertions(+)
sound/soc/sof/intel/Kconfig +16 -0
@@ -27,6 +27,7 @@ config SND_SOC_SOF_INTEL_PCI select SND_SOC_SOF_ICELAKE if SND_SOC_SOF_ICELAKE_SUPPORT select SND_SOC_SOF_COMETLAKE_LP if SND_SOC_SOF_COMETLAKE_LP_SUPPORT select SND_SOC_SOF_COMETLAKE_H if SND_SOC_SOF_COMETLAKE_H_SUPPORT + select SND_SOC_SOF_TIGERLAKE if SND_SOC_SOF_TIGERLAKE_SUPPORT help This option is not user-selectable but automagically handled by 'select' statements at a higher level
@@ -212,6 +213,21 @@ config SND_SOC_SOF_COMETLAKE_H_SUPPORT Say Y if you have such a device. If unsure select "N". +config SND_SOC_SOF_TIGERLAKE_SUPPORT + bool "SOF support for Tigerlake" + help + This adds support for Sound Open Firmware for Intel(R) platforms + using the Tigerlake processors. + Say Y if you have such a device. + If unsure select "N". + +config SND_SOC_SOF_TIGERLAKE + tristate + select SND_SOC_SOF_HDA_COMMON + help + This option is not user-selectable but automagically handled by + 'select' statements at a higher level + config SND_SOC_SOF_HDA_COMMON tristate select SND_SOC_SOF_INTEL_COMMON
sound/soc/sof/intel/cnl.c +16 -0
@@ -295,3 +295,19 @@ const struct sof_intel_dsp_desc icl_chip_info = { .ssp_base_offset = CNL_SSP_BASE_OFFSET, };EXPORT_SYMBOL (icl_chip_info); + +const struct sof_intel_dsp_desc tgl_chip_info = { +/* Tigerlake */ + .cores_num =4 , + .init_core_mask =1 , + .cores_mask =HDA_DSP_CORE_MASK (0 ), + .ipc_req =CNL_DSP_REG_HIPCIDR , + .ipc_req_mask =CNL_DSP_REG_HIPCIDR_BUSY , + .ipc_ack =CNL_DSP_REG_HIPCIDA , + .ipc_ack_mask =CNL_DSP_REG_HIPCIDA_DONE , + .ipc_ctl =CNL_DSP_REG_HIPCCTL , + .rom_init_timeout =300 , + .ssp_count =ICL_SSP_COUNT , + .ssp_base_offset =CNL_SSP_BASE_OFFSET , +}; +EXPORT_SYMBOL (tgl_chip_info);
sound/soc/sof/intel/hda.h +1 -0
@@ -599,5 +599,6 @@ extern const struct sof_intel_dsp_desc apl_chip_info;extern const struct sof_intel_dsp_desc cnl_chip_info;extern const struct sof_intel_dsp_desc skl_chip_info;extern const struct sof_intel_dsp_desc icl_chip_info; +extern const struct sof_intel_dsp_desc tgl_chip_info;#endif
sound/soc/sof/sof-pci-dev.c +22 -0
@@ -203,6 +203,24 @@ static const struct sof_dev_desc kbl_desc = { };#endif +#if IS_ENABLED (CONFIG_SND_SOC_SOF_TIGERLAKE ) +static const struct sof_dev_desc tgl_desc = { + .machines = snd_soc_acpi_intel_tgl_machines, + .resindex_lpe_base =0 , + .resindex_pcicfg_base =-1 , + .resindex_imr_base =-1 , + .irqindex_host_ipc =-1 , + .resindex_dma_base =-1 , + .chip_info = &tgl_chip_info, + .default_fw_path ="intel/sof" , + .default_tplg_path ="intel/sof-tplg" , + .nocodec_fw_filename ="sof-tgl.ri" , + .nocodec_tplg_filename ="sof-tgl-nocodec.tplg" , + .ops = &sof_cnl_ops, + .arch_ops = &sof_xtensa_arch_ops +}; +#endif +static const struct dev_pm_ops sof_pci_pm = { SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) SET_RUNTIME_PM_OPS(snd_sof_runtime_suspend, snd_sof_runtime_resume,
@@ -384,6 +402,10 @@ static const struct pci_device_id sof_pci_ids[] = { #if IS_ENABLED(CONFIG_SND_SOC_SOF_COMETLAKE_H) { PCI_DEVICE(0x8086, 0x06c8), .driver_data = (unsigned long)&cml_desc}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE) + { PCI_DEVICE(0x8086, 0xa0c8), + .driver_data = (unsigned long)&tgl_desc}, #endif { 0, } };
Signature · 1 line
2.20.1
PATCH 3/4 ASoC: Intel: common: add ACPI matching tables for EHL
In reply to Pierre-Louis BossartFrom: Pan Xiuli <[email protected]>
There are no upstream machine drivers just yet so just add dummy table for compilation in nocodec-mode.
--- include/sound/soc-acpi-intel-match.h | 1 + sound/soc/intel/common/Makefile | 2 +- .../intel/common/soc-acpi-intel-ehl-match.c | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sound/soc/intel/common/soc-acpi-intel-ehl-match.c
include/sound/soc-acpi-intel-match.h +1 -0
@@ -26,6 +26,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[]; +extern struct snd_soc_acpi_mach snd_soc_acpi_intel_ehl_machines[];/* * generic table used for HDA codec-based platforms, possibly with
sound/soc/intel/common/Makefile +1 -1
@@ -8,7 +8,7 @@ snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-m soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \ soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \ soc-acpi-intel-cnl-match.o soc-acpi-intel-icl-match.o \ - soc-acpi-intel-tgl-match.o \ + soc-acpi-intel-tgl-match.o soc-acpi-intel-ehl-match.o \ soc-acpi-intel-hda-match.o obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
sound/soc/intel/common/soc-acpi-intel-ehl-match.c new file +18 -0
@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* soc-apci-intel-ehl-match.c - tables and support for EHL ACPI enumeration. +* +* Copyright (c) 2019, Intel Corporation. +* +*/ + +#include <sound/soc-acpi.h> +#include <sound/soc-acpi-intel-match.h> + +struct snd_soc_acpi_mach snd_soc_acpi_intel_ehl_machines[] = { + {}, +}; +EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_ehl_machines); + +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("Intel Common ACPI Match module" );
Signature · 1 line
2.20.1
Mark Brown
maintainerRe: [PATCH 3/4] ASoC: Intel: common: add ACPI matching tables for EHL
sound/soc/intel/common/soc-acpi-intel-ehl-match.c line 3
Quoted 5 lines · Pierre-Louis Bossart
+++
b/sound/soc/intel/common/soc-acpi-intel-ehl-match.csound/soc/intel/common/soc-acpi-intel-ehl-match.c new file +3
-0@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* soc-apci-intel-ehl-match.c - tables and support for EHL ACPI enumeration.
Please make the entire comment a C++ one so things look more intentional.
Mark Brown
maintainerApplied "ASoC: Intel: common: add ACPI matching tables for EHL" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: common: add ACPI matching tables for EHL
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
f4ead53241c7dcd2f3130e059cb3dfdec0ec9871Mon Sep 17 00:00:00 2001
From: Pan Xiuli <[email protected]>
Date: Thu, 15 Aug 2019 10:57:48 -0500
Subject: [PATCH] ASoC: Intel: common: add ACPI matching tables for EHL
There are no upstream machine drivers just yet so just add dummy table for compilation in nocodec-mode.
--- include/sound/soc-acpi-intel-match.h | 1 + sound/soc/intel/common/Makefile | 2 +- .../intel/common/soc-acpi-intel-ehl-match.c | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sound/soc/intel/common/soc-acpi-intel-ehl-match.c
include/sound/soc-acpi-intel-match.h +1 -0
@@ -26,6 +26,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[];extern struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_machines[]; +extern struct snd_soc_acpi_mach snd_soc_acpi_intel_ehl_machines[];/* * generic table used for HDA codec-based platforms, possibly with
sound/soc/intel/common/Makefile +1 -1
@@ -8,7 +8,7 @@ snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-m soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \ soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \ soc-acpi-intel-cnl-match.o soc-acpi-intel-icl-match.o \ - soc-acpi-intel-tgl-match.o \ + soc-acpi-intel-tgl-match.o soc-acpi-intel-ehl-match.o \ soc-acpi-intel-hda-match.o obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
sound/soc/intel/common/soc-acpi-intel-ehl-match.c new file +18 -0
@@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* soc-apci-intel-ehl-match.c - tables and support for EHL ACPI enumeration. +* +* Copyright (c) 2019, Intel Corporation. +* +*/ + +#include <sound/soc-acpi.h> +#include <sound/soc-acpi-intel-match.h> + +struct snd_soc_acpi_mach snd_soc_acpi_intel_ehl_machines[] = { + {}, +}; +EXPORT_SYMBOL_GPL (snd_soc_acpi_intel_ehl_machines); + +MODULE_LICENSE ("GPL v2" ); +MODULE_DESCRIPTION ("Intel Common ACPI Match module" );
Signature · 1 line
2.20.1
PATCH 4/4 ASoC: SOF: Intel: initial support for Elkhart Lake
In reply to Pierre-Louis BossartFrom: Pan Xiuli <[email protected]>
Add Kconfig, PCI ID and chip info for EHL platform.
Note that the core mask is different from previous platforms, only Core0 can be controlled by the host. Additional patches will be required for multi-core functionality.
--- sound/soc/sof/intel/Kconfig | 16 ++++++++++++++++ sound/soc/sof/intel/cnl.c | 16 ++++++++++++++++ sound/soc/sof/intel/hda.h | 1 + sound/soc/sof/sof-pci-dev.c | 22 ++++++++++++++++++++++ 4 files changed, 55 insertions(+)
sound/soc/sof/intel/Kconfig +16 -0
@@ -28,6 +28,7 @@ config SND_SOC_SOF_INTEL_PCI select SND_SOC_SOF_COMETLAKE_LP if SND_SOC_SOF_COMETLAKE_LP_SUPPORT select SND_SOC_SOF_COMETLAKE_H if SND_SOC_SOF_COMETLAKE_H_SUPPORT select SND_SOC_SOF_TIGERLAKE if SND_SOC_SOF_TIGERLAKE_SUPPORT + select SND_SOC_SOF_ELKHARTLAKE if SND_SOC_SOF_ELKHARTLAKE_SUPPORT help This option is not user-selectable but automagically handled by 'select' statements at a higher level
@@ -228,6 +229,21 @@ config SND_SOC_SOF_TIGERLAKE This option is not user-selectable but automagically handled by 'select' statements at a higher level +config SND_SOC_SOF_ELKHARTLAKE_SUPPORT + bool "SOF support for ElkhartLake" + help + This adds support for Sound Open Firmware for Intel(R) platforms + using the ElkhartLake processors. + Say Y if you have such a device. + If unsure select "N". + +config SND_SOC_SOF_ELKHARTLAKE + tristate + select SND_SOC_SOF_HDA_COMMON + help + This option is not user-selectable but automagically handled by + 'select' statements at a higher level + config SND_SOC_SOF_HDA_COMMON tristate select SND_SOC_SOF_INTEL_COMMON
sound/soc/sof/intel/cnl.c +16 -0
@@ -311,3 +311,19 @@ const struct sof_intel_dsp_desc tgl_chip_info = { .ssp_base_offset = CNL_SSP_BASE_OFFSET, };EXPORT_SYMBOL (tgl_chip_info); + +const struct sof_intel_dsp_desc ehl_chip_info = { +/* Elkhartlake */ + .cores_num =4 , + .init_core_mask =1 , + .cores_mask =HDA_DSP_CORE_MASK (0 ), + .ipc_req =CNL_DSP_REG_HIPCIDR , + .ipc_req_mask =CNL_DSP_REG_HIPCIDR_BUSY , + .ipc_ack =CNL_DSP_REG_HIPCIDA , + .ipc_ack_mask =CNL_DSP_REG_HIPCIDA_DONE , + .ipc_ctl =CNL_DSP_REG_HIPCCTL , + .rom_init_timeout =300 , + .ssp_count =ICL_SSP_COUNT , + .ssp_base_offset =CNL_SSP_BASE_OFFSET , +}; +EXPORT_SYMBOL (ehl_chip_info);
sound/soc/sof/intel/hda.h +1 -0
@@ -600,5 +600,6 @@ extern const struct sof_intel_dsp_desc cnl_chip_info;extern const struct sof_intel_dsp_desc skl_chip_info;extern const struct sof_intel_dsp_desc icl_chip_info;extern const struct sof_intel_dsp_desc tgl_chip_info; +extern const struct sof_intel_dsp_desc ehl_chip_info;#endif
sound/soc/sof/sof-pci-dev.c +22 -0
@@ -221,6 +221,24 @@ static const struct sof_dev_desc tgl_desc = { };#endif +#if IS_ENABLED (CONFIG_SND_SOC_SOF_ELKHARTLAKE ) +static const struct sof_dev_desc ehl_desc = { + .machines = snd_soc_acpi_intel_ehl_machines, + .resindex_lpe_base =0 , + .resindex_pcicfg_base =-1 , + .resindex_imr_base =-1 , + .irqindex_host_ipc =-1 , + .resindex_dma_base =-1 , + .chip_info = &ehl_chip_info, + .default_fw_path ="intel/sof" , + .default_tplg_path ="intel/sof-tplg" , + .nocodec_fw_filename ="sof-ehl.ri" , + .nocodec_tplg_filename ="sof-ehl-nocodec.tplg" , + .ops = &sof_cnl_ops, + .arch_ops = &sof_xtensa_arch_ops +}; +#endif +static const struct dev_pm_ops sof_pci_pm = { SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) SET_RUNTIME_PM_OPS(snd_sof_runtime_suspend, snd_sof_runtime_resume,
@@ -406,6 +424,10 @@ static const struct pci_device_id sof_pci_ids[] = { #if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE) { PCI_DEVICE(0x8086, 0xa0c8), .driver_data = (unsigned long)&tgl_desc}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_ELKHARTLAKE) + { PCI_DEVICE(0x8086, 0x4b55), + .driver_data = (unsigned long)&ehl_desc}, #endif { 0, } };
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: SOF: Intel: initial support for Elkhart Lake" to the asoc tree
The patch
ASoC: SOF: Intel: initial support for Elkhart Lake
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
6173269038e98408c27cfb438ff07d463fbd0b33Mon Sep 17 00:00:00 2001
From: Pan Xiuli <[email protected]>
Date: Thu, 15 Aug 2019 10:57:49 -0500
Subject: [PATCH] ASoC: SOF: Intel: initial support for Elkhart Lake
Add Kconfig, PCI ID and chip info for EHL platform.
Note that the core mask is different from previous platforms, only Core0 can be controlled by the host. Additional patches will be required for multi-core functionality.
--- sound/soc/sof/intel/Kconfig | 16 ++++++++++++++++ sound/soc/sof/intel/cnl.c | 16 ++++++++++++++++ sound/soc/sof/intel/hda.h | 1 + sound/soc/sof/sof-pci-dev.c | 22 ++++++++++++++++++++++ 4 files changed, 55 insertions(+)
sound/soc/sof/intel/Kconfig +16 -0
@@ -28,6 +28,7 @@ config SND_SOC_SOF_INTEL_PCI select SND_SOC_SOF_COMETLAKE_LP if SND_SOC_SOF_COMETLAKE_LP_SUPPORT select SND_SOC_SOF_COMETLAKE_H if SND_SOC_SOF_COMETLAKE_H_SUPPORT select SND_SOC_SOF_TIGERLAKE if SND_SOC_SOF_TIGERLAKE_SUPPORT + select SND_SOC_SOF_ELKHARTLAKE if SND_SOC_SOF_ELKHARTLAKE_SUPPORT help This option is not user-selectable but automagically handled by 'select' statements at a higher level
@@ -228,6 +229,21 @@ config SND_SOC_SOF_TIGERLAKE This option is not user-selectable but automagically handled by 'select' statements at a higher level +config SND_SOC_SOF_ELKHARTLAKE_SUPPORT + bool "SOF support for ElkhartLake" + help + This adds support for Sound Open Firmware for Intel(R) platforms + using the ElkhartLake processors. + Say Y if you have such a device. + If unsure select "N". + +config SND_SOC_SOF_ELKHARTLAKE + tristate + select SND_SOC_SOF_HDA_COMMON + help + This option is not user-selectable but automagically handled by + 'select' statements at a higher level + config SND_SOC_SOF_HDA_COMMON tristate select SND_SOC_SOF_INTEL_COMMON
sound/soc/sof/intel/cnl.c +16 -0
@@ -311,3 +311,19 @@ const struct sof_intel_dsp_desc tgl_chip_info = { .ssp_base_offset = CNL_SSP_BASE_OFFSET, };EXPORT_SYMBOL (tgl_chip_info); + +const struct sof_intel_dsp_desc ehl_chip_info = { +/* Elkhartlake */ + .cores_num =4 , + .init_core_mask =1 , + .cores_mask =HDA_DSP_CORE_MASK (0 ), + .ipc_req =CNL_DSP_REG_HIPCIDR , + .ipc_req_mask =CNL_DSP_REG_HIPCIDR_BUSY , + .ipc_ack =CNL_DSP_REG_HIPCIDA , + .ipc_ack_mask =CNL_DSP_REG_HIPCIDA_DONE , + .ipc_ctl =CNL_DSP_REG_HIPCCTL , + .rom_init_timeout =300 , + .ssp_count =ICL_SSP_COUNT , + .ssp_base_offset =CNL_SSP_BASE_OFFSET , +}; +EXPORT_SYMBOL (ehl_chip_info);
sound/soc/sof/intel/hda.h +1 -0
@@ -600,5 +600,6 @@ extern const struct sof_intel_dsp_desc cnl_chip_info;extern const struct sof_intel_dsp_desc skl_chip_info;extern const struct sof_intel_dsp_desc icl_chip_info;extern const struct sof_intel_dsp_desc tgl_chip_info; +extern const struct sof_intel_dsp_desc ehl_chip_info;#endif
sound/soc/sof/sof-pci-dev.c +22 -0
@@ -221,6 +221,24 @@ static const struct sof_dev_desc tgl_desc = { };#endif +#if IS_ENABLED (CONFIG_SND_SOC_SOF_ELKHARTLAKE ) +static const struct sof_dev_desc ehl_desc = { + .machines = snd_soc_acpi_intel_ehl_machines, + .resindex_lpe_base =0 , + .resindex_pcicfg_base =-1 , + .resindex_imr_base =-1 , + .irqindex_host_ipc =-1 , + .resindex_dma_base =-1 , + .chip_info = &ehl_chip_info, + .default_fw_path ="intel/sof" , + .default_tplg_path ="intel/sof-tplg" , + .nocodec_fw_filename ="sof-ehl.ri" , + .nocodec_tplg_filename ="sof-ehl-nocodec.tplg" , + .ops = &sof_cnl_ops, + .arch_ops = &sof_xtensa_arch_ops +}; +#endif +static const struct dev_pm_ops sof_pci_pm = { SET_SYSTEM_SLEEP_PM_OPS(snd_sof_suspend, snd_sof_resume) SET_RUNTIME_PM_OPS(snd_sof_runtime_suspend, snd_sof_runtime_resume,
@@ -406,6 +424,10 @@ static const struct pci_device_id sof_pci_ids[] = { #if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE) { PCI_DEVICE(0x8086, 0xa0c8), .driver_data = (unsigned long)&tgl_desc}, +#endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_ELKHARTLAKE) + { PCI_DEVICE(0x8086, 0x4b55), + .driver_data = (unsigned long)&ehl_desc}, #endif { 0, } };
Signature · 1 line
2.20.1