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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [include/] [board.h] - Diff between revs 463 and 464

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

Rev 463 Rev 464
Line 1... Line 1...
#ifndef _BOARD_H_
#ifndef _BOARD_H_
#define _BOARD_H_
#define _BOARD_H_
 
 
#define CFG_IN_FLASH            0
#define CFG_IN_FLASH            0
//#define MC_ENABLED            1
 
 
 
//LAN controller 
//LAN controller 
//#define SMC91111_LAN          1
//#define SMC91111_LAN          1
#define OC_LAN                  1
#define OC_LAN                  1
 
 
Line 52... Line 51...
#  define FLASH_ORG_16_2          1
#  define FLASH_ORG_16_2          1
#  define BOARD_DEF_NAME          "marvin"
#  define BOARD_DEF_NAME          "marvin"
 
 
#elif BOARD==2
#elif BOARD==2
//ORSoC ordb1a3pe1500
//ORSoC ordb1a3pe1500
#  define FLASH_BASE_ADDR         0xf0000000
 
#  define FLASH_SIZE              0x04000000
 
#  define FLASH_BLOCK_SIZE        0x00040000
 
#  define START_ADD               0x0
 
#  define SDRAM_SIZE              0x02000000
#  define SDRAM_SIZE              0x02000000
#  define SDRAM_ROW_SIZE          0x00000400
#  define SDRAM_ROW_SIZE          0x00000400
#  define SDRAM_BANK_SIZE         0x00800000
#  define SDRAM_BANK_SIZE         0x00800000
#  define IN_CLK                  20000000
#  define IN_CLK                  20000000
 
 
#  define FLASH_ORG_16_2          1
#  define FLASH_ORG_16_2          1
#  define BOARD_DEF_NAME          "ORSoC devboard"
#  define BOARD_DEF_NAME          "ORSoC devboard"
#elif BOARD==3
#elif BOARD==3
//ORSoC ordb1a3p1000
//ORSoC ordb1a3p1000
 
 
#  define FLASH_BASE_ADDR         0xf0000000
 
#  define FLASH_SIZE              0x04000000
 
#  define FLASH_BLOCK_SIZE        0x00040000
 
#  define START_ADD               0x0
 
#  define SDRAM_SIZE              0x02000000
#  define SDRAM_SIZE              0x02000000
#  define SDRAM_ROW_SIZE          0x00000400
#  define SDRAM_ROW_SIZE          0x00000400
#  define SDRAM_BANK_SIZE         0x00800000
#  define SDRAM_BANK_SIZE         0x00800000
#  define IN_CLK                  25000000
#  define IN_CLK                  25000000
#  define FLASH_ORG_16_2          1
 
#  define BOARD_DEF_NAME          "ORSoC A3P1000 devboard"
#  define BOARD_DEF_NAME          "ORSoC A3P1000 devboard"
 
 
#elif BOARD==4
#elif BOARD==4
//Xilinx ML501
//Xilinx ML501
 
 
#  define FLASH_BASE_ADDR         0xf0000000
 
#  define FLASH_SIZE              0x04000000
 
#  define FLASH_BLOCK_SIZE        0x00040000
 
#  define START_ADD               0x0
 
#  define SDRAM_SIZE              0x10000000
#  define SDRAM_SIZE              0x10000000
#  define SDRAM_ROW_SIZE          0x00000400
#  define SDRAM_ROW_SIZE          0x00000400
#  define SDRAM_BANK_SIZE         0x00800000
#  define SDRAM_BANK_SIZE         0x00800000
#  define IN_CLK                  50000000
#  define IN_CLK                  50000000
#  define FLASH_ORG_16_2          1
 
#  define BOARD_DEF_NAME          "Xilinx ML501"
#  define BOARD_DEF_NAME          "Xilinx ML501"
 
 
#else
#else
//Custom Board
//Custom Board
 
 
#  define FLASH_BASE_ADDR         0xf0000000
 
#  define FLASH_SIZE              0x04000000
 
#  define FLASH_BLOCK_SIZE        0x00040000
 
#  define START_ADD               0x0
 
