/src/sys/arch/evbarm/nslu2/ |
nslu2_iic.c | 108 /* SDA is output; enable SDA output if SDA OUTR is low */ 129 uint32_t oer, outr; local in function:slugiic_set_bits 141 * If lines are to be set to high, disable OER first then set OUTR. 142 * If lines are to be set to low, set OUTR first then enable OER. 151 outr = GPIO_CONF_READ_4(ixp425_softc, IXP425_GPIO_GPOUTR); 152 outr &= ~(GPIO_I2C_SDA_BIT | GPIO_I2C_SCL_BIT); 153 GPIO_CONF_WRITE_4(ixp425_softc, IXP425_GPIO_GPOUTR, outr | bits);
|
nslu2_iic.c | 108 /* SDA is output; enable SDA output if SDA OUTR is low */ 129 uint32_t oer, outr; local in function:slugiic_set_bits 141 * If lines are to be set to high, disable OER first then set OUTR. 142 * If lines are to be set to low, set OUTR first then enable OER. 151 outr = GPIO_CONF_READ_4(ixp425_softc, IXP425_GPIO_GPOUTR); 152 outr &= ~(GPIO_I2C_SDA_BIT | GPIO_I2C_SCL_BIT); 153 GPIO_CONF_WRITE_4(ixp425_softc, IXP425_GPIO_GPOUTR, outr | bits);
|
nslu2_iic.c | 108 /* SDA is output; enable SDA output if SDA OUTR is low */ 129 uint32_t oer, outr; local in function:slugiic_set_bits 141 * If lines are to be set to high, disable OER first then set OUTR. 142 * If lines are to be set to low, set OUTR first then enable OER. 151 outr = GPIO_CONF_READ_4(ixp425_softc, IXP425_GPIO_GPOUTR); 152 outr &= ~(GPIO_I2C_SDA_BIT | GPIO_I2C_SCL_BIT); 153 GPIO_CONF_WRITE_4(ixp425_softc, IXP425_GPIO_GPOUTR, outr | bits);
|