feat(versal2): implement USB_SET_STATE dummy IOCTL

USB DWC3 driver calls firmware API to set USB D0/D3 power states.
In absence of firmware driver probe these PM APIs return -ENODEV
and DWC3 driver probe fails. Till PLM implement these PM APIs as
a temporary workaround add dummy PM implementation in TFA.

Change-Id: I8768301524ffdc2f275221296feaa2a3ad0ad4f6
Signed-off-by: Maheedhar Bollapalli <MaheedharSai.Bollapalli@amd.com>
This commit is contained in:
Maheedhar Bollapalli 2024-09-04 18:29:38 -12:00 committed by Maheedhar Bollapalli
parent b76929825b
commit 282bce19bb

View file

@ -178,6 +178,8 @@ static int32_t no_pm_ioctl(uint32_t device_id, uint32_t ioctl_id,
mmio_write_32(PMXC_IOU_SLCR_SRAM_CSR, arg2); mmio_write_32(PMXC_IOU_SLCR_SRAM_CSR, arg2);
} }
break; break;
case IOCTL_USB_SET_STATE:
break;
default: default:
ret = PM_RET_ERROR_NOFEATURE; ret = PM_RET_ERROR_NOFEATURE;
break; break;