|
@@ -42,6 +42,8 @@ EXPORT_SYMBOL_GPL(mv_mbus_dram_info);
|
|
|
#define WIN_REMAP_LO_OFF 0x0008
|
|
|
#define WIN_REMAP_HI_OFF 0x000c
|
|
|
|
|
|
+#define ATTR_HW_COHERENCY (0x1 << 4)
|
|
|
+
|
|
|
/*
|
|
|
* Default implementation
|
|
|
*/
|
|
@@ -163,6 +165,8 @@ void __init orion_setup_cpu_mbus_target(const struct orion_addr_map_cfg *cfg,
|
|
|
w = &orion_mbus_dram_info.cs[cs++];
|
|
|
w->cs_index = i;
|
|
|
w->mbus_attr = 0xf & ~(1 << i);
|
|
|
+ if (cfg->hw_io_coherency)
|
|
|
+ w->mbus_attr |= ATTR_HW_COHERENCY;
|
|
|
w->base = base & 0xffff0000;
|
|
|
w->size = (size | 0x0000ffff) + 1;
|
|
|
}
|