arch/{nrf53|nrf91}: port cc99d94cfd change from nrf52

Fixed NRF52 I2C register naming
This commit is contained in:
raiden00pl 2023-08-13 08:57:34 +02:00 committed by Alan Carvalho de Assis
parent 3a61db4c7b
commit eec59015f0
4 changed files with 14 additions and 14 deletions

View File

@ -62,9 +62,9 @@
#define NRF53_TWIM_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */
#define NRF53_TWIM_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */
#define NRF53_TWIM_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */
#define NRF53_TWIM_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF53_TWIM_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF53_TWIM_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF53_TWIM_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF53_TWIM_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF53_TWIM_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF53_TWIM_ADDRESS_OFFSET 0x0588 /* TWIM address */
/* Register offsets for TWI slave (TWIS) ************************************/
@ -94,9 +94,9 @@
#define NRF53_TWIS_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */
#define NRF53_TWIS_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */
#define NRF53_TWIS_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */
#define NRF53_TWIS_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF53_TWIS_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF53_TWIS_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF53_TWIS_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF53_TWIS_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF53_TWIS_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF53_TWIS_ADDRESS0_OFFSET 0x0588 /* TWIS address 0 */
#define NRF53_TWIS_ADDRESS1_OFFSET 0x058c /* TWIS address 1 */
#define NRF53_TWIS_CONFIG_OFFSET 0x0594 /* Configuration register for the address match mechanism */

View File

@ -423,7 +423,7 @@ static int nrf53_i2c_transfer(struct i2c_master_s *dev,
/* Write number of bytes in TXD buffer */
regval = priv->dcnt;
nrf53_i2c_putreg(priv, NRF53_TWIM_TXMAXCNT_OFFSET, regval);
nrf53_i2c_putreg(priv, NRF53_TWIM_TXDMAXCNT_OFFSET, regval);
/* Start TX sequence */

View File

@ -62,9 +62,9 @@
#define NRF91_TWIM_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */
#define NRF91_TWIM_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */
#define NRF91_TWIM_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */
#define NRF91_TWIM_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF91_TWIM_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF91_TWIM_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF91_TWIM_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF91_TWIM_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF91_TWIM_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF91_TWIM_ADDRESS_OFFSET 0x0588 /* TWIM address */
/* Register offsets for TWI slave (TWIS) ************************************/
@ -94,9 +94,9 @@
#define NRF91_TWIS_RXDAMOUNT_OFFSET 0x053c /* Number of bytes transferred in the last RXD transaction */
#define NRF91_TWIS_RXDLIST_OFFSET 0x0540 /* RX EasyDMA list type */
#define NRF91_TWIS_TXDPTR_OFFSET 0x0544 /* TXD Data pointer */
#define NRF91_TWIS_TXMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF91_TWIS_TXAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF91_TWIS_TXLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF91_TWIS_TXDMAXCNT_OFFSET 0x0548 /* Maximum number of bytes in TXD buffer */
#define NRF91_TWIS_TXDAMOUNT_OFFSET 0x054c /* Number of bytes transferred in the last TXD transaction */
#define NRF91_TWIS_TXDLIST_OFFSET 0x0550 /* TX EasyDMA list type */
#define NRF91_TWIS_ADDRESS0_OFFSET 0x0588 /* TWIS address 0 */
#define NRF91_TWIS_ADDRESS1_OFFSET 0x058c /* TWIS address 1 */
#define NRF91_TWIS_CONFIG_OFFSET 0x0594 /* Configuration register for the address match mechanism */

View File

@ -423,7 +423,7 @@ static int nrf91_i2c_transfer(struct i2c_master_s *dev,
/* Write number of bytes in TXD buffer */
regval = priv->dcnt;
nrf91_i2c_putreg(priv, NRF91_TWIM_TXMAXCNT_OFFSET, regval);
nrf91_i2c_putreg(priv, NRF91_TWIM_TXDMAXCNT_OFFSET, regval);
/* Start TX sequence */