summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/boards/generic/config.h
blob: 2d836d0063edc1a541fecbd511bdcf51e6b6be9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _GENERIC_NAMES_H_
#define _GENERIC_NAMES_H_

#define CONFIG_SYS_CLK_FREQ		50000000

#define OPENRISC_TIMER_FREQ		CONFIG_SYS_CLK_FREQ

#define OPENRISC_SOPC_MEMORY_BASE	0x00000000
#define OPENRISC_SOPC_MEMORY_SIZE	0x02000000

/* We reserve 512K for barebox */
#define BAREBOX_RESERVED_SIZE		0x80000

/* Barebox will be at top of main memory */
#define OPENRISC_SOPC_TEXT_BASE		(OPENRISC_SOPC_MEMORY_BASE + OPENRISC_SOPC_MEMORY_SIZE - BAREBOX_RESERVED_SIZE)

/*
* TEXT_BASE is defined here because STACK_BASE definition
*  in include/asm-generic/memory_layout.h uses this name
*/

#define TEXT_BASE                       OPENRISC_SOPC_TEXT_BASE

#endif