Guest User

mvneta bm mbus print

a guest
Nov 30th, 2015
169
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
  2. index 3d1c0c3..daedb38 100644
  3. --- a/drivers/bus/mvebu-mbus.c
  4. +++ b/drivers/bus/mvebu-mbus.c
  5. @@ -964,6 +964,8 @@ int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr)
  6.     for (i = 0; i < dram->num_cs; i++) {
  7.         const struct mbus_dram_window *cs = dram->cs + i;
  8.  
  9. +       printk("size = 0x%x, target = 0x%x, attr = 0x%x\n", cs->size,
  10. +               dram->mbus_dram_target_id, cs->mbus_attr);
  11.         if (cs->base <= phyaddr && phyaddr <= (cs->base + cs->size)) {
  12.             *target = dram->mbus_dram_target_id;
  13.             *attr = cs->mbus_attr;
RAW Paste Data