d2x: adapt from beyondx

Change-Id: Ic27971aaf8e9f62870ef9a1f3d374157bfd229a8
11 files changed