1# NPCX GPIO driver configuration options
2
3# Copyright (c) 2021 Nuvoton Technology Corporation.
4# SPDX-License-Identifier: Apache-2.0
5
6config GPIO_NCT38XX
7	bool "NCT38XX I2C-based GPIO chip"
8	default y
9	depends on DT_HAS_NUVOTON_NCT38XX_GPIO_PORT_ENABLED
10	select I2C
11	select MFD
12	help
13	  Enable driver for NCT38XX I2C-based GPIO chip.
14
15if GPIO_NCT38XX
16
17config GPIO_NCT38XX_INIT_PRIORITY
18	int "NCT38XX GPIO init priority"
19	default 82
20	help
21	  NCT38xx GPIO driver initialization priority. The priority must be lower
22	  than MFD_INIT_PRIORITY.
23
24config GPIO_NCT38XX_PORT_INIT_PRIORITY
25	int "NCT38XX GPIO port init priority"
26	default 84
27	help
28	  NCT38xx GPIO port device driver initialization priority. The priority
29	  must be lower than GPIO_NCT38XX_INIT_PRIORITY device.
30
31config GPIO_NCT38XX_ALERT
32	bool "NCT38XX GPIO interrupt"
33	default y
34	depends on DT_HAS_NUVOTON_NCT38XX_GPIO_ALERT_ENABLED
35	help
36	  Enable interrupt support in NCT38XX driver.
37
38config GPIO_NCT38XX_ALERT_INIT_PRIORITY
39	int "NCT38XX GPIO alert handler init priority"
40	default 84
41	depends on GPIO_NCT38XX_ALERT
42	help
43	  NCT38XX alert handler initialization priority. This initialization
44	  must take place after the alert GPIO device is initialized.
45
46endif # GPIO_NCT38XX
47