Ignore:
Timestamp:
Oct 13, 1997, 5:38:18 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d17d4d2f
Parents:
d9fe8e2
Message:

New version of this file from Eric Norum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/gen68360/startup/init68360.c

    rd9fe8e2 r84ff8b7b  
    7070        /*
    7171         * Step 8: Initialize system protection
    72          *      Enable watchdog
    73          *      Watchdog causes system reset
    74          *      Next-to-slowest watchdog timeout
    75          *          (21 seconds with 25 MHz oscillator)
    76          *      Enable double bus fault monitor
    77          *      Enable bus monitor for external cycles
    78          *      1024 clocks for external timeout
    79          */
    80          m360.sypcr = 0xEC;
     72         *      Enable watchdog
     73         *      Watchdog causes system reset
     74         *      Next-to-slowest watchdog timeout (21 seconds with 25 MHz oscillator)
     75         *      Enable double bus fault monitor
     76         *      Enable bus monitor for external cycles
     77         *      1024 clocks for external timeout
     78         */
     79        m360.sypcr = 0xEC;
    8180
    8281        /*
     
    219218        /*
    220219         * Step 8: Initialize system protection
    221          *      Disable watchdog FIXME: Should use watchdog!!!!
     220         *      Enable watchdog
    222221         *      Watchdog causes system reset
    223          *      Slowest watchdog timeout
     222         *      Next-to-slowest watchdog timeout (21 seconds with 25 MHz oscillator)
    224223         *      Enable double bus fault monitor
    225          *      Enable bus monitor external
    226          *      128 clocks for external timeout
    227          */
    228         m360.sypcr = 0x7F;
     224         *      Enable bus monitor for external cycles
     225         *      1024 clocks for external timeout
     226         */
     227        m360.sypcr = 0xEC;
    229228
    230229        /*
     
    308307         * Step 14: More system initialization
    309308         * SDCR (Serial DMA configuration register)
    310          *      Disable SDMA during FREEZE
     309         *      Enable SDMA during FREEZE
    311310         *      Give SDMA priority over all interrupt handlers
    312311         *      Set DMA arbiration level to 4
     
    321320         *      SCCs priority grouped at top of table
    322321         */
    323         m360.sdcr = M360_SDMA_FREEZE | M360_SDMA_SISM_7 | M360_SDMA_SAID_4;
     322        m360.sdcr = M360_SDMA_SISM_7 | M360_SDMA_SAID_4;
    324323        m360.cicr = (3 << 22) | (2 << 20) | (1 << 18) | (0 << 16) |
    325324                                                (4 << 13) | (0x1F << 8) | (128);
     
    370369        /*
    371370         * Step 8: Initialize system protection
    372          *      Enable watchdog
    373          *      Watchdog causes system reset
    374          *      Next-to-slowest watchdog timeout
    375          *          (21 seconds with 25 MHz oscillator)
    376          *      Enable double bus fault monitor
    377          *      Enable bus monitor for external cycles
    378          *      1024 clocks for external timeout
    379          */
    380          m360.sypcr = 0xEC;
     371         *      Enable watchdog
     372         *      Watchdog causes system reset
     373         *      Next-to-slowest watchdog timeout (21 seconds with 25 MHz oscillator)
     374         *      Enable double bus fault monitor
     375         *      Enable bus monitor for external cycles
     376         *      1024 clocks for external timeout
     377         */
     378        m360.sypcr = 0xEC;
    381379
    382380        /*
Note: See TracChangeset for help on using the changeset viewer.