Searched +full:pnx +full:- +full:i2c (Results 1 – 3 of 3) sorted by relevance
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---4 $id: http://devicetree.org/schemas/i2c/nxp,pnx-i2c.yaml#5 $schema: http://devicetree.org/meta-schemas/core.yaml#7 title: NXP PNX I2C Controller10 - Animesh Agarwal <animeshagarwal28@gmail.com>13 - $ref: /schemas/i2c/i2c-controller.yaml#17 const: nxp,pnx-i2c28 clock-frequency:32 - compatible[all …]
2 * Provides I2C support for Philips PNX010x/PNX4008 boards.7 * 2004-2006 (c) MontaVista Software, Inc. This file is licensed under17 #include <linux/i2c.h>82 #define I2C_REG_RX(a) ((a)->ioaddr) /* Rx FIFO reg (RO) */83 #define I2C_REG_TX(a) ((a)->ioaddr) /* Tx FIFO reg (WO) */84 #define I2C_REG_STS(a) ((a)->ioaddr + 0x04) /* Status reg (RO) */85 #define I2C_REG_CTL(a) ((a)->ioaddr + 0x08) /* Ctl reg */86 #define I2C_REG_CKL(a) ((a)->ioaddr + 0x0c) /* Clock divider low */87 #define I2C_REG_CKH(a) ((a)->ioaddr + 0x10) /* Clock divider high */88 #define I2C_REG_ADR(a) ((a)->ioaddr + 0x14) /* I2C address */[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later5 * Code portions referenced from the i2x-pxa and i2c-pnx drivers17 #include <linux/i2c.h>46 /* I2C SCL clock has different duty cycle depending on mode */52 * 26 possible I2C status codes, but codes applicable only83 static void i2c_lpc2k_reset(struct lpc2k_i2c *i2c) in i2c_lpc2k_reset() argument86 writel(LPC24XX_CLEAR_ALL, i2c->base + LPC24XX_I2CONCLR); in i2c_lpc2k_reset()87 writel(0, i2c->base + LPC24XX_I2ADDR); in i2c_lpc2k_reset()88 writel(LPC24XX_I2EN, i2c->base + LPC24XX_I2CONSET); in i2c_lpc2k_reset()91 static int i2c_lpc2k_clear_arb(struct lpc2k_i2c *i2c) in i2c_lpc2k_clear_arb() argument[all …]