source: trunk/softs/tsar_boot/include/defs.h @ 991

Last change on this file since 991 was 949, checked in by cfuguet, 10 years ago

preloader: when loading LINUX, copy the DTB in low memory addresses

File size: 1.6 KB
Line 
1#include <hard_config.h>
2
3#define RESET_VERSION         0x00010003
4#define RESET_STACK_SIZE      0x2000
5#define RESET_LOADER_LBA      2
6#define RESET_PHDR_ARRAY_SIZE 16
7
8#ifndef RESET_DEBUG
9#   define RESET_DEBUG        0
10#endif
11
12#ifndef RESET_HARD_CC
13#   define RESET_HARD_CC      0
14#endif
15
16/**
17 * Supported OS
18 */
19#define OS_LINUX              0
20
21/**
22 * Default clock frequency (by default is 25 MHz for FPGA dev card DE2-115)
23 */
24#ifndef RESET_SYSTEM_CLK
25#   define RESET_SYSTEM_CLK   25000 /* KHz   */
26#endif
27
28/*
29 * TSAR platform independent hardware parameters
30 */
31
32#define BLOCK_SIZE            512   /* bytes */
33#define CACHE_LINE_SIZE       64    /* bytes */
34
35/*
36 * Verify that all used constants have been defined in the hard_config.h file
37 */
38
39#ifndef P_WIDTH
40#   error "P_WIDTH constant must be defined in the hard_config.h file"
41#endif
42
43#ifndef IRQ_PER_PROCESSOR
44#   error "IRQ_PER_PROCESSOR constant must be defined in hard_config.h file"
45#endif
46
47#ifndef SEG_XCU_BASE
48#   error "SEG_XCU_BASE constant must be defined in the hard_config.h file"
49#endif
50
51#ifndef RESET_ADDRESS
52#   error "RESET_ADDRESS constant must be defined in the hard_config.h file"
53#endif
54
55/*
56 * IO cluster constants
57 */
58
59#ifndef USE_IOB
60#   error "USE_IOB constant must be defined in the hard_config.h file"
61#endif
62
63#if !defined(X_IO) || !defined(Y_IO)
64#   error "X_IO and Y_IO constants must be defined in the hard_config.h file"
65#endif
66
67#if !defined(X_WIDTH) || !defined(Y_WIDTH)
68#   error "X_WIDTH and Y_WIDTH constants must be defined in the hard_config.h "
69          "file"
70#endif
71
72#define CLUSTER_IO  ((X_IO << Y_WIDTH) | Y_IO)
73
74/*
75 * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
76 */
Note: See TracBrowser for help on using the repository browser.