2015-07-09 15:31:22 +02:00
|
|
|
############################################################################
|
2015-12-15 15:40:34 +01:00
|
|
|
# drivers/ioexpander/Make.defs
|
2015-07-09 15:31:22 +02:00
|
|
|
#
|
2021-03-20 11:10:04 +01:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2015-07-09 15:31:22 +02:00
|
|
|
#
|
2021-03-20 11:10:04 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-07-09 15:31:22 +02:00
|
|
|
#
|
2021-03-20 11:10:04 +01:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2015-07-09 15:31:22 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2015-11-01 21:41:40 +01:00
|
|
|
# Check if I/O expander support is enabled
|
2015-07-09 15:31:22 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_IOEXPANDER),y)
|
|
|
|
|
2015-11-01 21:41:40 +01:00
|
|
|
# Include the selected I/O expander drivers
|
2015-07-09 15:31:22 +02:00
|
|
|
|
2021-12-08 05:08:25 +01:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_RPMSG),y)
|
|
|
|
CSRCS += ioe_rpmsg.c
|
|
|
|
endif
|
|
|
|
|
2022-01-06 14:19:39 +01:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_DUMMY),y)
|
|
|
|
CSRCS += ioe_dummy.c
|
|
|
|
endif
|
|
|
|
|
2024-01-23 14:46:08 +01:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_ICJX),y)
|
|
|
|
CSRCS += icjx.c
|
|
|
|
endif
|
|
|
|
|
2023-08-22 13:12:19 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_ISO1H812G),y)
|
|
|
|
CSRCS += iso1h812g.c
|
|
|
|
endif
|
|
|
|
|
2023-08-04 14:12:01 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_ISO1I813T),y)
|
|
|
|
CSRCS += iso1i813t.c
|
|
|
|
endif
|
|
|
|
|
2015-07-09 15:31:22 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_PCA9555),y)
|
|
|
|
CSRCS += pca9555.c
|
|
|
|
endif
|
|
|
|
|
2020-02-19 16:09:52 +01:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_PCA9538),y)
|
|
|
|
CSRCS += pca9538.c
|
|
|
|
endif
|
|
|
|
|
2016-08-01 03:52:44 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_TCA64XX),y)
|
|
|
|
CSRCS += tca64xx.c
|
|
|
|
endif
|
|
|
|
|
2016-08-01 19:10:11 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_PCF8574),y)
|
|
|
|
CSRCS += pcf8574.c
|
|
|
|
endif
|
|
|
|
|
2023-08-01 16:25:06 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_PCF8575),y)
|
|
|
|
CSRCS += pcf8575.c
|
|
|
|
endif
|
|
|
|
|
2023-09-02 14:59:20 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_MCP23X08),y)
|
|
|
|
CSRCS += mcp23x08.c
|
|
|
|
endif
|
|
|
|
|
2021-05-15 20:39:27 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_MCP23X17),y)
|
|
|
|
CSRCS += mcp23x17.c
|
|
|
|
endif
|
|
|
|
|
2023-06-24 15:08:27 +02:00
|
|
|
ifeq ($(CONFIG_IOEXPANDER_SX1509),y)
|
|
|
|
CSRCS += sx1509.c
|
|
|
|
endif
|
|
|
|
|
2016-06-24 17:43:49 +02:00
|
|
|
endif # CONFIG_IOEXPANDER
|
|
|
|
|
|
|
|
# GPIO test device driver (independent of IOEXPANDERS)
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_DEV_GPIO),y)
|
|
|
|
CSRCS += gpio.c
|
2016-08-01 16:43:10 +02:00
|
|
|
ifeq ($(CONFIG_GPIO_LOWER_HALF),y)
|
|
|
|
CSRCS += gpio_lower_half.c
|
|
|
|
endif
|
2016-06-24 17:43:49 +02:00
|
|
|
endif
|
|
|
|
|
2020-02-23 09:50:23 +01:00
|
|
|
# The following implements an awkward OR
|
2016-06-24 17:43:49 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_IOEXPANDER),y)
|
|
|
|
|
|
|
|
# Include ioexpander I/O device driver build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path ioexpander
|
|
|
|
VPATH += :ioexpander
|
2022-11-01 14:47:53 +01:00
|
|
|
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)ioexpander
|
2016-06-24 17:43:49 +02:00
|
|
|
|
|
|
|
else ifeq ($(CONFIG_DEV_GPIO),y)
|
|
|
|
|
2015-12-15 15:40:34 +01:00
|
|
|
# Include ioexpander I/O device driver build support
|
2015-07-09 15:31:22 +02:00
|
|
|
|
2015-12-15 15:40:34 +01:00
|
|
|
DEPPATH += --dep-path ioexpander
|
|
|
|
VPATH += :ioexpander
|
2022-11-01 14:47:53 +01:00
|
|
|
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)ioexpander
|
2015-07-09 15:31:22 +02:00
|
|
|
|
|
|
|
endif
|