mirror of https://gitee.com/openkylin/linux.git
usb: musb: debugfs: cope with blackfin's oddities
Blackfin's MUSB implementation lacks a bunch of registers which they end up not defining a macro for. In order to avoid build breaks, let's ifdef out some of the registers from our regdump debugfs utility so that we don't try to use those on Blackfin builds. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
97bf6af1f9
commit
449a7e99fd
|
@ -59,20 +59,12 @@ static const struct musb_register_map musb_regmap[] = {
|
|||
{ "RxMaxPp", MUSB_RXMAXP, 16 },
|
||||
{ "RxCSR", MUSB_RXCSR, 16 },
|
||||
{ "RxCount", MUSB_RXCOUNT, 16 },
|
||||
{ "ConfigData", MUSB_CONFIGDATA,8 },
|
||||
{ "IntrRxE", MUSB_INTRRXE, 16 },
|
||||
{ "IntrTxE", MUSB_INTRTXE, 16 },
|
||||
{ "IntrUsbE", MUSB_INTRUSBE, 8 },
|
||||
{ "DevCtl", MUSB_DEVCTL, 8 },
|
||||
{ "BabbleCtl", MUSB_BABBLE_CTL,8 },
|
||||
{ "TxFIFOsz", MUSB_TXFIFOSZ, 8 },
|
||||
{ "RxFIFOsz", MUSB_RXFIFOSZ, 8 },
|
||||
{ "TxFIFOadd", MUSB_TXFIFOADD, 16 },
|
||||
{ "RxFIFOadd", MUSB_RXFIFOADD, 16 },
|
||||
{ "VControl", 0x68, 32 },
|
||||
{ "HWVers", 0x69, 16 },
|
||||
{ "EPInfo", MUSB_EPINFO, 8 },
|
||||
{ "RAMInfo", MUSB_RAMINFO, 8 },
|
||||
{ "LinkInfo", MUSB_LINKINFO, 8 },
|
||||
{ "VPLen", MUSB_VPLEN, 8 },
|
||||
{ "HS_EOF1", MUSB_HS_EOF1, 8 },
|
||||
|
@ -103,6 +95,16 @@ static const struct musb_register_map musb_regmap[] = {
|
|||
{ "DMA_CNTLch7", 0x274, 16 },
|
||||
{ "DMA_ADDRch7", 0x278, 32 },
|
||||
{ "DMA_COUNTch7", 0x27C, 32 },
|
||||
#ifndef CONFIG_BLACKFIN
|
||||
{ "ConfigData", MUSB_CONFIGDATA,8 },
|
||||
{ "BabbleCtl", MUSB_BABBLE_CTL,8 },
|
||||
{ "TxFIFOsz", MUSB_TXFIFOSZ, 8 },
|
||||
{ "RxFIFOsz", MUSB_RXFIFOSZ, 8 },
|
||||
{ "TxFIFOadd", MUSB_TXFIFOADD, 16 },
|
||||
{ "RxFIFOadd", MUSB_RXFIFOADD, 16 },
|
||||
{ "EPInfo", MUSB_EPINFO, 8 },
|
||||
{ "RAMInfo", MUSB_RAMINFO, 8 },
|
||||
#endif
|
||||
{ } /* Terminating Entry */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue