lpc313x: Ported SPI master driver

Minor modifications for fixing some compilation
warnings. Driver copied from:

https://bitbucket.org/KubuntuFan/gnublin-linux-3.x

Signed-off-by: Luis Galdos <luisgaldos@gmail.com>