]> 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)
commit73c53ba307b67a36b2b96ac082ad0e7d34650b48
tree8d9374081accb02afb6821332ca5512f169804a2
parentdbbf7a49bce6dd2dceaeff7a01684cfef11268bc
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