bus: mvebu-mbus: provide api for obtaining IO and DRAM window information
authorMarcin Wojtas <mw@semihalf.com>
Mon, 14 Mar 2016 08:39:02 +0000 (09:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 16:19:46 +0000 (12:19 -0400)
commitf2900acea8018c4525ddaa86c7f7cd8afd3f0cc4
tree8d9374081accb02afb6821332ca5512f169804a2
parent293fdc24fcc9532e2a10120daa1c38b057f37209
bus: mvebu-mbus: provide api for obtaining IO and DRAM window information

This commit enables finding appropriate mbus window and obtaining its
target id and attribute for given physical address in two separate
routines, both for IO and DRAM windows. This functionality
is needed for Armada XP/38x Network Controller's Buffer Manager and
PnC configuration.

[gregory.clement@free-electrons.com: Fix size test for
mvebu_mbus_get_dram_win_info]

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
[DRAM window information reference in LKv3.10]
Signed-off-by: Evan Wang <xswang@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/bus/mvebu-mbus.c
include/linux/mbus.h