]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkPlatformPkg/Include/Pcal9555.h
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Include / Pcal9555.h
diff --git a/QuarkPlatformPkg/Include/Pcal9555.h b/QuarkPlatformPkg/Include/Pcal9555.h
new file mode 100644 (file)
index 0000000..2b7efad
--- /dev/null
@@ -0,0 +1,30 @@
+/** @file\r
+Definition for Pcal9555 I2c IO Expander.\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+\r
+**/\r
+\r
+#ifndef __PCAL9555_H__\r
+#define __PCAL9555_H__\r
+\r
+#define PCAL9555_REG_IN_PORT0                        0x00\r
+#define PCAL9555_REG_IN_PORT1                        0x01\r
+#define PCAL9555_REG_OUT_PORT0                       0x02\r
+#define PCAL9555_REG_OUT_PORT1                       0x03\r
+#define PCAL9555_REG_CFG_PORT0                       0x06\r
+#define PCAL9555_REG_CFG_PORT1                       0x07\r
+\r
+#define PCAL9555_REG_PULL_EN_PORT0                   0x46\r
+#define PCAL9555_REG_PULL_EN_PORT1                   0x47\r
+\r
+#endif\r