summaryrefslogtreecommitdiff
path: root/src/superio/intel/i3100/i3100.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-11-10 18:22:11 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-11-10 18:22:11 +0000
commitd1a1d57adca92dd71f62dfb9363def532c3fc0e6 (patch)
treeb79e7be2c1f36d33edd04b5e4a0ec96d783af2d7 /src/superio/intel/i3100/i3100.h
parent340fa9396b4b73fd894a15fe48882c98d74292ce (diff)
Restructure i3100 Super I/O driver to match the rest of the codebase.
- i3100_early_serial.c: - Split out enter/exit functions as the other Super I/Os do. - Make i3100_enable_serial() take a device_t as usual, and convert it to use the standard pnp_* function instead of open-coding the same functionality by hand. - Factor out i3100_configure_uart_clk() from i3100_enable_serial(), we do the same in various other Super I/Os, e.g. ITE ones. - Add some #defines for register / bit values and some comments. - Only functional change: Don't set bit 1 of SIW_CONFIGURATION, it's marked as "READ ONLY, WRITES IGNORED" in the datasheet. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6058 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio/intel/i3100/i3100.h')
-rw-r--r--src/superio/intel/i3100/i3100.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/superio/intel/i3100/i3100.h b/src/superio/intel/i3100/i3100.h
index f0d6426be0..6218e6d09f 100644
--- a/src/superio/intel/i3100/i3100.h
+++ b/src/superio/intel/i3100/i3100.h
@@ -46,6 +46,19 @@
#define I3100_SP2 0x05 /* Com2 */
#define I3100_WDT 0x06 /* Watchdog timer */
-#define I3100_SUPERIO_CONFIG_PORT 0x4e
+/* Registers and bit definitions: */
+
+#define I3100_SIW_CONFIGURATION 0x29
+
+/*
+ * SIW_CONFIGURATION[3:2] = UART_CLK predivide
+ * 00: divide by 1
+ * 01: divide by 8
+ * 10: divide by 26
+ * 11: reserved
+ */
+#define I3100_UART_CLK_PREDIVIDE_1 0x00
+#define I3100_UART_CLK_PREDIVIDE_8 0x01
+#define I3100_UART_CLK_PREDIVIDE_26 0x02
#endif