tl;dr; All Ps can be AWD, but not all AWDs can be Ps.
The drive unit is the combination of the motor proper, gears, and drive electronics. The entire drive unit is tested and binned and results stored in the central database and likely the drive unit itself (max current calibration?). Based on those results, it is either determined to be good enough to be a P, or not. A P level unit can be used in an AWD, but a non-P level unit cannot be used in a P. So you can have an AWD that could have been a P, and indeed can still be configured as such, but not every AWD can do that.
The drive unit is the combination of the motor proper, gears, and drive electronics. The entire drive unit is tested and binned and results stored in the central database and likely the drive unit itself (max current calibration?). Based on those results, it is either determined to be good enough to be a P, or not. A P level unit can be used in an AWD, but a non-P level unit cannot be used in a P. So you can have an AWD that could have been a P, and indeed can still be configured as such, but not every AWD can do that.