diff --git a/drivers/arm/cci/cci.c b/drivers/arm/cci/cci.c index 81808b9..71b65f4 100644 --- a/drivers/arm/cci/cci.c +++ b/drivers/arm/cci/cci.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -142,6 +143,12 @@ SLAVE_IFACE_OFFSET(slave_if_id) + SNOOP_CTRL_REG, DVM_EN_BIT | SNOOP_EN_BIT); + /* + * Wait for the completion of the write to the Snoop Control Register + * before testing the change_pending bit + */ + dmbish(); + /* Wait for the dust to settle down */ while (mmio_read_32(cci_base + STATUS_REG) & CHANGE_PENDING_BIT) ; @@ -163,6 +170,12 @@ SLAVE_IFACE_OFFSET(slave_if_id) + SNOOP_CTRL_REG, ~(DVM_EN_BIT | SNOOP_EN_BIT)); + /* + * Wait for the completion of the write to the Snoop Control Register + * before testing the change_pending bit + */ + dmbish(); + /* Wait for the dust to settle down */ while (mmio_read_32(cci_base + STATUS_REG) & CHANGE_PENDING_BIT) ;