summaryrefslogtreecommitdiff
path: root/Omap35xxPkg/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Omap35xxPkg/Include')
-rw-r--r--Omap35xxPkg/Include/Omap3530/Omap3530PadConfiguration.h7
-rw-r--r--Omap35xxPkg/Include/TPS65950.h7
2 files changed, 10 insertions, 4 deletions
diff --git a/Omap35xxPkg/Include/Omap3530/Omap3530PadConfiguration.h b/Omap35xxPkg/Include/Omap3530/Omap3530PadConfiguration.h
index e87dcd2370..613209d2dc 100644
--- a/Omap35xxPkg/Include/Omap3530/Omap3530PadConfiguration.h
+++ b/Omap35xxPkg/Include/Omap3530/Omap3530PadConfiguration.h
@@ -280,10 +280,9 @@
#define WAKEUP_OFFSET 14
#define WAKEUP_MASK (0x2UL << WAKEUP_OFFSET)
-#define PULLUDDISABLE (0x0UL << 0)
-#define PULLUDENABLE BIT0
-#define PULLTYPENOSELECT (0x0UL << 1)
-#define PULLTYPESELECT BIT1
+#define PULL_DOWN_SELECTED ((0x0UL << 1) | BIT0)
+#define PULL_UP_SELECTED (BIT1 | BIT0)
+#define PULL_DISABLED (0x0UL << 0)
#define OUTPUT (0x0UL) //Pin is configured in output only mode.
#define INPUT (0x1UL) //Pin is configured in bi-directional mode.
diff --git a/Omap35xxPkg/Include/TPS65950.h b/Omap35xxPkg/Include/TPS65950.h
index a331a20119..ee26a0368a 100644
--- a/Omap35xxPkg/Include/TPS65950.h
+++ b/Omap35xxPkg/Include/TPS65950.h
@@ -36,6 +36,13 @@
#define VSEL_3_00V 0x2
#define VSEL_3_15V 0x3
+#define TPS65950_GPIO_CTRL 0xaa //I2C_ADDR_GRP_ID2
+#define CARD_DETECT_ENABLE (BIT2 | BIT0) // GPIO ON + GPIO CD1 enabled
+
+
+#define GPIODATAIN1 0x98 //I2C_ADDR_GRP_ID2
+#define CARD_DETECT_BIT BIT0
+
//LEDEN register
#define LEDEN 0xEE
#define LEDAON BIT0