v5xx-common: initial commonization from v500

Change-Id: I2e3a68d2550e6decfdfba5657da7db5e4466732e