Skip to content

Commit 42d10bb

Browse files
committed
xtos: move XTOS build options to a separate Kconfig.xtos file
Most of the XTOS code was removed in commit b8266ae ("build: delete more XTOS-only files"). SOF still maintains support to use old XTOS drivers in Zephyr builds. There are multiple DMA and IPC drivers in the tree used like this. Move definitions required by these XTOS drivers to a separate Kconfig.xtos tree. This allows to clean up the top-level Kconfig.sof. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 1391978 commit 42d10bb

2 files changed

Lines changed: 99 additions & 88 deletions

File tree

Kconfig.sof

Lines changed: 2 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22

3-
config XT_WAITI_DELAY
4-
bool
5-
default n
6-
help
7-
LX6 Xtensa platforms may require additional delay to flush loads
8-
and stores before entering WAITI.
93

104
config HOST_PTABLE
115
bool
126
default n
137

14-
config XT_HAVE_RESET_VECTOR_ROM
15-
bool
16-
default n
17-
help
18-
Select if your platform has the reset vector
19-
in ROM.
20-
21-
config XT_IRQ_MAP
22-
bool
23-
default n
24-
258
config DMA_GW
269
bool
2710
default n
@@ -34,77 +17,6 @@ config INTEL_IOMUX
3417
bool
3518
default n
3619

37-
config DMA_HW_LLI
38-
bool
39-
default n
40-
help
41-
Hardware linked list is DMA feature, which allows
42-
to automatically reload the next programmed linked list
43-
item from memory without stopping the transfer. Without
44-
it the transfer stops after every lli read and FW needs
45-
to manually setup the next transfer.
46-
47-
Any platforms with hardware linked list support
48-
should set this.
49-
50-
config DMA_SUSPEND_DRAIN
51-
bool
52-
default n
53-
help
54-
Some platforms cannot just simple disable DMA
55-
channel during the transfer, because it will
56-
hang the whole DMA controller. Instead we can
57-
suspend the channel and drain the FIFO in order
58-
to stop the channel as soon as possible.
59-
60-
Any platforms without the ability to disable
61-
the DMA channel right away should set this.
62-
63-
config DMA_FIFO_PARTITION
64-
bool
65-
default n
66-
help
67-
Some platforms require to manually set DMA
68-
FIFO partitions before starting any transfer.
69-
70-
Any platforms without automatic FIFO partitions
71-
should set this.
72-
73-
config XT_INTERRUPT_LEVEL_1
74-
bool
75-
default n
76-
help
77-
Select if the platform supports any interrupts of level 1.
78-
Disabling this option allows for less memory consumption.
79-
80-
config XT_INTERRUPT_LEVEL_2
81-
bool
82-
default n
83-
help
84-
Select if the platform supports any interrupts of level 2.
85-
Disabling this option allows for less memory consumption.
86-
87-
config XT_INTERRUPT_LEVEL_3
88-
bool
89-
default n
90-
help
91-
Select if the platform supports any interrupts of level 3.
92-
Disabling this option allows for less memory consumption.
93-
94-
config XT_INTERRUPT_LEVEL_4
95-
bool
96-
default n
97-
help
98-
Select if the platform supports any interrupts of level 4.
99-
Disabling this option allows for less memory consumption.
100-
101-
config XT_INTERRUPT_LEVEL_5
102-
bool
103-
default n
104-
help
105-
Select if the platform supports any interrupts of level 5.
106-
Disabling this option allows for less memory consumption.
107-
10820
config COMPILER_WORKAROUND_CACHE_ATTR
10921
bool
11022
default n
@@ -148,6 +60,8 @@ config FAST_GET
14860
counting. Source is src/lib/fast-get.c. The option should be selected
14961
on platforms, where __cold_rodata is supported.
15062

63+
rsource "Kconfig.xtos"
64+
15165
rsource "src/Kconfig"
15266

15367
if ZEPHYR_SOF_MODULE

Kconfig.xtos

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
3+
# This file contains build options needed to support
4+
# legacy driver code that still partially rely on XTOS
5+
# definitions, even when used with Zephyr RTOS.
6+
#
7+
# When all platforms have moved over to native Zephyr
8+
# drivers, this file can be removed
9+
10+
config XT_WAITI_DELAY
11+
bool
12+
default n
13+
help
14+
LX6 Xtensa platforms may require additional delay to flush loads
15+
and stores before entering WAITI.
16+
17+
config XT_HAVE_RESET_VECTOR_ROM
18+
bool
19+
default n
20+
help
21+
Select if your platform has the reset vector
22+
in ROM.
23+
24+
config XT_IRQ_MAP
25+
bool
26+
default n
27+
28+
config DMA_HW_LLI
29+
bool
30+
default n
31+
help
32+
Hardware linked list is DMA feature, which allows
33+
to automatically reload the next programmed linked list
34+
item from memory without stopping the transfer. Without
35+
it the transfer stops after every lli read and FW needs
36+
to manually setup the next transfer.
37+
38+
Any platforms with hardware linked list support
39+
should set this.
40+
41+
config DMA_SUSPEND_DRAIN
42+
bool
43+
default n
44+
help
45+
Some platforms cannot just simple disable DMA
46+
channel during the transfer, because it will
47+
hang the whole DMA controller. Instead we can
48+
suspend the channel and drain the FIFO in order
49+
to stop the channel as soon as possible.
50+
51+
Any platforms without the ability to disable
52+
the DMA channel right away should set this.
53+
54+
config DMA_FIFO_PARTITION
55+
bool
56+
default n
57+
help
58+
Some platforms require to manually set DMA
59+
FIFO partitions before starting any transfer.
60+
61+
Any platforms without automatic FIFO partitions
62+
should set this.
63+
64+
config XT_INTERRUPT_LEVEL_1
65+
bool
66+
default n
67+
help
68+
Select if the platform supports any interrupts of level 1.
69+
Disabling this option allows for less memory consumption.
70+
71+
config XT_INTERRUPT_LEVEL_2
72+
bool
73+
default n
74+
help
75+
Select if the platform supports any interrupts of level 2.
76+
Disabling this option allows for less memory consumption.
77+
78+
config XT_INTERRUPT_LEVEL_3
79+
bool
80+
default n
81+
help
82+
Select if the platform supports any interrupts of level 3.
83+
Disabling this option allows for less memory consumption.
84+
85+
config XT_INTERRUPT_LEVEL_4
86+
bool
87+
default n
88+
help
89+
Select if the platform supports any interrupts of level 4.
90+
Disabling this option allows for less memory consumption.
91+
92+
config XT_INTERRUPT_LEVEL_5
93+
bool
94+
default n
95+
help
96+
Select if the platform supports any interrupts of level 5.
97+
Disabling this option allows for less memory consumption.

0 commit comments

Comments
 (0)