Changeset ab907e8e in rtems


Ignore:
Timestamp:
May 21, 2013, 8:10:21 AM (7 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
d936c1a
Parents:
bc89145
git-author:
Daniel Hellstrom <daniel@…> (05/21/13 08:10:21)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:19)
Message:

NGMP PCI: added support for NGMP prototype boards

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c

    rbc89145 rab907e8e  
    165165{
    166166        PCIID_DEVVEND(PCIID_VENDOR_GAISLER, PCIID_DEVICE_GR_LEON4_N2X),
     167        PCIID_DEVVEND(PCIID_VENDOR_GAISLER, PCIID_DEVICE_GR_NGMP_PROTO),
    167168        PCIID_END_TABLE /* Mark end of table */
    168169};
     
    352353        priv->eirq = (priv->irq->mpstat >> 16) & 0xf;
    353354
    354         /* Find first Clock-Gating unit, enable/disable the requested cores */
     355        /* Find first Clock-Gating unit, enable/disable the requested cores.
     356         * It is optional in order to support FPGA prototypes.
     357         */
     358        priv->cg = NULL;
    355359        tmp = (struct ambapp_dev *)ambapp_for_each(&priv->abus,
    356360                                (OPTIONS_ALL|OPTIONS_APB_SLVS),
    357361                                VENDOR_GAISLER, GAISLER_CLKGATE,
    358362                                ambapp_find_by_idx, NULL);
    359         if ( !tmp ) {
    360                 return -5;
    361         }
    362         priv->cg = (struct l4n2x_grcg_regs *)DEV_TO_APB(tmp)->start;
     363        if (tmp)
     364                priv->cg = (struct l4n2x_grcg_regs *)DEV_TO_APB(tmp)->start;
     365
    363366        /* Do reset and enable sequence only if not already enabled */
    364367        if (priv->cg && ((enabled = priv->cg->enable) != priv->cg_en_mask)) {
  • cpukit/libpci/pci/ids_extra.h

    rbc89145 rab907e8e  
    1919#define PCIID_DEVICE_GR_RASTA_SPW_RTR   0x0062  /* GR-RASTA-SPW-ROUTER */
    2020#define PCIID_DEVICE_GR_LEON4_N2X       0x0061  /* GR-CPCI-LEON4-N2X */
     21#define PCIID_DEVICE_GR_NGMP_PROTO      0x0064  /* GR-NGMP_PROTO */
Note: See TracChangeset for help on using the changeset viewer.