board: advantech: dms-ba16: Add the configuration options for display initialization
[platform/kernel/u-boot.git] / include / configs / openrisc-generic.h
1 /*
2  * (C) Copyright 2011, Stefan Kristiansson, stefan.kristianssons@saunalahti.fi
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __CONFIG_H
8 #define __CONFIG_H
9
10 /*
11  * BOARD/CPU
12  */
13 #define CONFIG_SYS_CLK_FREQ             50000000
14 #define CONFIG_SYS_RESET_ADDR           0x00000100
15
16 #define CONFIG_SYS_SDRAM_BASE           0x00000000
17 #define CONFIG_SYS_SDRAM_SIZE           0x02000000
18
19 #define CONFIG_SYS_CACHELINE_SIZE       16
20
21 #define CONFIG_SYS_UART_BASE            0x90000000
22 #define CONFIG_SYS_UART_FREQ            CONFIG_SYS_CLK_FREQ
23 #define CONFIG_SYS_UART_BAUD            115200
24
25 #define CONFIG_BOARD_NAME               "OpenRISC Generic"
26
27 #define CONFIG_SYS_MAX_FLASH_SECT       0
28
29 /*
30  * SERIAL
31  */
32 # define CONFIG_SYS_NS16550_SERIAL
33 # define CONFIG_SYS_NS16550_REG_SIZE    1
34 # define CONFIG_CONS_INDEX              1
35 # define CONFIG_SYS_NS16550_COM1        (0x90000000)
36 # define CONFIG_SYS_NS16550_CLK         CONFIG_SYS_CLK_FREQ
37
38 #define CONFIG_SYS_BAUDRATE_TABLE       {CONFIG_BAUDRATE}
39 #define CONSOLE_ARG                     "console=console=ttyS0,115200\0"
40
41 /*
42  * Ethernet
43  */
44 #define CONFIG_SYS_ETHOC_BASE           0x92000000
45
46 #define CONFIG_BOOTFILE                 "boot.img"
47 #define CONFIG_LOADADDR                 0x100000 /* 1MB mark */
48
49 /*
50  * TIMER
51  */
52 #define CONFIG_SYS_OPENRISC_TMR_HZ      100
53
54 /*
55  * Memory organisation:
56  *
57  * RAM start ---------------------------
58  *           | ...                     |
59  *           ---------------------------
60  *           | Stack                   |
61  *           ---------------------------
62  *           | Global data             |
63  *           ---------------------------
64  *           | Environment             |
65  *           ---------------------------
66  *           | Monitor                 |
67  * RAM end   ---------------------------
68  */
69 /* We're running in RAM */
70 #define CONFIG_MONITOR_IS_IN_RAM
71 #define CONFIG_SYS_MONITOR_LEN  0x40000 /* Reserve 256k */
72 #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + \
73                                 CONFIG_SYS_SDRAM_SIZE - \
74                                 CONFIG_SYS_MONITOR_LEN)
75
76 #define CONFIG_ENV_IS_NOWHERE
77 #define CONFIG_ENV_SIZE         0x20000 /* Total Size of Environment, 128KB */
78 #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
79
80 /*
81  * Global data object and stack pointer
82  */
83 #define CONFIG_SYS_GBL_DATA_OFFSET      (CONFIG_ENV_ADDR \
84                                         - GENERATED_GBL_DATA_SIZE)
85 #define CONFIG_SYS_GBL_DATA_ADDR        CONFIG_SYS_GBL_DATA_OFFSET
86 #define CONFIG_SYS_INIT_SP_ADDR         CONFIG_SYS_GBL_DATA_OFFSET
87 #define CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
88 #define CONFIG_SYS_STACK_LENGTH         0x10000 /* 64KB */
89 #define CONFIG_SYS_MALLOC_LEN           0x400000 /* 4MB */
90 #define CONFIG_SYS_MALLOC_BASE          (CONFIG_SYS_INIT_SP_OFFSET \
91                                         - CONFIG_SYS_STACK_LENGTH \
92                                         - CONFIG_SYS_MALLOC_LEN)
93 /*
94  * MISC
95  */
96 #define CONFIG_SYS_LONGHELP             /* Provide extended help */
97 #define CONFIG_SYS_CBSIZE               256     /* Console I/O buf size */
98 #define CONFIG_SYS_MAXARGS              16      /* Max command args     */
99 #define CONFIG_SYS_BARGSIZE             CONFIG_SYS_CBSIZE /* Bootarg buf size */
100 #define CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE + \
101                                         sizeof(CONFIG_SYS_PROMPT) + \
102                                         16)     /* Print buf size */
103 #define CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SDRAM_BASE
104 #define CONFIG_SYS_MEMTEST_START        (CONFIG_SYS_SDRAM_BASE + 0x2000)
105 #define CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_INIT_SP_ADDR - 0x20000)
106 #define CONFIG_CMDLINE_EDITING
107
108 /*
109  * Command line configuration.
110  */
111 #define CONFIG_CMD_IRQ
112 #define CONFIG_CMD_BSP
113
114 #define CONFIG_LMB
115
116 /*
117  * BOOTP options
118  */
119 #define CONFIG_BOOTP_BOOTFILESIZE
120 #define CONFIG_BOOTP_BOOTPATH
121 #define CONFIG_BOOTP_GATEWAY
122 #define CONFIG_BOOTP_HOSTNAME
123
124 #endif /* __CONFIG_H */