topology: Add cannonlake platform differentiation header

Add differentiation M4 header macros for the Intel Cannonlake platform.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-03-05 13:41:41 +00:00
parent e02f6910d1
commit 21a4c7d71e
3 changed files with 111 additions and 2 deletions

View File

@ -3,5 +3,6 @@ EXTRA_DIST = \
bxt.m4 \
byt.m4 \
cht.m4 \
hsw.m4
hsw.m4 \
cnl.m4

108
topology/dsps/cnl.m4 Normal file
View File

@ -0,0 +1,108 @@
#
# Broxton differentiation for pipelines and components
#
include(`memory.m4')
dnl Memory capabilities for diferent buffer types on Cannonlake
define(`PLATFORM_DAI_MEM_CAP',
MEMCAPS(MEM_CAP_RAM, MEM_CAP_DMA, MEM_CAP_CACHE, MEM_CAP_HP))
define(`PLATFORM_HOST_MEM_CAP',
MEMCAPS(MEM_CAP_RAM, MEM_CAP_DMA, MEM_CAP_CACHE, MEM_CAP_HP))
define(`PLATFORM_PASS_MEM_CAP',
MEMCAPS(MEM_CAP_RAM, MEM_CAP_DMA, MEM_CAP_CACHE, MEM_CAP_HP))
define(`PLATFORM_COMP_MEM_CAP', MEMCAPS(MEM_CAP_RAM, MEM_CAP_CACHE))
# Low Latency PCM Configuration
SectionVendorTuples."pipe_ll_schedule_plat_tokens" {
tokens "sof_sched_tokens"
tuples."word" {
SOF_TKN_SCHED_MIPS "50000"
}
}
SectionData."pipe_ll_schedule_plat" {
tuples "pipe_ll_schedule_plat_tokens"
}
# Media PCM Configuration
SectionVendorTuples."pipe_media_schedule_plat_tokens" {
tokens "sof_sched_tokens"
tuples."word" {
SOF_TKN_SCHED_MIPS "100000"
}
}
SectionData."pipe_media_schedule_plat" {
tuples "pipe_media_schedule_plat_tokens"
}
# Tone Signal Generator Configuration
SectionVendorTuples."pipe_tone_schedule_plat_tokens" {
tokens "sof_sched_tokens"
tuples."word" {
SOF_TKN_SCHED_MIPS "200000"
}
}
SectionData."pipe_tone_schedule_plat" {
tuples "pipe_tone_schedule_plat_tokens"
}
# DAI0 platform playback configuration
SectionVendorTuples."dai0p_plat_tokens" {
tokens "sof_dai_tokens"
tuples."word" {
SOF_TKN_DAI_DMAC "1"
SOF_TKN_DAI_DMAC_CHAN "0"
}
}
SectionData."dai0p_plat_conf" {
tuples "dai0p_plat_tokens"
}
# DAI0 platform capture configuration
SectionVendorTuples."dai0c_plat_tokens" {
tokens "sof_dai_tokens"
tuples."word" {
SOF_TKN_DAI_DMAC "1"
SOF_TKN_DAI_DMAC_CHAN "1"
}
}
SectionData."dai0c_plat_conf" {
tuples "dai0c_plat_tokens"
}
# PCM platform configuration
SectionVendorTuples."pcm_plat_tokens" {
tokens "sof_dai_tokens"
tuples."word" {
SOF_TKN_DAI_DMAC PIPELINE_DMAC
SOF_TKN_DAI_DMAC_CHAN PIPELINE_DMAC_CHAN
}
}
SectionData."pcm_plat_conf" {
tuples "pcm_plat_tokens"
}
# DAI schedule Configuration - scheduled by IRQ
SectionVendorTuples."pipe_dai_schedule_plat_tokens" {
tokens "sof_sched_tokens"
tuples."word" {
SOF_TKN_SCHED_MIPS "5000"
}
}
SectionData."pipe_dai_schedule_plat" {
tuples "pipe_dai_schedule_plat_tokens"
}

View File

@ -13,7 +13,7 @@ include(`common/tlv.m4')
include(`sof/tokens.m4')
# Include Apollolake DSP configuration
include(`dsps/bxt.m4')
include(`dsps/cnl.m4')
#
# Define the pipelines