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

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [include/] [asm-or32/] [board.h] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 xianfeng
#ifndef _OR32_BOARH_H
2
#define _OR32_BOARH_H 
3
 
4
#include <asm/01-highland/highland.h>
5
 
6
/* System clock frequecy */
7
#define SYS_CLK         (CONFIG_OR32_SYS_CLK*1000000)
8
#define SYS_CLK_PERIOD  (1000/CONFIG_OR32_SYS_CLK)
9
 
10
/* Memory organization */
11
#define SRAM_BASE_ADD   0x00000000
12
#define FLASH_BASE_ADD  0xf0000000
13
 
14
/* Devices base address */
15 9 xianfeng
#define UART_BASE_ADD   0x30000000
16 7 xianfeng
#define MC_BASE_ADD     0x93000000
17
#define CRT_BASE_ADD    0x97000000
18
#define FBMEM_BASE_ADD  0xa8000000
19 9 xianfeng
#define ETH_BASE_ADD    0x20000000
20 7 xianfeng
#define KBD_BASE_ADD    0x94000000
21
 
22
/* Define this if you want to use I and/or D cache */
23
#define IC_SIZE         CONFIG_OR32_IC_SIZE
24
#define IC_LINE         CONFIG_OR32_IC_LINE
25
#define DC_SIZE         CONFIG_OR32_DC_SIZE
26
#define DC_LINE         CONFIG_OR32_DC_LINE
27
 
28
/* Define this if you want to use I and/or D MMU */
29
 
30
#define DMMU_SET_NB     CONFIG_OR32_DTLB_ENTRIES
31
#define IMMU_SET_NB     CONFIG_OR32_ITLB_ENTRIES
32
 
33
/* Define this if you are using MC */
34
#define MC_INIT         CONFIG_OR32_MC_INIT
35
 
36
/* Uart definitions */
37
#define UART_DLL        0       /* Out: Divisor Latch Low (DLAB=1) */
38
#define UART_DLM        1       /* Out: Divisor Latch High (DLAB=1) */
39
 
40
#define OR32_CONSOLE_BAUD  115200
41
#define UART_DEVISOR       SYS_CLK/(16*OR32_CONSOLE_BAUD)
42
 
43
/* Define ethernet MAC address */
44
#define MACADDR0        0x00
45
#define MACADDR1        0x01
46
#define MACADDR2        0x02
47
#define MACADDR3        0x03
48
#define MACADDR4        0x04
49
#define MACADDR5        0x05
50
 
51
#define N_CE        (8)
52
 
53
#define MC_CSR      (0x00)
54
#define MC_POC      (0x04)
55
#define MC_BA_MASK  (0x08)
56
#define MC_CSC(i)   (0x10 + (i) * 8)
57
#define MC_TMS(i)   (0x14 + (i) * 8)
58
 
59
/* memory controler initialization constants */
60
#ifdef CONFIG_OR32_MC_INIT
61
#  include "mc2.h"
62
#endif
63
 
64
/* sdram organization */
65
#ifdef CONFIG_OR32_NIBBLER
66
#  define MC_OSR_VAL              0x7e000023
67
#  define MC_CCR_4_VAL_DISABLED   0x00ee0004
68
#  define MC_CCR_4_VAL_ENABLED    (MC_CCR_4_VAL_DISABLED | 0xc0000000)
69
#elifdef CONFIG_OR32_HIGHLAND
70
#if 0
71
#  define MC_OSR_VAL              0x7e000033
72
// the board without DVI connector
73
// #  define MC_CCR_4_VAL_DISABLED   0x00ef0000
74
// #  define MC_CCR_4_VAL_ENABLED    (MC_CCR_4_VAL_DISABLED | 0xc0000000)
75
// the board with DVI connector
76
#  define MC_CCR_4_VAL_DISABLED   0x00ef0004
77
#  define MC_CCR_4_VAL_ENABLED    (MC_CCR_4_VAL_DISABLED | 0xc0000000)
78
#endif
79
#elifdef CONFIG_OR32_GENERIC
80
#  define MC_OSR_VAL              0x7e000033
81
// the board without DVI connector
82
//#  define MC_CCR_4_VAL_DISABLED   0x00ef0000
83
//#  define MC_CCR_4_VAL_ENABLED    (MC_CCR_4_VAL_DISABLED | 0xc0000000)
84
// the board with DVI connector
85
#  define MC_CCR_4_VAL_DISABLED   0x00ef0004
86
#  define MC_CCR_4_VAL_ENABLED    (MC_CCR_4_VAL_DISABLED | 0xc0000000)
87
#else
88
#  define MC_OSR_VAL              0x7e000033
89
#  define MC_CCR_4_VAL_DISABLED   0x00ef0004
90
#  define MC_CCR_4_VAL_ENABLED    (MC_CCR_4_VAL_DISABLED | 0xc0000000)
91
#endif
92
 
93
#endif
94
 

powered by: WebSVN 2.1.0

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