Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

atmel_mci.h

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    atmel_mci.h 6.63 KiB
    /*
     * Copyright (C) 2005-2006 Atmel Corporation
     *
     * 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; either version 2 of
     * the License, or (at your option) any later version.
     *
     * 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 __CPU_AT32AP_ATMEL_MCI_H__
    #define __CPU_AT32AP_ATMEL_MCI_H__
    
    #ifndef __ASSEMBLY__
    
    /*
     * Structure for struct SoC access.
     * Names starting with '_' are fillers.
     */
    typedef struct atmel_mci {
    	/*	reg	Offset */
    	u32	cr;	/* 0x00 */
    	u32	mr;	/* 0x04 */
    	u32	dtor;	/* 0x08 */
    	u32	sdcr;	/* 0x0c */
    	u32	argr;	/* 0x10 */
    	u32	cmdr;	/* 0x14 */
    	u32	_18;	/* 0x18 */
    	u32	_1c;	/* 0x1c */
    	u32	rspr;	/* 0x20 */
    	u32	rspr1;	/* 0x24 */
    	u32	rspr2;	/* 0x28 */
    	u32	rspr3;	/* 0x2c */
    	u32	rdr;	/* 0x30 */
    	u32	tdr;	/* 0x34 */
    	u32	_38;	/* 0x38 */
    	u32	_3c;	/* 0x3c */
    	u32	sr;	/* 0x40 */
    	u32	ier;	/* 0x44 */
    	u32	idr;	/* 0x48 */
    	u32	imr;	/* 0x4c */
    } atmel_mci_t;
    
    #endif /* __ASSEMBLY__ */
    
    /*
     * NOTICE: Use of registers offsets is depreciated.
     * These defines will be removed once the old driver
     * is taken out of commision.
     *
     * Atmel MultiMedia Card Interface (MCI) registers
     */
    #define MMCI_CR					0x0000
    #define MMCI_MR					0x0004
    #define MMCI_DTOR				0x0008
    #define MMCI_SDCR				0x000c
    #define MMCI_ARGR				0x0010
    #define MMCI_CMDR				0x0014
    #define MMCI_RSPR				0x0020