2008-12-14 08:47:17 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2008
|
|
|
|
* Texas Instruments, <www.ti.com>
|
|
|
|
* Syed Mohammed Khasim <khasim@ti.com>
|
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation's version 2 of
|
|
|
|
* the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MMC_HOST_DEF_H
|
|
|
|
#define MMC_HOST_DEF_H
|
|
|
|
|
2012-12-03 02:19:41 +00:00
|
|
|
#include <asm/omap_mmc.h>
|
|
|
|
|
2009-02-20 16:51:28 +00:00
|
|
|
/* T2 Register definitions */
|
|
|
|
#define T2_BASE 0x48002000
|
|
|
|
|
|
|
|
typedef struct t2 {
|
2010-04-29 17:28:14 +00:00
|
|
|
unsigned char res1[0x274]; /* 0x000 */
|
2009-02-20 16:51:28 +00:00
|
|
|
unsigned int devconf0; /* 0x274 */
|
2010-04-29 17:28:14 +00:00
|
|
|
unsigned char res2[0x060]; /* 0x278 */
|
|
|
|
unsigned int devconf1; /* 0x2D8 */
|
2012-02-24 11:30:18 +00:00
|
|
|
unsigned char res3[0x16C]; /* 0x2DC */
|
|
|
|
unsigned int ctl_prog_io1; /* 0x448 */
|
|
|
|
unsigned char res4[0x0D4]; /* 0x44C */
|
2009-02-20 16:51:28 +00:00
|
|
|
unsigned int pbias_lite; /* 0x520 */
|
|
|
|
} t2_t;
|
|
|
|
|
|
|
|
#define MMCSDIO1ADPCLKISEL (1 << 24)
|
2010-04-29 17:28:14 +00:00
|
|
|
#define MMCSDIO2ADPCLKISEL (1 << 6)
|
|
|
|
|
|
|
|
#define EN_MMC1 (1 << 24)
|
|
|
|
#define EN_MMC2 (1 << 25)
|
|
|
|
#define EN_MMC3 (1 << 30)
|
2009-02-20 16:51:28 +00:00
|
|
|
|
|
|
|
#define PBIASLITEPWRDNZ0 (1 << 1)
|
|
|
|
#define PBIASSPEEDCTRL0 (1 << 2)
|
|
|
|
#define PBIASLITEPWRDNZ1 (1 << 9)
|
2015-01-16 08:09:50 +00:00
|
|
|
#define PBIASLITEVMODE0 (1 << 0)
|
2009-02-20 16:51:28 +00:00
|
|
|
|
2012-02-24 11:30:18 +00:00
|
|
|
#define CTLPROGIO1SPEEDCTRL (1 << 20)
|
|
|
|
|
2008-12-14 08:47:17 +00:00
|
|
|
/*
|
|
|
|
* OMAP HSMMC register definitions
|
|
|
|
*/
|
2010-04-29 17:28:14 +00:00
|
|
|
#define OMAP_HSMMC1_BASE 0x4809C000
|
|
|
|
#define OMAP_HSMMC2_BASE 0x480B4000
|
|
|
|
#define OMAP_HSMMC3_BASE 0x480AD000
|
2008-12-14 08:47:17 +00:00
|
|
|
|
2010-09-19 03:32:33 +00:00
|
|
|
|
2008-12-14 08:47:17 +00:00
|
|
|
#endif /* MMC_HOST_DEF_H */
|