lpc31xx: Ported watchdog driver

Minor changes for fixing compilation errors. Driver
copied from:

https://github.com/embeddedprojects/gnublin-lpc3131-3.3.0

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