Skip to content

Commit

Permalink
tools: rimage: config: add PTL config
Browse files Browse the repository at this point in the history
Add base PTL config derived from MTL.

Signed-off-by: Jaroslaw Stelter <Jaroslaw.Stelter@intel.com>
  • Loading branch information
jxstelter authored and mwasko committed Jun 24, 2024
1 parent 30d094b commit df39f01
Show file tree
Hide file tree
Showing 12 changed files with 191 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/audio/asrc/asrc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
13, 0, 0, 0, 20480, 31871000, 384, 192, 0, 31871, 0,
14, 0, 0, 0, 20480, 34216000, 384, 256, 0, 34216, 0,
15, 0, 0, 0, 20480, 83448000, 1536, 1440, 0, 83448, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 20480, 4065600, 24, 22, 0, 0, 0,
1, 0, 0, 0, 20480, 5616000, 8, 25, 0, 0, 0,
2, 0, 0, 0, 20480, 7319200, 24, 27, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/copier/copier.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
40, 0, 0, 0, 280, 6246000, 32, 32, 0, 6246, 0,
41, 0, 0, 0, 280, 5272000, 192, 384, 0, 5272, 0,
42, 0, 0, 0, 280, 5350000, 384, 192, 0, 5350, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [ 0, 0, 0, 0, 280, 640100, 45, 60, 0, 0, 0,
1, 0, 0, 0, 280, 1106300, 192, 192, 0, 0, 0,
2, 0, 0, 0, 280, 1573000, 45, 45, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/eq_iir/eq_iir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 1000, 0,
0, 0, 0, 0, 4096, 20663000, 768, 768, 0, 20663, 0,
0, 0, 0, 0, 4096, 11357000, 384, 384, 0, 11357, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 0, 0]
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/audio/mixin_mixout/mixin_mixout.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
3, 0, 0, 0, 296, 2928000, 512, 512, 0, 2928, 0,
4, 0, 0, 0, 296, 2572000, 128, 128, 0, 2572, 0,
5, 0, 0, 0, 296, 3760000, 1536, 1536, 0, 3760, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [ 0, 0, 0, 0, 296, 644000, 45, 60, 0, 0, 0,
1, 0, 0, 0, 296, 669900, 48, 64, 0, 0, 0,
2, 0, 0, 0, 296, 934000, 96, 128, 0, 0, 0,
Expand Down Expand Up @@ -70,7 +70,7 @@
3, 0, 0, 0, 520, 7631000, 512, 512, 0, 7631, 0,
4, 0, 0, 0, 520, 1953000, 128, 128, 0, 1953, 0,
5, 0, 0, 0, 520, 2301000, 1536, 1536, 0, 2301, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 520, 649600, 48, 64, 0, 0, 0,
1, 0, 0, 0, 520, 966300, 96, 128, 0, 0, 0,
2, 0, 0, 0, 520, 2101000, 48, 64, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/selector/selector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
mod_cfg = [0, 0, 0, 0, 960, 488500, 16, 16, 0, 0, 0,
1, 0, 0, 0, 960, 964500, 16, 16, 0, 0, 0,
2, 0, 0, 0, 960, 2003000, 16, 16, 0, 0, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 216, 706000, 12, 16, 0, 0, 0,
1, 0, 0, 0, 216, 1271000, 8, 8, 0, 0, 0,
2, 0, 0, 0, 216, 1839000, 89, 118, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/src/src.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
24, 0, 0, 0, 12832, 27696000, 180, 256, 0, 27696, 0,
25, 0, 0, 0, 12832, 18368000, 256, 512, 0, 18368, 0,
26, 0, 0, 0, 12832, 15204000, 128, 256, 0, 15204, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 12832, 1365500, 0, 0, 0, 1365, 0,
1, 0, 0, 0, 12832, 2302300, 0, 0, 0, 2302, 0,
2, 0, 0, 0, 12832, 3218200, 0, 0, 0, 3218, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/up_down_mixer/up_down_mixer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
28, 0, 0, 0, 216, 5080000, 1536, 1152, 0, 5080, 0,
29, 0, 0, 0, 216, 3552000, 384, 1536, 0, 3552, 0,
30, 0, 0, 0, 216, 3728000, 768, 1152, 0, 3728, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 216, 706000, 12, 16, 0, 0, 0,
1, 0, 0, 0, 216, 1271000, 8, 8, 0, 0, 0,
2, 0, 0, 0, 216, 1839000, 89, 118, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/volume/gain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
3, 0, 0, 0, 416, 8192000, 512, 512, 0, 8192, 0,
4, 0, 0, 0, 416, 10091000, 128, 128, 0, 10091, 0,
5, 0, 0, 0, 416, 5908000, 768, 768, 0, 5908, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 416, 914000, 48, 64, 0, 0, 0,
1, 0, 0, 0, 416, 1321600, 192, 256, 0, 0, 0,
2, 0, 0, 0, 416, 1786000, 192, 256, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/audio/volume/peakvol.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
3, 0, 0, 0, 480, 12567000, 720, 720, 0, 12567, 0,
4, 0, 0, 0, 480, 7360000, 768, 768, 0, 7360, 0,
5, 0, 0, 0, 480, 12236000, 1536, 1536, 0, 12236, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 480, 1114000, 48, 64, 0, 0, 0,
1, 0, 0, 0, 480, 3321600, 192, 256, 0, 0, 0,
2, 0, 0, 0, 480, 3786000, 192, 256, 0, 0, 0,
Expand Down
2 changes: 1 addition & 1 deletion src/samples/audio/smart_amp_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
REM # mod_cfg [PAR_0 PAR_1 PAR_2 PAR_3 IS_BYTES CPS IBS OBS MOD_FLAGS CPC OBLS]
#ifdef CONFIG_METEORLAKE
mod_cfg = [0, 0, 0, 0, 296, 5000000, 384, 384, 0, 5000, 0]
#elif CONFIG_LUNARLAKE
#elif defined(CONFIG_LUNARLAKE) || defined(CONFIG_PANTHERLAKE)
mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 0, 0]
#endif

Expand Down
56 changes: 56 additions & 0 deletions tools/rimage/config/platform-ptl.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version = [3, 0]

[adsp]
name = "ptl"
image_size = "0x2C0000" # (22) bank * 128KB
alias_mask = "0xE0000000"

[[adsp.mem_zone]]
type = "ROM"
base = "0x1FF80000"
size = "0x400"
[[adsp.mem_zone]]
type = "IMR"
base = "0xA104A000"
size = "0x2000"
[[adsp.mem_zone]]
type = "SRAM"
base = "0xa00f0000"
size = "0x100000"

[[adsp.mem_alias]]
type = "uncached"
base = "0x40000000"
[[adsp.mem_alias]]
type = "cached"
base = "0xA0000000"

[cse]
partition_name = "ADSP"
[[cse.entry]]
name = "ADSP.man"
offset = "0x5c"
length = "0x4b8"
[[cse.entry]]
name = "ADSP.met"
offset = "0x4c0"
length = "0x70"
[[cse.entry]]
name = "ADSP"
offset = "0x540"
length = "0x0" # calculated by rimage

[css]

[signed_pkg]
name = "ADSP"
[[signed_pkg.module]]
name = "ADSP.met"

[adsp_file]
[[adsp_file.comp]]
base_offset = "0x2000"

[fw_desc.header]
name = "ADSPFW"
load_offset = "0x40000"
124 changes: 124 additions & 0 deletions tools/rimage/config/ptl.toml.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
#include "platform-ptl.toml"

[[module.entry]]
name = "BRNGUP"
uuid = "2B79E4F3-4675-F649-89DF-3BC194A91AEB"
affinity_mask = "0x1"
instance_count = "1"
domain_types = "0"
load_type = "0"
module_type = "0"
auto_start = "0"

index = __COUNTER__

[[module.entry]]
name = "BASEFW"
uuid = "0E398C32-5ADE-BA4B-93B1-C50432280EE4"
affinity_mask = "3"
instance_count = "1"
domain_types = "0"
load_type = "0"
module_type = "0"
auto_start = "0"

index = __COUNTER__

#ifdef CONFIG_COMP_MIXIN_MIXOUT
#include <audio/mixin_mixout/mixin_mixout.toml>
#endif

#ifdef CONFIG_COMP_COPIER
#include <audio/copier/copier.toml>
#endif

#ifdef CONFIG_COMP_PEAK_VOL
#include <audio/volume/peakvol.toml>
#endif

#ifdef CONFIG_COMP_GAIN
#include <audio/volume/gain.toml>
#endif

#ifdef CONFIG_COMP_ASRC
#include <audio/asrc/asrc.toml>
#endif

#ifdef CONFIG_COMP_SRC
#include <audio/src/src.toml>
#endif

#ifdef CONFIG_COMP_SEL
#include <audio/selector/selector.toml>
#endif

#ifdef CONFIG_COMP_UP_DOWN_MIXER
#include <audio/up_down_mixer/up_down_mixer.toml>
#endif

#ifdef CONFIG_PROBE
#include <probe/probe.toml>
#endif

#ifdef CONFIG_COMP_MUX
#include <audio/mux/mux.toml>
#endif

#ifdef CONFIG_SAMPLE_KEYPHRASE
#include <samples/audio/detect_test.toml>
#endif

#ifdef CONFIG_COMP_KPB
#include <audio/kpb.toml>
#endif

#ifdef CONFIG_SAMPLE_SMART_AMP
#include <samples/audio/smart_amp_test.toml>
#endif

#ifdef CONFIG_COMP_IIR
#include <audio/eq_iir/eq_iir.toml>
#endif

#ifdef CONFIG_COMP_FIR
#include <audio/eq_fir/eq_fir.toml>
#endif

#ifdef CONFIG_COMP_ARIA
#include <audio/aria/aria.toml>
#endif

#ifdef CONFIG_COMP_DRC
#include <audio/drc/drc.toml>
#endif

#ifdef CONFIG_COMP_CROSSOVER
#include <audio/crossover/crossover.toml>
#endif

#ifdef CONFIG_COMP_MULTIBAND_DRC
#include <audio/multiband_drc/multiband_drc.toml>
#endif

#ifdef CONFIG_COMP_DCBLOCK
#include <audio/dcblock/dcblock.toml>
#endif

#ifdef CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING
#include <audio/google/google_rtc_audio_processing.toml>
#endif

#ifdef CONFIG_COMP_TDFB
#include <audio/tdfb/tdfb.toml>
#endif

#ifdef CONFIG_COMP_RTNR
#include <audio/rtnr/rtnr.toml>
#endif

#ifdef CONFIG_COMP_IGO_NR
#include <audio/igo_nr/igo_nr.toml>
#endif

[module]
count = __COUNTER__

0 comments on commit df39f01

Please sign in to comment.