From 8c6151f2badb91eb735943474e47cf0db221acb6 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Fri, 30 Apr 2010 19:43:11 +0000 Subject: Updated MMC/SD Card driver to support hot add and remove of the media (SD Cards) and enable write protect of SD Cards. Had to update pads for WP bit as it was not being programmed as a GPIO. I also changed some of the PAD #defins as there were only really 3 states, so OR things in the table in the .c file did not make a lot of sense. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10450 6f19259b-4bc3-4df7-8a09-765794883524 --- Omap35xxPkg/Include/TPS65950.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Omap35xxPkg/Include/TPS65950.h') 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 -- cgit v1.2.3