summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i3100/chip.h
diff options
context:
space:
mode:
authorEd Swierk <eswierk@arastra.com>2008-03-16 23:34:10 +0000
committerStefan Reinauer <stepan@openbios.org>2008-03-16 23:34:10 +0000
commitaaea11b749ccd481a37424c38625873c231f850d (patch)
treedee6e79b648a2916002d20b1f31af6bf32ad1524 /src/southbridge/intel/i3100/chip.h
parent62eee3ff4fc544ede21d72fcb5a1859b3f571dc8 (diff)
downloadcoreboot-aaea11b749ccd481a37424c38625873c231f850d.tar.xz
Here is an updated patch addressing most of Uwe's and Peter's
comments. Ripping out the ehci/uhci_init() code doesn't seem to have done any harm, and I got rid of a bunch of unused junk in i3100_smbus.h I left the *_set_subsystem() arguments unsigned, as that's how the function is declared in include/device/pci.h. Signed-off-by: Ed Swierk <eswierk@arastra.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3157 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i3100/chip.h')
-rw-r--r--src/southbridge/intel/i3100/chip.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/southbridge/intel/i3100/chip.h b/src/southbridge/intel/i3100/chip.h
new file mode 100644
index 0000000000..f35e4a8b0e
--- /dev/null
+++ b/src/southbridge/intel/i3100/chip.h
@@ -0,0 +1,49 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2008 Arastra, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * 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 southbridge_intel_i3100_config
+{
+#define I3100_GPIO_USE_MASK 0x03
+#define I3100_GPIO_USE_DEFAULT 0x00
+#define I3100_GPIO_USE_AS_NATIVE 0x01
+#define I3100_GPIO_USE_AS_GPIO 0x02
+
+#define I3100_GPIO_SEL_MASK 0x0c
+#define I3100_GPIO_SEL_DEFAULT 0x00
+#define I3100_GPIO_SEL_OUTPUT 0x04
+#define I3100_GPIO_SEL_INPUT 0x08
+
+#define I3100_GPIO_LVL_MASK 0x30
+#define I3100_GPIO_LVL_DEFAULT 0x00
+#define I3100_GPIO_LVL_LOW 0x10
+#define I3100_GPIO_LVL_HIGH 0x20
+#define I3100_GPIO_LVL_BLINK 0x30
+
+#define I3100_GPIO_INV_MASK 0xc0
+#define I3100_GPIO_INV_DEFAULT 0x00
+#define I3100_GPIO_INV_OFF 0x40
+#define I3100_GPIO_INV_ON 0x80
+
+ /* GPIO use select */
+ u8 gpio[64];
+ u32 pirq_a_d;
+ u32 pirq_e_h;
+};
+extern struct chip_operations southbridge_intel_i3100_ops;