blob: 02a736456a3b42afe73c8e10f2ac0f642d46d55c [file] [log] [blame]
Rayagonda Kokatanur291635a2020-07-15 22:48:55 +05301/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2020 Broadcom.
4 *
5 */
6
7#ifndef __BCM_NS3_H
8#define __BCM_NS3_H
9
10#include <linux/sizes.h>
11
12#define CONFIG_HOSTNAME "NS3"
13
14/* Physical Memory Map */
15#define V2M_BASE 0x80000000
16#define PHYS_SDRAM_1 V2M_BASE
17
18#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
19#define CONFIG_SYS_LOAD_ADDR (PHYS_SDRAM_1 + 0x80000)
20
21/*
22 * Initial SP before reloaction is placed at end of first DRAM bank,
23 * which is 0x1_0000_0000.
24 * Just before re-loaction, new SP is updated and re-location happens.
25 * So pointing the initial SP to end of 2GB DDR is not a problem
26 */
27#define CONFIG_SYS_INIT_SP_ADDR (PHYS_SDRAM_1 + 0x80000000)
28/* 12MB Malloc size */
29#define CONFIG_SYS_MALLOC_LEN (SZ_8M + SZ_4M)
30
31/* console configuration */
32#define CONFIG_SYS_NS16550_CLK 25000000
33
34#define CONFIG_SYS_CBSIZE SZ_1K
35#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
36 sizeof(CONFIG_SYS_PROMPT) + 16)
37#define CONFIG_SYS_MAXARGS 64
38#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
39
40#endif /* __BCM_NS3_H */