mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
update DriverAuxSendCommands() to work on P3-ROC
This commit is contained in:
committed by
Tom Collins
parent
52c828df50
commit
86c27a80f1
@@ -574,11 +574,17 @@ PRResult PRDevice::DriverAuxSendCommands(PRDriverAuxCommand * commands, uint8_t
|
|||||||
uint32_t convertedCommand;
|
uint32_t convertedCommand;
|
||||||
uint32_t addr;
|
uint32_t addr;
|
||||||
|
|
||||||
addr = (P_ROC_DRIVER_AUX_MEM_DECODE << P_ROC_DRIVER_CTRL_DECODE_SHIFT) |
|
if (chip_id == P_ROC_CHIP_ID)
|
||||||
startingAddr;
|
{
|
||||||
|
addr = (P_ROC_DRIVER_AUX_MEM_DECODE << P_ROC_DRIVER_CTRL_DECODE_SHIFT) | startingAddr;
|
||||||
|
commandBuffer[0] = CreateBurstCommand(P_ROC_BUS_DRIVER_CTRL_SELECT, addr, numCommands);
|
||||||
|
}
|
||||||
|
else // chip == P3_ROC_CHIP_ID)
|
||||||
|
{
|
||||||
|
addr = 0;
|
||||||
|
commandBuffer[0] = CreateBurstCommand(P3_ROC_BUS_AUX_CTRL_SELECT, addr, numCommands);
|
||||||
|
}
|
||||||
|
|
||||||
commandBuffer[0] = CreateBurstCommand(P_ROC_BUS_DRIVER_CTRL_SELECT,
|
|
||||||
addr, numCommands);
|
|
||||||
for (k=0; k<numCommands; k++) {
|
for (k=0; k<numCommands; k++) {
|
||||||
convertedCommand = CreateDriverAuxCommand(commands[k]);
|
convertedCommand = CreateDriverAuxCommand(commands[k]);
|
||||||
commandBuffer[k+1] = convertedCommand;
|
commandBuffer[k+1] = convertedCommand;
|
||||||
|
|||||||
Reference in New Issue
Block a user