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