trival. All the changes is about comment and spaces.
authorZheng Bao <zheng.bao@amd.com>
Mon, 28 Dec 2009 09:59:44 +0000 (09:59 +0000)
committerZheng Bao <Zheng.Bao@amd.com>
Mon, 28 Dec 2009 09:59:44 +0000 (09:59 +0000)
In superio folder.

1. Delete trailing white spaces.
2. Change the // comment to /* */.
3. Add some copyright header.
4. reindent.
5. delete multi blank lines.

I tried my best to find them. If anything left, please fix it
or tell me.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Zheng Bao <zheng.bao@amd.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4993 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

178 files changed:
src/superio/fintek/f71805f/Config.lb
src/superio/fintek/f71805f/Makefile.inc
src/superio/fintek/f71805f/f71805f.h
src/superio/fintek/f71805f/superio.c
src/superio/intel/i3100/Config.lb
src/superio/intel/i3100/Makefile.inc
src/superio/intel/i3100/superio.c
src/superio/ite/it8661f/Config.lb
src/superio/ite/it8661f/Makefile.inc
src/superio/ite/it8661f/chip.h
src/superio/ite/it8661f/it8661f.h
src/superio/ite/it8661f/it8661f_early_serial.c
src/superio/ite/it8661f/superio.c
src/superio/ite/it8671f/Config.lb
src/superio/ite/it8671f/Makefile.inc
src/superio/ite/it8671f/chip.h
src/superio/ite/it8671f/it8671f.h
src/superio/ite/it8671f/it8671f_early_serial.c
src/superio/ite/it8671f/superio.c
src/superio/ite/it8673f/Config.lb
src/superio/ite/it8673f/Makefile.inc
src/superio/ite/it8673f/chip.h
src/superio/ite/it8673f/it8673f.h
src/superio/ite/it8673f/it8673f_early_serial.c
src/superio/ite/it8673f/superio.c
src/superio/ite/it8705f/Config.lb
src/superio/ite/it8705f/Makefile.inc
src/superio/ite/it8705f/chip.h
src/superio/ite/it8705f/it8705f.h
src/superio/ite/it8705f/it8705f_early_serial.c
src/superio/ite/it8705f/superio.c
src/superio/ite/it8712f/Config.lb
src/superio/ite/it8712f/Makefile.inc
src/superio/ite/it8712f/chip.h
src/superio/ite/it8712f/it8712f.h
src/superio/ite/it8712f/it8712f_early_serial.c
src/superio/ite/it8712f/superio.c
src/superio/ite/it8716f/Config.lb
src/superio/ite/it8716f/Makefile.inc
src/superio/ite/it8716f/chip.h
src/superio/ite/it8716f/it8716f.h
src/superio/ite/it8716f/it8716f_early_init.c
src/superio/ite/it8716f/it8716f_early_serial.c
src/superio/ite/it8718f/Config.lb
src/superio/ite/it8718f/Makefile.inc
src/superio/ite/it8718f/chip.h
src/superio/ite/it8718f/it8718f_early_serial.c
src/superio/ite/it8718f/superio.c
src/superio/nsc/pc8374/Config.lb
src/superio/nsc/pc8374/Makefile.inc
src/superio/nsc/pc8374/chip.h
src/superio/nsc/pc8374/pc8374.h
src/superio/nsc/pc8374/pc8374_early_init.c
src/superio/nsc/pc8374/superio.c
src/superio/nsc/pc87309/Config.lb
src/superio/nsc/pc87309/Makefile.inc
src/superio/nsc/pc87309/superio.c
src/superio/nsc/pc87351/Config.lb
src/superio/nsc/pc87351/Makefile.inc
src/superio/nsc/pc87351/chip.h
src/superio/nsc/pc87351/pc87351.h
src/superio/nsc/pc87351/pc87351_early_serial.c
src/superio/nsc/pc87351/superio.c
src/superio/nsc/pc87360/Config.lb
src/superio/nsc/pc87360/Makefile.inc
src/superio/nsc/pc87360/chip.h
src/superio/nsc/pc87360/pc87360.h
src/superio/nsc/pc87360/pc87360_early_serial.c
src/superio/nsc/pc87360/superio.c
src/superio/nsc/pc87366/Config.lb
src/superio/nsc/pc87366/Makefile.inc
src/superio/nsc/pc87366/chip.h
src/superio/nsc/pc87366/pc87366.h
src/superio/nsc/pc87366/pc87366_early_serial.c
src/superio/nsc/pc87366/superio.c
src/superio/nsc/pc87417/Config.lb
src/superio/nsc/pc87417/Makefile.inc
src/superio/nsc/pc87417/chip.h
src/superio/nsc/pc87417/pc87417.h
src/superio/nsc/pc87417/pc87417_early_init.c
src/superio/nsc/pc87417/pc87417_early_serial.c
src/superio/nsc/pc87417/superio.c
src/superio/nsc/pc87427/Config.lb
src/superio/nsc/pc87427/Makefile.inc
src/superio/nsc/pc87427/chip.h
src/superio/nsc/pc87427/pc87427.h
src/superio/nsc/pc87427/pc87427_early_init.c
src/superio/nsc/pc87427/superio.c
src/superio/nsc/pc97307/Config.lb
src/superio/nsc/pc97307/Makefile.inc
src/superio/nsc/pc97307/chip.h
src/superio/nsc/pc97307/pc97307.h
src/superio/nsc/pc97307/superio.c
src/superio/nsc/pc97317/Config.lb
src/superio/nsc/pc97317/Makefile.inc
src/superio/nsc/pc97317/chip.h
src/superio/nsc/pc97317/pc97317.h
src/superio/nsc/pc97317/pc97317_early_serial.c
src/superio/nsc/pc97317/superio.c
src/superio/smsc/fdc37m60x/Config.lb
src/superio/smsc/fdc37m60x/Makefile.inc
src/superio/smsc/fdc37m60x/chip.h
src/superio/smsc/fdc37m60x/fdc37m60x.h
src/superio/smsc/fdc37m60x/fdc37m60x_early_serial.c
src/superio/smsc/fdc37m60x/superio.c
src/superio/smsc/lpc47b272/Config.lb
src/superio/smsc/lpc47b272/Makefile.inc
src/superio/smsc/lpc47b272/lpc47b272.h
src/superio/smsc/lpc47b272/lpc47b272_early_serial.c
src/superio/smsc/lpc47b272/superio.c
src/superio/smsc/lpc47b397/Config.lb
src/superio/smsc/lpc47b397/Makefile.inc
src/superio/smsc/lpc47b397/chip.h
src/superio/smsc/lpc47b397/lpc47b397.h
src/superio/smsc/lpc47b397/lpc47b397_early_gpio.c
src/superio/smsc/lpc47b397/lpc47b397_early_serial.c
src/superio/smsc/lpc47b397/superio.c
src/superio/smsc/lpc47m10x/Config.lb
src/superio/smsc/lpc47m10x/Makefile.inc
src/superio/smsc/lpc47m10x/chip.h
src/superio/smsc/lpc47m10x/lpc47m10x.h
src/superio/smsc/lpc47m10x/lpc47m10x_early_serial.c
src/superio/smsc/lpc47m10x/superio.c
src/superio/smsc/lpc47m15x/Makefile.inc
src/superio/smsc/lpc47m15x/lpc47m15x_early_serial.c
src/superio/smsc/lpc47m15x/superio.c
src/superio/smsc/lpc47n217/Config.lb
src/superio/smsc/lpc47n217/Makefile.inc
src/superio/smsc/lpc47n217/lpc47n217.h
src/superio/smsc/lpc47n217/lpc47n217_early_serial.c
src/superio/smsc/lpc47n217/superio.c
src/superio/smsc/smscsuperio/Config.lb
src/superio/smsc/smscsuperio/Makefile.inc
src/superio/smsc/smscsuperio/superio.c
src/superio/via/vt1211/Config.lb
src/superio/via/vt1211/Makefile.inc
src/superio/via/vt1211/chip.h
src/superio/via/vt1211/vt1211.c
src/superio/via/vt1211/vt1211.h
src/superio/winbond/w83627dhg/Config.lb
src/superio/winbond/w83627dhg/Makefile.inc
src/superio/winbond/w83627dhg/superio.c
src/superio/winbond/w83627ehg/Config.lb
src/superio/winbond/w83627ehg/Makefile.inc
src/superio/winbond/w83627ehg/superio.c
src/superio/winbond/w83627ehg/w83627ehg.h
src/superio/winbond/w83627ehg/w83627ehg_early_init.c
src/superio/winbond/w83627ehg/w83627ehg_early_serial.c
src/superio/winbond/w83627hf/Config.lb
src/superio/winbond/w83627hf/Makefile.inc
src/superio/winbond/w83627hf/chip.h
src/superio/winbond/w83627hf/superio.c
src/superio/winbond/w83627hf/w83627hf.h
src/superio/winbond/w83627hf/w83627hf_early_init.c
src/superio/winbond/w83627hf/w83627hf_early_serial.c
src/superio/winbond/w83627thf/Config.lb
src/superio/winbond/w83627thf/Makefile.inc
src/superio/winbond/w83627thf/chip.h
src/superio/winbond/w83627thf/superio.c
src/superio/winbond/w83627thf/w83627thf.h
src/superio/winbond/w83627thf/w83627thf_early_serial.c
src/superio/winbond/w83627thg/Config.lb
src/superio/winbond/w83627thg/Makefile.inc
src/superio/winbond/w83627thg/chip.h
src/superio/winbond/w83627thg/superio.c
src/superio/winbond/w83627thg/w83627thg.h
src/superio/winbond/w83627thg/w83627thg_early_serial.c
src/superio/winbond/w83627uhg/superio.c
src/superio/winbond/w83697hf/w83697hf_early_serial.c
src/superio/winbond/w83977f/Config.lb
src/superio/winbond/w83977f/Makefile.inc
src/superio/winbond/w83977f/superio.c
src/superio/winbond/w83977tf/Config.lb
src/superio/winbond/w83977tf/Makefile.inc
src/superio/winbond/w83977tf/chip.h
src/superio/winbond/w83977tf/superio.c
src/superio/winbond/w83977tf/w83977tf.h
src/superio/winbond/w83977tf/w83977tf_early_serial.c

index b6ecdba382fa9600d05fc6a57b0cdae3e963b1e2..3773758bb5f6bd145643650b043a34ec5167de63 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index d56723dc4db3c54b33658e0edcda7001af448953..db5d93aa79816459eca262e7584616beefec6f54 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_FINTEK_F71805F) += superio.o
-
index 41cb699987daae38216fc4f485cce8faca88f90e..587746093ebe3ebae1affee2cdb76f5f24a99d2d 100644 (file)
@@ -24,7 +24,7 @@
  *  - URL: http://www.fintek.com.tw/eng/products.asp?BID=1&SID=17
  *  - PDF: http://www.fintek.com.tw/files/productfiles/F71805F_V025.pdf
  *  - Revision: V0.25P
- */ 
+ */
 
 /* Logical Device Numbers (LDN). */
 #define F71805F_FDC    0x00    /* Floppy */
index 4df9afc9f92f4bf10bdebec4d94cda912c0cc411..6476e0a6f7cc7b1ea3201c7bb616a8977de2f593 100644 (file)
 #include "chip.h"
 #include "f71805f.h"
 
-static void pnp_enter_conf_state(device_t dev) 
+static void pnp_enter_conf_state(device_t dev)
 {
        outb(0x87, dev->path.pnp.port);
 }
 
-static void pnp_exit_conf_state(device_t dev) 
+static void pnp_exit_conf_state(device_t dev)
 {
        outb(0xaa, dev->path.pnp.port);
 }
@@ -46,7 +46,7 @@ static void f71805f_init(device_t dev)
 
        if (!dev->enabled)
                return;
-       
+
        switch(dev->path.pnp.device) {
        /* TODO: Might potentially need code for HWM or FDC etc. */
        case F71805F_SP1:
@@ -110,4 +110,3 @@ struct chip_operations superio_fintek_f71805f_ops = {
        CHIP_NAME("Fintek F71805F Super I/O")
        .enable_dev = enable_dev
 };
-
index 7349617b4d92479bec55403d75b1fedb49b407db..cf4b0f3f25c701425fe2cc8ee371beb3796fea2f 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index e622b7205b63555c6c945715d961ee79b64d4119..d9b76d0a81b6ae2f5f78db5252ed463f437f306d 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_INTEL_I3100) += superio.o
-
index db3047b45909b2826bfc8e260d023d9a3864f240..6b389047c2c6e12c7c49281a6acce7595a75cea0 100644 (file)
@@ -105,4 +105,3 @@ struct chip_operations superio_intel_i3100_ops = {
        CHIP_NAME("Intel 3100 Super I/O")
        .enable_dev = enable_dev,
 };
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index 8a17ae2c8631cc34e89682bd6396e5d77a97e004..5bd564216af4298b543b66551e1c4aed42cbf80e 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8661F) += superio.o
-
index 5a173b1f3e1a0fbebce7dbbbdc471afb395ce859..f00e49e851bd71c06533742ba988107e6bbc3c16 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8661f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8661F */
-
index 07327d83386363312ff80b26501a0f5e5c7b5cb4..453627ae6dffd147543787b5ce9bbc6b2ce96cc1 100644 (file)
@@ -29,4 +29,3 @@
 #define IT8661F_PP   0x03 /* Parallel port */
 #define IT8661F_IR   0x04 /* IR */
 #define IT8661F_GPIO 0x05 /* GPIO & Alternate Function Configuration */
-
index b6826a7dabd65e72d094ab81d285dd1ada30a955..12da30161616cb9c7d9bf780842037bc963da974 100644 (file)
@@ -91,4 +91,3 @@ static void it8661f_enable_serial(device_t dev, unsigned iobase)
        /* (3) Exit the configuration state (MB PnP mode). */
        it8661f_sio_write(0x00, IT8661F_CONFIG_REG_CC, 0x02);
 }
-
index 20e5070678b73da047222c22f1fc7150791ffcc3..7c5294d65bcbcc3262e4f80ea79a456c5957bd94 100644 (file)
@@ -66,8 +66,8 @@ static struct device_operations ops = {
 
 /* TODO: FDC, PP, IR, GPIO. */
 static struct pnp_info pnp_dev_info[] = {
- { &ops, IT8661F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, IT8661F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, IT8661F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, IT8661F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
 };
 
 static void enable_dev(struct device *dev)
@@ -80,4 +80,3 @@ struct chip_operations superio_ite_it8661f_ops = {
        CHIP_NAME("ITE IT8661F Super I/O")
        .enable_dev = enable_dev,
 };
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index 32c26227de79cb2ce6fff51524500b15485df382..18edd9b81ca25c35accb2b16432480e6b29f3312 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8671F) += superio.o
-
index b4c4d3f21d272208cbac6f54c226b1cb3a9001bb..7d0e5acb6ac1761822f0cc794cc65b80c97f298f 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8671f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8671F */
-
index b77c77f1ec68a38364c7981cd60ace33ae5acb1e..07b4d542ccc361d045b64bd060d883b1f4551a6a 100644 (file)
@@ -27,4 +27,3 @@
 #define IT8671F_PP   0x03 /* Parallel port */
 #define IT8671F_KBCK 0x05 /* Keyboard */
 #define IT8671F_KBCM 0x06 /* Mouse */
-
index f894562ca9cf584b547d32af93327cfd3a375b68..56d1d8c2dd82c14f4f483c646f012d74cf66c4bd 100644 (file)
@@ -91,4 +91,3 @@ static void it8671f_enable_serial(device_t dev, unsigned iobase)
        /* (3) Exit the configuration state (MB PnP mode). */
        it8671f_sio_write(0x00, IT8671F_CONFIG_REG_CC, 0x02);
 }
-
index f77c8bddb16af694b7f8dac148ded4d387fa3835..e0007c56d6e3ff8fac08a200bd50778918b596bb 100644 (file)
@@ -70,9 +70,9 @@ static struct device_operations ops = {
 
 /* TODO: FDC, PP, KBCM. */
 static struct pnp_info pnp_dev_info[] = {
- { &ops, IT8671F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, IT8671F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, IT8671F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, IT8671F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, IT8671F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, IT8671F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
 };
 
 static void enable_dev(struct device *dev)
@@ -85,4 +85,3 @@ struct chip_operations superio_ite_it8671f_ops = {
        CHIP_NAME("ITE IT8671F Super I/O")
        .enable_dev = enable_dev,
 };
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index f4ee01cec6c6c62db48b19b709bfc26cedbe6c6b..3bb5b1c4bc408e2a44ae6c23f2405700f3785725 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8673F) += superio.o
-
index 02bc33dece1802fc5048c5ca55562647f88f66c2..6967059317695db0e3c82553b37b1665e8aaaade 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8673f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8673F */
-
index 46bc31f78de97e1e29ba7e6adcdf33c53b3d76cc..6734c0e259c40482652031265d09525fd3af0850 100644 (file)
@@ -28,4 +28,3 @@
 #define IT8673F_FAN  0x04 /* Fan controller */
 #define IT8673F_KBCK 0x05 /* Keyboard */
 #define IT8673F_KBCM 0x06 /* Mouse */
-
index 44cac26d01913f0a1b0103908ed0c200f64b1099..9edbfb9adccc93835b9b1f6975fc9d0012199f78 100644 (file)
@@ -89,4 +89,3 @@ static void it8673f_enable_serial(device_t dev, unsigned iobase)
        /* (3) Exit the configuration state (MB PnP mode). */
        it8673f_sio_write(0x00, IT8673F_CONFIG_REG_CC, 0x02);
 }
-
index f4dff1403a92cb7898da10a84f9935997f156203..a5c99b1dba83b4ed12edd03d974cd3a3a10346b3 100644 (file)
@@ -87,4 +87,3 @@ struct chip_operations superio_ite_it8673f_ops = {
        CHIP_NAME("ITE IT8673F Super I/O")
        .enable_dev = enable_dev,
 };
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index 468c0e8aec2518c4c3e171dd29df509b3725e696..6c20a41300816ec7666989b42d2b760fe0ffa0c3 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8705F) += superio.o
-
index c970ca882061acb640ace804d2306f05b730dcb4..7702247ed9639890239eb07520d188ec24889383 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8705f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8705F */
-
index 541b1a5dfaee3340a09d827708c3651f66f4c0e0..68172d5aeca08a93db4b366eca8a96bb3602ae4c 100644 (file)
@@ -33,4 +33,3 @@
 #define IT8705F_GAME 0x06 /* GAME port */
 #define IT8705F_IR   0x07 /* Consumer IR */
 #define IT8705F_MIDI 0x08 /* MIDI port */
