topology: add platform sku files to config platform settings

icl, cml whl are sharing some toplogy files. Create platform specific files
including DSP configuration, SSP setting and DMIC to simplify platform
settings.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
This commit is contained in:
Fred Oh 2020-03-02 17:45:42 -08:00 committed by Liam Girdwood
parent 9e1a2b251a
commit 752f086bdc
14 changed files with 57 additions and 66 deletions

View File

@ -0,0 +1,3 @@
include(`platform/intel/cnl.m4')
define(`MONO', `')

View File

@ -0,0 +1,13 @@
include(`platform/intel/cnl.m4')
#SSP setting for CML platform
undefine(`SSP_INDEX')
define(`SSP_INDEX', 0)
undefine(`SSP_NAME')
define(`SSP_NAME', `SSP0-Codec')
undefine(`SSP_MCLK_RATE')
define(`SSP_MCLK_RATE', `24000000')
include(`platform/intel/dmic.m4')

View File

@ -36,3 +36,15 @@ W_VENDORTUPLES(pipe_dai_schedule_plat_tokens, sof_sched_tokens,
LIST(` ', `SOF_TKN_SCHED_MIPS "5000"'))
W_DATA(pipe_dai_schedule_plat, pipe_dai_schedule_plat_tokens)
#SSP setting for ICL platform
undefine(`SSP_INDEX')
define(`SSP_INDEX', 0)
undefine(`SSP_NAME')
define(`SSP_NAME', `SSP0-Codec')
undefine(`SSP_MCLK_RATE')
define(`SSP_MCLK_RATE', `19200000')
include(`platform/intel/dmic.m4')

View File

@ -0,0 +1,13 @@
include(`platform/intel/cnl.m4')
#SSP setting for WHL platform
undefine(`SSP_INDEX')
define(`SSP_INDEX', 1)
undefine(`SSP_NAME')
define(`SSP_NAME', `SSP1-Codec')
undefine(`SSP_MCLK_RATE')
define(`SSP_MCLK_RATE', `24000000')
include(`platform/intel/dmic.m4')

View File

@ -14,18 +14,11 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include Cannonlake DSP configuration
include(`platform/intel/cnl.m4')
include(`platform/intel/dmic.m4')
# Include platform specific DSP configuration
include(`platform/intel/'PLATFORM`.m4')
DEBUG_START
undefine(`SSP_INDEX')
define(`SSP_INDEX', ifelse(PLATFORM, `whl', `1',
ifelse(PLATFORM, `cml', `0', `')))
undefine(`SSP_NAME')
define(`SSP_NAME', ifelse(PLATFORM, `whl', `SSP1-Codec',
ifelse(PLATFORM, `cml', `SSP0-Codec', `')))
#
# Define the pipelines

View File

@ -14,31 +14,13 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include Cannonlake or Icelake DSP configuration
ifelse(PLATFORM, `icl', include(`platform/intel/icl.m4'),
ifelse(PLATFORM, `whl', include(`platform/intel/cnl.m4'),
ifelse(PLATFORM, `cml', include(`platform/intel/cnl.m4'), `')))
include(`platform/intel/dmic.m4')
# Include Platform specific DSP configuration
include(`platform/intel/'PLATFORM`.m4')
define(KWD_PIPE_SCH_DEADLINE_US, 20000)
DEBUG_START
undefine(`SSP_INDEX')
define(`SSP_INDEX', ifelse(PLATFORM, `icl', `0',
ifelse(PLATFORM, `whl', `1',
ifelse(PLATFORM, `cml', `0', `'))))
undefine(`SSP_NAME')
define(`SSP_NAME', ifelse(PLATFORM, `icl', `SSP0-Codec',
ifelse(PLATFORM, `whl', `SSP1-Codec',
ifelse(PLATFORM, `cml', `SSP0-Codec', `'))))
undefine(`SSP_MCLK_RATE')
define(`SSP_MCLK_RATE', ifelse(PLATFORM, `icl', `19200000',
ifelse(PLATFORM, `whl', `24000000',
ifelse(PLATFORM, `cml', `24000000', `'))))
#
# Define the pipelines
#

View File

@ -14,29 +14,11 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include Cannonlake or Icelake DSP configuration
ifelse(PLATFORM, `icl', include(`platform/intel/icl.m4'),
ifelse(PLATFORM, `whl', include(`platform/intel/cnl.m4'),
ifelse(PLATFORM, `cml', include(`platform/intel/cnl.m4'), `')))
include(`platform/intel/dmic.m4')
# Include Platform specific DSP configuration
include(`platform/intel/'PLATFORM`.m4')
DEBUG_START
undefine(`SSP_INDEX')
define(`SSP_INDEX', ifelse(PLATFORM, `icl', `0',
ifelse(PLATFORM, `whl', `1',
ifelse(PLATFORM, `cml', `0', `'))))
undefine(`SSP_NAME')
define(`SSP_NAME', ifelse(PLATFORM, `icl', `SSP0-Codec',
ifelse(PLATFORM, `whl', `SSP1-Codec',
ifelse(PLATFORM, `cml', `SSP0-Codec', `'))))
undefine(`SSP_MCLK_RATE')
define(`SSP_MCLK_RATE', ifelse(PLATFORM, `icl', `19200000',
ifelse(PLATFORM, `whl', `24000000',
ifelse(PLATFORM, `cml', `24000000', `'))))
#
# Define the pipelines
#

View File

@ -14,8 +14,7 @@ include(`common/tlv.m4')
include(`sof/tokens.m4')
# Include CML DSP configuration
include(`platform/intel/cnl.m4')
include(`platform/intel/dmic.m4')
include(`platform/intel/cml.m4')
DEBUG_START

View File

@ -14,9 +14,8 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include Cannonlake DSP configuration
include(`platform/intel/cnl.m4')
include(`platform/intel/dmic.m4')
# Include Cometlake DSP configuration
include(`platform/intel/cml.m4')
DEBUG_START

View File

@ -14,7 +14,7 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include Apollolake DSP configuration
# Include Cannonlake DSP configuration
include(`platform/intel/cnl.m4')
#

View File

@ -13,9 +13,8 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include Apollolake DSP configuration
include(`platform/intel/bxt.m4')
include(`platform/intel/dmic.m4')
# Include IceLake DSP configuration
include(`platform/intel/icl.m4')
#
# Define the pipelines

View File

@ -13,9 +13,8 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include ICL DSP configuration
# Include Icelake DSP configuration
include(`platform/intel/icl.m4')
include(`platform/intel/dmic.m4')
DEBUG_START

View File

@ -13,11 +13,8 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
ifelse(PLATFORM, `icl', include(`platform/intel/icl.m4'),
ifelse(PLATFORM, `cml-mono', include(`platform/intel/cnl.m4'),
ifelse(PLATFORM, `cml', include(`platform/intel/cnl.m4'), `')))
ifelse(PLATFORM, `cml-mono', `define(`MONO', `')', `')
# Include Platform specific DSP configuration
include(`platform/intel/'PLATFORM`.m4')
DEBUG_START

View File

@ -13,7 +13,7 @@ include(`common/tlv.m4')
# Include Token library
include(`sof/tokens.m4')
# Include ICL DSP configuration
# Include Icelake DSP configuration
include(`platform/intel/icl.m4')
DEBUG_START