Module Name: src Committed By: jakllsch Date: Mon Sep 21 16:18:31 UTC 2009
Modified Files: src/sys/dev/ic: i82801lpcreg.h Log Message: Add more-complete definitions of ICH GPIO-related registers. While here, fix a typo in a register number. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/i82801lpcreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/i82801lpcreg.h diff -u src/sys/dev/ic/i82801lpcreg.h:1.8 src/sys/dev/ic/i82801lpcreg.h:1.9 --- src/sys/dev/ic/i82801lpcreg.h:1.8 Mon Apr 28 20:23:50 2008 +++ src/sys/dev/ic/i82801lpcreg.h Mon Sep 21 16:18:31 2009 @@ -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. */