OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [bootrom/] [bootrom.S] - Diff between revs 361 and 403

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 361 Rev 403
Line 37... Line 37...
// processed orspoc-defines.v file for this define. It makes more sense
// processed orspoc-defines.v file for this define. It makes more sense
// as this software ends up as gates.
// as this software ends up as gates.
 
 
#include "board.h"
#include "board.h"
 
 
#ifdef BOOTLOADER_SPI_FLASH
#ifdef BOOTROM_SPI_FLASH
 
 
        /* Assembly program to go into the boot ROM */
        /* Assembly program to go into the boot ROM */
        /* Currently just loads a program from SPI flash into RAM */
        /* Currently just loads a program from SPI flash into RAM */
        /* Assuming address at RAM_LOAD_BASE gets clobbered, we need
        /* Assuming address at RAM_LOAD_BASE gets clobbered, we need
           a byte writable address somewhere!*/
           a byte writable address somewhere!*/
Line 115... Line 115...
        l.lbz r3, SPI_SPDR(r4) /* Get data byte */
        l.lbz r3, SPI_SPDR(r4) /* Get data byte */
 
 
 
 
#endif
#endif
 
 
#ifdef BOOTLOADER_GOTO_RESET
#ifdef BOOTROM_GOTO_RESET
        /* Jump to reset vector in the SDRAM */
        /* Jump to reset vector in the SDRAM */
        l.movhi r0, 0
        l.movhi r0, 0
        l.movhi r4, SDRAM_BASE
        l.movhi r4, SDRAM_BASE
        l.ori r4, r4, 0x100
        l.ori r4, r4, 0x100
        l.jr r4
        l.jr r4
        l.nop
        l.nop
 
 
#endif
#endif
 
 
#ifdef BOOTLOADER_LOOP_AT_ZERO
#ifdef BOOTROM_LOOP_AT_ZERO
 
 
        /* Don't load app via SPI, instead just put an infinite loop into bottom
        /* Don't load app via SPI, instead just put an infinite loop into bottom
        of memory and jump there.
        of memory and jump there.
        */
        */
        l.movhi r0, 0
        l.movhi r0, 0
Line 145... Line 145...
 
 
 
 
 
 
#endif
#endif
 
 
#ifdef BOOTLOADER_LOOP_IN_ROM
#ifdef BOOTROM_LOOP_IN_ROM
 
 
        /* Don't load app via SPI, instead just put an infinite loop into bottom
        /* Don't load app via SPI, instead just put an infinite loop into bottom
        of memory and jump there.
        of memory and jump there.
        */
        */
        l.movhi r0, 0
        l.movhi r0, 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.