p1ln: move common stuff to p1-common

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