2018-09-26 06:55:21 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
2022-11-16 13:10:37 -05:00
|
|
|
#define CFG_SYS_SDRAM_BASE 0x80000000
|
2018-09-26 06:55:21 -07:00
|
|
|
|
2021-01-17 18:11:25 +05:30
|
|
|
#define RISCV_MMODE_TIMERBASE 0x2000000
|
2023-06-21 23:11:44 +08:00
|
|
|
#define RISCV_MMODE_TIMEROFF 0xbff8
|
2021-01-17 18:11:25 +05:30
|
|
|
#define RISCV_MMODE_TIMER_FREQ 1000000
|
|
|
|
#define RISCV_SMODE_TIMER_FREQ 1000000
|
|
|
|
|
2018-09-26 06:55:21 -07:00
|
|
|
/* Environment options */
|
|
|
|
|
2023-07-23 12:40:41 +08:00
|
|
|
#define CFG_STD_DEVICES_SETTINGS "stdin=serial,usbkbd\0" \
|
2023-07-23 12:40:33 +08:00
|
|
|
"stdout=serial,vidconsole\0" \
|
|
|
|
"stderr=serial,vidconsole\0"
|
|
|
|
|
2018-11-22 11:26:34 +01:00
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(VIRTIO, virtio, 0) \
|
2024-01-10 21:26:53 +01:00
|
|
|
func(VIRTIO, virtio, 1) \
|
2020-12-01 17:30:26 +01:00
|
|
|
func(SCSI, scsi, 0) \
|
2018-11-22 11:26:34 +01:00
|
|
|
func(DHCP, dhcp, na)
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
2022-12-04 10:03:50 -05:00
|
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
2023-07-23 12:40:33 +08:00
|
|
|
CFG_STD_DEVICES_SETTINGS \
|
2018-11-22 11:26:31 +01:00
|
|
|
"fdt_high=0xffffffffffffffff\0" \
|
2018-11-22 11:26:34 +01:00
|
|
|
"initrd_high=0xffffffffffffffff\0" \
|
2019-04-09 12:42:46 +02:00
|
|
|
"kernel_addr_r=0x84000000\0" \
|
2022-05-24 12:31:14 +08:00
|
|
|
"kernel_comp_addr_r=0x88000000\0" \
|
|
|
|
"kernel_comp_size=0x4000000\0" \
|
|
|
|
"fdt_addr_r=0x8c000000\0" \
|
|
|
|
"scriptaddr=0x8c100000\0" \
|
|
|
|
"pxefile_addr_r=0x8c200000\0" \
|
|
|
|
"ramdisk_addr_r=0x8c300000\0" \
|
2018-11-22 11:26:34 +01:00
|
|
|
BOOTENV
|
2018-11-22 11:26:31 +01:00
|
|
|
|
2018-09-26 06:55:21 -07:00
|
|
|
#endif /* __CONFIG_H */
|