Added raspberry pi patches to lms, copied from http://allthingspi.webspace.virginmedia.com