serial: max3107: Abstract out the platform specific bits

At the moment there is only one platform type supported and there is is
hard wired, but with these changes the infrastructure is now there for
anyone else to provide methods for their hardware.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alan Cox 2010-06-30 17:58:38 +01:00 • committed by Greg Kroah-Hartman
commit 61fd15262b
6 changed files with 531 additions and 337 deletions

View file

@ -186,6 +186,10 @@
#define PORT_ALTERA_JTAGUART 91
#define PORT_ALTERA_UART 92
/* MAX3107 */
#define PORT_MAX3107 94
#ifdef __KERNEL__
#include <linux/compiler.h>