#define DRIVER_NAME "at91_mci"
 
+static inline int at91mci_is_mci1rev2xx(void)
+{
+       return (   cpu_is_at91sam9260()
+               || cpu_is_at91sam9263()
+               || cpu_is_at91cap9()
+               || cpu_is_at91sam9rl()
+               || cpu_is_at91sam9g10()
+               || cpu_is_at91sam9g20()
+               );
+}
+
 #define FL_SENT_COMMAND        (1 << 0)
 #define FL_SENT_STOP   (1 << 1)
 
        size = data->blksz * data->blocks;
        len = data->sg_len;
 
-       /* AT91SAM926[0/3] Data Write Operation and number of bytes erratum */
-       if (cpu_is_at91sam9260() || cpu_is_at91sam9263())
+       /* MCI1 rev2xx Data Write Operation and number of bytes erratum */
+       if (at91mci_is_mci1rev2xx())
                if (host->total_length == 12)
                        memset(dmabuf, 0, 12);
 
        at91_mci_write(host, AT91_MCI_DTOR, AT91_MCI_DTOMUL_1M | AT91_MCI_DTOCYC);
        mr = AT91_MCI_PDCMODE | 0x34a;
 
-       if (cpu_is_at91sam9260() || cpu_is_at91sam9263())
+       if (at91mci_is_mci1rev2xx())
                mr |= AT91_MCI_RDPROOF | AT91_MCI_WRPROOF;
 
        at91_mci_write(host, AT91_MCI_MR, mr);
                                 */
                                host->total_length = block_length * blocks;
                                /*
-                                * AT91SAM926[0/3] Data Write Operation and
+                                * MCI1 rev2xx Data Write Operation and
                                 * number of bytes erratum
                                 */
-                               if (cpu_is_at91sam9260 () || cpu_is_at91sam9263())
+                               if (at91mci_is_mci1rev2xx())
                                        if (host->total_length < 12)
                                                host->total_length = 12;
 
        host->bus_mode = 0;
        host->board = pdev->dev.platform_data;
        if (host->board->wire4) {
-               if (cpu_is_at91sam9260() || cpu_is_at91sam9263())
+               if (at91mci_is_mci1rev2xx())
                        mmc->caps |= MMC_CAP_4_BIT_DATA;
                else
                        dev_warn(&pdev->dev, "4 wire bus mode not supported"
        }
 
        /* Add SDIO capability when available */
-       if (cpu_is_at91sam9260() || cpu_is_at91sam9263()) {
-               /* AT91SAM9260/9263 erratum */
+       if (at91mci_is_mci1rev2xx()) {
+               /* at91mci MCI1 rev2xx sdio interrupt erratum */
                if (host->board->wire4 || !host->board->slot_b)
                        mmc->caps |= MMC_CAP_SDIO_IRQ;
        }