2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-02-21 20:37:12 +08:00
|
|
|
/*
|
2017-10-23 15:53:57 +08:00
|
|
|
* Copyright (C) 2017, STMicroelectronics - All Rights Reserved
|
2020-12-03 01:47:30 +08:00
|
|
|
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
|
2017-02-21 20:37:12 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
2018-07-16 16:04:19 +08:00
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
2017-02-21 20:37:12 +08:00
|
|
|
/* ram memory-related information */
|
|
|
|
#define PHYS_SDRAM_1 0x40000000
|
2022-11-17 02:10:37 +08:00
|
|
|
#define CFG_SYS_SDRAM_BASE PHYS_SDRAM_1
|
2017-09-25 15:14:19 +08:00
|
|
|
#define PHYS_SDRAM_1_SIZE 0x3E000000
|
2017-02-21 20:37:12 +08:00
|
|
|
|
2022-08-25 15:14:57 +08:00
|
|
|
#define CONFIG_SYS_HZ_CLOCK 750000000 /* 750 MHz */
|
2017-02-21 20:37:12 +08:00
|
|
|
|
|
|
|
/* Environment */
|
2017-09-25 15:14:18 +08:00
|
|
|
|
2020-02-03 22:00:59 +08:00
|
|
|
/*
|
|
|
|
* For booting Linux, use the first 256 MB of memory, since this is
|
|
|
|
* the maximum mapped by the Linux kernel during initialization.
|
|
|
|
*/
|
|
|
|
#define CONFIG_SYS_BOOTMAPSZ SZ_256M
|
|
|
|
|
2017-09-25 15:14:18 +08:00
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(MMC, mmc, 0) \
|
|
|
|
func(USB, usb, 0) \
|
|
|
|
func(DHCP, dhcp, na)
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"kernel_addr_r=0x40000000\0" \
|
|
|
|
"fdtfile=stih410-b2260.dtb\0" \
|
|
|
|
"fdt_addr_r=0x47000000\0" \
|
|
|
|
"scriptaddr=0x50000000\0" \
|
2018-05-24 22:15:26 +08:00
|
|
|
"pxefile_addr_r=0x50100000\0" \
|
2017-09-25 15:14:20 +08:00
|
|
|
"ramdisk_addr_r=0x48000000\0" \
|
2017-09-25 15:14:18 +08:00
|
|
|
BOOTENV
|
|
|
|
|
2017-02-21 20:37:12 +08:00
|
|
|
/* Extra Commands */
|
|
|
|
|
2017-09-05 17:04:22 +08:00
|
|
|
/* USB Configs */
|
|
|
|
|
|
|
|
/* NET Configs */
|
|
|
|
|
2017-02-21 20:37:12 +08:00
|
|
|
#endif /* __CONFIG_H */
|