at91sam9: switch to the same api as the kernel