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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [sw/] [regdefs.h] - Diff between revs 24 and 29

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

Rev 24 Rev 29
Line 55... Line 55...
#define R_TIMER         0x00000111
#define R_TIMER         0x00000111
#define R_STOPWATCH     0x00000112
#define R_STOPWATCH     0x00000112
#define R_CKALARM       0x00000113
#define R_CKALARM       0x00000113
#define R_CKSPEED       0x00000114
#define R_CKSPEED       0x00000114
 
 
 
// And because the flash driver needs these constants defined ...
 
#define R_QSPI_EREG     0x0000010c
 
#define R_QSPI_CREG     0x0000010d
 
#define R_QSPI_SREG     0x0000010e
 
#define R_QSPI_IDREG    0x0000010f
 
 
// GPS registers
// GPS registers
//                      0x00000114
//                      0x00000114
//                      0x00000115
//                      0x00000115
//                      0x00000116
//                      0x00000116
//                      0x00000117
//                      0x00000117
Line 124... Line 130...
// Flash memory space
// Flash memory space
#define SPIFLASH        0x00040000
#define SPIFLASH        0x00040000
#define FLASHWORDS      (1<<18)
#define FLASHWORDS      (1<<18)
// SDRAM memory space
// SDRAM memory space
#define SDRAMBASE       0x00800000
#define SDRAMBASE       0x00800000
 
#define SDRAMWORDS      (1<<25)
// Zip CPU Control and Debug registers
// Zip CPU Control and Debug registers
#define R_ZIPCTRL       0x01000000
#define R_ZIPCTRL       0x01000000
#define R_ZIPDATA       0x01000001
#define R_ZIPDATA       0x01000001
 
 
 
 
// Interrupt control constants
// Interrupt control constants
#define GIE             0x80000000      // Enable all interrupts
#define GIE             0x80000000      // Enable all interrupts
#define SCOPEN          0x80080008      // Enable WBSCOPE interrupts
#define SCOPEN          0x80080008      // Enable WBSCOPE interrupts
 
#define ISPIF_EN        0x80040004      // Enable SPI Flash interrupts
 
#define ISPIF_DIS       0x00040000      // Disable SPI Flash interrupts
 
#define ISPIF_CLR       0x00000004      // Clear pending SPI Flash interrupt
 
 
// Flash control constants
// Flash control constants
#define ERASEFLAG       0x80000000
#define ERASEFLAG       0x80000000
#define DISABLEWP       0x10000000
#define DISABLEWP       0x10000000
 
 
#define SZPAGE          64
#define SZPAGE          64
#define PGLEN           64
#define PGLEN           64
#define NPAGES          32
#define NPAGES          32
#define SECTORSZ        (NPAGES * SZPAGE)
#define SECTORSZ        (NPAGES * SZPAGE)
#define NSECTORS        256
#define NSECTORS        256
#define SECTOROF(A)     (A & (-1<<10))
#define SECTOROF(A)     ((A) & (-1<<10))
#define PAGEOF(A)       (A & (-1<<6))
#define PAGEOF(A)       ((A) & (-1<<6))
 
 
#define RAMLEN          0x02000
#define RAMLEN          0x02000
 
 
// ZIP Control sequences
// ZIP Control sequences
#define CPU_GO          0x0000
#define CPU_GO          0x0000

powered by: WebSVN 2.1.0

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