diff options
Diffstat (limited to 'src/superio/smsc/lpc47n217')
-rw-r--r-- | src/superio/smsc/lpc47n217/Config.lb | 24 | ||||
-rw-r--r-- | src/superio/smsc/lpc47n217/chip.h | 36 | ||||
-rw-r--r-- | src/superio/smsc/lpc47n217/lpc47n217.h | 36 | ||||
-rw-r--r-- | src/superio/smsc/lpc47n217/lpc47n217_early_serial.c | 6 | ||||
-rw-r--r-- | src/superio/smsc/lpc47n217/superio.c | 15 |
5 files changed, 90 insertions, 27 deletions
diff --git a/src/superio/smsc/lpc47n217/Config.lb b/src/superio/smsc/lpc47n217/Config.lb index 2a8ae62d76..66548ec3bd 100644 --- a/src/superio/smsc/lpc47n217/Config.lb +++ b/src/superio/smsc/lpc47n217/Config.lb @@ -1,2 +1,22 @@ -config chip.h
-object superio.o
+## +## This file is part of the LinuxBIOS project. +## +## Copyright (C) 2005 Digital Design Corporation +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## + +config chip.h +object superio.o diff --git a/src/superio/smsc/lpc47n217/chip.h b/src/superio/smsc/lpc47n217/chip.h index abd7e461bf..a17ded8a75 100644 --- a/src/superio/smsc/lpc47n217/chip.h +++ b/src/superio/smsc/lpc47n217/chip.h @@ -1,8 +1,28 @@ -struct chip_operations;
-extern struct chip_operations superio_smsc_lpc47n217_ops;
-
-#include <uart8250.h>
-
-struct superio_smsc_lpc47n217_config {
- struct uart8250 com1, com2;
-};
+/* + * This file is part of the LinuxBIOS project. + * + * Copyright (C) 2005 Digital Design Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +struct chip_operations; +extern struct chip_operations superio_smsc_lpc47n217_ops; + +#include <uart8250.h> + +struct superio_smsc_lpc47n217_config { + struct uart8250 com1, com2; +}; diff --git a/src/superio/smsc/lpc47n217/lpc47n217.h b/src/superio/smsc/lpc47n217/lpc47n217.h index 15c3d29e35..2dd940b3e9 100644 --- a/src/superio/smsc/lpc47n217/lpc47n217.h +++ b/src/superio/smsc/lpc47n217/lpc47n217.h @@ -1,8 +1,28 @@ -// These are arbitrary, but must match declarations in the mainboard config file.
-// Values chosen to match SMSC 47B37x.
-
-#define LPC47N217_PP 3 /* Parallel Port */
-#define LPC47N217_SP1 4 /* Com1 */
-#define LPC47N217_SP2 5 /* Com2 */
-
-#define LPC47N217_MAX_CONFIG_REGISTER 0x39
+/* + * This file is part of the LinuxBIOS project. + * + * Copyright (C) 2005 Digital Design Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// These are arbitrary, but must match declarations in the mainboard config file. +// Values chosen to match SMSC 47B37x. + +#define LPC47N217_PP 3 /* Parallel Port */ +#define LPC47N217_SP1 4 /* Com1 */ +#define LPC47N217_SP2 5 /* Com2 */ + +#define LPC47N217_MAX_CONFIG_REGISTER 0x39 diff --git a/src/superio/smsc/lpc47n217/lpc47n217_early_serial.c b/src/superio/smsc/lpc47n217/lpc47n217_early_serial.c index ae7c2a73a5..b29cbe557d 100644 --- a/src/superio/smsc/lpc47n217/lpc47n217_early_serial.c +++ b/src/superio/smsc/lpc47n217/lpc47n217_early_serial.c @@ -1,5 +1,5 @@ /* - * lpc47n217_early_serial.c: Pre-RAM driver for SMSC LPC47N217 Super I/O chip + * This file is part of the LinuxBIOS project. * * Copyright (C) 2005 Digital Design Corporation * @@ -15,9 +15,11 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +/* Pre-RAM driver for SMSC LPC47N217 Super I/O chip. */ + #include <arch/romcc_io.h> #include <assert.h> #include "lpc47n217.h" diff --git a/src/superio/smsc/lpc47n217/superio.c b/src/superio/smsc/lpc47n217/superio.c index e7a5b5c0c9..690f008637 100644 --- a/src/superio/smsc/lpc47n217/superio.c +++ b/src/superio/smsc/lpc47n217/superio.c @@ -1,11 +1,9 @@ /* - * superio.c: RAM-based driver for SMSC LPC47N217 Super I/O chip - * - * Based on LinuxBIOS code for SMSC 47B397: - * Copyright 2000 AG Electronics Ltd. - * Copyright 2003-2004 Linux Networx - * Copyright 2004 Tyan + * This file is part of the LinuxBIOS project. * + * Copyright (C) 2000 AG Electronics Ltd. + * Copyright (C) 2003-2004 Linux Networx + * Copyright (C) 2004 Tyan * Copyright (C) 2005 Digital Design Corporation * * This program is free software; you can redistribute it and/or modify @@ -20,9 +18,12 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +/* RAM-based driver for SMSC LPC47N217 Super I/O chip. */ +/* Based on LinuxBIOS code for SMSC 47B397. */ + #include <arch/io.h> #include <device/device.h> #include <device/pnp.h> |