Skip to content

Commit

Permalink
imx7-ccm: add digprog mmio write method
Browse files Browse the repository at this point in the history
Add digprog mmio write method to avoid assert failure during
initialisation.

Reviewed-by: Li Qiang <[email protected]>
Signed-off-by: Prasad J Pandit <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
Prasad J Pandit authored and bonzini committed Feb 8, 2021
1 parent 2c9fb3b commit 735754a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hw/misc/imx7_ccm.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,16 @@ static const struct MemoryRegionOps imx7_set_clr_tog_ops = {
},
};

static void imx7_digprog_write(void *opaque, hwaddr addr,
uint64_t data, unsigned size)
{
qemu_log_mask(LOG_GUEST_ERROR,
"Guest write to read-only ANALOG_DIGPROG register\n");
}

static const struct MemoryRegionOps imx7_digprog_ops = {
.read = imx7_set_clr_tog_read,
.write = imx7_digprog_write,
.endianness = DEVICE_NATIVE_ENDIAN,
.impl = {
.min_access_size = 4,
Expand Down

0 comments on commit 735754a

Please sign in to comment.