]> 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)
commit33daae8a1c758478e372577c468d59facff96dd3
tree9e5aeaea3c68903d6bd24bbaddc9cc4e133887b4
parent4258172c3a7e5a5264637ffc6584e151cad3e068
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