p1-common: move common stuff from p1 variants

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I80829844d775b6e52fd778b081e4aa2a83998af8