1# Copyright 2023 NXP
2# All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5
6config MCUX_HAS_component_serial_manager
7    bool
8
9config MCUX_HAS_component_serial_manager_uart
10    bool
11
12config MCUX_HAS_component_serial_manager_spi
13    bool
14
15config MCUX_HAS_component_serial_manager_swo
16    bool
17
18menuconfig MCUX_USE_component_serial_manager
19    depends on MCUX_HAS_component_serial_manager
20    bool "Serial Manager"
21    select MCUX_USE_driver_common
22    select MCUX_USE_component_lists
23
24    help
25      Component serial_manager
26
27
28if MCUX_USE_component_serial_manager
29
30# component_serial_manager_uart
31menuconfig MCUX_USE_component_serial_manager_uart
32    depends on MCUX_HAS_component_serial_manager_uart
33    bool "Serial Manager uart"
34
35    help
36      Component serial_manager_uart
37
38    if MCUX_USE_component_serial_manager_uart
39
40    config MCUX_component_serial_manager_uart_USE_flexcomm_usart
41        depends on MCUX_HAS_driver_flexcomm_usart
42        bool "Use flexcomm_usart"
43        select MCUX_USE_driver_flexcomm_usart
44
45    config MCUX_component_serial_manager_uart_USE_lpsci
46        depends on MCUX_HAS_driver_lpsci
47        bool "Use lpsci"
48        select MCUX_USE_driver_lpsci
49
50    config MCUX_component_serial_manager_uart_USE_lpuart
51        depends on MCUX_HAS_driver_lpuart
52        bool "Use lpuart"
53        select MCUX_USE_driver_lpuart
54
55    config MCUX_component_serial_manager_uart_USE_uart
56        depends on MCUX_HAS_driver_uart
57        bool "Use uart"
58        select MCUX_USE_driver_uart
59
60    config MCUX_component_serial_manager_uart_USE_iuart
61        depends on MCUX_HAS_driver_iuart
62        bool "Use iuart"
63        select MCUX_USE_driver_iuart
64
65    config MCUX_component_serial_manager_uart_USE_vusart
66        depends on MCUX_HAS_driver_vusart
67        bool "Use vusart"
68        select MCUX_USE_driver_vusart
69
70    config MCUX_component_serial_manager_uart_USE_lpc_miniusart
71        depends on MCUX_HAS_driver_lpc_miniusart
72        bool "Use lpc_miniusart"
73        select MCUX_USE_driver_lpc_miniusart
74
75    config MCUX_component_serial_manager_uart_USE_qsci
76        depends on MCUX_HAS_driver_qsci
77        bool "Use qsci"
78        select MCUX_USE_driver_qsci
79
80    endif # MCUX_USE_component_serial_manager_uart
81
82
83menuconfig MCUX_USE_component_serial_manager_spi
84    depends on MCUX_HAS_component_serial_manager_spi
85    bool "Serial Manager SPI"
86
87    if MCUX_USE_component_serial_manager_spi
88    config MCUX_component_serial_manager_spi_USE_dspi
89    depends on (MCUX_HAS_driver_dspi && MCUX_HAS_component_dspi_adapter)
90    bool "Use DSPI"
91    select MCUX_USE_driver_dspi
92    select MCUX_USE_component_dspi_adapter
93
94    config MCUX_component_serial_manager_spi_USE_flexcomm_spi
95    depends on (MCUX_HAS_driver_flexcomm_spi && MCUX_HAS_component_flexcomm_spi_adapter)
96    bool "Use Flexcomm SPI"
97    select MCUX_USE_driver_flexcomm_spi
98    select MCUX_USE_component_flexcomm_spi_adapter
99
100    config MCUX_component_serial_manager_spi_USE_lpspi
101    depends on (MCUX_HAS_driver_lpspi && MCUX_HAS_component_lpspi_adapter)
102    bool "Use LPSPI"
103    select MCUX_USE_driver_lpspi
104    select MCUX_USE_component_lpspi_adapter
105
106    config MCUX_component_serial_manager_spi_USE_spi
107    depends on (MCUX_HAS_driver_spi && MCUX_HAS_component_spi_adapter)
108    bool "Use SPI"
109    select MCUX_USE_driver_spi
110    select MCUX_USE_component_spi_adapter
111
112    endif # MCUX_USE_component_serial_manager_spi
113
114# component_serial_manager_swo
115config MCUX_USE_component_serial_manager_swo
116    depends on MCUX_HAS_component_serial_manager_swo
117    bool "Serial Manager Swo"
118    select MCUX_USE_driver_common
119    help
120      Component serial_manager_swo
121
122endif