Changeset d2a94ab in rtems


Ignore:
Timestamp:
05/02/14 12:28:44 (9 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, 5, master
Children:
fed905c8
Parents:
56fc780
git-author:
Daniel Hellstrom <daniel@…> (05/02/14 12:28:44)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:21)
Message:

GRSPW: added clock cycles after GRSPW reset

added clock cycles after GRSPW reset to make sure CTRL.START bit
write actually have an effect. Wait until reset is completed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/spw/grspw.c

    r56fc780 rd2a94ab  
    16501650        SPW_STATUS_WRITE(pDev, SPW_STATUS_TO | SPW_STATUS_CE | SPW_STATUS_ER | SPW_STATUS_DE | SPW_STATUS_PE |
    16511651                         SPW_STATUS_WE | SPW_STATUS_IA | SPW_STATUS_EE); /*clear status*/
     1652
     1653        /* Add extra writes to make sure we wait the number of clocks required
     1654         * after reset
     1655         */
     1656        SPW_STATUS_WRITE(pDev, SPW_STATUS_TO | SPW_STATUS_CE | SPW_STATUS_ER | SPW_STATUS_DE | SPW_STATUS_PE |
     1657                SPW_STATUS_WE | SPW_STATUS_IA | SPW_STATUS_EE); /*clear status*/
     1658        SPW_STATUS_WRITE(pDev, SPW_STATUS_TO | SPW_STATUS_CE | SPW_STATUS_ER | SPW_STATUS_DE | SPW_STATUS_PE |
     1659                SPW_STATUS_WE | SPW_STATUS_IA | SPW_STATUS_EE); /*clear status*/
     1660        SPW_STATUS_WRITE(pDev, SPW_STATUS_TO | SPW_STATUS_CE | SPW_STATUS_ER | SPW_STATUS_DE | SPW_STATUS_PE |
     1661                SPW_STATUS_WE | SPW_STATUS_IA | SPW_STATUS_EE); /*clear status*/
     1662        SPW_STATUS_WRITE(pDev, SPW_STATUS_TO | SPW_STATUS_CE | SPW_STATUS_ER | SPW_STATUS_DE | SPW_STATUS_PE |
     1663                SPW_STATUS_WE | SPW_STATUS_IA | SPW_STATUS_EE); /*clear status*/
     1664
    16521665        SPW_CTRL_WRITE(pDev, SPW_CTRL_LINKSTART); /*start link core*/
    16531666}
Note: See TracChangeset for help on using the changeset viewer.