Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add more-complete definitions of ICH GPIO-related...
details: https://anonhg.NetBSD.org/src/rev/5db4df018aa5
branches: trunk
changeset: 747572:5db4df018aa5
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Sep 21 16:18:31 2009 +0000
description:
Add more-complete definitions of ICH GPIO-related registers.
While here, fix a typo in a register number.
diffstat:
sys/dev/ic/i82801lpcreg.h | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diffs (52 lines):
diff -r 2ec7d25f3452 -r 5db4df018aa5 sys/dev/ic/i82801lpcreg.h
--- a/sys/dev/ic/i82801lpcreg.h Mon Sep 21 15:29:36 2009 +0000
+++ b/sys/dev/ic/i82801lpcreg.h Mon Sep 21 16:18:31 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82801lpcreg.h,v 1.8 2008/04/28 20:23:50 martin Exp $ */
+/* $NetBSD: i82801lpcreg.h,v 1.9 2009/09/21 16:18:31 jakllsch Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -42,8 +42,12 @@
#define LPCIB_PCI_PMBASE 0x40
#define LPCIB_PCI_ACPI_CNTL 0x44
# define LPCIB_PCI_ACPI_CNTL_EN (1 << 4)
+/* GPIO config registers ICH6+ */
+#define LPCIB_PCI_GPIO_BASE_ICH6 0x48
+#define LPCIB_PCI_GPIO_CNTL_ICH6 0x4c
#define LPCIB_PCI_BIOS_CNTL 0x4e
#define LPCIB_PCI_TCO_CNTL 0x54
+/* GPIO config registers ICH0-ICH5 */
#define LPCIB_PCI_GPIO_BASE 0x58
#define LPCIB_PCI_GPIO_CNTL 0x5c
#define LPCIB_PCI_PIRQA_ROUT 0x60
@@ -69,7 +73,7 @@
#define LPCIB_PCI_MON5_TRP_RNG 0xc5
#define LPCIB_PCI_MON6_TRP_RNG 0xc6
#define LPCIB_PCI_MON7_TRP_RNG 0xc7
-#define LPCIB_PCI_MON_TRP_MSK oxcc
+#define LPCIB_PCI_MON_TRP_MSK 0xcc
#define LPCIB_PCI_GEN_CNTL 0xd0
#define LPCIB_ICH5_HPTC_EN 0x00020000
#define LPCIB_ICH5_HPTC_WIN_MASK 0x0000c000
@@ -138,6 +142,20 @@
# define LPCIB_PM_SS_CNTL_ARB_DIS 0x01 /* disable arbiter */
/*
+ * General Purpose I/O Registers
+ * (offset from GPIO_BASE)
+ */
+#define LPCIB_GPIO_GPIO_USE_SEL 0x00
+#define LPCIB_GPIO_GP_IO_SEL 0x04
+#define LPCIB_GPIO_GP_LVL 0x0c
+#define LPCIB_GPIO_GPO_TTL 0x14
+#define LPCIB_GPIO_GPO_BLINK 0x18
+#define LPCIB_GPIO_GPI_INV 0x2c
+#define LPCIB_GPIO_GPIO_USE_SEL2 0x30
+#define LPCIB_GPIO_GP_IO_SEL2 0x34
+#define LPCIB_GPIO_GP_LVL2 0x38
+
+/*
* SMBus controller registers.
*/
Home |
Main Index |
Thread Index |
Old Index