-
index a8615d3984c6f27d02730a16163eb8dd603e6167..8930d1b8df74d1a2db2af39f2794fc5f7f193ce9 100644 (file)
@@ -63,8 +63,8 @@ static void it8705f_enable_serial(device_t dev, unsigned iobase)
        /* (2) Modify the data of configuration registers. */
 
        /* Select the chip to configure (if there's more than one).
-           Set bit 7 to select JP3=1, clear bit 7 to select JP3=0.
-           If this register is not written, both chips are configured. */
+          Set bit 7 to select JP3=1, clear bit 7 to select JP3=0.
+          If this register is not written, both chips are configured. */
        /* it8705f_sio_write(0x00, IT8705F_CONFIG_REG_CONFIGSEL, 0x00); */
 
        /* Enable serial port(s). */
@@ -80,4 +80,3 @@ static void it8705f_enable_serial(device_t dev, unsigned iobase)
        /* (3) Exit the configuration state (MB PnP mode). */
        it8705f_sio_write(0x00, IT8705F_CONFIG_REG_CC, 0x02);
 }
-
index fda705c27a4fe7e9004e764016c8438865b93223..27f66c3bf5791eca693595beaa3e5361b27856da 100644 (file)
@@ -74,8 +74,8 @@ static struct device_operations ops = {
 
 /* TODO: FDC, PP, EC, GPIO, GAME, IR, MIDI. */
 static struct pnp_info pnp_dev_info[] = {
- { &ops, IT8705F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, IT8705F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, IT8705F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, IT8705F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
 };
 
 static void enable_dev(struct device *dev)
@@ -88,4 +88,3 @@ struct chip_operations superio_ite_it8705f_ops = {
        CHIP_NAME("ITE IT8705F Super I/O")
        .enable_dev = enable_dev,
 };
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index 898c87906ef7b7fa0c6237705d368184ca0b9e3a..a7078e101b842c4842424d08c79eea30480e68ca 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8712F) += superio.o
-
index f47e3cc33c133731efd5ddd8cde9943e3b1f400e..22dfa8dcc83bdc72a61eefccc1dfeefc60a574c0 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8712f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8712F */
-
index d4231972aae84431420d5744a580d165879c2cb9..260b12d79858953b921b3c815148bb212030006b 100644 (file)
@@ -32,4 +32,3 @@
 #define IT8712F_MIDI 0x08 /* MIDI port */
 #define IT8712F_GAME 0x09 /* GAME port */
 #define IT8712F_IR   0x0a /* Consumer IR */
-
index 03899625bfb2b2a788919ce0f5c8bc378405cc59..e0bfafd4aca4bd1b425451dd290277e45c1513ca 100644 (file)
@@ -47,7 +47,6 @@ static void it8712f_sio_write(uint8_t ldn, uint8_t index, uint8_t value)
        outb(value, SIO_DATA);
 }
 
-
 static void it8712f_enter_conf(void)
 {
        /*  Enter the configuration state (MB PnP mode). */
@@ -67,7 +66,6 @@ static void it8712f_exit_conf(void)
        it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CC, 0x02);
 }
 
-
 static void it8712f_24mhz_clkin(void)
 {
        it8712f_enter_conf();
@@ -76,10 +74,10 @@ static void it8712f_24mhz_clkin(void)
        it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CLOCKSEL, 0x1);
 
        it8712f_exit_conf();
-
 }
 
-static void it8712f_enable_3vsbsw(void) {
+static void it8712f_enable_3vsbsw(void)
+{
 
        /* We need to set enable 3VSBSW#, this was documented only in IT8712F_V0.9.2!
         LDN 7, reg 0x2a - needed for S3, or memory power will be cut off.
@@ -93,7 +91,6 @@ static void it8712f_enable_3vsbsw(void) {
        it8712f_exit_conf();
 }
 
-
 static void it8712f_kill_watchdog(void)
 {
        it8712f_enter_conf();
@@ -114,8 +111,8 @@ static void it8712f_enable_serial(device_t dev, unsigned iobase)
        /* (2) Modify the data of configuration registers. */
 
        /* Select the chip to configure (if there's more than one).
-           Set bit 7 to select JP3=1, clear bit 7 to select JP3=0.
-           If this register is not written, both chips are configured. */
+          Set bit 7 to select JP3=1, clear bit 7 to select JP3=0.
+          If this register is not written, both chips are configured. */
        /* it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CONFIGSEL, 0x00); */
 
        /* Enable serial port(s). */
index 6a461f74d877ce7b834cdce8282971146e962f16..1636d1987a0fe89fc2aae02c82af3dc67ee04f23 100644 (file)
@@ -145,4 +145,3 @@ struct chip_operations superio_ite_it8712f_ops = {
        CHIP_NAME("ITE IT8712F Super I/O")
        .enable_dev = enable_dev,
 };
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index cb7ac32c4076f99bdeb2cc8d758c448e5424efe8..fe0dab0699cee7f4ef29f8c5dc0ed00d79b4d3b5 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8716F) += superio.o
-
index d0991b700db6d47d927249e4eb0a81f5af55e8e5..b7136f7a591472b73dc4bc97f8be837ba10c2e2f 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8716f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8716F */
-
index d3a6d58c619938b4b7b9d21b013a61d4d7a5e5a1..cc6ad9c4e36fa41033bde898ac887f3c5792ea74 100644 (file)
@@ -32,4 +32,3 @@
 #define IT8716F_MIDI 0x08 /* MIDI port */
 #define IT8716F_GAME 0x09 /* GAME port */
 #define IT8716F_IR   0x0a /* Consumer IR */
-
index e8fdeb8d8f5889917615f1c920f019de29ae79e7..5a621f19c191525f168c7239fde2213f9ef8a4b1 100644 (file)
@@ -35,4 +35,3 @@ static void it8716f_enable_dev(device_t dev, unsigned iobase)
        pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
        pnp_set_enable(dev, 1);
 }
-
index e34cf4210c65cf0af4f6bb7c99a5c84c9411211d..37a79a1594de582db4ee9aa4724cbca6458bd51e 100644 (file)
@@ -41,7 +41,7 @@
 /* Perform MB PnP setup to put the SIO chip at 0x2e. */
 /* Base address 0x2e: 0x87 0x01 0x55 0x55. */
 /* Base address 0x4e: 0x87 0x01 0x55 0xaa. */
-static inline void pnp_enter_ext_func_mode(device_t dev) 
+static inline void pnp_enter_ext_func_mode(device_t dev)
 {
        unsigned port = dev >> 8;
        outb(0x87, port);
@@ -68,4 +68,3 @@ static void it8716f_enable_serial(device_t dev, unsigned iobase)
        pnp_set_enable(dev, 1);
        pnp_exit_ext_func_mode(dev);
 }
-
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index 9b28eb92fb19e05c2a62fee67e1e05f79051392a..257afc9240eb3c86e4dbeaa5b73005cb70266f1f 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_ITE_IT8718F) += superio.o
-
index 9bea3a58c34f0a4a1eefafcd6738c057820e0940..c230014b2fbeea921e7da15ba393ecd3d51557d5 100644 (file)
@@ -33,4 +33,3 @@ struct superio_ite_it8718f_config {
 };
 
 #endif /* _SUPERIO_ITE_IT8718F */
-
index f4fa04ef23efb95b2fefbecb1be1b766d9ec9af1..6aae54d65ef7fa95912a99fb499db381aef4e094 100644 (file)
@@ -83,8 +83,8 @@ static void it8718f_enable_serial(device_t dev, unsigned iobase)
        /* (2) Modify the data of configuration registers. */
 
        /* Select the chip to configure (if there's more than one).
-           Set bit 7 to select JP3=1, clear bit 7 to select JP3=0.
-           If this register is not written, both chips are configured. */
+          Set bit 7 to select JP3=1, clear bit 7 to select JP3=0.
+          If this register is not written, both chips are configured. */
        /* it8718f_sio_write(0x00, IT8718F_CONFIG_REG_CONFIGSEL, 0x00); */
 
        /* Enable serial port(s). */
@@ -97,4 +97,3 @@ static void it8718f_enable_serial(device_t dev, unsigned iobase)
        /* (3) Exit the configuration state (MB PnP mode). */
        it8718f_exit_conf();
 }
-
index 3c1f541b137f8ceacd8e093ca3e4fd1a48a52f5a..1d1d31fcd30f888ce13af4ca3169096b1ee10fbd 100644 (file)
@@ -74,9 +74,9 @@ static struct device_operations ops = {
 
 /* TODO: FDC, PP, EC, KBCM, IR. */
 static struct pnp_info pnp_dev_info[] = {
- { &ops, IT8718F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, IT8718F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, IT8718F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, IT8718F_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, IT8718F_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, IT8718F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
 };
 
 static void enable_dev(struct device *dev)
@@ -89,4 +89,3 @@ struct chip_operations superio_ite_it8718f_ops = {
        CHIP_NAME("ITE IT8718F Super I/O")
        .enable_dev = enable_dev,
 };
-
index f62a567d6147c478da0d7c9af5eae21bd508546a..df9204e4bd449f4fdaade0dfb18ddc422968229e 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
index e1fd7ce402525489c46614bd8cab9776aeabf901..db4cd6aaf79b33de5d675a0b92946ff22dff4fd6 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC8374) += superio.o
index 7bfa0db10144f0880ca5d78fa6b2d21676c5d684..2ef9f70ddca77640706686e2a2ef909ca0fa85da 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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_nsc_pc8374_ops;
 
index 1f166a70fe573181df45d268254299658999cf55..71162d6156528c127a566c4aee44c41d17bc9f86 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #define PC8374_FDC  0x00 /* Floppy */
 #define PC8374_PP   0x01 /* Parallel port */
 #define PC8374_SP2  0x02 /* Com2 */
index 24967454b2a270f03cb80b02482b2af0289f45c0..ac73b266024347e6cea27ac55ebbe97c60850cb2 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc8374.h"
 
@@ -22,8 +43,6 @@ static void pc8374_enable(unsigned iobase, u8 *init)
                val |= *init;
                outb(val, iobase+1);
        }
-               
-       
 }
 
 static void pc8374_enable_dev(device_t dev, unsigned iobase)
@@ -34,4 +53,3 @@ static void pc8374_enable_dev(device_t dev, unsigned iobase)
                pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
        pnp_set_enable(dev, 1);
 }
