From f6a4e11e2e489a68f66a17db6314ec5325f5ac81 Mon Sep 17 00:00:00 2001 From: vishnuocv Date: Wed, 14 Jun 2023 10:30:54 +0900 Subject: [PATCH 1/2] added X1 Carbon 10 support --- src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h b/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h index 7646942..53f67a2 100755 --- a/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h +++ b/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h @@ -28,7 +28,7 @@ * 3 = OM557x on BeagleBone black * */ -#define CONFIGURATION 1 +#define CONFIGURATION 0 #if (CONFIGURATION == 1) /* OM557x on Raspberry Pi */ @@ -50,8 +50,8 @@ #define PIN_ENABLE 30 #else /* Custom configuration */ - #define I2C_BUS "/dev/i2c-1" - #define I2C_ADDRESS 0x28 - #define PIN_INT 23 - #define PIN_ENABLE 24 + #define I2C_BUS "/dev/i2c-2" + #define I2C_ADDRESS 0x29 + #define PIN_INT 512+0x0141 + #define PIN_ENABLE 512+0x0145 #endif From 5c77de426d60f511a68e0812d13d2add94aee4ef Mon Sep 17 00:00:00 2001 From: vishnuocv Date: Wed, 11 Oct 2023 14:55:58 +0900 Subject: [PATCH 2/2] X1C11 and X1Yoga 8 support added --- src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h b/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h index 53f67a2..d99e1f2 100755 --- a/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h +++ b/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h @@ -28,7 +28,7 @@ * 3 = OM557x on BeagleBone black * */ -#define CONFIGURATION 0 +#define CONFIGURATION 3 #if (CONFIGURATION == 1) /* OM557x on Raspberry Pi */ @@ -37,17 +37,17 @@ #define PIN_INT 23 #define PIN_ENABLE 24 #elif (CONFIGURATION == 2) -/* OM557x on UdooNeo */ - #define I2C_BUS "/dev/i2c-1" - #define I2C_ADDRESS 0x28 - #define PIN_INT 105 - #define PIN_ENABLE 149 -#elif (CONFIGURATION == 3) -/* OM557x on BeagleBone Black */ +/* X1Yoga7/X1Carbon10 */ #define I2C_BUS "/dev/i2c-2" - #define I2C_ADDRESS 0x28 - #define PIN_INT 61 - #define PIN_ENABLE 30 + #define I2C_ADDRESS 0x29 + #define PIN_INT 512+0x0141 + #define PIN_ENABLE 512+0x0145 +#elif (CONFIGURATION == 3) +/* X1Yoga8/X1Carbon11 */ + #define I2C_BUS "/dev/i2c-3" + #define I2C_ADDRESS 0x29 + #define PIN_INT 512+0x141 + #define PIN_ENABLE 512+0x145 #else /* Custom configuration */ #define I2C_BUS "/dev/i2c-2"