diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2020-09-08 18:59:58 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-10-01 19:43:05 +0200 |
commit | 86d1fa17fb91d2579ed059db0125a198c7a388fd (patch) | |
tree | c4ae54329b490ac7785168232338a10728813d24 /include/usb | |
parent | 740820519c69d84b320199a8a4348e47c447ebfb (diff) | |
download | u-boot-86d1fa17fb91d2579ed059db0125a198c7a388fd.tar.gz u-boot-86d1fa17fb91d2579ed059db0125a198c7a388fd.tar.bz2 u-boot-86d1fa17fb91d2579ed059db0125a198c7a388fd.zip |
usb: xhci: convert to HCS_MAX_PORTS()
Use HCS_MAX_PORTS(p) instead of
((p & HCS_MAX_PORTS_MASK) >> HCS_MAX_PORTS_SHIFT)
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/xhci.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/usb/xhci.h b/include/usb/xhci.h index 3de46cd95e..cf4c0208b2 100644 --- a/include/usb/xhci.h +++ b/include/usb/xhci.h @@ -101,8 +101,6 @@ struct xhci_hccr { /* bits 8:18, Max Interrupters */ #define HCS_MAX_INTRS(p) (((p) >> 8) & 0x7ff) /* bits 24:31, Max Ports - max value is 0x7F = 127 ports */ -#define HCS_MAX_PORTS_SHIFT 24 -#define HCS_MAX_PORTS_MASK (0xff << HCS_MAX_PORTS_SHIFT) #define HCS_MAX_PORTS(p) (((p) >> 24) & 0xff) /* HCSPARAMS2 - hcs_params2 - bitmasks */ |