Refactored pin muxing infrastructure

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>