mirror of https://github.com/thesofproject/sof.git
46 lines
864 B
Plaintext
46 lines
864 B
Plaintext
divert(-1)
|
|
|
|
dnl SAI related macros
|
|
|
|
dnl SAI_CLOCK(clock, freq, codec_master, polarity)
|
|
dnl polarity is optional
|
|
define(`SAI_CLOCK',
|
|
$1 STR($3)
|
|
$1_freq STR($2)
|
|
`ifelse($4, `inverted', `$1_invert "true"',`')')
|
|
|
|
dnl SAI_TDM(slots, width, tx_mask, rx_mask)
|
|
define(`SAI_TDM',
|
|
` tdm_slots 'STR($1)
|
|
` tdm_slot_width 'STR($2)
|
|
` tx_slots 'STR($3)
|
|
` rx_slots 'STR($4)
|
|
)
|
|
|
|
dnl SAI_CONFIG(format, mclk, bclk, fsync, tdm, sai_config_data)
|
|
define(`SAI_CONFIG',
|
|
` format "'$1`"'
|
|
` '$2
|
|
` '$3
|
|
` '$4
|
|
` '$5
|
|
`}'
|
|
$6
|
|
)
|
|
|
|
dnl SAI_CONFIG_DATA(type, idx, mclk_id)
|
|
dnl mclk_id is optional
|
|
define(`SAI_CONFIG_DATA',
|
|
`SectionVendorTuples."'N_DAI_CONFIG($1$2)`_tuples" {'
|
|
` tokens "sof_sai_tokens"'
|
|
` tuples."short" {'
|
|
` SOF_TKN_IMX_SAI_MCLK_ID' ifelse($3, `', "0", STR($3))
|
|
` }'
|
|
`}'
|
|
`SectionData."'N_DAI_CONFIG($1$2)`_data" {'
|
|
` tuples "'N_DAI_CONFIG($1$2)`_tuples"'
|
|
`}'
|
|
)
|
|
|
|
divert(0)dnl
|