-
index 7368fe77bb3a81094f778c47b76cef8291c34720..3fed62b0969e9fd1d9cd1c2bfc8b64b77915ccb1 100644 (file)
@@ -1,6 +1,23 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
@@ -26,7 +43,7 @@ static void init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case PC8374_SP1: 
+       case PC8374_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -51,17 +68,16 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC8374_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
- { &ops, PC8374_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
- { &ops, PC8374_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, PC8374_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, PC8374_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
- { &ops, PC8374_KBCM, PNP_IRQ0 },
- { &ops, PC8374_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
- { &ops, PC8374_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC8374_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
      { &ops, PC8374_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
      { &ops, PC8374_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, PC8374_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, PC8374_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
      { &ops, PC8374_KBCM, PNP_IRQ0 },
      { &ops, PC8374_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, PC8374_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
 };
 
-
 static void enable_dev(struct device *dev)
 {
        pnp_enable_devices(dev, &ops,
index 77289587c5492d8d7c6b25e9c2d298480d92a8cb..512a21862363dfe45c06d428e3c05633e6c67ce0 100644 (file)
@@ -1,23 +1,22 @@
-## 
+##
 ## This file is part of the coreboot project.
-## 
+##
 ## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
-## 
+##
 ## 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
-
index 204f9e2bb31f1baff64eb505c075c3a1dc84764e..f132d8017e1d7f97f54aec2dbb1679da22213e9b 100644 (file)
@@ -1,23 +1,22 @@
-## 
+##
 ## This file is part of the coreboot project.
-## 
+##
 ## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
-## 
+##
 ## 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
 obj-$(CONFIG_SUPERIO_NSC_PC87309) += superio.o
-
index 6ae33ca544a3515ec3a873b6f9a9da499a95b84c..ee84b66aa2fe01ee445ce195488f0db611063b18 100644 (file)
@@ -66,7 +66,7 @@ static struct pnp_info pnp_dev_info[] = {
        {&ops, PC87309_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, {0x04f8, 0},},
        {&ops, PC87309_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, {0x7f8, 0},},
        {&ops, PC87309_SP1,  PNP_IO0 | PNP_IRQ0, {0x7f8, 0},},
-       // TODO: PM.
+       /* TODO: PM. */
        {&ops, PC87309_KBCM, PNP_IRQ0},
        {&ops, PC87309_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x7f8, 0}, {0x7f8, 0x4},},
 };
index f62a567d6147c478da0d7c9af5eae21bd508546a..df9204e4bd449f4fdaade0dfb18ddc422968229e 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
index 047842d85217133d57a9d444f6dea363ae2ed28a..3f93962a23524c81271ac32e3ab41a32d83beb40 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC87351) += superio.o
index 05a02a2565603426347ec0c31e1158e4521a2ae5..d62b1b385590b091b60086737457f8a9ea8d3f2a 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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_nsc_pc87351_ops;
 
index dbed582bcea3915490f5318be5a83e53ec71a86f..f3e0fde11287930760cdec39dd6e10fd3838988f 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #define PC87351_FDC  0x00 /* Floppy */
 #define PC87351_PP   0x01 /* Parallel port */
 #define PC87351_SP2  0x02 /* Com2 */
index 7ec361e853569d2f8f46cff2870a090490b246f8..2072d4f072a1ff890353e9c405dd72fd281697b6 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc87351.h"
 
index 55e4e1098a97f6a5e8ccdfb94c11b3907534402e..4ee740ac3f12d30a5dd38a3bd2d169eadfe58a73 100644 (file)
@@ -1,12 +1,29 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
 
-/* 
- * Richard A Smith 
+/*
+ * Richard A Smith
  * I derived this code from the pc87360 device and removed the stuff the 87351
  * dosen't do.
-*/
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
@@ -32,7 +49,7 @@ static void init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case PC87351_SP1: 
+       case PC87351_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -57,18 +74,17 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC87351_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
- { &ops, PC87351_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
- { &ops, PC87351_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, PC87351_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, PC87351_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
- { &ops, PC87351_KBCM, PNP_IRQ0 },
- { &ops, PC87351_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
- { &ops, PC87351_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87351_FSD,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87351_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
      { &ops, PC87351_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
      { &ops, PC87351_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, PC87351_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, PC87351_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
      { &ops, PC87351_KBCM, PNP_IRQ0 },
      { &ops, PC87351_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, PC87351_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87351_FSD,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
 };
 
-
 static void enable_dev(struct device *dev)
 {
        pnp_enable_devices(dev, &pnp_ops,
index f62a567d6147c478da0d7c9af5eae21bd508546a..df9204e4bd449f4fdaade0dfb18ddc422968229e 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
index 823f7105c85f61b9bc1c3f93f39b0a6b7d9a0fcd..6bfaafd8417a9280cadc8e35a460d34a0da308af 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC87360) += superio.o
index 0d6023b927c2f92f29ac12c50d2132bda0a1c945..f3a29ceda38854354d8cddf480274d392fbbba1e 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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_nsc_pc87360_ops;
 
index 201da8eb6e5d0564490d64031363eb1882ca1d96..e2ee823b75798218d29062938a06fa6e45d7a932 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #define PC87360_FDC  0x00 /* Floppy */
 #define PC87360_PP   0x01 /* Parallel port */
 #define PC87360_SP2  0x02 /* Com2 */
index 696d3a05708d5cbdfa1f8511f8a740e2496751bd..7cfa4981f4e0b89313f0c2fdcefcfad20b3eaea0 100644 (file)
@@ -1,7 +1,27 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc87360.h"
 
-
 static void pc87360_enable_serial(device_t dev, unsigned iobase)
 {
        pnp_set_logical_device(dev);
index 0cd3c4a65ca1d1fd42ccdac6e973c1539576f4d2..a0fa47a7af0c7033aea90d67fd1e96cdb4d1bf1b 100644 (file)
@@ -1,6 +1,23 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
@@ -26,7 +43,7 @@ static void init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case PC87360_SP1: 
+       case PC87360_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -51,20 +68,19 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC87360_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
- { &ops, PC87360_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
- { &ops, PC87360_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, PC87360_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, PC87360_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
- { &ops, PC87360_KBCM, PNP_IRQ0 },
- { &ops, PC87360_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
- { &ops, PC87360_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87360_ACB,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87360_FSCM, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87360_WDT,  PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
      { &ops, PC87360_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
      { &ops, PC87360_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
      { &ops, PC87360_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, PC87360_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, PC87360_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
      { &ops, PC87360_KBCM, PNP_IRQ0 },
      { &ops, PC87360_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, PC87360_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87360_ACB,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87360_FSCM, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87360_WDT,  PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
 };
 
-
 static void enable_dev(struct device *dev)
 {
        pnp_enable_devices(dev, &ops,
index f62a567d6147c478da0d7c9af5eae21bd508546a..df9204e4bd449f4fdaade0dfb18ddc422968229e 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
index 90bf08f7ba49a715e3e9c992be59c69ec9e7a971..973bd9e663ee64cf2d606207e79d8015e1a61641 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC87366) += superio.o
index 440885aec89339d2339f9f52e4c59ad1a1eef8a2..31e30ff351c1e9526bcaa600e0e95b219aed5253 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 extern struct chip_operations superio_nsc_pc87366_ops;
 
 #include <pc80/keyboard.h>
index d1bc9de3198cfe75c268109889d8f7133b944c77..3ded643ff964ad67827f46f834cf0eb9c3bae12a 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #define PC87366_FDC  0x00 /* Floppy */
 #define PC87366_PP   0x01 /* Parallel port */
 #define PC87366_SP2  0x02 /* Com2 */
@@ -13,4 +34,3 @@
 #define PC87366_MIDI  0x0C
 #define PC87366_VLM  0x0D
 #define PC87366_TMS  0x0E
-
index 354714f7b7e5c5f01ba818b79868989404cc672b..f50bb091cb51cf8f00de0f5ddc43ac3debde6b91 100644 (file)
@@ -1,7 +1,27 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc87366.h"
 
-
 static void pc87366_enable_serial(device_t dev, unsigned iobase)
 {
        pnp_set_logical_device(dev);
index 514893dad165407df022d2e82411e3728a0788e5..f12b7d905d76ec729e281263b0e0b5b0bf30dcb3 100644 (file)
@@ -1,6 +1,23 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
@@ -26,7 +43,7 @@ static void init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case PC87366_SP1: 
+       case PC87366_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -51,23 +68,22 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC87366_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
- { &ops, PC87366_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
- { &ops, PC87366_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, PC87366_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, PC87366_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
- { &ops, PC87366_KBCM, PNP_IRQ0 },
- { &ops, PC87366_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
- { &ops, PC87366_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87366_ACB,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87366_FSCM, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87366_WDT,  PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
      { &ops, PC87366_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
      { &ops, PC87366_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
      { &ops, PC87366_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, PC87366_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, PC87366_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
      { &ops, PC87366_KBCM, PNP_IRQ0 },
      { &ops, PC87366_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, PC87366_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87366_ACB,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87366_FSCM, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87366_WDT,  PNP_IO0 | PNP_IRQ0, { 0xfffc, 0 } },
 };
 
-
 static void enable_dev(struct device *dev)
 {
-       pnp_enable_devices(dev, &pnp_ops, 
+       pnp_enable_devices(dev, &pnp_ops,
                ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
 }
 
index f62a567d6147c478da0d7c9af5eae21bd508546a..f863270fba46e8e17f829b1897d00b95b141c4db 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan by yhlu
+##
+## 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
index da23083bde0a764cef90537a2c9aeaaf2465dd6d..5d1c472bc2b235e7f7c3be360b45f6a309aaecfc 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan by yhlu
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC87417) += superio.o
index e3c8891d53385309f3dd7600f7d19b81cfa466d6..f2bc6f8da56ce57faf9cbdeabf20a18fa3d4d48c 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan by yhlu
+ *
+ * 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
+ */
+
 extern struct chip_operations superio_nsc_pc87417_ops;
 
 #include <pc80/keyboard.h>
index 7d5cad954501289ad31b4d37a2c3c936aaae1ee6..3171d1fd7d878fefdf19702c25802f8846d8b295 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan by yhlu
+ *
+ * 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
+ */
+
 #define PC87417_FDC  0x00 /* Floppy */
 #define PC87417_PP   0x01 /* Parallel Port */
 #define PC87417_SP2  0x02 /* Com2 */
@@ -11,7 +33,7 @@
 
 #define PC87417_GPIO_DEV PNP_DEV(0x2e, PC87417_GPIO)
 /* This is to get around a romcc bug */
-//#define PC87417_XBUS_DEV PNP_DEV(0x2e, PC87417_XBUS)
+/* #define PC87417_XBUS_DEV PNP_DEV(0x2e, PC87417_XBUS) */
 #define PC87417_XBUS_DEV PNP_DEV(0x2e, 0x0f)
 
 #define PC87417_GPSEL          0xf0
 #define PC87417_HAP1           0x14
 #define PC87417_XSCNF          0x15
 #define PC87417_XWBCNF         0x16
-
-
index 028f02e66e2a6dce899f9d6d517de88df667f588..c9332eedbe0c862bc415046b026607b4305c6846 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan by yhlu
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc87417.h"
 
@@ -6,6 +28,7 @@ static void pc87417_disable_dev(device_t dev)
        pnp_set_logical_device(dev);
        pnp_set_enable(dev, 0);
 }
+
 static void pc87417_enable_dev(device_t dev, unsigned iobase)
 {
        pnp_set_logical_device(dev);
@@ -13,6 +36,7 @@ static void pc87417_enable_dev(device_t dev, unsigned iobase)
        pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
        pnp_set_enable(dev, 1);
 }
+
 static void xbus_cfg(device_t dev)
 {
        uint8_t i, data;
@@ -27,5 +51,5 @@ static void xbus_cfg(device_t dev)
        for (i=0; i<= 0xf; i++) {
                outb((i<<4), xbus_index + PC87417_HAP0);
        }
-       return; 
-}      
+       return;
+}
index cb91d21296c76320a0006741b5afdd28b8bc63a9..78cf9b48bfeb569695fbb4969fa2a065049f33a6 100644 (file)
@@ -1,7 +1,28 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan by yhlu
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc87417.h"
 
-
 static void pc87417_enable_serial(device_t dev, unsigned iobase)
 {
        pnp_set_logical_device(dev);
@@ -9,8 +30,9 @@ static void pc87417_enable_serial(device_t dev, unsigned iobase)
        pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
        pnp_set_enable(dev, 1);
 }
+
 static void pc87417_enable_dev(device_t dev)
 {
-        pnp_set_logical_device(dev);
-        pnp_set_enable(dev, 1);
+       pnp_set_logical_device(dev);
+       pnp_set_enable(dev, 1);
 }
index 965fbd0d4188e51176c8fc22c7ccac1a9cc87f8a..9af09f927c5955d7e42c0a8c4f1c2ce63dfbc940 100644 (file)
@@ -1,8 +1,24 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* Copyright 2005 Tyan */
-/* By yhlu */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan by yhlu
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
@@ -28,7 +44,7 @@ static void init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case PC87417_SP1: 
+       case PC87417_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -53,19 +69,18 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC87417_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
- { &ops, PC87417_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
- { &ops, PC87417_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, PC87417_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, PC87417_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
- { &ops, PC87417_KBCM, PNP_IRQ0 },
- { &ops, PC87417_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
- { &ops, PC87417_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
- { &ops, PC87417_XBUS, PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
- { &ops, PC87417_RTC,  PNP_IO0 | PNP_IO1, { 0xfffe, 0 }, {0xfffe, 0x4} },
      { &ops, PC87417_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
      { &ops, PC87417_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x04f8, 0}, },
      { &ops, PC87417_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, PC87417_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, PC87417_SWC,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 }, },
      { &ops, PC87417_KBCM, PNP_IRQ0 },
      { &ops, PC87417_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, PC87417_GPIO, PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 } },
      { &ops, PC87417_XBUS, PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
      { &ops, PC87417_RTC,  PNP_IO0 | PNP_IO1, { 0xfffe, 0 }, {0xfffe, 0x4} },
 };
 
-
 static void enable_dev(struct device *dev)
 {
        pnp_enable_devices(dev, &pnp_ops,
index f62a567d6147c478da0d7c9af5eae21bd508546a..df9204e4bd449f4fdaade0dfb18ddc422968229e 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
index 27c10ee8826445d0dd0b28ddf1c0c391ea05e0fd..62c5aa543bc21f28d02723770c1c8780c230f0d6 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC87427) += superio.o
index 8eaf1357024315931b0cb88538003cbf0e58059a..bc6afcdffcd2aef39e37abf384317b9a41d12c3c 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 extern struct chip_operations superio_nsc_pc87427_ops;
 
 #include <pc80/keyboard.h>
index d998bd6c2049d814d088369c967237b8e6ed28fc..304c9f7f9c9888d3f4d26e950e064106a51099aa 100644 (file)
@@ -13,7 +13,7 @@
 
 #define PC87427_GPIO_DEV PNP_DEV(0x2e, PC87427_GPIO)
 /* This is to get around a romcc bug */
-//#define PC87427_XBUS_DEV PNP_DEV(0x2e, PC87427_XBUS)
+/* #define PC87427_XBUS_DEV PNP_DEV(0x2e, PC87427_XBUS) */
 #define PC87427_XBUS_DEV PNP_DEV(0x2e, 0x0f)
 
 #define PC87427_GPSEL          0xf0
index 71f702f11f5174cd3db2f4c969426e0430c5ebd2..bbb140d57c2e05f57cbbff944ffde5ebd92bb457 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc87427.h"
 
@@ -27,5 +48,5 @@ static void xbus_cfg(device_t dev)
        for (i=0; i<= 0xf; i++) {
                outb((i<<4), xbus_index + PC87427_HAP0);
        }
-       return; 
-}      
+       return;
+}
index 089392d3f9a7a3c6b1241ebef78c593dbad3c0ea..e8ffe2a09fc93db1527c76d27adf2e1392dc35f0 100644 (file)
@@ -1,6 +1,23 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
@@ -12,7 +29,6 @@
 #include "chip.h"
 #include "pc87427.h"
 
-
 static void init(device_t dev)
 {
        struct superio_nsc_pc87427_config *conf;
@@ -25,7 +41,7 @@ static void init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case PC87427_SP1: 
+       case PC87427_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -50,26 +66,25 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops,  PC87427_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
- { &ops,  PC87427_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops,  PC87427_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops,  PC87427_SWC,  PNP_IO0 | PNP_IO1 | PNP_IO2 | PNP_IO3 | PNP_IRQ0, 
-   { 0xfff0, 0 }, { 0xfffc, 0 }, { 0xfffc, 0 }, { 0xfff8, 0 } },
- { &ops,  PC87427_KBCM, PNP_IRQ0 },
- { &ops,  PC87427_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
- { &ops,  PC87427_GPIO, PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
- { &ops,  PC87427_WDT,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 } },
- { &ops,  PC87427_FMC,  PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
- { &ops,  PC87427_XBUS, PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
- { &ops,  PC87427_RTC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xfffe, 0 }, { 0xfffe, 0 } },
- { &ops,  PC87427_MHC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffe0, 0 }, { 0xffe0, 0 } },
      { &ops,  PC87427_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07fa, 0}, },
      { &ops,  PC87427_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops,  PC87427_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops,  PC87427_SWC,  PNP_IO0 | PNP_IO1 | PNP_IO2 | PNP_IO3 | PNP_IRQ0,
+               { 0xfff0, 0 }, { 0xfffc, 0 }, { 0xfffc, 0 }, { 0xfff8, 0 } },
      { &ops,  PC87427_KBCM, PNP_IRQ0 },
      { &ops,  PC87427_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops,  PC87427_GPIO, PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
      { &ops,  PC87427_WDT,  PNP_IO0 | PNP_IRQ0, { 0xfff0, 0 } },
      { &ops,  PC87427_FMC,  PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
      { &ops,  PC87427_XBUS, PNP_IO0 | PNP_IRQ0, { 0xffe0, 0 } },
      { &ops,  PC87427_RTC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xfffe, 0 }, { 0xfffe, 0 } },
      { &ops,  PC87427_MHC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffe0, 0 }, { 0xffe0, 0 } },
 };
 
-
 static void enable_dev(struct device *dev)
 {
        pnp_enable_devices(dev, &ops,
-               ARRAY_SIZE(pnp_dev_info), pnp_dev_info); 
+               ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
 }
 
 struct chip_operations superio_nsc_pc87427_ops = {
index 94a888e7678fdc206866ada1c9463ea10fc0531c..5e255016e07c320434093b6d01d13ace69a41d6f 100644 (file)
@@ -1,2 +1,22 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+##
+## 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.c
index 40d962f0e483020b5dbe5867719c46e71093367a..a601ab17e46d2dbeb494f60e4e786219de6c955c 100644 (file)
@@ -1,2 +1,22 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC97307) += superio.o
index 3e6b7f64ad64099971e835cfd7270727f44c1fbd..efc5bb8994146edf3187006189314d3873c6f4aa 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
+
 #ifndef _SUPERIO_NSC_PC97307
 #define _SUPERIO_NSC_PC97307
 
index fa1f7f69b5b34eeca80efdcc2a132eaf9e4274f6..e917d9ce4f91d759bee163e27eff854ba7e95dec 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
+
 #define PC97307_KBCK 0x00 /* Keyboard */
 #define PC97307_KBCM 0x01 /* Mouse */
 #define PC97307_RTC  0x02 /* Real-Time Clock */
index 1e4d6d6aae01d65759dd93559910b90873baaefb..45dcbc9bdcc36fb48466c2d4ad48f1ed3a841a01 100644 (file)
@@ -1,5 +1,22 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <console/console.h>
@@ -66,15 +83,15 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC97307_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffb, 0 }, { 0xffb, 0x4}, },
- { &ops, PC97307_KBCM, PNP_IRQ0 },
- { &ops, PC97307_RTC,  PNP_IO0 | PNP_IRQ0, { 0xfffe, 0}, },
- { &ops, PC97307_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0xfffa, 0}, },
- { &ops, PC97307_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x03fc, 0}, },
- { &ops, PC97307_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0xfff8, 0 }, },
- { &ops, PC97307_SP1,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 }, },
- { &ops, PC97307_GPIO, PNP_IO0, { 0xfff8, 0 } },
- { &ops, PC97307_PM,   PNP_IO0, { 0xfffe, 0 } },
      { &ops, PC97307_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffb, 0 }, { 0xffb, 0x4}, },
      { &ops, PC97307_KBCM, PNP_IRQ0 },
      { &ops, PC97307_RTC,  PNP_IO0 | PNP_IRQ0, { 0xfffe, 0}, },
      { &ops, PC97307_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0xfffa, 0}, },
      { &ops, PC97307_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x03fc, 0}, },
      { &ops, PC97307_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0xfff8, 0 }, },
      { &ops, PC97307_SP1,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 }, },
      { &ops, PC97307_GPIO, PNP_IO0, { 0xfff8, 0 } },
      { &ops, PC97307_PM,   PNP_IO0, { 0xfffe, 0 } },
 };
 
 static void enable_dev(struct device *dev)
index 94a888e7678fdc206866ada1c9463ea10fc0531c..5e255016e07c320434093b6d01d13ace69a41d6f 100644 (file)
@@ -1,2 +1,22 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+##
+## 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.c
index d77f0c22f76f3836bb6bfac9e550474c1b189c5a..cf5fc6bb34a1741986c65eeb1ae3d39e91ac5ee1 100644 (file)
@@ -1,2 +1,22 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+##
+## 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
 obj-$(CONFIG_SUPERIO_NSC_PC97317) += superio.o
index 7997dff8bc03cd3922ad1d61ad30201815d7a93f..84962824820fca250d554ee18a99f5dea93b0a15 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
+
 #ifndef _SUPERIO_NSC_PC97317
 #define _SUPERIO_NSC_PC97317
 
@@ -17,4 +37,5 @@ struct superio_nsc_pc97317_config {
        struct uart8250 com1, com2;
        struct pc_keyboard keyboard;
 };
+
 #endif /* _SUPERIO_NSC_PC97317 */
index cdeca2aceadb9cfb84573c37e1fc8694ee80804a..29339f119c366d092d43a922c2cd3f23ab900630 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
+
 #define PC97317_KBCK 0x00 /* Keyboard */
 #define PC97317_KBCM 0x01 /* Mouse */
 #define PC97317_RTC  0x02 /* Real-Time Clock */
@@ -7,4 +27,3 @@
 #define PC97317_SP1  0x06 /* Com1 */
 #define PC97317_GPIO 0x07
 #define PC97317_PM   0x08 /* Power Management */
-
index 3aa7f9989079e7a050b333927f2c5ded81f3ea31..c538fa8071a9dda2c8d847e90901af076e720af0 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "pc97317.h"
 
@@ -19,7 +39,7 @@ static void pc97317_enable_serial(device_t dev, unsigned iobase)
 
        outb(0x03, PM_BASE);
        outb(inb(PM_BASE + 1) | 0x07, PM_BASE + 1);
-       
+
        /* Wait for the clock to stabilise */
        while(!inb(PM_BASE + 1 & 0x80))
                ;
index 30c819a773d677477f16caf8d5149d929bdfb4bb..969698d600e4af73157ce66d52443fba9cbb2244 100644 (file)
@@ -1,5 +1,22 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <console/console.h>
@@ -68,15 +85,15 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
- { &ops, PC97317_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffb, 0 }, { 0xffb, 0x4}, },
- { &ops, PC97317_KBCM, PNP_IRQ0 },
- { &ops, PC97317_RTC,  PNP_IO0 | PNP_IRQ0, { 0xfffe, 0}, },
- { &ops, PC97317_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0xfffa, 0}, },
- { &ops, PC97317_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x03fc, 0}, },
- { &ops, PC97317_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0xfff8, 0 }, },
- { &ops, PC97317_SP1,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 }, },
- { &ops, PC97317_GPIO, PNP_IO0, { 0xfff8, 0 } },
- { &ops, PC97317_PM,   PNP_IO0, { 0xfffe, 0 } },
      { &ops, PC97317_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0xffb, 0 }, { 0xffb, 0x4}, },
      { &ops, PC97317_KBCM, PNP_IRQ0 },
      { &ops, PC97317_RTC,  PNP_IO0 | PNP_IRQ0, { 0xfffe, 0}, },
      { &ops, PC97317_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0xfffa, 0}, },
      { &ops, PC97317_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x03fc, 0}, },
      { &ops, PC97317_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0xfff8, 0 }, },
      { &ops, PC97317_SP1,  PNP_IO0 | PNP_IRQ0, { 0xfff8, 0 }, },
      { &ops, PC97317_GPIO, PNP_IO0, { 0xfff8, 0 } },
      { &ops, PC97317_PM,   PNP_IO0, { 0xfffe, 0 } },
 };
 
 static void enable_dev(struct device *dev)
index e1290e2fad0b046707dbe269cf3b93cd109d315f..8e91c171ceee053e59df60d4776ac2149b853c32 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index 2ba5572bcc61fe5de266aa1f7862fd043a01e235..3d7144a139b8454cfdfa93a2a127b4117479dd31 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_SMSC_FDC37M60X) += superio.o
-
index cf91ff88a918a42dd259cd12c8c02c80f24e1001..d4da77bf13244e0ae94fcdfd176a87440a66bfaf 100644 (file)
@@ -33,4 +33,3 @@ struct superio_smsc_fdc37m60x_config {
 };
 
 #endif /* _SUPERIO_SMSC_FDC37M60X */
-
index 459b5b921e68caf13356e72d6ed8caed93a1f3d6..3424faf903eee79fccf61b76255a711c6806a50e 100644 (file)
@@ -36,4 +36,3 @@
 #define FDC37M60X_SP2  0x05 /* Com2 */
 #define FDC37M60X_KBCK 0x07 /* Keyboard */
 #define FDC37M60X_AUX  0x08 /* Auxiliary I/O */
-
index 739f308299e9619f4fced5480675f68af895c34a..1c1d334b627f554631c584a23a8efb5f340c3e0c 100644 (file)
@@ -75,4 +75,3 @@ static void fdc37m60x_enable_serial(device_t dev, unsigned iobase)
        /* (3) Exit the configuration state. */
        outb(0xaa, FDC37M60X_CONFIGURATION_PORT);
 }
-
index 54225162c5ceab292abb7991a9ae394551efa49d..1e595c6c8afd03e7938b7e5e9d25d243948e8c1a 100644 (file)
@@ -70,9 +70,9 @@ static struct device_operations ops = {
 
 /* TODO: FDC, PP, AUX. */
 static struct pnp_info pnp_dev_info[] = {
- { &ops, FDC37M60X_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
- { &ops, FDC37M60X_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
- { &ops, FDC37M60X_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
      { &ops, FDC37M60X_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
      { &ops, FDC37M60X_SP2,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0 | PNP_DRQ1, { 0x7f8, 0 }, },
      { &ops, FDC37M60X_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7f8, 0 }, { 0x7f8, 0x4}, },
 };
 
 static void enable_dev(struct device *dev)
@@ -85,4 +85,3 @@ struct chip_operations superio_smsc_fdc37m60x_ops = {
        CHIP_NAME("SMSC FDC37M60X Super I/O")
        .enable_dev = enable_dev,
 };
-
index cb1e9fb6b2f36baae850bbd1d2d5bfbc7ae5c507..5a15d159ae75c46b8fa5e5372497f9bd4b399967 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index c836e3537eff133cc7f010cee7101ab69fe42e1a..c9332aa42b193815106aab7d7bc5c576c1ca8608 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_SMSC_LPC47B272) += superio.o
-
index c7016d9beccf4b7d8e28a7fb2f384aaaf55bf4fc..98639de88b475f0ac56845cacdfd0365eced51db 100644 (file)
@@ -26,4 +26,3 @@
 #define LPC47B272_RT              10   /* Runtime reg*/
 
 #define LPC47B272_MAX_CONFIG_REGISTER  0x5F
-
index 71641e9ff8396adeed196f80bbcb3118953668ff..c1f15bf25ea4ddb33d9891a71be0a0cf1b88c36d 100644 (file)
 #include <arch/romcc_io.h>
 #include "lpc47b272.h"
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_enter_conf_state
-// Parameters:         dev - high 8 bits = Super I/O port
-// Return Value:       None
-// Description:        Enable access to the LPC47B272's configuration registers.
-//
-static inline void pnp_enter_conf_state(device_t dev) {
+/*
+ * Function:           pnp_enter_conf_state
+ * Parameters:         dev - high 8 bits = Super I/O port
+ * Return Value:       None
+ * Description:        Enable access to the LPC47B272's configuration registers.
+ */
+static inline void pnp_enter_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
-    outb(0x55, port);
+       outb(0x55, port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_exit_conf_state
-// Parameters:         dev - high 8 bits = Super I/O port
-// Return Value:       None
-// Description:        Disable access to the LPC47B272's configuration registers.
-//
-static void pnp_exit_conf_state(device_t dev) {
+/*
+ * Function:           pnp_exit_conf_state
+ * Parameters:         dev - high 8 bits = Super I/O port
+ * Return Value:       None
+ * Description:        Disable access to the LPC47B272's configuration registers.
+ */
+static void pnp_exit_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
-    outb(0xaa, port);
+       outb(0xaa, port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47b272_enable_serial
-// Parameters:         dev - high 8 bits = Super I/O port, 
-//                                               low 8 bits = logical device number (per lpc47b272.h)
-//                                     iobase - processor I/O port address to assign to this serial device
-// Return Value:       bool
-// Description:        Configure the base I/O port of the specified serial device
-//                                     and enable the serial device.
-//
+/*
+ * Function:           lpc47b272_enable_serial
+ * Parameters:         dev - high 8 bits = Super I/O port,
+ *                           low 8 bits = logical device number (per lpc47b272.h)
+ *                     iobase - processor I/O port address to assign to this serial device
+ * Return Value:       bool
+ * Description:        Configure the base I/O port of the specified serial device
+ *                     and enable the serial device.
+ */
 static void lpc47b272_enable_serial(device_t dev, unsigned iobase)
 {
        pnp_enter_conf_state(dev);
index 1a6a7785376533418a4114dc770bb780d88f61ca..93b39a370ef37c6dff724cbfbeb4c39cad0641e0 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2000 AG Electronics Ltd.
  * Copyright (C) 2003-2004 Linux Networx
- * Copyright (C) 2004 Tyan 
+ * Copyright (C) 2004 Tyan
  * Copyright (C) 2005 Digital Design Corporation
  *
  * This program is free software; you can redistribute it and/or modify
@@ -36,7 +36,7 @@
 #include "chip.h"
 #include "lpc47b272.h"
 
-// Forward declarations
+/* Forward declarations */
 static void enable_dev(device_t dev);
 static void lpc47b272_pnp_set_resources(device_t dev);
 static void lpc47b272_pnp_enable_resources(device_t dev);
@@ -47,7 +47,6 @@ static void pnp_enter_conf_state(device_t dev);
 static void pnp_exit_conf_state(device_t dev);
 static void dump_pnp_device(device_t dev);
 
-
 struct chip_operations superio_smsc_lpc47b272_ops = {
        CHIP_NAME("SMSC LPC47B272 Super I/O")
        .enable_dev = enable_dev
@@ -62,56 +61,56 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, LPC47B272_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47B272_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47B272_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47B272_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47B272_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
-        { &ops, LPC47B272_RT,   PNP_IO0, { 0x780, 0 }, },
+       { &ops, LPC47B272_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47B272_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47B272_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47B272_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47B272_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
+       { &ops, LPC47B272_RT,   PNP_IO0, { 0x780, 0 }, },
 };
 
 /**********************************************************************************/
-/*                                                             PUBLIC INTERFACE                                                                  */
+/*                             PUBLIC INTERFACE                                  */
 /**********************************************************************************/
 
-//----------------------------------------------------------------------------------
-// Function:           enable_dev
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Create device structures and allocate resources to devices 
-//                                     specified in the pnp_dev_info array (above).
-//
+/*
+ * Function:           enable_dev
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Create device structures and allocate resources to devices
+ *                     specified in the pnp_dev_info array (above).
+ */
 static void enable_dev(device_t dev)
 {
-       pnp_enable_devices(dev, &pnp_ops, 
-                                          ARRAY_SIZE(pnp_dev_info), 
-                                          pnp_dev_info);
+       pnp_enable_devices(dev, &pnp_ops,
+                          ARRAY_SIZE(pnp_dev_info),
+                          pnp_dev_info);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47b272_pnp_set_resources
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Configure the specified Super I/O device with the resources
-//                                     (I/O space, etc.) that have been allocated for it.
-//
+/*
+ * Function:           lpc47b272_pnp_set_resources
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Configure the specified Super I/O device with the resources
+ *                     (I/O space, etc.) that have been allocated for it.
+ */
 static void lpc47b272_pnp_set_resources(device_t dev)
 {
-       pnp_enter_conf_state(dev);  
+       pnp_enter_conf_state(dev);
        pnp_set_resources(dev);
-    pnp_exit_conf_state(dev);  
-}       
+       pnp_exit_conf_state(dev);
+}
 
 static void lpc47b272_pnp_enable_resources(device_t dev)
-{       
+{
        pnp_enter_conf_state(dev);
-    pnp_enable_resources(dev);
-    pnp_exit_conf_state(dev);
+       pnp_enable_resources(dev);
+       pnp_exit_conf_state(dev);
 }
 
 static void lpc47b272_pnp_enable(device_t dev)
 {
-       pnp_enter_conf_state(dev);   
+       pnp_enter_conf_state(dev);
        pnp_set_logical_device(dev);
 
        if(dev->enabled) {
@@ -120,17 +119,17 @@ static void lpc47b272_pnp_enable(device_t dev)
        else {
                pnp_set_enable(dev, 0);
        }
-       pnp_exit_conf_state(dev);  
+       pnp_exit_conf_state(dev);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47b272_init
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Initialize the specified Super I/O device.
-//                                     Devices other than COM ports and the keyboard controller are 
-//                                     ignored. For COM ports, we configure the baud rate. 
-//
+/*
+ * Function:           lpc47b272_init
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Initialize the specified Super I/O device.
+ *                     Devices other than COM ports and the keyboard controller are
+ *                     ignored. For COM ports, we configure the baud rate.
+ */
 static void lpc47b272_init(device_t dev)
 {
        struct superio_smsc_lpc47b272_config *conf = dev->chip_info;
@@ -138,18 +137,18 @@ static void lpc47b272_init(device_t dev)
 
        if (!dev->enabled)
                return;
-       
+
        switch(dev->path.pnp.device) {
-       case LPC47B272_SP1: 
+       case LPC47B272_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
-               
+
        case LPC47B272_SP2:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com2);
                break;
-               
+
        case LPC47B272_KBC:
                res0 = find_resource(dev, PNP_IDX_IO0);
                res1 = find_resource(dev, PNP_IDX_IO1);
@@ -159,65 +158,65 @@ static void lpc47b272_init(device_t dev)
 }
 
 /**********************************************************************************/
-/*                                                             PRIVATE FUNCTIONS                                                             */
+/*                             PRIVATE FUNCTIONS                                 */
 /**********************************************************************************/
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_enter_conf_state
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Enable access to the LPC47B272's configuration registers.
-//
-static void pnp_enter_conf_state(device_t dev) 
+/*
+ * Function:           pnp_enter_conf_state
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Enable access to the LPC47B272's configuration registers.
+ */
+static void pnp_enter_conf_state(device_t dev)
 {
        outb(0x55, dev->path.pnp.port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_exit_conf_state
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Disable access to the LPC47B272's configuration registers.
-//
-static void pnp_exit_conf_state(device_t dev) 
+/*
+ * Function:           pnp_exit_conf_state
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Disable access to the LPC47B272's configuration registers.
+ */
+static void pnp_exit_conf_state(device_t dev)
 {
-    outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
 
 #if 0
-//----------------------------------------------------------------------------------
-// Function:           dump_pnp_device
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Print the values of all of the LPC47B272's configuration registers.
-//                                     NOTE: The LPC47B272 must be in configuration mode when this
-//                                               function is called.
-//
+/*
+ * Function:           dump_pnp_device
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Print the values of all of the LPC47B272's configuration registers.
+ *                     NOTE: The LPC47B272 must be in configuration mode when this
+ *                     function is called.
+ */
 static void dump_pnp_device(device_t dev)
 {
-    int register_index;
-    print_debug("\r\n");
+       int register_index;
+       print_debug("\r\n");
 
-    for(register_index = 0; register_index <= LPC47B272_MAX_CONFIG_REGISTER; register_index++) {
-        uint8_t register_value;
+       for(register_index = 0; register_index <= LPC47B272_MAX_CONFIG_REGISTER; register_index++) {
+               uint8_t register_value;
 
-        if ((register_index & 0x0f) == 0) {
-                print_debug_hex8(register_index);
-                print_debug_char(':');
-        }
+               if ((register_index & 0x0f) == 0) {
+                       print_debug_hex8(register_index);
+                       print_debug_char(':');
+               }
 
-               // Skip over 'register' that would cause exit from configuration mode
-           if (register_index == 0xaa)
+               /* Skip over 'register' that would cause exit from configuration mode */
+               if (register_index == 0xaa)
                        register_value = 0xaa;
                else
-               register_value = pnp_read_config(dev, register_index);
-
-        print_debug_char(' ');
-        print_debug_hex8(register_value);
-        if ((register_index & 0x0f) == 0x0f) {
-               print_debug("\r\n");
-        }
-    }
+                       register_value = pnp_read_config(dev, register_index);
+
+               print_debug_char(' ');
+               print_debug_hex8(register_value);
+               if ((register_index & 0x0f) == 0x0f) {
+                       print_debug("\r\n");
+               }
+       }
 
        print_debug("\r\n");
 }
index f62a567d6147c478da0d7c9af5eae21bd508546a..699d2c4b375792bd8863e190701f575a83bce2b4 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan
+##
+## 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
index 79145f26972ad36dbd6cf646b448eba44cd3f090..ee66fa1204b66923f11b66360847b59588836362 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan
+##
+## 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
 obj-$(CONFIG_SUPERIO_SMSC_LPC47B397) += superio.o
index 4f6a06781f2f2ebbac4781482729fe3ce8908358..321fd898f12ba5417903f2196c14352005f71605 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan
+ *
+ * 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_lpc47b397_ops;
 
index c166659dfe8bc672ecd72594837b8e2d67f2da25..91bad4730c104277272007fe199fb8c90ccea108 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan
+ *
+ * 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
+ */
+
 #define LPC47B397_FDC          0       /* Floppy */
 #define LPC47B397_PP           3       /* Parallel Port */
 #define LPC47B397_SP1          4       /* Com1 */
index 1ded9545d4c247dd64ed9dabfc7291a66340da1a..8b09e09a100f1eb0890ca8eed8f0a380784d296d 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan
+ *
+ * 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
+ */
+
 static void lpc47b397_gpio_offset_out(unsigned iobase, unsigned offset, unsigned value)
 {
        outb(value,iobase+offset);
@@ -8,7 +30,7 @@ static unsigned lpc47b397_gpio_offset_in(unsigned iobase, unsigned offset)
        return inb(iobase+offset);
 }
 
-//for GP60-GP64, GP66-GP85
+/* for GP60-GP64, GP66-GP85 */
 #define LPC47B397_GPIO_CNTL_INDEX 0x70
 #define LPC47B397_GPIO_CNTL_DATA 0x71
 
@@ -23,4 +45,3 @@ static unsigned lpc47b397_gpio_index_in(unsigned iobase, unsigned index)
        outb(index,iobase+LPC47B397_GPIO_CNTL_INDEX);
        return inb(iobase+LPC47B397_GPIO_CNTL_DATA);
 }
-
index fb656266069a2497772d833b7844d8e800ce15e4..e81b6a00407dc8d7c55b218301f3ec9f5ea2ed4d 100644 (file)
@@ -1,12 +1,36 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "lpc47b397.h"
 
-static inline void pnp_enter_conf_state(device_t dev) {
+static inline void pnp_enter_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
        outb(0x55, port);
 }
 
-static void pnp_exit_conf_state(device_t dev) {
+static void pnp_exit_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
        outb(0xaa, port);
 }
index 1849102dd10f6fe4e72d14603d573986bdf2c528..0fbe048a8fa365062711017822d43763f2a1b073 100644 (file)
@@ -1,10 +1,25 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* Copyright 2004 Tyan
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan
+ *
+ * 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
  */
 
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
-
 #include <arch/io.h>
 #include <device/device.h>
 #include <device/pnp.h>
 #include "chip.h"
 #include "lpc47b397.h"
 
-
-static void pnp_enter_conf_state(device_t dev) {
+static void pnp_enter_conf_state(device_t dev)
+{
        outb(0x55, dev->path.pnp.port);
 }
-static void pnp_exit_conf_state(device_t dev) {
+static void pnp_exit_conf_state(device_t dev)
+{
        outb(0xaa, dev->path.pnp.port);
 }
 
@@ -38,7 +54,8 @@ static uint8_t pnp_read_index(unsigned long port_base, uint8_t reg)
        return inb(port_base + 1);
 }
 
-static void enable_hwm_smbus(device_t dev) {
+static void enable_hwm_smbus(device_t dev)
+{
        /* enable SensorBus register access */
        uint8_t reg, value;
        reg = 0xf0;
@@ -47,7 +64,6 @@ static void enable_hwm_smbus(device_t dev) {
        pnp_write_config(dev, reg, value);
 }
 
-
 static void lpc47b397_init(device_t dev)
 {
        struct superio_smsc_lpc47b397_config *conf;
@@ -71,29 +87,21 @@ static void lpc47b397_init(device_t dev)
                init_pc_keyboard(res0->base, res1->base, &conf->keyboard);
                break;
        }
-
 }
 
 static void lpc47b397_pnp_set_resources(device_t dev)
 {
-
        pnp_enter_conf_state(dev);
-
        pnp_set_resources(dev);
-
 #if 0
        dump_pnp_device(dev);
 #endif
-
        pnp_exit_conf_state(dev);
-
 }
 
 static void lpc47b397_pnp_enable_resources(device_t dev)
 {
-
        pnp_enter_conf_state(dev);
-
        pnp_enable_resources(dev);
 
        switch(dev->path.pnp.device) {
@@ -103,20 +111,15 @@ static void lpc47b397_pnp_enable_resources(device_t dev)
                enable_hwm_smbus(dev);
                break;
        }
-
 #if 0
        dump_pnp_device(dev);
 #endif
-
        pnp_exit_conf_state(dev);
-
 }
 
 static void lpc47b397_pnp_enable(device_t dev)
 {
-
        pnp_enter_conf_state(dev);
-
        pnp_set_logical_device(dev);
 
        if(dev->enabled) {
@@ -125,9 +128,7 @@ static void lpc47b397_pnp_enable(device_t dev)
        else {
                pnp_set_enable(dev, 0);
        }
-
        pnp_exit_conf_state(dev);
-
 }
 
 static struct device_operations ops = {
@@ -138,7 +139,6 @@ static struct device_operations ops = {
        .init             = lpc47b397_init,
 };
 
-
 #define HWM_INDEX 0
 #define HWM_DATA  1
 #define SB_INDEX  0x0b
@@ -157,9 +157,9 @@ static int lsmbus_read_byte(device_t dev, uint8_t address)
 
        res = find_resource(get_pbus_smbus(dev)->dev, PNP_IDX_IO0);
 
-       pnp_write_index(res->base+HWM_INDEX, 0, device); // why 0?
+       pnp_write_index(res->base+HWM_INDEX, 0, device); /* why 0? */
 
-       result = pnp_read_index(res->base+SB_INDEX, address); // we only read it one byte one time
+       result = pnp_read_index(res->base+SB_INDEX, address);  /* we only read it one byte one time */
 
        return result;
 }
@@ -172,16 +172,16 @@ static int lsmbus_write_byte(device_t dev, uint8_t address, uint8_t val)
        device = dev->path.i2c.device;
        res = find_resource(get_pbus_smbus(dev)->dev, PNP_IDX_IO0);
 
-       pnp_write_index(res->base+HWM_INDEX, 0, device); // why 0?
+       pnp_write_index(res->base+HWM_INDEX, 0, device); /* why 0? */
 
-       pnp_write_index(res->base+SB_INDEX, address, val); // we only write it one byte one time
+       pnp_write_index(res->base+SB_INDEX, address, val); /* we only write it one byte one time */
 
        return 0;
 }
 
 static struct smbus_bus_operations lops_smbus_bus = {
-//     .recv_byte  = lsmbus_recv_byte,
-//     .send_byte  = lsmbus_send_byte,
+       /* .recv_byte  = lsmbus_recv_byte, */
+       /* .send_byte  = lsmbus_send_byte, */
        .read_byte  = lsmbus_read_byte,
        .write_byte = lsmbus_write_byte,
 };
@@ -215,4 +215,3 @@ struct chip_operations superio_smsc_lpc47b397_ops = {
        CHIP_NAME("SMSC LPC47B397 Super I/O")
        .enable_dev = enable_dev,
 };
-
index f62a567d6147c478da0d7c9af5eae21bd508546a..3ac7b52764dcf17bce0fcc71a242b292328dc962 100644 (file)
@@ -1,2 +1,26 @@
+##
+## superio.c: RAM driver for SMSC LPC47M10X2 Super I/O chip
+##
+## Copyright 2000  AG Electronics Ltd.
+## Copyright 2003-2004 Linux Networx
+## Copyright 2004 Tyan
+## Copyright (C) 2005 Digital Design Corporation
+## Copyright (C) Ron Minnich, LANL
+##
+## 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
index 8a51d63445ed75854567926fae31ce43b4070a70..71fd06e23ae1a48b3983ebe75307c1f1cf079cca 100644 (file)
@@ -1,2 +1,26 @@
+##
+## superio.c: RAM driver for SMSC LPC47M10X2 Super I/O chip
+##
+## Copyright 2000  AG Electronics Ltd.
+## Copyright 2003-2004 Linux Networx
+## Copyright 2004 Tyan
+## Copyright (C) 2005 Digital Design Corporation
+## Copyright (C) Ron Minnich, LANL
+##
+## 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
 obj-$(CONFIG_SUPERIO_SMSC_LPC47M10X) += superio.o
index ce63a53a28453a56e3f135e6c908843de9cdf8a3..57a8405dc519123d8b7898361cf2c4dd0e196161 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ * superio.c: RAM driver for SMSC LPC47M10X2 Super I/O chip
+ *
+ * Copyright 2000  AG Electronics Ltd.
+ * Copyright 2003-2004 Linux Networx
+ * Copyright 2004 Tyan
+ * Copyright (C) 2005 Digital Design Corporation
+ * Copyright (C) Ron Minnich, LANL
+ *
+ * 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_lpc47m10x_ops;
 
index 9f798713b5082559c2fd8c30ea1bef12a1b95f04..0f9486d6006a6bf66f220224e3a9a3e93e450ca5 100644 (file)
@@ -1,3 +1,27 @@
+/*
+ * superio.c: RAM driver for SMSC LPC47M10X2 Super I/O chip
+ *
+ * Copyright 2000  AG Electronics Ltd.
+ * Copyright 2003-2004 Linux Networx
+ * Copyright 2004 Tyan
+ * Copyright (C) 2005 Digital Design Corporation
+ * Copyright (C) Ron Minnich, LANL
+ *
+ * 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
+ */
+
 #define LPC47M10X2_FDC              0   /* Floppy */
 #define LPC47M10X2_PP               3   /* Parallel Port */
 #define LPC47M10X2_SP1              4   /* Com1 */
index 70f7b2017446f53b6b0c9522b0c6fb0853173a36..3d17d2d5cd6c4de14d99f34fa6fde692269f697d 100644 (file)
 #include <arch/romcc_io.h>
 #include "lpc47m10x.h"
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_enter_conf_state
-// Parameters:         dev - high 8 bits = Super I/O port
-// Return Value:       None
-// Description:        Enable access to the LPC47M10X2's configuration registers.
-//
-static inline void pnp_enter_conf_state(device_t dev) {
+/*
+ * Function:           pnp_enter_conf_state
+ * Parameters:         dev - high 8 bits = Super I/O port
+ * Return Value:       None
+ * Description:        Enable access to the LPC47M10X2's configuration registers.
+ */
+static inline void pnp_enter_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
-    outb(0x55, port);
+       outb(0x55, port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_exit_conf_state
-// Parameters:         dev - high 8 bits = Super I/O port
-// Return Value:       None
-// Description:        Disable access to the LPC47M10X2's configuration registers.
-//
-static void pnp_exit_conf_state(device_t dev) {
+/*
+ * Function:           pnp_exit_conf_state
+ * Parameters:         dev - high 8 bits = Super I/O port
+ * Return Value:       None
+ * Description:        Disable access to the LPC47M10X2's configuration registers.
+ */
+static void pnp_exit_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
-    outb(0xaa, port);
+       outb(0xaa, port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47b272_enable_serial
-// Parameters:         dev - high 8 bits = Super I/O port, 
-//                                               low 8 bits = logical device number (per lpc47b272.h)
-//                                     iobase - processor I/O port address to assign to this serial device
-// Return Value:       bool
-// Description:        Configure the base I/O port of the specified serial device
-//                                     and enable the serial device.
-//
+/*
+ * Function:           lpc47b272_enable_serial
+ * Parameters:         dev - high 8 bits = Super I/O port,
+ *                           low 8 bits = logical device number (per lpc47b272.h)
+ *                     iobase - processor I/O port address to assign to this serial device
+ * Return Value:       bool
+ * Description:        Configure the base I/O port of the specified serial device
+ *                     and enable the serial device.
+ */
 static void lpc47b272_enable_serial(device_t dev, unsigned iobase)
 {
        pnp_enter_conf_state(dev);
index 5bcb08dd26380bda81d5c7581248ddb61fbeba31..535dc394b68103d709273a2b43ec59d3dc4dcb7c 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright 2000  AG Electronics Ltd.
  * Copyright 2003-2004 Linux Networx
- * Copyright 2004 Tyan 
+ * Copyright 2004 Tyan
  * Copyright (C) 2005 Digital Design Corporation
  * Copyright (C) Ron Minnich, LANL
  *
@@ -35,7 +35,7 @@
 #include "chip.h"
 #include "lpc47m10x.h"
 
-// Forward declarations
+/* Forward declarations */
 static void enable_dev(device_t dev);
 static void lpc47m10x_pnp_set_resources(device_t dev);
 static void lpc47m10x_pnp_enable_resources(device_t dev);
@@ -46,7 +46,6 @@ static void pnp_enter_conf_state(device_t dev);
 static void pnp_exit_conf_state(device_t dev);
 static void dump_pnp_device(device_t dev);
 
-
 struct chip_operations superio_smsc_lpc47m10x_ops = {
        CHIP_NAME("SMSC LPC47M10x Super I/O")
        .enable_dev = enable_dev
@@ -61,55 +60,55 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, LPC47M10X2_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47M10X2_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47M10X2_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47M10X2_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47M10X2_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
+       { &ops, LPC47M10X2_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47M10X2_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47M10X2_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47M10X2_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47M10X2_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
 };
 
 /**********************************************************************************/
-/*                                                             PUBLIC INTERFACE                                                                  */
+/*                             PUBLIC INTERFACE                                  */
 /**********************************************************************************/
 
-//----------------------------------------------------------------------------------
-// Function:           enable_dev
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Create device structures and allocate resources to devices 
-//                                     specified in the pnp_dev_info array (above).
-//
+/*
+ * Function:           enable_dev
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Create device structures and allocate resources to devices
+ *                     specified in the pnp_dev_info array (above).
+ */
 static void enable_dev(device_t dev)
 {
-       pnp_enable_devices(dev, &pnp_ops, 
-                                          ARRAY_SIZE(pnp_dev_info), 
-                                          pnp_dev_info);
+       pnp_enable_devices(dev, &pnp_ops,
+                          ARRAY_SIZE(pnp_dev_info),
+                          pnp_dev_info);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47m10x_pnp_set_resources
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Configure the specified Super I/O device with the resources
-//                                     (I/O space, etc.) that have been allocated for it.
-//
+/*
+ * Function:           lpc47m10x_pnp_set_resources
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Configure the specified Super I/O device with the resources
+ *                     (I/O space, etc.) that have been allocated for it.
+ */
 static void lpc47m10x_pnp_set_resources(device_t dev)
 {
-       pnp_enter_conf_state(dev);  
+       pnp_enter_conf_state(dev);
        pnp_set_resources(dev);
-    pnp_exit_conf_state(dev);  
-}       
+       pnp_exit_conf_state(dev);
+}
 
 static void lpc47m10x_pnp_enable_resources(device_t dev)
-{       
+{
        pnp_enter_conf_state(dev);
-    pnp_enable_resources(dev);
-    pnp_exit_conf_state(dev);
+       pnp_enable_resources(dev);
+       pnp_exit_conf_state(dev);
 }
 
 static void lpc47m10x_pnp_enable(device_t dev)
 {
-       pnp_enter_conf_state(dev);   
+       pnp_enter_conf_state(dev);
        pnp_set_logical_device(dev);
 
        if(dev->enabled) {
@@ -118,17 +117,17 @@ static void lpc47m10x_pnp_enable(device_t dev)
        else {
                pnp_set_enable(dev, 0);
        }
-       pnp_exit_conf_state(dev);  
+       pnp_exit_conf_state(dev);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47m10x_init
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Initialize the specified Super I/O device.
-//                                     Devices other than COM ports and the keyboard controller are 
-//                                     ignored. For COM ports, we configure the baud rate. 
-//
+/*
+ * Function:           lpc47m10x_init
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Initialize the specified Super I/O device.
+ *                     Devices other than COM ports and the keyboard controller are
+ *                     ignored. For COM ports, we configure the baud rate.
+ */
 static void lpc47m10x_init(device_t dev)
 {
        struct superio_smsc_lpc47m10x_config *conf = dev->chip_info;
@@ -136,18 +135,18 @@ static void lpc47m10x_init(device_t dev)
 
        if (!dev->enabled)
                return;
-       
+
        switch(dev->path.pnp.device) {
-       case LPC47M10X2_SP1: 
+       case LPC47M10X2_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
-               
+
        case LPC47M10X2_SP2:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com2);
                break;
-               
+
        case LPC47M10X2_KBC:
                res0 = find_resource(dev, PNP_IDX_IO0);
                res1 = find_resource(dev, PNP_IDX_IO1);
@@ -157,65 +156,65 @@ static void lpc47m10x_init(device_t dev)
 }
 
 /**********************************************************************************/
-/*                                                             PRIVATE FUNCTIONS                                                             */
+/*                             PRIVATE FUNCTIONS                                 */
 /**********************************************************************************/
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_enter_conf_state
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Enable access to the LPC47M10X2's configuration registers.
-//
-static void pnp_enter_conf_state(device_t dev) 
+/*
+ * Function:           pnp_enter_conf_state
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Enable access to the LPC47M10X2's configuration registers.
+ */
+static void pnp_enter_conf_state(device_t dev)
 {
        outb(0x55, dev->path.pnp.port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_exit_conf_state
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Disable access to the LPC47M10X2's configuration registers.
-//
-static void pnp_exit_conf_state(device_t dev) 
+/*
+ * Function:           pnp_exit_conf_state
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Disable access to the LPC47M10X2's configuration registers.
+ */
+static void pnp_exit_conf_state(device_t dev)
 {
-    outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
 
 #if 0
-//----------------------------------------------------------------------------------
-// Function:           dump_pnp_device
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Print the values of all of the LPC47M10X2's configuration registers.
-//                                     NOTE: The LPC47M10X2 must be in configuration mode when this
-//                                               function is called.
-//
+/*
+ * Function:           dump_pnp_device
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Print the values of all of the LPC47M10X2's configuration registers.
+ *                     NOTE: The LPC47M10X2 must be in configuration mode when this
+ *                     function is called.
+ */
 static void dump_pnp_device(device_t dev)
 {
-    int register_index;
-    print_debug("\r\n");
+       int register_index;
+       print_debug("\r\n");
 
-    for(register_index = 0; register_index <= LPC47M10X2_MAX_CONFIG_REGISTER; register_index++) {
-        uint8_t register_value;
+       for(register_index = 0; register_index <= LPC47M10X2_MAX_CONFIG_REGISTER; register_index++) {
+               uint8_t register_value;
 
-        if ((register_index & 0x0f) == 0) {
-                print_debug_hex8(register_index);
-                print_debug_char(':');
-        }
+               if ((register_index & 0x0f) == 0) {
+                       print_debug_hex8(register_index);
+                       print_debug_char(':');
+               }
 
-               // Skip over 'register' that would cause exit from configuration mode
-           if (register_index == 0xaa)
+               /* Skip over 'register' that would cause exit from configuration mode */
+               if (register_index == 0xaa)
                        register_value = 0xaa;
                else
-               register_value = pnp_read_config(dev, register_index);
-
-        print_debug_char(' ');
-        print_debug_hex8(register_value);
-        if ((register_index & 0x0f) == 0x0f) {
-               print_debug("\r\n");
-        }
-    }
+                       register_value = pnp_read_config(dev, register_index);
+
+               print_debug_char(' ');
+               print_debug_hex8(register_value);
+               if ((register_index & 0x0f) == 0x0f) {
+                       print_debug("\r\n");
+               }
+       }
 
        print_debug("\r\n");
 }
index 25967e401369120aeb96a5cfd016b4c537825591..37ee88ee0f1aaf816da096ebb8041050ba67cc81 100644 (file)
@@ -1,2 +1,21 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2009 coresystems GmbH
+##
+## 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; version 2 of the License.
+##
+## 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
 obj-$(CONFIG_SUPERIO_SMSC_LPC47M15X) += superio.o
index 85ee7222d8945a834cf1e05013b5511105bef4ce..dda759731b1dc94519d00f5cb52b285fb434ae51 100644 (file)
@@ -28,7 +28,8 @@ static inline void pnp_enter_conf_state(device_t dev)
        outb(0x55, port);
 }
 
-static void pnp_exit_conf_state(device_t dev) {
+static void pnp_exit_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
        outb(0xaa, port);
 }
index 6851279525d25d500757dc735efce66c35baeddb..28bbcfdaf275b9c4238488046fcf68dd84a61ed4 100644 (file)
@@ -32,7 +32,7 @@
 #include "chip.h"
 #include "lpc47m15x.h"
 
-// Forward declarations
+/* Forward declarations */
 static void enable_dev(device_t dev);
 static void lpc47m15x_pnp_set_resources(device_t dev);
 static void lpc47m15x_pnp_enable_resources(device_t dev);
@@ -43,7 +43,6 @@ static void pnp_enter_conf_state(device_t dev);
 static void pnp_exit_conf_state(device_t dev);
 static void dump_pnp_device(device_t dev);
 
-
 struct chip_operations superio_smsc_lpc47m15x_ops = {
        CHIP_NAME("SMSC LPC47M15x/192/997 Super I/O")
        .enable_dev = enable_dev
@@ -58,11 +57,11 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, LPC47M15X_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47M15X_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47M15X_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47M15X_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47M15X_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
+       { &ops, LPC47M15X_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47M15X_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47M15X_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47M15X_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47M15X_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
 };
 
 static void enable_dev(device_t dev)
@@ -72,13 +71,13 @@ static void enable_dev(device_t dev)
 
 static void lpc47m15x_pnp_set_resources(device_t dev)
 {
-       pnp_enter_conf_state(dev);  
+       pnp_enter_conf_state(dev);
        pnp_set_resources(dev);
-       pnp_exit_conf_state(dev);  
-}       
+       pnp_exit_conf_state(dev);
+}
 
 static void lpc47m15x_pnp_enable_resources(device_t dev)
-{       
+{
        pnp_enter_conf_state(dev);
        pnp_enable_resources(dev);
        pnp_exit_conf_state(dev);
@@ -86,7 +85,7 @@ static void lpc47m15x_pnp_enable_resources(device_t dev)
 
 static void lpc47m15x_pnp_enable(device_t dev)
 {
-       pnp_enter_conf_state(dev);   
+       pnp_enter_conf_state(dev);
        pnp_set_logical_device(dev);
 
        if(dev->enabled) {
@@ -95,7 +94,7 @@ static void lpc47m15x_pnp_enable(device_t dev)
        else {
                pnp_set_enable(dev, 0);
        }
-       pnp_exit_conf_state(dev);  
+       pnp_exit_conf_state(dev);
 }
 
 static void lpc47m15x_init(device_t dev)
@@ -105,18 +104,18 @@ static void lpc47m15x_init(device_t dev)
 
        if (!dev->enabled)
                return;
-       
+
        switch(dev->path.pnp.device) {
-       case LPC47M15X_SP1: 
+       case LPC47M15X_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
-               
+
        case LPC47M15X_SP2:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com2);
                break;
-               
+
        case LPC47M15X_KBC:
                res0 = find_resource(dev, PNP_IDX_IO0);
                res1 = find_resource(dev, PNP_IDX_IO1);
@@ -125,13 +124,12 @@ static void lpc47m15x_init(device_t dev)
        }
 }
 
-static void pnp_enter_conf_state(device_t dev) 
+static void pnp_enter_conf_state(device_t dev)
 {
        outb(0x55, dev->path.pnp.port);
 }
 
-static void pnp_exit_conf_state(device_t dev) 
+static void pnp_exit_conf_state(device_t dev)
 {
-    outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
-
index 67c0dfd1b422ab30c7de41f80df0d6ef78b9fff1..5a15d159ae75c46b8fa5e5372497f9bd4b399967 100644 (file)
@@ -1,22 +1,22 @@
-## 
+##
 ## This file is part of the coreboot 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
index fa7729d809f66f1c0668416102f0a29b5f56cf1e..10710b90805299a186409e21c71908ed1f7c12d7 100644 (file)
@@ -1,22 +1,22 @@
-## 
+##
 ## This file is part of the coreboot 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
 obj-$(CONFIG_SUPERIO_SMSC_LPC47N217) += superio.o
index c52ca521eb1ce67ae8ba1e29f334c95f608c1aa0..3795821129b790158ca408c963319c8ef0b0291d 100644 (file)
@@ -18,8 +18,9 @@
  * 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.
+/* 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 */
index f60dbcffe11244178cf5c653daf654cb59f79ee4..2b0c634bcfa255ef686cb3ef44013915f1e94025 100644 (file)
 #include <assert.h>
 #include "lpc47n217.h"
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_enter_conf_state
-// Parameters:         dev - high 8 bits = Super I/O port
-// Return Value:       None
-// Description:        Enable access to the LPC47N217's configuration registers.
-//
-static inline void pnp_enter_conf_state(device_t dev) {
+/*
+ * Function:           pnp_enter_conf_state
+ * Parameters:         dev - high 8 bits = Super I/O port
+ * Return Value:       None
+ * Description:                Enable access to the LPC47N217's configuration registers.
+ */
+static inline void pnp_enter_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
-    outb(0x55, port);
+       outb(0x55, port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_exit_conf_state
-// Parameters:         dev - high 8 bits = Super I/O port
-// Return Value:       None
-// Description:        Disable access to the LPC47N217's configuration registers.
-//
-static void pnp_exit_conf_state(device_t dev) {
+/*
+ * Function:           pnp_exit_conf_state
+ * Parameters:         dev - high 8 bits = Super I/O port
+ * Return Value:       None
+ * Description:                Disable access to the LPC47N217's configuration registers.
+ */
+static void pnp_exit_conf_state(device_t dev)
+{
        unsigned port = dev>>8;
-    outb(0xaa, port);
+       outb(0xaa, port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47n217_pnp_set_iobase
-// Parameters:         dev - high 8 bits = Super I/O port, 
-//                                               low 8 bits = logical device number (per lpc47n217.h)
-//                                     iobase - base I/O port for the logical device
-// Return Value:       None
-// Description:        Program the base I/O port for the specified logical device.
-//
+/*
+ * Function:   lpc47n217_pnp_set_iobase
+ * Parameters: dev - high 8 bits = Super I/O port,
+ *                   low 8 bits = logical device number (per lpc47n217.h)
+ *             iobase - base I/O port for the logical device
+ * Return Value:None
+ * Description:        Program the base I/O port for the specified logical device.
+ *
+ */
 void lpc47n217_pnp_set_iobase(device_t dev, unsigned iobase)
 {
-       // LPC47N217 requires base ports to be a multiple of 4
+       /* LPC47N217 requires base ports to be a multiple of 4 */
        ASSERT(!(iobase & 0x3));
 
        switch(dev & 0xFF) {
-       case LPC47N217_PP: 
+       case LPC47N217_PP:
                pnp_write_config(dev, 0x23, (iobase >> 2) & 0xff);
                break;
-               
-       case LPC47N217_SP1: 
+
+       case LPC47N217_SP1:
                pnp_write_config(dev, 0x24, (iobase >> 2) & 0xff);
                break;
-               
+
        case LPC47N217_SP2:
                pnp_write_config(dev, 0x25, (iobase >> 2) & 0xff);
                break;
-               
+
        default:
                break;
        }
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47n217_pnp_set_enable
-// Parameters:         dev - high 8 bits = Super I/O port, 
-//                                               low 8 bits = logical device number (per lpc47n217.h)
-//                                     enable - 0 to disable, anythig else to enable
-// Return Value:       None
-// Description:        Enable or disable the specified logical device.
-//                                     Technically, a full disable requires setting the device's base
-//                                     I/O port below 0x100. We don't do that here, because we don't
-//                                     have access to a data structure that specifies what the 'real'
-//                                     base port is (when asked to enable the device). Also the function
-//                                     is used only to disable the device while its true base port is
-//                                     programmed (see lpc47n217_enable_serial() below).
-//
+/*
+ * Function:   lpc47n217_pnp_set_enable
+ * Parameters: dev - high 8 bits = Super I/O port,
+ *                   low 8 bits = logical device number (per lpc47n217.h)
+ *             enable - 0 to disable, anythig else to enable
+ * Return Value:None
+ * Description:        Enable or disable the specified logical device.
+ *             Technically, a full disable requires setting the device's base
+ *             I/O port below 0x100. We don't do that here, because we don't
+ *             have access to a data structure that specifies what the 'real'
+ *             base port is (when asked to enable the device). Also the function
+ *             is used only to disable the device while its true base port is
+ *             programmed (see lpc47n217_enable_serial() below).
+ */
 void lpc47n217_pnp_set_enable(device_t dev, int enable)
 {
        uint8_t power_register = 0;
        uint8_t power_mask = 0;
        uint8_t current_power;
        uint8_t new_power;
-       
+
        switch(dev & 0xFF) {
-       case LPC47N217_PP: 
+       case LPC47N217_PP:
                power_register = 0x01;
                power_mask = 0x04;
                break;
-               
-       case LPC47N217_SP1: 
+
+       case LPC47N217_SP1:
                power_register = 0x02;
                power_mask = 0x08;
                break;
-               
+
        case LPC47N217_SP2:
                power_register = 0x02;
                power_mask = 0x80;
                break;
-               
+
        default:
                return;
        }
 
        current_power = pnp_read_config(dev, power_register);
-       new_power = current_power & ~power_mask;                // disable by default
+       new_power = current_power & ~power_mask;        /* disable by default */
 
        if (enable)
-               new_power |= power_mask;                // Enable
+               new_power |= power_mask;                /* Enable */
 
        pnp_write_config(dev, power_register, new_power);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47n217_enable_serial
-// Parameters:         dev - high 8 bits = Super I/O port, 
-//                                               low 8 bits = logical device number (per lpc47n217.h)
-//                                     iobase - processor I/O port address to assign to this serial device
-// Return Value:       bool
-// Description:        Configure the base I/O port of the specified serial device
-//                                     and enable the serial device.
-//
+/*
+ * Function:   lpc47n217_enable_serial
+ * Parameters: dev - high 8 bits = Super I/O port,
+ *                   low 8 bits = logical device number (per lpc47n217.h)
+ *             iobase - processor I/O port address to assign to this serial device
+ * Return Value:bool
+ * Description:        Configure the base I/O port of the specified serial device
+ *             and enable the serial device.
+ */
 static void lpc47n217_enable_serial(device_t dev, unsigned iobase)
 {
-       // NOTE: Cannot use pnp_set_XXX() here because they assume chip
-       //               support for logical devices, which the LPC47N217 doesn't have
-       
+       /* NOTE: Cannot use pnp_set_XXX() here because they assume chip
+        * support for logical devices, which the LPC47N217 doesn't have*/
+
        pnp_enter_conf_state(dev);
        lpc47n217_pnp_set_enable(dev, 0);
        lpc47n217_pnp_set_iobase(dev, iobase);
index 90a3be1a8c95dfaebd49d5fe8042286f0015ba00..b83fe6cf6d6844c667015d143d57d66b6afcf71a 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2000 AG Electronics Ltd.
  * Copyright (C) 2003-2004 Linux Networx
- * Copyright (C) 2004 Tyan 
+ * Copyright (C) 2004 Tyan
  * Copyright (C) 2005 Digital Design Corporation
  *
  * This program is free software; you can redistribute it and/or modify
@@ -37,7 +37,7 @@
 #include "chip.h"
 #include "lpc47n217.h"
 
-// Forward declarations
+/* Forward declarations */
 static void enable_dev(device_t dev);
 static void lpc47n217_pnp_set_resources(device_t dev);
 static void lpc47n217_pnp_enable_resources(device_t dev);
@@ -53,7 +53,6 @@ static void lpc47n217_pnp_set_enable(device_t dev, int enable);
 static void pnp_enter_conf_state(device_t dev);
 static void pnp_exit_conf_state(device_t dev);
 
-
 struct chip_operations superio_smsc_lpc47n217_ops = {
        CHIP_NAME("SMSC LPC47N217 Super I/O")
        .enable_dev = enable_dev,
@@ -68,69 +67,72 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, LPC47N217_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, LPC47N217_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, LPC47N217_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }
+       { &ops, LPC47N217_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, LPC47N217_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, LPC47N217_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }
 };
 
 /**********************************************************************************/
-/*                                                             PUBLIC INTERFACE                                                                  */
+/*                     PUBLIC INTERFACE                                          */
 /**********************************************************************************/
 
-//----------------------------------------------------------------------------------
-// Function:           enable_dev
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Create device structures and allocate resources to devices 
-//                                     specified in the pnp_dev_info array (above).
-//
+/*
+ * Function:           enable_dev
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Create device structures and allocate resources to devices
+ *                     specified in the pnp_dev_info array (above).
+ */
 static void enable_dev(device_t dev)
 {
-       pnp_enable_devices(dev, &pnp_ops, 
-                                          ARRAY_SIZE(pnp_dev_info), 
-                                          pnp_dev_info);
+       pnp_enable_devices(dev, &pnp_ops,
+                          ARRAY_SIZE(pnp_dev_info),
+                          pnp_dev_info);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47n217_pnp_set_resources
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Configure the specified Super I/O device with the resources
-//                                     (I/O space, etc.) that have been allocate for it.
-//
+/*
+ * Function:           lpc47n217_pnp_set_resources
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Configure the specified Super I/O device with the resources
+ *                     (I/O space, etc.) that have been allocate for it.
+ */
 static void lpc47n217_pnp_set_resources(device_t dev)
 {
        int i;
-       
-       pnp_enter_conf_state(dev);  
 
-       // NOTE: Cannot use pnp_set_resources() here because it assumes chip
-       //               support for logical devices, which the LPC47N217 doesn't have
+       pnp_enter_conf_state(dev);
+
+       /* NOTE: Cannot use pnp_set_resources() here because it assumes chip
+        * support for logical devices, which the LPC47N217 doesn't have
+        */
        for(i = 0; i < dev->resources; i++)
                lpc47n217_pnp_set_resource(dev, &dev->resource[i]);
 
-//     dump_pnp_device(dev);
-                
-       pnp_exit_conf_state(dev);  
-}       
+       /* dump_pnp_device(dev); */
+
+       pnp_exit_conf_state(dev);
+}
 
 static void lpc47n217_pnp_enable_resources(device_t dev)
-{       
-    pnp_enter_conf_state(dev);
+{
+       pnp_enter_conf_state(dev);
 
-       // NOTE: Cannot use pnp_enable_resources() here because it assumes chip
-       //               support for logical devices, which the LPC47N217 doesn't have
-    lpc47n217_pnp_set_enable(dev, 1);
+       /* NOTE: Cannot use pnp_enable_resources() here because it assumes chip
+        * support for logical devices, which the LPC47N217 doesn't have
+        */
+       lpc47n217_pnp_set_enable(dev, 1);
 
-    pnp_exit_conf_state(dev);
+       pnp_exit_conf_state(dev);
 }
 
 static void lpc47n217_pnp_enable(device_t dev)
 {
-       pnp_enter_conf_state(dev);   
+       pnp_enter_conf_state(dev);
 
-       // NOTE: Cannot use pnp_set_enable() here because it assumes chip
-       //               support for logical devices, which the LPC47N217 doesn't have
+       /* NOTE: Cannot use pnp_set_enable() here because it assumes chip
+        * support for logical devices, which the LPC47N217 doesn't have
+        */
 
        if(dev->enabled) {
                lpc47n217_pnp_set_enable(dev, 1);
@@ -139,17 +141,17 @@ static void lpc47n217_pnp_enable(device_t dev)
                lpc47n217_pnp_set_enable(dev, 0);
        }
 
-       pnp_exit_conf_state(dev);  
+       pnp_exit_conf_state(dev);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           lpc47n217_init
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Initialize the specified Super I/O device.
-//                                     Devices other than COM ports are ignored.
-//                                     For COM ports, we configure the baud rate. 
-//
+/*
+ * Function:           lpc47n217_init
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Initialize the specified Super I/O device.
+ *                     Devices other than COM ports are ignored.
+ *                     For COM ports, we configure the baud rate.
+ */
 static void lpc47n217_init(device_t dev)
 {
        struct superio_smsc_lpc47n217_config* conf = dev->chip_info;
@@ -159,7 +161,7 @@ static void lpc47n217_init(device_t dev)
                return;
 
        switch(dev->path.pnp.device) {
-       case LPC47N217_SP1: 
+       case LPC47N217_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -171,9 +173,8 @@ static void lpc47n217_init(device_t dev)
        }
 }
 
-
 /**********************************************************************************/
-/*                                                             PRIVATE FUNCTIONS                                                             */
+/*                             PRIVATE FUNCTIONS                                 */
 /**********************************************************************************/
 
 static void lpc47n217_pnp_set_resource(device_t dev, struct resource *resource)
@@ -185,8 +186,9 @@ static void lpc47n217_pnp_set_resource(device_t dev, struct resource *resource)
        }
 
        /* Now store the resource */
-       // NOTE: Cannot use pnp_set_XXX() here because they assume chip
-       //               support for logical devices, which the LPC47N217 doesn't have
+       /* NOTE: Cannot use pnp_set_XXX() here because they assume chip
+        * support for logical devices, which the LPC47N217 doesn't have
+        */
 
        if (resource->flags & IORESOURCE_IO) {
                lpc47n217_pnp_set_iobase(dev, resource->base);
@@ -210,20 +212,20 @@ static void lpc47n217_pnp_set_resource(device_t dev, struct resource *resource)
 static void lpc47n217_pnp_set_iobase(device_t dev, unsigned iobase)
 {
        ASSERT(!(iobase & 0x3));
-       
+
        switch(dev->path.pnp.device) {
-       case LPC47N217_PP: 
+       case LPC47N217_PP:
                pnp_write_config(dev, 0x23, (iobase >> 2) & 0xff);
                break;
-               
-       case LPC47N217_SP1: 
+
+       case LPC47N217_SP1:
                pnp_write_config(dev, 0x24, (iobase >> 2) & 0xff);
                break;
-               
+
        case LPC47N217_SP2:
                pnp_write_config(dev, 0x25, (iobase >> 2) & 0xff);
                break;
-               
+
        default:
                BUG();
                break;
@@ -238,7 +240,7 @@ static void lpc47n217_pnp_set_drq(device_t dev, unsigned drq)
                uint8_t current_config = pnp_read_config(dev, PP_DMA_SELECTION_REGISTER);
                uint8_t new_config;
 
-               ASSERT(!(drq & ~PP_DMA_MASK));          // DRQ out of range??           
+               ASSERT(!(drq & ~PP_DMA_MASK));          /* DRQ out of range?? */
                new_config = (current_config & ~PP_DMA_MASK) | drq;
                pnp_write_config(dev, PP_DMA_SELECTION_REGISTER, new_config);
        } else {
@@ -252,31 +254,31 @@ static void lpc47n217_pnp_set_irq(device_t dev, unsigned irq)
        uint8_t irq_config_mask = 0;
        uint8_t current_config;
        uint8_t new_config;
-       
+
        switch(dev->path.pnp.device) {
-       case LPC47N217_PP: 
+       case LPC47N217_PP:
                irq_config_register = 0x27;
                irq_config_mask = 0x0F;
                break;
-               
-       case LPC47N217_SP1: 
+
+       case LPC47N217_SP1:
                irq_config_register = 0x28;
                irq_config_mask = 0xF0;
                irq <<= 4;
                break;
-               
+
        case LPC47N217_SP2:
                irq_config_register = 0x28;
                irq_config_mask = 0x0F;
                break;
-               
+
        default:
                BUG();
                return;
        }
 
-       ASSERT(!(irq & ~irq_config_mask));              // IRQ out of range??
-       
+       ASSERT(!(irq & ~irq_config_mask));              /* IRQ out of range?? */
+
        current_config = pnp_read_config(dev, irq_config_register);
        new_config = (current_config & ~irq_config_mask) | irq;
        pnp_write_config(dev, irq_config_register, new_config);
@@ -288,100 +290,99 @@ static void lpc47n217_pnp_set_enable(device_t dev, int enable)
        uint8_t power_mask = 0;
        uint8_t current_power;
        uint8_t new_power;
-       
+
        switch(dev->path.pnp.device) {
-       case LPC47N217_PP: 
+       case LPC47N217_PP:
                power_register = 0x01;
                power_mask = 0x04;
                break;
-               
-       case LPC47N217_SP1: 
+
+       case LPC47N217_SP1:
                power_register = 0x02;
                power_mask = 0x08;
                break;
-               
+
        case LPC47N217_SP2:
                power_register = 0x02;
                power_mask = 0x80;
                break;
-               
+
        default:
                BUG();
                return;
        }
 
        current_power = pnp_read_config(dev, power_register);
-       new_power = current_power & ~power_mask;                // disable by default
+       new_power = current_power & ~power_mask;                /* disable by default */
 
        if (enable) {
                struct resource* ioport_resource = find_resource(dev, PNP_IDX_IO0);
                lpc47n217_pnp_set_iobase(dev, ioport_resource->base);
-               
-               new_power |= power_mask;                // Enable
-               
-    } else {
+
+               new_power |= power_mask;                /* Enable */
+
+       } else {
                lpc47n217_pnp_set_iobase(dev, 0);
        }
        pnp_write_config(dev, power_register, new_power);
 }
 
-
-//----------------------------------------------------------------------------------
-// Function:           pnp_enter_conf_state
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Enable access to the LPC47N217's configuration registers.
-//
-static void pnp_enter_conf_state(device_t dev) 
+/*
+ * Function:           pnp_enter_conf_state
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Enable access to the LPC47N217's configuration registers.
+ */
+static void pnp_enter_conf_state(device_t dev)
 {
        outb(0x55, dev->path.pnp.port);
 }
 
-//----------------------------------------------------------------------------------
-// Function:           pnp_exit_conf_state
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Disable access to the LPC47N217's configuration registers.
-//
-static void pnp_exit_conf_state(device_t dev) 
+/*
+ * Function:           pnp_exit_conf_state
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Disable access to the LPC47N217's configuration registers.
+ */
+static void pnp_exit_conf_state(device_t dev)
 {
-    outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
 
 #if 0
-//----------------------------------------------------------------------------------
-// Function:           dump_pnp_device
-// Parameters:         dev - pointer to structure describing a Super I/O device 
-// Return Value:       None
-// Description:        Print the values of all of the LPC47N217's configuration registers.
-//                                     NOTE: The LPC47N217 must be in configuration mode when this
-//                                               function is called.
-//
+/*
+ * Function:           dump_pnp_device
+ * Parameters:         dev - pointer to structure describing a Super I/O device
+ * Return Value:       None
+ * Description:        Print the values of all of the LPC47N217's configuration registers.
+ *                     NOTE: The LPC47N217 must be in configuration mode when this
+ *                     function is called.
+ */
 static void dump_pnp_device(device_t dev)
 {
-    int register_index;
-    print_debug("\r\n");
+       int register_index;
+       print_debug("\r\n");
 
-    for(register_index = 0; register_index <= LPC47N217_MAX_CONFIG_REGISTER; register_index++) {
-        uint8_t register_value;
+       for(register_index = 0; register_index <= LPC47N217_MAX_CONFIG_REGISTER; register_index++) {
+               uint8_t register_value;
 
-        if ((register_index & 0x0f) == 0) {
-                print_debug_hex8(register_index);
-                print_debug_char(':');
-        }
+               if ((register_index & 0x0f) == 0) {
+                       print_debug_hex8(register_index);
+                       print_debug_char(':');
+               }
 
-               // Skip over 'register' that would cause exit from configuration mode
-           if (register_index == 0xaa)
+               /* Skip over 'register' that would cause exit from configuration mode */
+               if (register_index == 0xaa)
                        register_value = 0xaa;
                else
-               register_value = pnp_read_config(dev, register_index);
-
-        print_debug_char(' ');
-        print_debug_hex8(register_value);
-        if ((register_index & 0x0f) == 0x0f) {
-               print_debug("\r\n");
-        }
-    }
+                       register_value = pnp_read_config(dev, register_index);
+
+               print_debug_char(' ');
+               print_debug_hex8(register_value);
+               if ((register_index & 0x0f) == 0x0f) {
+                       print_debug("\r\n");
+               }
+       }
 
        print_debug("\r\n");
 }
index cb5d059b596403210e9c080009af9c31224a2cb0..512a21862363dfe45c06d428e3c05633e6c67ce0 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index f1e24ab9de6e57f2a3e9b872a5462b62dff5aff8..7aa10532bd5bee26026c41e626b74faf7c987780 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_SMSC_SMSCSUPERIO) += superio.o
-
index 7bc12a4fa538301e2176a7b6cfd5d642064c46e8..ffbf82ae42cf1e8cf6bd720286eaedd7a29f4fba 100644 (file)
@@ -120,7 +120,7 @@ static const struct logical_devices {
        uint8_t superio_id;
        int devs[MAX_LOGICAL_DEVICES];
 } logical_device_table[] = {
-       // Chip   FDC PP SP1 SP2 RTC KBC AUX XBUS HWM GAME PME MPU RT ACPI SMB
+       /* Chip   FDC PP SP1 SP2 RTC KBC AUX XBUS HWM GAME PME MPU RT ACPI SMB */
        {LPC47M172,{0, 3, 4,  2, -1,  7, -1,  -1, -1,  -1, -1, -1, 10, -1, -1}},
        {FDC37B80X,{0, 3, 4,  5, -1,  7,  8,  -1, -1,  -1, -1, -1, -1, -1, -1}},
        {FDC37B78X,{0, 3, 4,  5,  6,  7,  8,  -1, -1,  -1, -1, -1, -1, 10, -1}},
index a1dfde020ef544520a17cd08f2a1fe99ea46d1bc..c914fe2fb966a08bc87b9f360756febcee119982 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2004 Nick Barker <nick.barker9@btinternet.com>
+##
+## 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 vt1211.o
index 27ff73b48a2f39a1a599a89b651a7562c17b5c42..3754ff3f8b134fd9c90d4204970216028d25c50a 100644 (file)
@@ -1,2 +1,23 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2004 Nick Barker <nick.barker9@btinternet.com>
+##
+## 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
 obj-$(CONFIG_SUPERIO_VIA_VT1211) += vt1211.o
index cfe0a319058c583d8be7cb1247b8915d771c68b4..9b2f29a332fcaf57266e283f83188661a5aa9118 100644 (file)
@@ -1,3 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2004 Nick Barker <nick.barker9@btinternet.com>
+ *
+ * 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
+ */
+
 #ifndef _SUPERIO_VIA_VT1211
 #define _SUPERIO_VIA_VT1211
 
index 53e4523cd85665f5782de1afb9d3f806161fdc81..ae5624055aa65146518ea5e76ad15d5dfc0240f4 100644 (file)
@@ -1,6 +1,7 @@
 /*
- * (C) Copyright 2004 Nick Barker <nick.barker9@btinternet.com>
+ * This file is part of the coreboot project.
  *
+ * Copyright (C) 2004 Nick Barker <nick.barker9@btinternet.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -20,7 +21,6 @@
 
  /* vt1211 routines and defines*/
 
-
 #include <arch/io.h>
 #include <console/console.h>
 #include <device/device.h>
 #include "vt1211.h"
 #include "chip.h"
 
-
 static unsigned char vt1211hwmonitorinits[]={
- 0x10,0x3, 0x11,0x10, 0x12,0xd, 0x13,0x7f,
- 0x14,0x21, 0x15,0x81, 0x16,0xbd, 0x17,0x8a,
- 0x18,0x0, 0x19,0x0, 0x1a,0x0, 0x1b,0x0,
- 0x1d,0xff, 0x1e,0x0, 0x1f,0x73, 0x20,0x67,
- 0x21,0xc1, 0x22,0xca, 0x23,0x74, 0x24,0xc2,
- 0x25,0xc7, 0x26,0xc9, 0x27,0x7f, 0x29,0x0,
- 0x2a,0x0, 0x2b,0xff, 0x2c,0x0, 0x2d,0xff,
- 0x2e,0x0, 0x2f,0xff, 0x30,0x0, 0x31,0xff,
- 0x32,0x0, 0x33,0xff, 0x34,0x0, 0x39,0xff,
- 0x3a,0x0, 0x3b,0xff, 0x3c,0xff, 0x3d,0xff,
- 0x3e,0x0, 0x3f,0xb0, 0x43,0xff, 0x44,0xff,
- 0x46,0xff, 0x47,0x50, 0x4a,0x3, 0x4b,0xc0,
- 0x4c,0x0, 0x4d,0x0, 0x4e,0xf, 0x5d,0x77,
- 0x5c,0x0, 0x5f,0x33, 0x40,0x1};
-
-static void pnp_enter_ext_func_mode(device_t dev) 
+       0x10,0x3, 0x11,0x10, 0x12,0xd, 0x13,0x7f,
+       0x14,0x21, 0x15,0x81, 0x16,0xbd, 0x17,0x8a,
+       0x18,0x0, 0x19,0x0, 0x1a,0x0, 0x1b,0x0,
+       0x1d,0xff, 0x1e,0x0, 0x1f,0x73, 0x20,0x67,
+       0x21,0xc1, 0x22,0xca, 0x23,0x74, 0x24,0xc2,
+       0x25,0xc7, 0x26,0xc9, 0x27,0x7f, 0x29,0x0,
+       0x2a,0x0, 0x2b,0xff, 0x2c,0x0, 0x2d,0xff,
+       0x2e,0x0, 0x2f,0xff, 0x30,0x0, 0x31,0xff,
+       0x32,0x0, 0x33,0xff, 0x34,0x0, 0x39,0xff,
+       0x3a,0x0, 0x3b,0xff, 0x3c,0xff, 0x3d,0xff,
+       0x3e,0x0, 0x3f,0xb0, 0x43,0xff, 0x44,0xff,
+       0x46,0xff, 0x47,0x50, 0x4a,0x3, 0x4b,0xc0,
+       0x4c,0x0, 0x4d,0x0, 0x4e,0xf, 0x5d,0x77,
+       0x5c,0x0, 0x5f,0x33, 0x40,0x1
+};
+
+static void pnp_enter_ext_func_mode(device_t dev)
 {
        outb(0x87, dev->path.pnp.port);
        outb(0x87, dev->path.pnp.port);
 }
 
-static void pnp_exit_ext_func_mode(device_t dev) 
+static void pnp_exit_ext_func_mode(device_t dev)
 {
        outb(0xaa, dev->path.pnp.port);
 }
 
 static void vt1211_set_iobase(device_t dev, unsigned index, unsigned iobase)
 {
-
        switch (dev->path.pnp.device) {
                case VT1211_FDC:
                case VT1211_PP:
@@ -75,14 +74,13 @@ static void vt1211_set_iobase(device_t dev, unsigned index, unsigned iobase)
                        pnp_write_config(dev, index + 1, iobase & 0xff);
                        break;
        }
-       
 }
 
 static void init_hwm(unsigned long base)
 {
        int i;
 
-       // initialize vt1211 hardware monitor registers, which are at 0xECXX
+       /* initialize vt1211 hardware monitor registers, which are at 0xECXX */
        for(i = 0; i < sizeof(vt1211hwmonitorinits); i += 2) {
                        outb(vt1211hwmonitorinits[i + 1],
                                        base + vt1211hwmonitorinits[i]);
@@ -117,8 +115,6 @@ static void vt1211_init(struct device *dev)
        default:
                printk_info("vt1211 asked to initialise unknown device!\n");
        }
-       
-
 }
 
 void vt1211_pnp_enable_resources(device_t dev)
@@ -139,7 +135,7 @@ void vt1211_pnp_set_resources(struct device *dev)
                for( i = 0 ; i < dev->resources; i++){
                        resource = &dev->resource[i];
                        resource->flags |= IORESOURCE_STORED;
-                       report_resource_stored(dev, resource, "");      
+                       report_resource_stored(dev, resource, "");
                }
                return;
        }
@@ -176,7 +172,7 @@ void vt1211_pnp_set_resources(struct device *dev)
                }
                resource->flags |= IORESOURCE_STORED;
 
-               report_resource_stored(dev, resource, "");      
+               report_resource_stored(dev, resource, "");
        }
 
        pnp_exit_ext_func_mode(dev);
index 4c58011d71962d16a9382297bf7eca18ae7eb7eb..de4a2d7a26dfdd23d35035a7a367a25775a1c5e9 100644 (file)
@@ -1,6 +1,7 @@
 /*
- * (C) Copyright 2004 Nick Barker <nick.barker9@btinternet.com>
+ * This file is part of the coreboot project.
  *
+ * Copyright (C) 2004 Nick Barker <nick.barker9@btinternet.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
index 1513f0df314ac7224e60add0b0161a2a246e03fe..db6949f0979a88769c32c516e20a2fb7dbef2b1a 100644 (file)
@@ -20,4 +20,3 @@
 
 config chip.h
 object superio.o
-
index cdec98d0b8c787de561f8df0c0b573e46ca15cbd..e24b3a755e30de1da9e28845b56287019babe910 100644 (file)
@@ -20,4 +20,3 @@
 
 #config chip.h
 obj-$(CONFIG_SUPERIO_WINBOND_W83627DHG) += superio.o
-
index 383f9a5681799618b6376aaef2f14aadd5ca9f38..998a097022d3132b10a40109ac827b113932dec1 100644 (file)
@@ -103,8 +103,8 @@ static struct pnp_info pnp_dev_info[] = {
        { &ops, W83627DHG_SP1, PNP_IO0 | PNP_IRQ0, { 0xff8, 0 }, },
        { &ops, W83627DHG_SP2, PNP_IO0 | PNP_IRQ0, { 0xff8, 0 }, },
        { &ops, W83627DHG_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0xfff, 0 }, { 0xfff, 0x4}, },
-       // the next line makes coreboot hang in pnp_enable_devices()
-       // { &ops, W83627DHG_SPI, PNP_IO1, { 0xff8, 0 }, },
+       /* the next line makes coreboot hang in pnp_enable_devices() */
+       /* { &ops, W83627DHG_SPI, PNP_IO1, { 0xff8, 0 }, }, */
        { &ops, W83627DHG_GPIO6, },
        { &ops, W83627DHG_WDTO_PLED, },
        { &ops, W83627DHG_GPIO2345, },
index 066c65836aed9f4de049146831ecbe87cbf7f4bd..b858b85ec7867761e59806d9e13c5b9ad2cea55f 100644 (file)
@@ -1,24 +1,23 @@
-## 
+##
 ## This file is part of the coreboot project.
-## 
+##
 ## Copyright (C) 2007 AMD
 ## Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
-## 
+##
 ## 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
-
index 9b56268aef12800b1967e3dc82f99c6e232fc994..a262e4aa01c6445763e172de571480602426338e 100644 (file)
@@ -1,24 +1,23 @@
-## 
+##
 ## This file is part of the coreboot project.
-## 
+##
 ## Copyright (C) 2007 AMD
 ## Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
-## 
+##
 ## 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
 obj-$(CONFIG_SUPERIO_WINBOND_W83627EHG) += superio.o
-
index e44a45ea8521560c3e2dd7edf5d46b33b46c5c87..daf4b7f26178f130dec0b6c71587cce66f9fbddf 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2000 AG Electronics Ltd.
  * Copyright (C) 2003-2004 Linux Networx
- * Copyright (C) 2004 Tyan 
+ * Copyright (C) 2004 Tyan
  * Copyright (C) 2007 AMD
  * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
  *
@@ -57,7 +57,8 @@ static uint8_t pnp_read_index(unsigned long port_base, uint8_t reg)
        return inb(port_base + 1);
 }
 
-static void enable_hwm_smbus(device_t dev) {
+static void enable_hwm_smbus(device_t dev)
+{
        /* Set the pin 91,92 as I2C bus. */
        uint8_t reg, value;
        reg = 0x2a;
@@ -99,7 +100,7 @@ static void init_hwm(unsigned long base)
                value = pnp_read_index(base, reg);
                value &= 0xff & (~(hwm_reg_values[i + 1]));
                value |= 0xff & hwm_reg_values[i + 2];
-               // printk_debug("base = 0x%04x, reg = 0x%02x, value = 0x%02x\r\n", base, reg,value);
+               /* printk_debug("base = 0x%04x, reg = 0x%02x, value = 0x%02x\r\n", base, reg,value); */
                pnp_write_index(base, reg, value);
        }
 }
@@ -182,7 +183,7 @@ static struct pnp_info pnp_dev_info[] = {
        { &ops, W83627EHG_PP,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
        { &ops, W83627EHG_SP1, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
        { &ops, W83627EHG_SP2, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-       // No 4 { 0,},
+       /* No 4 { 0,}, */
        { &ops, W83627EHG_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
        { &ops, W83627EHG_SFI, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
        { &ops, W83627EHG_WDTO_PLED, },
@@ -208,4 +209,3 @@ struct chip_operations superio_winbond_w83627ehg_ops = {
        CHIP_NAME("Winbond W83627EHG Super I/O")
        .enable_dev = enable_dev,
 };
-
index 8c245908979c6f99c9c0ec749af04754f203a0b7..aeda043fcb7afffde118e903bddf39dca8e983cb 100644 (file)
@@ -31,8 +31,8 @@
 #define W83627EHG_HWM             11   /* Hardware Monitor */
 
 /* virtual devices sharing the enables are encoded as follows:
-   VLDN = baseLDN[7:0] | [10:8] bitpos of enable in 0x30 of baseLDN
-*/
  VLDN = baseLDN[7:0] | [10:8] bitpos of enable in 0x30 of baseLDN
+ */
 
 #define W83627EHG_SFI          ((1 << 8) | 6) /* Flash has bit1 as enable */
 #define W83627EHG_GPIO1                W83627EHG_GPIO_GAME_MIDI /* GPIO1 is at LDN 7, bit 0 */
index f9bff363bdb909221ec2b13bb515e4ca05844733..125837a55637bf47b2ebac47fca34b219b89588b 100644 (file)
@@ -35,4 +35,3 @@ static void w83627ehg_enable_dev(device_t dev, unsigned iobase)
        pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
        pnp_set_enable(dev, 1);
 }
-
index 9a5fe566bcfc98c157ae9fbf3b9cffcee8bc781b..170b6a7ded2dabcd4f81d63e57ba0371913eb509 100644 (file)
@@ -44,4 +44,3 @@ static void w83627ehg_enable_serial(device_t dev, unsigned iobase)
        pnp_set_enable(dev, 1);
        pnp_exit_ext_func_mode(dev);
 }
-
index f62a567d6147c478da0d7c9af5eae21bd508546a..5f1320d8656cd4ec34383cd17bb17c23c0bcb580 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
index 4ecaa404ee019e0cc8fea2524f506a350325909d..795e197ff17c88cc20907814f893edb743f42f6e 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
 obj-$(CONFIG_SUPERIO_WINBOND_W83627HF) += superio.o
index 3f3ba491a9f3549d4cb54f2f80e07fc272ba546e..e8dfe2ea9954ee7f50205a408025e7d3b86e5e46 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <pc80/keyboard.h>
 #include <uart8250.h>
 
index cd84a33530baad429592697ee054e1e0992ed689..1ad79194bef8ef8929da68c35f379afff43d1197 100644 (file)
@@ -1,8 +1,24 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* Copyright 2004 Tyan
-   By LYH change from PC87360 */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
 #include "chip.h"
 #include "w83627hf.h"
 
-
 static void pnp_enter_ext_func_mode(device_t dev)
 {
        outb(0x87, dev->path.pnp.port);
        outb(0x87, dev->path.pnp.port);
 }
+
 static void pnp_exit_ext_func_mode(device_t dev)
 {
        outb(0xaa, dev->path.pnp.port);
@@ -40,7 +56,8 @@ static uint8_t pnp_read_index(unsigned long port_base, uint8_t reg)
        return inb(port_base + 1);
 }
 
-static void enable_hwm_smbus(device_t dev) {
+static void enable_hwm_smbus(device_t dev)
+{
        /* set the pin 91,92 as I2C bus */
        uint8_t reg, value;
        reg = 0x2b;
@@ -72,7 +89,7 @@ static void init_hwm(unsigned long base)
        int i;
 
        unsigned  hwm_reg_values[] = {
-/*             reg  mask  data */
+       /*      reg  mask  data */
                0x40, 0xff, 0x81,  /* start HWM */
                0x48, 0xaa, 0x2a,  /* set SMBus base to 0x54>>1 */
                0x4a, 0x21, 0x21,  /* set T2 SMBus base to 0x92>>1 and T3 SMBus base to 0x94>>1 */
@@ -84,9 +101,9 @@ static void init_hwm(unsigned long base)
 
        };
 
-       for(i = 0; i<  ARRAY_SIZE(hwm_reg_values); i+=3 ) { 
-               reg = hwm_reg_values[i];        
-               value = pnp_read_index(base, reg);              
+       for(i = 0; i<  ARRAY_SIZE(hwm_reg_values); i+=3 ) {
+               reg = hwm_reg_values[i];
+               value = pnp_read_index(base, reg);
                value &= 0xff & hwm_reg_values[i+1];
                value |= 0xff & hwm_reg_values[i+2];
 #if 0
@@ -134,7 +151,6 @@ static void w83627hf_pnp_set_resources(device_t dev)
        pnp_enter_ext_func_mode(dev);
        pnp_set_resources(dev);
        pnp_exit_ext_func_mode(dev);
-
 }
 
 static void w83627hf_pnp_enable_resources(device_t dev)
@@ -148,12 +164,10 @@ static void w83627hf_pnp_enable_resources(device_t dev)
                break;
        }
        pnp_exit_ext_func_mode(dev);
-
 }
 
 static void w83627hf_pnp_enable(device_t dev)
 {
-
        if (!dev->enabled) {
                pnp_enter_ext_func_mode(dev);
 
@@ -177,7 +191,7 @@ static struct pnp_info pnp_dev_info[] = {
        { &ops, W83627HF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
        { &ops, W83627HF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
        { &ops, W83627HF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-       // No 4 { 0,},
+       /* No 4 { 0,}, */
        { &ops, W83627HF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
        { &ops, W83627HF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
        { &ops, W83627HF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 0x4}, },
index 21af050268d9454ea67def59b79f32f19ecafa38..56ade8feee7d595b8632b71b47d215b7d1ffbcf4 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #define W83627HF_FDC              0   /* Floppy */
 #define W83627HF_PP               1   /* Parallel Port */
 #define W83627HF_SP1              2   /* Com1 */
@@ -10,8 +32,8 @@
 #define W83627HF_ACPI            10
 #define W83627HF_HWM             11   /* Hardware Monitor */
 
-//#define W83627HF_GPIO_DEV PNP_DEV(0x2e, W83627HF_GPIO)
-//#define W83627HF_XBUS_DEV PNP_DEV(0x2e, W83627HF_XBUS)
+/* #define W83627HF_GPIO_DEV PNP_DEV(0x2e, W83627HF_GPIO) */
+/* #define W83627HF_XBUS_DEV PNP_DEV(0x2e, W83627HF_XBUS) */
 
 #define W83627HF_GPSEL         0xf0
 #define W83627HF_GPCFG1                0xf1
 #define W83627HF_HAP1          0x14
 #define W83627HF_XSCNF         0x15
 #define W83627HF_XWBCNF                0x16
-
-
index e449c4ae9cd000ad382d4ffb6e28f99027c18024..1f580524e22d3719378068fbbb42847d947b1782 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright 2003-2004 Linux Networx
+ * Copyright 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "w83627hf.h"
 
@@ -6,6 +28,7 @@ static void w83627hf_disable_dev(device_t dev)
        pnp_set_logical_device(dev);
        pnp_set_enable(dev, 0);
 }
+
 static void w83627hf_enable_dev(device_t dev, unsigned iobase)
 {
        pnp_set_logical_device(dev);
index 826937e59e6d02e2255942070ac2c293c9582943..cc0bf1cfe4e75415a0822e9cb2947c943a6c7480 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "w83627hf.h"
 
index f62a567d6147c478da0d7c9af5eae21bd508546a..5f1320d8656cd4ec34383cd17bb17c23c0bcb580 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
index 6a222c046fab9f9ebaf08a37240e6b9f83b51f13..05ef349f69923e139f76475a59210c84e4f7d91f 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
 obj-$(CONFIG_SUPERIO_WINBOND_W83627THF) += superio.o
index ca52519e37e9023714927088482f2c2f83bbb26b..6f45535fa5802af9e7d0266b47561072a2ae5ca3 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <pc80/keyboard.h>
 #include <uart8250.h>
 
index 8fb138d5d76846b40234911224dc734fd6567428..8e32a2a4e8894656903c2d1236fefaea21d4cd2b 100644 (file)
@@ -1,8 +1,24 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* Copyright 2004 Tyan 
-   By LYH change from PC87360 */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
 #include "chip.h"
 #include "w83627thf.h"
 
-static void w83627thf_enter_ext_func_mode(device_t dev) 
+static void w83627thf_enter_ext_func_mode(device_t dev)
 {
-        outb(0x87, dev->path.pnp.port);
-        outb(0x87, dev->path.pnp.port);
+       outb(0x87, dev->path.pnp.port);
+       outb(0x87, dev->path.pnp.port);
 }
-static void w83627thf_exit_ext_func_mode(device_t dev) 
+
+static void w83627thf_exit_ext_func_mode(device_t dev)
 {
-        outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
 
 static void w83627thf_init(device_t dev)
@@ -38,7 +55,7 @@ static void w83627thf_init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case W83627THF_SP1: 
+       case W83627THF_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -70,12 +87,11 @@ static void w83627thf_enable_resources(device_t dev)
 
 static void w83627thf_enable(device_t dev)
 {
-       w83627thf_enter_ext_func_mode(dev);   
+       w83627thf_enter_ext_func_mode(dev);
        pnp_enable(dev);
-       w83627thf_exit_ext_func_mode(dev);  
+       w83627thf_exit_ext_func_mode(dev);
 }
 
-
 static struct device_operations ops = {
        .read_resources   = pnp_read_resources,
        .set_resources    = w83627thf_set_resources,
@@ -85,18 +101,18 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, W83627THF_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, W83627THF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, W83627THF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, W83627THF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        // No 4 { 0,},
-        { &ops, W83627THF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
-        { &ops, W83627THF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, W83627THF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} },
-        // { W83627THF_GPIO2,},
-        // { W83627THF_GPIO3,},
-        { &ops, W83627THF_ACPI, PNP_IRQ0,  },
-        { &ops, W83627THF_HWM,  PNP_IO0 | PNP_IRQ0, { 0xff8, 0 } },
+       { &ops, W83627THF_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, W83627THF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, W83627THF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, W83627THF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       /* No 4 { 0,}, */
+       { &ops, W83627THF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
+       { &ops, W83627THF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, W83627THF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} },
+       /* { W83627THF_GPIO2,}, */
+       /* { W83627THF_GPIO3,}, */
+       { &ops, W83627THF_ACPI, PNP_IRQ0,  },
+       { &ops, W83627THF_HWM,  PNP_IO0 | PNP_IRQ0, { 0xff8, 0 } },
 };
 
 static void enable_dev(device_t dev)
index c6c11b4e5cac43cbf12a054837b4967a401b3951..b92234b86b4b2a0c9a7f87894d72201309d49576 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #define W83627THF_FDC              0   /* Floppy */
 #define W83627THF_PP               1   /* Parallel Port */
 #define W83627THF_SP1              2   /* Com1 */
index 325d14dd1fb496831db20d9211e2eb340d03b5df..4931ad2da758cb86506ddafd870d4b4835c1bf7c 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "w83627thf.h"
 
index f62a567d6147c478da0d7c9af5eae21bd508546a..5f1320d8656cd4ec34383cd17bb17c23c0bcb580 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
index c14898fb1a4811a61d43ca3a6b86c9ca50b80120..e99032fdbb1cd500dda9fb221e52d391034bc115 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
 obj-$(CONFIG_SUPERIO_WINBOND_W83627THG) += superio.o
index 8b0bdbc91bbbbad30b88488e3399b4ba27a68405..3decc8471333c58f7d43c85b619fbf6546ae7b46 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <pc80/keyboard.h>
 #include <uart8250.h>
 
index 01bb410df3921532f04a9dcb811c168553a870a8..eabce5bb81937c96c932740515f38c8e6b8f7749 100644 (file)
@@ -1,8 +1,24 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* Copyright 2004 Tyan 
-   By LYH change from PC87360 */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
 
 #include <arch/io.h>
 #include <device/device.h>
 #include "chip.h"
 #include "w83627thg.h"
 
-static void w83627thg_enter_ext_func_mode(device_t dev) 
+static void w83627thg_enter_ext_func_mode(device_t dev)
 {
-        outb(0x87, dev->path.pnp.port);
-        outb(0x87, dev->path.pnp.port);
+       outb(0x87, dev->path.pnp.port);
+       outb(0x87, dev->path.pnp.port);
 }
-static void w83627thg_exit_ext_func_mode(device_t dev) 
+static void w83627thg_exit_ext_func_mode(device_t dev)
 {
-        outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
 
 static void w83627thg_init(device_t dev)
@@ -37,7 +53,7 @@ static void w83627thg_init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case W83627THG_SP1: 
+       case W83627THG_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -69,12 +85,11 @@ static void w83627thg_enable_resources(device_t dev)
 
 static void w83627thg_enable(device_t dev)
 {
-       w83627thg_enter_ext_func_mode(dev);   
+       w83627thg_enter_ext_func_mode(dev);
        pnp_enable(dev);
-       w83627thg_exit_ext_func_mode(dev);  
+       w83627thg_exit_ext_func_mode(dev);
 }
 
-
 static struct device_operations ops = {
        .read_resources   = pnp_read_resources,
        .set_resources    = w83627thg_set_resources,
@@ -84,17 +99,17 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, W83627THG_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, W83627THG_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, W83627THG_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, W83627THG_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        // No 4 { 0,},
-        { &ops, W83627THG_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
-        { &ops, W83627THG_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} },
-        { &ops, W83627THG_GPIO2,},
-        { &ops, W83627THG_GPIO3,},
-        { &ops, W83627THG_ACPI, PNP_IRQ0,  },
-        { &ops, W83627THG_HWM,  PNP_IO0 | PNP_IRQ0, { 0xff8, 0 } },
+       { &ops, W83627THG_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, W83627THG_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, W83627THG_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, W83627THG_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       /* No 4 { 0,}, */
+       { &ops, W83627THG_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
+       { &ops, W83627THG_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} },
+       { &ops, W83627THG_GPIO2,},
+       { &ops, W83627THG_GPIO3,},
+       { &ops, W83627THG_ACPI, PNP_IRQ0,  },
+       { &ops, W83627THG_HWM,  PNP_IO0 | PNP_IRQ0, { 0xff8, 0 } },
 };
 
 static void enable_dev(device_t dev)
index add928d66ac439b1ba3cbdc819b89cf7e9f2e450..3456f80f4242c503cb5ff757e7fed8a243ee2c17 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #define W83627THG_FDC              0   /* Floppy */
 #define W83627THG_PP               1   /* Parallel Port */
 #define W83627THG_SP1              2   /* Com1 */
index 328aead94f11d3d97333f50fc77ac74b7077d916..00af2ee5bba62e1f87c9ad76fc05cbbfb1ffd26a 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "w83627thg.h"
 
index e6b6375513f58ad9716ee1f3a824b62de49696c1..4fc1cc559ea13d660c21cf68c3dca51217fcd7e7 100644 (file)
@@ -80,7 +80,7 @@ static void w83627uhg_init(device_t dev)
 
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case W83627UHG_SP1: 
+       case W83627UHG_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                /* set_uart_clock_source(dev, 0); */
                init_uart8250(res0->base, &conf->com1);
index 858dc6c72ab5c577bfd390c8422c259cfd9e4dca..1e05e38f40487fdc62331aa46b51d612187b6416 100644 (file)
@@ -29,7 +29,7 @@ static inline void pnp_enter_ext_func_mode(device_t dev)
        outb(0x87, port);
 }
 
-static void pnp_exit_ext_func_mode(device_t dev) 
+static void pnp_exit_ext_func_mode(device_t dev)
 {
        u16 port = dev >> 8;
        outb(0xaa, port);
index 75f0e26b5cf3220c2f5cea1c3e0a9aa0fe12cd92..955a21e6f2e339fc8ecd566d622807b4b7422191 100644 (file)
@@ -1,22 +1,22 @@
-## 
+##
 ## This file is part of the coreboot project.
-## 
+##
 ## Copyright (C) 2007 Nikolay Petukhov <nikolay.petukhov@gmail.com>
-## 
+##
 ## 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
index 2a91ad0a16f32b0ef902a51c8203393ec11ad306..7e239b3b5d14e0eb80d72fcae2f8b10b5ef00fe3 100644 (file)
@@ -1,22 +1,22 @@
-## 
+##
 ## This file is part of the coreboot project.
-## 
+##
 ## Copyright (C) 2007 Nikolay Petukhov <nikolay.petukhov@gmail.com>
-## 
+##
 ## 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
 obj-$(CONFIG_SUPERIO_WINBOND_W83977F) += superio.o
index 0230e58201784c52625b41052ace41dcecf80825..d9e9c3f4df7d4e0c7b976aaf598af25c64acf87b 100644 (file)
 #include "chip.h"
 #include "w83977f.h"
 
-static void w83977f_enter_ext_func_mode(device_t dev) 
+static void w83977f_enter_ext_func_mode(device_t dev)
 {
        outb(0x87, dev->path.pnp.port);
        outb(0x87, dev->path.pnp.port);
 }
-static void w83977f_exit_ext_func_mode(device_t dev) 
+static void w83977f_exit_ext_func_mode(device_t dev)
 {
        outb(0xaa, dev->path.pnp.port);
 }
index f62a567d6147c478da0d7c9af5eae21bd508546a..5f1320d8656cd4ec34383cd17bb17c23c0bcb580 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
index dc3cda711c1a1500665f17d60f1c65d8cfc0d82e..53e923127bb0b706b1df2ef1c39b71ae4986942f 100644 (file)
@@ -1,2 +1,24 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2000 AG Electronics Ltd.
+## Copyright (C) 2003-2004 Linux Networx
+## Copyright (C) 2004 Tyan By LYH change from PC87360
+##
+## 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
 obj-$(CONFIG_SUPERIO_WINBOND_W83977TF) += superio.o
index 1957accf1aa002cc69d0d45bcfcc6830d150e8f7..62ed2833f24e5c886a3393e99ebfcc6cc31698d0 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <pc80/keyboard.h>
 #include <uart8250.h>
 
index 10985e7d71198776e7f1fb3d53498b92deb87297..83dd90a982e340690c0b1d71cecb8f3fbc1d0afe 100644 (file)
@@ -1,11 +1,27 @@
-/* Copyright 2000  AG Electronics Ltd. */
-/* Copyright 2003-2004 Linux Networx */
-/* Copyright 2004 Tyan 
-   By LYH change from PC87360 */
-/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
 
-/* 2006-4-24 
- * Adapted for the w83977 by rsmith <smithbone@gmail.com> 
+/* 2006-4-24
+ * Adapted for the w83977 by rsmith <smithbone@gmail.com>
  * This is mostly just a search and replace on the part type
  * TODO: Actually see if all the sub functionis exist and are
  *       setup correctly.
 #include "chip.h"
 #include "w83977tf.h"
 
-static void w83977tf_enter_ext_func_mode(device_t dev) 
+static void w83977tf_enter_ext_func_mode(device_t dev)
 {
-        outb(0x87, dev->path.pnp.port);
-        outb(0x87, dev->path.pnp.port);
+       outb(0x87, dev->path.pnp.port);
+       outb(0x87, dev->path.pnp.port);
 }
-static void w83977tf_exit_ext_func_mode(device_t dev) 
+static void w83977tf_exit_ext_func_mode(device_t dev)
 {
-        outb(0xaa, dev->path.pnp.port);
+       outb(0xaa, dev->path.pnp.port);
 }
 
 static void w83977tf_init(device_t dev)
@@ -45,7 +61,7 @@ static void w83977tf_init(device_t dev)
        }
        conf = dev->chip_info;
        switch(dev->path.pnp.device) {
-       case W83977TF_SP1: 
+       case W83977TF_SP1:
                res0 = find_resource(dev, PNP_IDX_IO0);
                init_uart8250(res0->base, &conf->com1);
                break;
@@ -77,12 +93,11 @@ static void w83977tf_enable_resources(device_t dev)
 
 static void w83977tf_enable(device_t dev)
 {
-       w83977tf_enter_ext_func_mode(dev);   
+       w83977tf_enter_ext_func_mode(dev);
        pnp_enable(dev);
-       w83977tf_exit_ext_func_mode(dev);  
+       w83977tf_exit_ext_func_mode(dev);
 }
 
-
 static struct device_operations ops = {
        .read_resources   = pnp_read_resources,
        .set_resources    = w83977tf_set_resources,
@@ -92,15 +107,15 @@ static struct device_operations ops = {
 };
 
 static struct pnp_info pnp_dev_info[] = {
-        { &ops, W83977TF_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, W83977TF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
-        { &ops, W83977TF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, W83977TF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        // No 4 { 0,},
-        { &ops, W83977TF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
-        { &ops, W83977TF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
-        { &ops, W83977TF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} },
-        { &ops, W83977TF_ACPI, PNP_IRQ0,  },
+       { &ops, W83977TF_FDC,  PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, W83977TF_PP,   PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, },
+       { &ops, W83977TF_SP1,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, W83977TF_SP2,  PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       /* No 4 { 0,}, */
+       { &ops, W83977TF_KBC,  PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1, { 0x7ff, 0 }, { 0x7ff, 0x4}, },
+       { &ops, W83977TF_CIR, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, },
+       { &ops, W83977TF_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} },
+       { &ops, W83977TF_ACPI, PNP_IRQ0,  },
 };
 
 static void enable_dev(device_t dev)
index 76eec89ee1b58ee5b05b19fea951095c8e5e8668..c75fc8c8a0ff04eca0e9e0a05598a5f1afc2f9e2 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #define W83977TF_FDC              0   /* Floppy */
 #define W83977TF_PP               1   /* Parallel Port */
 #define W83977TF_SP1              2   /* Com1 */
@@ -8,4 +30,3 @@
 #define W83977TF_GPIO2            8
 #define W83977TF_GPIO3            9
 #define W83977TF_ACPI            10
-
index a956e11fc5fe5a1d7adce4f615177ad65ebc3e20..dbc8dcbef1207346cc8b1e7fb28c0764872af0b9 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2000 AG Electronics Ltd.
+ * Copyright (C) 2003-2004 Linux Networx
+ * Copyright (C) 2004 Tyan By LYH change from PC87360
+ *
+ * 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
+ */
+
 #include <arch/romcc_io.h>
 #include "w83977tf.h"