Loading hw/i2c/omap_i2c.c +12 −8 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ * with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" #include "qemu/log.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "hw/arm/omap.h" Loading Loading @@ -340,12 +341,13 @@ static void omap_i2c_write(void *opaque, hwaddr addr, break; } if ((value & (1 << 15)) && !(value & (1 << 10))) { /* MST */ fprintf(stderr, "%s: I^2C slave mode not supported\n", qemu_log_mask(LOG_UNIMP, "%s: I^2C slave mode not supported\n", __func__); break; } if ((value & (1 << 15)) && value & (1 << 8)) { /* XA */ fprintf(stderr, "%s: 10-bit addressing mode not supported\n", qemu_log_mask(LOG_UNIMP, "%s: 10-bit addressing mode not supported\n", __func__); break; } Loading Loading @@ -392,8 +394,10 @@ static void omap_i2c_write(void *opaque, hwaddr addr, s->stat |= 0x3f; omap_i2c_interrupts_update(s); } if (value & (1 << 15)) /* ST_EN */ fprintf(stderr, "%s: System Test not supported\n", __func__); if (value & (1 << 15)) { /* ST_EN */ qemu_log_mask(LOG_UNIMP, "%s: System Test not supported\n", __func__); } break; default: Loading Loading
hw/i2c/omap_i2c.c +12 −8 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ * with this program; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" #include "qemu/log.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" #include "hw/arm/omap.h" Loading Loading @@ -340,12 +341,13 @@ static void omap_i2c_write(void *opaque, hwaddr addr, break; } if ((value & (1 << 15)) && !(value & (1 << 10))) { /* MST */ fprintf(stderr, "%s: I^2C slave mode not supported\n", qemu_log_mask(LOG_UNIMP, "%s: I^2C slave mode not supported\n", __func__); break; } if ((value & (1 << 15)) && value & (1 << 8)) { /* XA */ fprintf(stderr, "%s: 10-bit addressing mode not supported\n", qemu_log_mask(LOG_UNIMP, "%s: 10-bit addressing mode not supported\n", __func__); break; } Loading Loading @@ -392,8 +394,10 @@ static void omap_i2c_write(void *opaque, hwaddr addr, s->stat |= 0x3f; omap_i2c_interrupts_update(s); } if (value & (1 << 15)) /* ST_EN */ fprintf(stderr, "%s: System Test not supported\n", __func__); if (value & (1 << 15)) { /* ST_EN */ qemu_log_mask(LOG_UNIMP, "%s: System Test not supported\n", __func__); } break; default: Loading