cmd_mmc.c: Drop open/close mmc sub-commands
[kernel/u-boot.git] / include / nios2-io.h
index d2aeabb..6f1ae50 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
  * Scott McNutt <smcnutt@psyent.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; 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
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*************************************************************************
@@ -137,37 +121,6 @@ typedef volatile struct nios_spi_t {
 #define NIOS_SPI_SSO           (1 << 10)       /* override SS_n output */
 
 /*------------------------------------------------------------------------
- * ASMI
- *----------------------------------------------------------------------*/
-typedef volatile struct nios_asmi_t {
-       unsigned        rxdata;         /* Rx data reg */
-       unsigned        txdata;         /* Tx data reg */
-       unsigned        status;         /* Status reg */
-       unsigned        control;        /* Control reg */
-       unsigned        reserved;
-       unsigned        slavesel;       /* Slave select */
-       unsigned        endofpacket;    /* End-of-packet reg */
-}nios_asmi_t;
-
-/* status register */
-#define NIOS_ASMI_ROE          (1 << 3)        /* rx overrun */
-#define NIOS_ASMI_TOE          (1 << 4)        /* tx overrun */
-#define NIOS_ASMI_TMT          (1 << 5)        /* tx empty */
-#define NIOS_ASMI_TRDY         (1 << 6)        /* tx ready */
-#define NIOS_ASMI_RRDY         (1 << 7)        /* rx ready */
-#define NIOS_ASMI_E            (1 << 8)        /* exception */
-#define NIOS_ASMI_EOP          (1 << 9)        /* eop detected */
-
-/* control register */
-#define NIOS_ASMI_IROE         (1 << 3)        /* rx overrun int ena */
-#define NIOS_ASMI_ITOE         (1 << 4)        /* tx overrun int ena */
-#define NIOS_ASMI_ITRDY                (1 << 6)        /* tx ready int ena */
-#define NIOS_ASMI_IRRDY                (1 << 7)        /* rx ready int ena */
-#define NIOS_ASMI_IE           (1 << 8)        /* exception int ena */
-#define NIOS_ASMI_IEOP         (1 << 9)        /* rx eop int ena */
-#define NIOS_ASMI_SSO          (1 << 10)       /* slave select enable */
-
-/*------------------------------------------------------------------------
  * JTAG UART
  *----------------------------------------------------------------------*/
 typedef volatile struct nios_jtag_t {
@@ -187,14 +140,14 @@ typedef volatile struct nios_jtag_t {
 #define NIOS_JTAG_WI           (1 << 9)        /* write intr pending*/
 #define NIOS_JTAG_AC           (1 << 10)       /* activity indicator */
 #define NIOS_JTAG_RRDY         (1 << 12)       /* read available */
-#define NIOS_JTAG_WSPACE(d)    ((d)>>16)       /* Write space avail */
+#define NIOS_JTAG_WSPACE(d)    ((d)>>16)       /* Write space avail */
 
 /*------------------------------------------------------------------------
  * SYSTEM ID
  *----------------------------------------------------------------------*/
 typedef volatile struct nios_sysid_t {
-       unsigned        id;                     /* The system build id*/
-       unsigned        timestamp;              /* Timestamp */
+       unsigned        id;                     /* The system build id*/
+       unsigned        timestamp;              /* Timestamp */
 }nios_sysid_t;
 
 #endif /* __NIOS2IO_H__ */