Skip to content

Commit bc90256

Browse files
lyakhcarlescufi
authored andcommitted
cavs: unify defconfigs for v15, v18, v20 and v25
Unify default configurations to support both SMP and UP: 1. make SMP default, although it's currently disabled in prj.conf 2. use CAVS timer by default in both UP and SMP configurations 3. make MP_NUM_CPUS, IPM and IPM_CAVS_IDC depend on SMP Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent 264d812 commit bc90256

File tree

4 files changed

+38
-29
lines changed

4 files changed

+38
-29
lines changed

soc/xtensa/intel_adsp/cavs_v15/Kconfig.defconfig.series

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ config SOC
1818
config SMP
1919
default y
2020

21-
config MP_NUM_CPUS
22-
default 2
23-
2421
config XTENSA_TIMER
2522
default n
2623

@@ -59,12 +56,6 @@ config TEST_LOGGING_DEFAULTS
5956
default n
6057
depends on TEST
6158

62-
config IPM_CAVS_IDC
63-
default y
64-
65-
config IPM
66-
default y
67-
6859
if LOG
6960

7061
config LOG_PRINTK
@@ -77,6 +68,15 @@ endif # LOG
7768

7869
if SMP
7970

71+
config MP_NUM_CPUS
72+
default 2
73+
74+
config IPM
75+
default y
76+
77+
config IPM_CAVS_IDC
78+
default y
79+
8080
config SCHED_IPI_SUPPORTED
8181
default y if IPM_CAVS_IDC
8282

soc/xtensa/intel_adsp/cavs_v18/Kconfig.defconfig.series

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ config SOC
1515
string
1616
default "intel_cavs_18"
1717

18+
config SMP
19+
default y
20+
21+
config XTENSA_TIMER
22+
default n
23+
24+
config CAVS_TIMER
25+
default y
26+
1827
config SYS_CLOCK_HW_CYCLES_PER_SEC
1928
default 400000000 if XTENSA_TIMER
2029
default 24000000 if CAVS_TIMER
@@ -66,12 +75,6 @@ if SMP
6675
config MP_NUM_CPUS
6776
default 2
6877

69-
config XTENSA_TIMER
70-
default n
71-
72-
config CAVS_TIMER
73-
default y
74-
7578
config IPM
7679
default y
7780

@@ -81,8 +84,6 @@ config IPM_CAVS_IDC
8184
config SCHED_IPI_SUPPORTED
8285
default y if IPM_CAVS_IDC
8386

84-
endif # SMP
85-
8687
config IPM_INTEL_ADSP
8788
default y
8889
depends on IPM
@@ -92,4 +93,6 @@ config IPM_CONSOLE
9293
depends on CONSOLE
9394
depends on IPM
9495

96+
endif # SMP
97+
9598
endif

soc/xtensa/intel_adsp/cavs_v20/Kconfig.defconfig.series

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ config SOC
1515
string
1616
default "intel_cavs_20"
1717

18+
config SMP
19+
default y
20+
21+
config XTENSA_TIMER
22+
default n
23+
24+
config CAVS_TIMER
25+
default y
26+
1827
config SYS_CLOCK_HW_CYCLES_PER_SEC
1928
default 400000000 if XTENSA_TIMER
2029
default 38400000 if CAVS_TIMER
@@ -65,12 +74,6 @@ if SMP
6574
config MP_NUM_CPUS
6675
default 2
6776

68-
config XTENSA_TIMER
69-
default n
70-
71-
config CAVS_TIMER
72-
default y
73-
7477
config IPM
7578
default y
7679

soc/xtensa/intel_adsp/cavs_v25/Kconfig.defconfig.series

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ config SOC
1515
string
1616
default "intel_cavs_25"
1717

18+
config SMP
19+
default y
20+
21+
config XTENSA_TIMER
22+
default n
23+
24+
config CAVS_TIMER
25+
default y
26+
1827
config SYS_CLOCK_HW_CYCLES_PER_SEC
1928
default 400000000 if XTENSA_TIMER
2029
default 38400000 if CAVS_TIMER
@@ -65,12 +74,6 @@ if SMP
6574
config MP_NUM_CPUS
6675
default 2
6776

68-
config XTENSA_TIMER
69-
default n
70-
71-
config CAVS_TIMER
72-
default y
73-
7477
config IPM
7578
default y
7679

0 commit comments

Comments
 (0)