aboutsummaryrefslogtreecommitdiff
path: root/include/configs/bcmns.h
blob: 6f5f2b7ccf234a7a477b54880948a4c32d9eb554 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* SPDX-License-Identifier: GPL-2.0+ */

#ifndef __BCM_NS_H
#define __BCM_NS_H

#include <linux/sizes.h>

/* Physical Memory Map */
#define V2M_BASE			0x00000000
#define PHYS_SDRAM_1			V2M_BASE

#define CFG_SYS_SDRAM_BASE		PHYS_SDRAM_1

/* Called "periph_clk" in Linux, used by the global timer */
#define CFG_SYS_HZ_CLOCK		500000000

/* Called "iprocslow" in Linux */
#define CFG_SYS_NS16550_CLK		125000000

/* console configuration */
#define CONSOLE_ARGS "console_args=console=ttyS0,115200n8\0"
#define MAX_CPUS "max_cpus=maxcpus=2\0"
#define EXTRA_ARGS "extra_args=earlycon=uart8250,mmio32,0x18000300\0"

#define BASE_ARGS "${console_args} ${extra_args} ${pcie_args}"	\
		  " ${max_cpus}  ${log_level} ${reserved_mem}"
#define SETBOOTARGS "setbootargs=setenv bootargs " BASE_ARGS "\0"

#define KERNEL_LOADADDR_CFG \
	"loadaddr=0x01000000\0" \
	"dtb_loadaddr=0x02000000\0"

/*
 * Hardcoded for the only boards we support, if you add more
 * boards, add a more clever bootcmd!
 */
#define NS_BOOTCMD "bootcmd_dlink_dir8xxl=seama 0x00fe0000; go 0x01000000"

#define ARCH_ENV_SETTINGS \
	CONSOLE_ARGS \
	MAX_CPUS \
	EXTRA_ARGS \
	KERNEL_LOADADDR_CFG \
	NS_BOOTCMD

#define CFG_EXTRA_ENV_SETTINGS \
	ARCH_ENV_SETTINGS

#endif /* __BCM_NS_H */