#  define IN_CLK                  25000000
#  define IN_CLK                  25000000
#  define FLASH_ORG_16_2          1
 
#  define BOARD_DEF_NAME          "custom"
#  define BOARD_DEF_NAME          "custom"
 
 
#endif
#endif
 
 
 
 
Line 113... Line 93...
#define BOARD_DEF_IP            0xc0a8649b // 192.168.100.155
#define BOARD_DEF_IP            0xc0a8649b // 192.168.100.155
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_GW            0xc0a86401 // 192.168.100.1
#define BOARD_DEF_GW            0xc0a86401 // 192.168.100.1
#define BOARD_DEF_TBOOT_SRVR    0xc0a86469 //"192.168.100.105"
#define BOARD_DEF_TBOOT_SRVR    0xc0a86469 //"192.168.100.105"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_LOAD_SPACE    0xa00000
 
#define ETH_MDIOPHYADDR         0x00
#define ETH_MDIOPHYADDR         0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR1            0x12
#define ETH_MACADDR1            0x12
#define ETH_MACADDR2            0x34
#define ETH_MACADDR2            0x34
#define ETH_MACADDR3            0x56
#define ETH_MACADDR3            0x56
Line 129... Line 108...
#define BOARD_DEF_IP            0xc0a8649c // 192.168.100.156
#define BOARD_DEF_IP            0xc0a8649c // 192.168.100.156
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_GW            0xc0a86401 // 192.168.100.1
#define BOARD_DEF_GW            0xc0a86401 // 192.168.100.1
#define BOARD_DEF_TBOOT_SRVR    0xc0a864e3 //"192.168.100.227"
#define BOARD_DEF_TBOOT_SRVR    0xc0a864e3 //"192.168.100.227"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_LOAD_SPACE    0xa00000
 
#define ETH_MDIOPHYADDR         0x00
#define ETH_MDIOPHYADDR         0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR1            0x12
#define ETH_MACADDR1            0x12
#define ETH_MACADDR2            0x34
#define ETH_MACADDR2            0x34
#define ETH_MACADDR3            0x56
#define ETH_MACADDR3            0x56
Line 145... Line 123...
#define BOARD_DEF_IP            0xac1e0002 // 172.30.0.2
#define BOARD_DEF_IP            0xac1e0002 // 172.30.0.2
#define BOARD_DEF_MASK          0xffff0000 // 255.255.0.0
#define BOARD_DEF_MASK          0xffff0000 // 255.255.0.0
#define BOARD_DEF_GW            0xac1e0001 //"172.30.0.1"
#define BOARD_DEF_GW            0xac1e0001 //"172.30.0.1"
#define BOARD_DEF_TBOOT_SRVR    0xac1e0001 //"172.30.0.1"
#define BOARD_DEF_TBOOT_SRVR    0xac1e0001 //"172.30.0.1"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_LOAD_SPACE    0xa00000
 
#define ETH_MDIOPHYADDR         0x00
#define ETH_MDIOPHYADDR         0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR1            0x12
#define ETH_MACADDR1            0x12
#define ETH_MACADDR2            0x34
#define ETH_MACADDR2            0x34
#define ETH_MACADDR3            0x56
#define ETH_MACADDR3            0x56
Line 161... Line 138...
#define BOARD_DEF_IP            0xc0a8005a // 192.168.0.90
#define BOARD_DEF_IP            0xc0a8005a // 192.168.0.90
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_GW            0xc0a80001 // 192.168.0.1
#define BOARD_DEF_GW            0xc0a80001 // 192.168.0.1
#define BOARD_DEF_TBOOT_SRVR    0xc0a8000f // 192.168.0.15
#define BOARD_DEF_TBOOT_SRVR    0xc0a8000f // 192.168.0.15
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_LOAD_SPACE    0xa00000
 
