From 9877c448597249cd45919eb7173170cbb849e722 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Sep 2020 08:14:56 +0200 Subject: add softi2c pullup to Kconfig --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9244c3f..6f09eee 100644 --- a/Makefile +++ b/Makefile @@ -258,14 +258,23 @@ ifdef CONFIG_timer_freq COMMON_FLAGS += -DF_TIMER=${CONFIG_timer_freq} endif +ifdef CONFIG_driver_softi2c_pullup-dynamic_internal + softi2c_pullup=internal +endif ifeq (${softi2c_pullup}, internal) COMMON_FLAGS += -DSOFTI2C_PULLUP_INTERNAL endif +ifdef CONFIG_driver_softi2c_pullup_dynamic_external + softi2c_pullup=external +endif ifeq (${softi2c_pullup}, external) COMMON_FLAGS += -DSOFTI2C_PULLUP_EXTERNAL endif +ifdef CONFIG_driver_softi2c_pullup_external + softi2c_pullup=gpio +endif ifeq (${softi2c_pullup}, gpio) COMMON_FLAGS += -DSOFTI2C_PULLUP_FIXED_GPIO endif -- cgit v1.2.3