Bug fixing and skeleton for power buttons driver

Signed-off-by: Carlo Caione <carlo.caione@gmail.com>