summaryrefslogtreecommitdiff
path: root/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/board/Kconfig
blob: 637d4ce744f27206b1dfc890dfddb77460e1aa5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
menu "Hardware Drivers Config"


config BSP_USING_HYPERFLASH
    bool
    default n

config BSP_USING_4MFLASH
    bool
    default n

config SOC_MIMXRT1062DVL6A
    bool
    select SOC_IMXRT1060_SERIES
    select BSP_USING_4MFLASH
    select RT_USING_COMPONENTS_INIT
    select RT_USING_USER_MAIN
    default y

menu "Onboard Peripheral Drivers"

    config BSP_USING_SDRAM
        bool "Enable SDRAM"
        default n

    menuconfig BSP_USING_ETH
        bool "Enable Ethernet"
        select RT_USING_NETDEV
        select RT_USING_LWIP
        default n

    if BSP_USING_ETH
        config BSP_USING_PHY
            select RT_USING_PHY
            bool "Enable ethernet phy"
            default y

        if BSP_USING_PHY
            config PHY_USING_KSZ8081
                bool "i.MX RT1060EVK uses ksz8081 phy"
                default y

            if PHY_USING_KSZ8081
                config PHY_KSZ8081_ADDRESS
                int "Specify address of phy device"
                default 2

                config PHY_RESET_KSZ8081_PORT
                    int "indicate port of reset"
                    default 1

                config PHY_RESET_KSZ8081_PIN
                    int "indicate pin of reset"
                    default 9

                config FSL_FEATURE_PHYKSZ8081_USE_RMII50M_MODE
                    bool "Enable the PHY ksz8081 RMII50M mode"
                    depends on PHY_USING_KSZ8081
                    default y
            endif
        endif
    endif

    menuconfig BSP_USING_LCD
        bool "Enable LCD"
        default n
        if BSP_USING_LCD
            config LCD_WIDTH
                int "width"
                default 480

            config LCD_HEIGHT
                int "height"
                default 272

            config LCD_HFP
                int "HFP"
                default 4

            config LCD_VFP
                int "VFP"
                default 4

            config LCD_HBP
                int "HBP"
                default 8

            config LCD_VBP
                int "VBP"
                default 2

            config LCD_HSW
                int "HSW"
                default 40

            config LCD_VSW
                int "VSW"
                default 10

            config LCD_BL_PIN
                int "Backlight ctrl pin"
                default 63

            config LCD_RST_PIN
                int "Reset pin"
                default 2
        endif

    menuconfig BSP_USING_TOUCHPAD
        bool "Enable TOUCHPAD"
        select BSP_USING_PXP
        select BSP_USING_CACHE
        select BSP_USING_I2C
        select BSP_USING_LCD
        default n
        if BSP_USING_TOUCHPAD
            choice
                prompt "Select panel"
                default DEMO_PANEL_RK043FN66HS

                config DEMO_PANEL_RK043FN02H
                    bool "RK043FN02H-CT"

                config DEMO_PANEL_RK043FN66HS
                    bool "RK043FN66HS-CTG"
            endchoice
        endif

    config BSP_USING_LVGL
        bool "Enable LVGL for LCD"
        select BSP_USING_PXP
        select BSP_USING_CACHE
        select BSP_USING_LCD
        select BSP_USING_TOUCHPAD
        select PKG_USING_LVGL
        default n

    if BSP_USING_LVGL
        config BSP_USING_LVGL_DEMO
            bool "Enable LVGL demo"
            select PKG_USING_LV_MUSIC_DEMO
            default y

        config BSP_USING_NXP_GUIGUIDER
            bool "Support NXP GUI Guider"
            select PKG_USING_GUI_GUIDER_DEMO
            default n
    endif

    menuconfig BSP_USING_FS
        bool "Enable File System"
        select RT_USING_DFS_DEVFS
        select RT_USING_DFS
        default n

        if BSP_USING_FS
            config BSP_USING_SDCARD_FATFS
                bool "Enable SDCARD (FATFS)"
                select BSP_USING_SDIO
                select RT_USING_DFS_ELMFAT
                default n
        endif
endmenu

menu "On-chip Peripheral Drivers"

    config BSP_USING_DMA
        bool "Enable DMA"
        default n

    config BSP_USING_GPIO
        bool "Enable GPIO"
        select RT_USING_PIN
        default y

    config BSP_USING_RTC
        bool "Enable RTC"
        select RT_USING_RTC
        default n

    config BSP_USING_SDIO
        bool "Enable SDIO"
        select RT_USING_SDIO
        select RT_USING_DFS
        default n

        if BSP_USING_SDIO
            config CODE_STORED_ON_SDCARD
                bool "Enable Code STORED On SDCARD"
                default n
                help
                    "SD CARD work as boot devive"
        endif

    config BSP_USING_USB
        bool "Enable USB"
        select RT_USING_USB_HOST
        default n

        if BSP_USING_USB
        config BSP_USB0_HOST
            bool "Enable USB0"
            default n

        config BSP_USB1_HOST
            bool "Enable USB1"
            default n
        endif

    menuconfig BSP_USING_I2C
        bool "Enable I2C"
        select RT_USING_I2C
        default y
        if BSP_USING_I2C
            config BSP_USING_I2C1
                bool
                default y
            choice
                prompt "Select I2C1 badurate"
                default HW_I2C1_BADURATE_100kHZ

                config HW_I2C1_BADURATE_100kHZ
                    bool "Badurate 100kHZ"

                config HW_I2C1_BADURATE_400kHZ
                    bool "Badurate 400kHZ"
            endchoice
        endif

    menuconfig BSP_USING_LPUART
        bool "Enable UART"
        select RT_USING_SERIAL
        default y
        if BSP_USING_LPUART
            config BSP_USING_LPUART1
                bool "Enable LPUART1"
                default y
            config BSP_USING_LPUART2
                bool "Enable LPUART2"
                default n
            config BSP_USING_LPUART3
                bool "Enable LPUART3"
                default n
            config BSP_USING_LPUART4
                bool "Enable LPUART4"
                default n
            config BSP_USING_LPUART5
                bool "Enable LPUART5"
                default n
            config BSP_USING_LPUART6
                bool "Enable LPUART6"
                default n
            config BSP_USING_LPUART7
                bool "Enable LPUART7"
                default n
            config BSP_USING_LPUART8
                bool "Enable LPUART8"
                default n
        endif

    menuconfig BSP_USING_SPI
        bool "Enable SPI"
        select RT_USING_SPI
        select RT_USING_PIN
        default n

        if BSP_USING_SPI
            config BSP_USING_SPI1
                bool "Enable SPI1"
                default n
            
            config BSP_USING_BLOCKING_SPI
                bool "Enable SPI Polling xfer"
                default n
        
            config BSP_SPI1_USING_DMA
                bool "Enable SPI1 DMA xfer"
                depends on BSP_USING_SPI1
                select BSP_USING_DMA
                default n

            config BSP_SPI1_RX_DMA_CHANNEL
                depends on BSP_SPI1_USING_DMA
                int "Set SPI1 RX DMA channel (0-32)"
                default 0

            config BSP_SPI1_TX_DMA_CHANNEL
                depends on BSP_SPI1_USING_DMA
                int "Set SPI1 TX DMA channel (0-32)"
                default 1
        endif

    config BSP_USING_PXP
        bool "Enable PXP"
        default n

    config BSP_USING_CACHE
        bool "Enable CACHE"
        default n

endmenu

menu "Board extended module Drivers"

endmenu

endmenu