p31xx: rewrite landscape support, fix build mms136 as a module