~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 3601df588d56b78cdcefc432184c44844f53d9de (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
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2022 Allied Telesis
 */

#ifndef __X240_H_
#define __X240_H_

#include <asm/arch/soc.h>

/* additions for new ARM relocation support */
#define CFG_SYS_SDRAM_BASE   0x200000000

#define CFG_SYS_BAUDRATE_TABLE   { 9600, 19200, 38400, 57600, \
				      115200, 230400, 460800, 921600 }

/* Default Env vars */

#define BOOT_TARGET_DEVICES(func) \
	func(USB, usb, 0) \
	func(DHCP, dhcp, na)

#include <config_distro_bootcmd.h>

#define CFG_EXTRA_ENV_SETTINGS   \
	BOOTENV \
	"kernel_addr_r=0x202000000\0" \
	"fdt_addr_r=0x201000000\0"    \
	"ramdisk_addr_r=0x206000000\0"    \
	"fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0"

/*
 * High Level Configuration Options (easy to change)
 */
#define CFG_SYS_TCLK     325000000

#endif /* __X240_H_ */