]> git.baikalelectronics.ru Git - kernel.git/commit
NTB: switchtec_ntb: Initialize hardware for doorbells and messages
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 3 Aug 2017 18:19:48 +0000 (12:19 -0600)
committerJon Mason <jdmason@kudzu.us>
Sun, 19 Nov 2017 01:37:12 +0000 (20:37 -0500)
commit3615b90e8b9ee7c0b8cc4f7f1a4d379925e93700
tree9e5aeaea3c68903d6bd24bbaddc9cc4e133887b4
parent45fcea9d092e46d8119beeea24fe1878cea571cf
NTB: switchtec_ntb: Initialize hardware for doorbells and messages

Set up some hardware registers and creates interrupt service routines
for the doorbells and messages.

There are 64 doorbells in the switch that are shared between all
partitions. The upper 4 doorbells are also shared with the messages
and are therefore not used. Thus, this provides 28 doorbells for each
partition.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Stephen Bates <sbates@raithlin.com>
Reviewed-by: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c