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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-or32/] [board.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
 
2
#ifndef _ASM_OR32_BOARH_H
3
#define _ASM_OR32_BOARH_H 
4
 
5
/* System clock frequecy */
6
#define SYS_CLK         25000000
7
 
8
/* Memory organization */
9
#define SRAM_BASE_ADD   0x00000000
10
#define FLASH_BASE_ADD  0xf0000000
11
 
12
/* Devices base address */
13
#define UART_BASE_ADD   0x90000000
14
#define MC_BASE_ADD     0x93000000
15
#define CRT_BASE_ADD    0x97000000
16
#define FBMEM_BASE_ADD  0xa8000000
17
#define ETH_BASE_ADD    0x92000000
18
#define KBD_BASE_ADD      0x94000000
19
 
20
/* Define this if you want to use I and/or D cache */
21
#define ICACHE          0
22
#define DCACHE          0
23
 
24
#define IC_SIZE         8192
25
#define IC_LINE         16
26
#define DC_SIZE         8192
27
#define DC_LINE         16
28
 
29
/* Define this if you want to use I and/or D MMU */
30
#define IMMU                        0
31
#define DMMU                        0
32
 
33
#define DMMU_SET_NB                 64
34
#define DMMU_PAGE_ADD_BITS          13      /* 13 for 8k, 12 for 4k page size */
35
#define DMMU_PAGE_ADD_MASK          0x3fff  /* 0x3fff for 8k, 0x1fff for 4k page size */
36
#define DMMU_SET_ADD_MASK           0x3f    /* 0x3f for, 64 0x7f for 128 nuber of sets */
37
#define IMMU_SET_NB                 64
38
#define IMMU_PAGE_ADD_BITS          13      /* 13 for 8k, 12 for 4k page size */
39
#define IMMU_PAGE_ADD_MASK          0x3fff  /* 0x3fff for 8k, 0x1fff for 4k page size */
40
#define IMMU_SET_ADD_MASK           0x3f    /* 0x3f for, 64 0x7f for 128 nuber of sets */
41
 
42
/* Uart definitions */
43
#define UART_DLL        0       /* Out: Divisor Latch Low (DLAB=1) */
44
#define UART_DLM        1       /* Out: Divisor Latch High (DLAB=1) */
45
 
46
/* You have to set console baud rate manually in drivers/char/console.c line 350 (function rs_init()) */
47
#define OR32_CONSOLE_BAUD  115200
48
#define UART_DEVISOR       SYS_CLK/(16*OR32_CONSOLE_BAUD)
49
 
50
#define CONFIG_OETH_UNKNOWN_TX_NEXT 1
51
/* Define this if you are using MC */
52
#define MC_INIT         0
53
 
54
/* Memory controller initialize values */
55
#if 0
56
// 25MHz
57
#define MC_CSR_VAL      0x0B000300
58
#define MC_MASK_VAL     0x000003f0
59
#define FLASH_TMS_VAL   0x00000103
60
#define SDRAM_BASE_ADD  0x00000000
61
#define SDRAM_TMS_VAL   0x19220057
62
#else
63
// 100MHz
64
#define MC_CSR_VAL      0x0B000300
65
#define MC_MASK_VAL     0x000003f0
66
#define FLASH_TMS_VAL   0x0000010c
67
#define SDRAM_BASE_ADD  0x00000000
68
#define SDRAM_TMS_VAL   0x2a5a0300
69
#endif
70
 
71
/* Define ethernet MAC address */
72
#define MACADDR0        0x00
73
#define MACADDR1        0x01
74
#define MACADDR2        0x02
75
#define MACADDR3        0x03
76
#define MACADDR4        0x04
77
#define MACADDR5        0x05
78
 
79
#endif

powered by: WebSVN 2.1.0

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