]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Omap35xxPkg/Include/TPS65950.h
BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / Omap35xxPkg / Include / TPS65950.h
index 618fbf91daa44ac7ba9b5c15abc1b71e23fb1bf2..1db8b6db4617f2a8596a3f8e7f9865f894e107c8 100644 (file)
@@ -1,46 +1,80 @@
-/** @file
-
-  Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
-
-  All rights reserved. This program and the accompanying materials
-  are licensed and made available under the terms and conditions of the BSD License
-  which accompanies this distribution.  The full text of the license may be found at
-  http://opensource.org/licenses/bsd-license.php
-
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef __TPS65950_H__
-#define __TPS65950_H__
-
-#define EXTERNAL_DEVICE_REGISTER_TO_SLAVE_ADDRESS(x)     (((x) >> 8) & 0xFF)
-#define EXTERNAL_DEVICE_REGISTER_TO_REGISTER(x)          ((x) & 0xFF)
-#define EXTERNAL_DEVICE_REGISTER(SlaveAddress, Register) (((SlaveAddress) & 0xFF) << 8 | ((Register) & 0xFF))
-
-//I2C Address group
-#define I2C_ADDR_GRP_ID1      0x48
-#define I2C_ADDR_GRP_ID2      0x49
-#define I2C_ADDR_GRP_ID3      0x4A
-#define I2C_ADDR_GRP_ID4      0x4B
-#define I2C_ADDR_GRP_ID5      0x12
-
-//MMC definitions.
-#define VMMC1_DEV_GRP         0x82
-#define DEV_GRP_P1            BIT5
-
-#define VMMC1_DEDICATED_REG   0x85 
-#define VSEL_1_85V            0x0
-#define VSEL_2_85V            0x1
-#define VSEL_3_00V            0x2
-#define VSEL_3_15V            0x3
-
-//LEDEN register
-#define LEDEN                 0xEE
-#define LEDAON                BIT0
-#define LEDBON                BIT1
-#define LEDAPWM               BIT4
-#define LEDBPWM               BIT5
-
-#endif //__TPS65950_H__
+/** @file\r
+\r
+  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\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
+#ifndef __TPS65950_H__\r
+#define __TPS65950_H__\r
+\r
+#define EXTERNAL_DEVICE_REGISTER_TO_SLAVE_ADDRESS(x)     (((x) >> 8) & 0xFF)\r
+#define EXTERNAL_DEVICE_REGISTER_TO_REGISTER(x)          ((x) & 0xFF)\r
+#define EXTERNAL_DEVICE_REGISTER(SlaveAddress, Register) (((SlaveAddress) & 0xFF) << 8 | ((Register) & 0xFF))\r
+\r
+// I2C Address group\r
+#define I2C_ADDR_GRP_ID1      0x48\r
+#define I2C_ADDR_GRP_ID2      0x49\r
+#define I2C_ADDR_GRP_ID3      0x4A\r
+#define I2C_ADDR_GRP_ID4      0x4B\r
+#define I2C_ADDR_GRP_ID5      0x12\r
+\r
+// MMC definitions.\r
+#define VMMC1_DEV_GRP         0x82\r
+#define DEV_GRP_P1            BIT5\r
+\r
+#define VMMC1_DEDICATED_REG   0x85\r
+#define VSEL_1_85V            0x0\r
+#define VSEL_2_85V            0x1\r
+#define VSEL_3_00V            0x2\r
+#define VSEL_3_15V            0x3\r
+\r
+#define TPS65950_GPIO_CTRL    0xaa  //I2C_ADDR_GRP_ID2\r
+#define CARD_DETECT_ENABLE    (BIT2 | BIT0) // GPIO ON + GPIO CD1 enabled\r
+\r
+\r
+#define GPIODATAIN1           0x98  //I2C_ADDR_GRP_ID2\r
+#define CARD_DETECT_BIT       BIT0\r
+\r
+// LEDEN register\r
+#define LEDEN                 0xEE\r
+#define LEDAON                BIT0\r
+#define LEDBON                BIT1\r
+#define LEDAPWM               BIT4\r
+#define LEDBPWM               BIT5\r
+\r
+// RTC registers\r
+#define SECONDS_REG           0x1C\r
+#define MINUTES_REG           0x1D\r
+#define HOURS_REG             0x1E\r
+#define DAYS_REG              0x1F\r
+#define MONTHS_REG            0x20\r
+#define YEARS_REG             0x21\r
+#define WEEKS_REG             0x22\r
+#define RTC_CTRL_REG          0x29\r
+\r
+// USB PHY power\r
+#define VAUX2_DEDICATED       0x79\r
+#define VAUX2_DEV_GRP         0x76\r
+\r
+#define VAUX_DEV_GRP_NONE     0x00\r
+#define VAUX_DEV_GRP_P1       0x20\r
+#define VAUX_DEV_GRP_P2       0x40\r
+#define VAUX_DEV_GRP_P3       0x80\r
+#define VAUX_DEDICATED_18V    0x05\r
+\r
+// Display subsystem\r
+#define VPLL2_DEDICATED       0x91\r
+#define VPLL2_DEV_GRP         0x8E\r
+\r
+#define GPIODATADIR1          0x9B\r
+#define SETGPIODATAOUT1       0xA4\r
+\r
+#endif //__TPS65950_H__\r