]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb62c4fc6d0fe93a06f17b8ab92013d54c7e94de9
tree8d9374081accb02afb6821332ca5512f169804a2
parent8e6df72e1acc2dce386745130aeb30c93d695027
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