Searched refs:ctl2 (Results 1 – 4 of 4) sorted by relevance
| /openbmc/u-boot/drivers/rtc/ |
| H A D | rx8025.c | 81 uchar sec, min, hour, mday, wday, mon, year, ctl2; in rtc_get() local 100 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_get() 101 if (ctl2 & RTC_CTL2_BIT_PON) { in rtc_get() 106 if (ctl2 & RTC_CTL2_BIT_VDET) { in rtc_get() 111 if (!(ctl2 & RTC_CTL2_BIT_XST)) { in rtc_get() 168 uchar ctl2; in rtc_reset() local 173 ctl2 = rtc_read(RTC_CTL2_REG_ADDR); in rtc_reset() 174 ctl2 &= ~(RTC_CTL2_BIT_PON | RTC_CTL2_BIT_VDET); in rtc_reset() 175 ctl2 |= RTC_CTL2_BIT_XST | RTC_CTL2_BIT_VDSL; in rtc_reset() 176 rtc_write (RTC_CTL2_REG_ADDR, ctl2); in rtc_reset()
|
| /openbmc/qemu/tests/qtest/ |
| H A D | npcm7xx_smbus-test.c | 197 uint8_t ctl2 = qtest_readb(qts, base_addr + OFFSET_CTL2); in enable_bus() local 199 ctl2 |= CTL2_ENABLE; in enable_bus() 200 qtest_writeb(qts, base_addr + OFFSET_CTL2, ctl2); in enable_bus() 206 uint8_t ctl2 = qtest_readb(qts, base_addr + OFFSET_CTL2); in disable_bus() local 208 ctl2 &= ~CTL2_ENABLE; in disable_bus() 209 qtest_writeb(qts, base_addr + OFFSET_CTL2, ctl2); in disable_bus()
|
| /openbmc/qemu/include/hw/i2c/ |
| H A D | npcm7xx_smbus.h | 85 uint8_t ctl2; member
|
| /openbmc/qemu/hw/i2c/ |
| H A D | npcm7xx_smbus.c | 164 #define NPCM7XX_SMBUS_ENABLED(s) ((s)->ctl2 & NPCM7XX_SMBCTL2_ENABLE) 571 s->ctl2 = value; in npcm7xx_smbus_write_ctl2() 685 value = s->ctl2; in npcm7xx_smbus_read() 1000 s->ctl2 = NPCM7XX_SMB_CTL2_INIT_VAL; in npcm7xx_smbus_enter_reset() 1056 VMSTATE_UINT8(ctl2, NPCM7xxSMBusState),
|