Changeset 541c9e84 in rtems


Ignore:
Timestamp:
Aug 18, 2008, 1:40:15 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4c54bb07
Parents:
bebbb9a
Message:

2008-08-18 Sebastian Huber <sebastian.huber@…>

  • Makefile.am, startup/bspstart.c, startup/cpuinit.c: For the MPC8313ERDB -- The BAT entry for the eLBC was missing and add hard reset sequence in bsp_cleanup().
Location:
c/src/lib/libbsp/powerpc/gen83xx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/gen83xx/ChangeLog

    rbebbb9a r541c9e84  
     12008-08-18      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * Makefile.am, startup/bspstart.c, startup/cpuinit.c: For the
     4        MPC8313ERDB -- The BAT entry for the eLBC was missing and add
     5         hard reset sequence in bsp_cleanup().
     6
    172008-08-15      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/gen83xx/Makefile.am

    rbebbb9a r541c9e84  
    4444mpc83xx_regs_SOURCES = startup/mpc83xx_regs.c
    4545
    46 startup_SOURCES = ../../shared/bspclean.c \
    47         ../../shared/bsplibc.c \
     46startup_SOURCES = ../../shared/bsplibc.c \
    4847        ../../shared/bsppost.c \
    4948        ../../shared/bootcard.c \
  • c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c

    rbebbb9a r541c9e84  
    190190        return NULL;
    191191}
     192
     193void bsp_cleanup( void)
     194{
     195#ifdef MPC8313ERDB
     196
     197        /* Set Reset Protection Register (RPR) to "RSTE" */
     198        mpc83xx.res.rpr = 0x52535445;
     199
     200        /*
     201         * Wait for Control Register Enabled in the
     202         * Reset Control Enable Register (RCER).
     203         */
     204        while (mpc83xx.res.rcer != 0x00000001) {
     205                /* Wait */
     206        }
     207
     208        /* Set Software Hard Reset in the Reset Control Register (RCR) */
     209        mpc83xx.res.rcr = 0x00000002;
     210
     211#else /* MPC8313ERDB */
     212
     213        /* Do nothing */
     214
     215#endif /* MPC8313ERDB */
     216}
  • c/src/lib/libbsp/powerpc/gen83xx/startup/cpuinit.c

    rbebbb9a r541c9e84  
    221221  SET_DBAT(2,dbat.batu,dbat.batl);
    222222
     223#ifdef MPC8313ERDB
     224  /* Enhanced Local Bus Controller (eLBC) */
     225  calc_dbat_regvals( &dbat, 0xfa000000, 128 * 1024, 0, 1, 0, 1, BPP_RW);
     226  SET_DBAT( 3, dbat.batu, dbat.batl);
     227#endif /* MPC8313ERDB */
     228
    223229  /*
    224230   * enable data/instruction MMU in MSR
Note: See TracChangeset for help on using the changeset viewer.