1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <intelblocks/p2sb.h>
7 void p2sb_soc_get_sb_mask(uint32_t *ep_mask
, size_t count
)
11 if (count
!= P2SB_EP_MASK_MAX_REG
) {
12 printk(BIOS_ERR
, "Unable to program EPMASK registers\n");
17 * Set p2sb PCI offset EPMASK5 [29, 28, 27, 26] to disable Sideband
18 * access for PCI Root Bridge.
19 * Set p2sb PCI offset EPMASK5 [17, 16,10, 1] to disable Sideband
20 * access for MIPI controller.
22 mask
= (1 << 29) | (1 << 28) | (1 << 27) | (1 << 26) | (1 << 17) |
23 (1 << 16) | (1 << 10) | (1 << 1);
25 ep_mask
[P2SB_EP_MASK_5_REG
] = mask
;
28 * Set p2sb PCI offset EPMASK7 [6, 5] to disable Sideband
29 * access for XHCI controller.
31 mask
= (1 << 6) | (1 << 5);
33 ep_mask
[P2SB_EP_MASK_7_REG
] = mask
;