Line 9... |
Line 9... |
#define OC_LAN 1
|
#define OC_LAN 1
|
|
|
/* BOARD
|
/* BOARD
|
* 0 - bender
|
* 0 - bender
|
* 1 - marvin
|
* 1 - marvin
|
* 2 - ORSoC A3PE1500 usbethdev board
|
* 2 - ORSoC A3PE1500 board
|
* 3 - ORSoC A3P1000 usbethdev board
|
* 3 - ORSoC A3P1000 board
|
*/
|
*/
|
#define BOARD 3
|
#define BOARD 3
|
|
|
/* Ethernet IP and TFTP config
|
/* Ethernet IP and TFTP config
|
* 0 - JB ORSoC board
|
* 0 - JB ORSoC board
|
* 1 - AE ORSoC board
|
* 1 - AE ORSoC board
|
* 2 - JB Southpole board
|
* 2 - JB Southpole board
|
|
* 3 - Unassigned
|
*/
|
*/
|
#define IPCONFIG 0
|
#define IPCONFIG 0
|
|
|
#if BOARD==0
|
#if BOARD==0
|
// Nibbler on bender1
|
// Nibbler on bender1
|
Line 92... |
Line 93... |
# define FLASH_BLOCK_SIZE 0x00040000
|
# define FLASH_BLOCK_SIZE 0x00040000
|
# define START_ADD 0x0
|
# 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 IN_CLK 24000000
|
# define FLASH_ORG_16_2 1
|
# define FLASH_ORG_16_2 1
|
# define BOARD_DEF_NAME "ORSoC A3P1000 devboard"
|
# define BOARD_DEF_NAME "ORSoC A3P1000 devboard"
|
|
|
#else
|
#else
|
//Custom Board
|
//Custom Board
|
Line 145... |
Line 147... |
#define ETH_MACADDR0 0xad
|
#define ETH_MACADDR0 0xad
|
#define ETH_MACADDR1 0xda
|
#define ETH_MACADDR1 0xda
|
#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 0x9a
|
#define ETH_MACADDR5 0x9b
|
|
|
#elif IPCONFIG==2
|
#elif IPCONFIG==2
|
|
|
#define BOARD_DEF_IP 0xac1e0002 // 172.30.0.2
|
#define BOARD_DEF_IP 0xac1e0002 // 172.30.0.2
|
#define BOARD_DEF_MASK 0xffffff00 // 255.255.255.0
|
#define BOARD_DEF_MASK 0xffffff00 // 255.255.255.0
|
Line 161... |
Line 163... |
#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
|
#define ETH_MACADDR4 0x78
|
#define ETH_MACADDR4 0x78
|
#define ETH_MACADDR5 0x9a
|
#define ETH_MACADDR5 0x9c
|
|
|
#else // Some custom one
|
#elif IPCONFIG==3 // Unassigned config...
|
|
|
#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.10
|
#define BOARD_DEF_GW 0x0a010101 // 10.1.1.1
|
#define BOARD_DEF_TBOOT_SRVR 0x0a010101 // 10.1.1.10
|
#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 BOARD_DEF_LOAD_SPACE 0xa00000
|
#define ETH_MDIOPHYADDR 0x00
|
#define ETH_MDIOPHYADDR 0x00
|
#define ETH_MACADDR0 0xad
|
#define ETH_MACADDR0 0xad
|
#define ETH_MACADDR1 0xaa
|
#define ETH_MACADDR1 0xaa
|
#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 0x9a
|
#define ETH_MACADDR5 0x9d
|
|
|
#endif
|
#endif
|
|
|
|
|
|
|