|
|
@ -240,23 +240,28 @@ LOCAL struct drvBusFuncs vxbFtSpiVxbFuncs = { |
|
|
|
vxbFtSpiInstConnect /* devConnect */ |
|
|
|
}; |
|
|
|
|
|
|
|
LOCAL device_method_t vxbFtSpiDeviceMethods[] = { DEVMETHOD(vxbSpiControlGet, vxbFtSpiCtrlGet), |
|
|
|
/* clang-format off */ |
|
|
|
LOCAL device_method_t vxbFtSpiDeviceMethods[] = { |
|
|
|
DEVMETHOD(vxbSpiControlGet, vxbFtSpiCtrlGet), |
|
|
|
DEVMETHOD(busDevShow, vxbFtSpiShow), |
|
|
|
DEVMETHOD(vxbDrvUnlink, vxbFtSpiInstUnlink), DEVMETHOD_END }; |
|
|
|
DEVMETHOD(vxbDrvUnlink, vxbFtSpiInstUnlink), |
|
|
|
DEVMETHOD_END |
|
|
|
}; |
|
|
|
|
|
|
|
LOCAL struct vxbPlbRegister vxbFtSpiDevRegistration = { |
|
|
|
{ |
|
|
|
NULL, /* pNext */ |
|
|
|
VXB_DEVID_DEVICE, /* devID */ |
|
|
|
VXB_BUSID_PLB, /* busID = PLB */ |
|
|
|
VXB_VER_4_0_0, /* vxbVersion */ |
|
|
|
FT_SPI_NAME, /* drvName */ |
|
|
|
&vxbFtSpiVxbFuncs, /* pDrvBusFuncs */ |
|
|
|
&vxbFtSpiDeviceMethods[0], /* pMethods */ |
|
|
|
NULL, /* devProbe */ |
|
|
|
NULL, /* pParamDefaults */ |
|
|
|
NULL , /* pNext */ |
|
|
|
VXB_DEVID_DEVICE , /* devID */ |
|
|
|
VXB_BUSID_PLB , /* busID = PLB */ |
|
|
|
VXB_VER_4_0_0 , /* vxbVersion */ |
|
|
|
FT_SPI_NAME , /* drvName */ |
|
|
|
&vxbFtSpiVxbFuncs , /* pDrvBusFuncs */ |
|
|
|
&vxbFtSpiDeviceMethods[0] , /* pMethods */ |
|
|
|
NULL , /* devProbe */ |
|
|
|
NULL , /* pParamDefaults */ |
|
|
|
}, |
|
|
|
}; |
|
|
|
/* clang-format on */ |
|
|
|
|
|
|
|
/*
|
|
|
|
* vxbFtSpiRegister - register with the VxBus subsystem |
|
|
@ -1053,9 +1058,9 @@ LOCAL STATUS vxbFtSpiTransfer(VXB_DEVICE_ID pDev, /* controller pDev */ |
|
|
|
|
|
|
|
FSpimTransferPollFifo(pDrvCtrl, pPkg->txBuf, pPkg->rxBuf, max(pPkg->txLen, pPkg->rxLen)); |
|
|
|
|
|
|
|
/* FSpimSetChipSelection(pDrvCtrl, FALSE); */ |
|
|
|
/* FSpimSetChipSelection(pDrvCtrl, FALSE); */ |
|
|
|
|
|
|
|
SPI_DBG(SPI_DBG_ERR," xfer : tx %d bytes, rx %d bytes\n", pPkg->txLen, pPkg->rxLen, 3, 4, 5, 6); |
|
|
|
SPI_DBG(SPI_DBG_ERR, " xfer : tx %d bytes, rx %d bytes\n", pPkg->txLen, pPkg->rxLen, 3, 4, 5, 6); |
|
|
|
|
|
|
|
if (pDrvCtrl->initPhase >= 2) { |
|
|
|
semGive(pDrvCtrl->muxSem); |
|
|
|