#define ETH_MDIOPHYADDR         0x00
#define ETH_MDIOPHYADDR         0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR1            0x12
#define ETH_MACADDR1            0x12
#define ETH_MACADDR2            0x34
#define ETH_MACADDR2            0x34
#define ETH_MACADDR3            0x56
#define ETH_MACADDR3            0x56
Line 177... Line 153...
#define BOARD_DEF_IP            0x0a01010a // 10.1.1.10
#define BOARD_DEF_IP            0x0a01010a // 10.1.1.10
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_MASK          0xffffff00 // 255.255.255.0
#define BOARD_DEF_GW            0x0a010101 // 10.1.1.1
#define BOARD_DEF_GW            0x0a010101 // 10.1.1.1
#define BOARD_DEF_TBOOT_SRVR    0x0a010101 // 10.1.1.1
#define BOARD_DEF_TBOOT_SRVR    0x0a010101 // 10.1.1.1
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_IMAGE_NAME    "boot.img"
#define BOARD_DEF_LOAD_SPACE    0xa00000
 
#define ETH_MDIOPHYADDR         0x00
#define ETH_MDIOPHYADDR         0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR0            0x00
#define ETH_MACADDR1            0x01
#define ETH_MACADDR1            0x01
#define ETH_MACADDR2            0x34
#define ETH_MACADDR2            0x34
#define ETH_MACADDR3            0x56
#define ETH_MACADDR3            0x56
#define ETH_MACADDR4            0x78
#define ETH_MACADDR4            0x78
#define ETH_MACADDR5            0x9e
#define ETH_MACADDR5            0x9e
 
 
#endif
#endif
 
 
#define UART_BAUD_RATE          115200
 
 
 
#define TICKS_PER_SEC           100
 
 
 
 
#define TICKS_PER_SEC           100
 
 
#define MS_PER_SEC 1000
#define MS_PER_SEC 1000
#define US_PER_SEC 1000000
#define US_PER_SEC 1000000
#define US_PER_TICK (US_PER_SEC/TICKS_PER_SEC)
#define US_PER_TICK (US_PER_SEC/TICKS_PER_SEC)
#define TICKS_PER_US (TICKS_PER_SEC*1000000)
#define TICKS_PER_US (TICKS_PER_SEC*1000000)
 
 
#define STACK_SIZE              0x10000
#define STACK_SIZE              0x10000
 
 
#if     CONFIG_OR32_MC_VERSION==1
/* UART core defines */
// Marvin, Bender MC
 
#  include "mc-init-1.h"
 
#elif   CONFIG_OR32_MC_VERSION==2
 
// Highland MC
 
#  include "mc-init-2.h"
 
//#else
 
//#  error "no memory controler chosen"
 
#endif
 
 
 
#define UART_BASE               0x90000000
#define UART_BASE               0x90000000
#define UART_IRQ                2
#define UART_IRQ                2
 
#define UART_BAUD_RATE          115200
 
 
 
/* Ethernet core defines */
#define ETH_BASE                0x92000000
#define ETH_BASE                0x92000000
#define ETH_IRQ                 4
#define ETH_IRQ                 4
 
#define ETH_DATA_BASE  ((((unsigned long)&_src_addr) + 16) & ~0x3)
#define SPI_BASE                0xb0000000
#define SPI_BASE                0xb0000000
#define CRT_BASE_ADDR           0x97000000
#define CRT_BASE_ADDR           0x97000000
#define ATA_BASE_ADDR           0x9e000000
#define ATA_BASE_ADDR           0x9e000000
#define KBD_BASE_ADD            0x94000000
#define KBD_BASE_ADD            0x94000000
#define KBD_IRQ                 5
#define KBD_IRQ                 5
 
 
#define SDC_CONTROLLER_BASE     0x9e000000
#define SDC_CONTROLLER_BASE     0x9e000000
 
 
#define SANCHO_BASE_ADD         0x98000000
#define SANCHO_BASE_ADD         0x98000000
/*  Address for ETH_DATA */
 
#define ETH_DATA_BASE           (SDRAM_SIZE - (0x600 * 128)) 
 
 
 
#define CRT_ENABLED             0
#define CRT_ENABLED             0
#define FB_BASE_ADDR            0xa8000000
#define FB_BASE_ADDR            0xa8000000
 
 
/* Whether online help is available -- saves space */
/* Whether online help is available -- saves space */

powered by: WebSVN 2.1.0

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