blob: 33b34ee0cd3b74faeda909d8c4c5dcaf297194c7 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Patrice Chotard5cc16d82017-02-21 13:37:12 +01002/*
Patrice Chotardfb48bc42017-10-23 09:53:57 +02003 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
Patrice Chotard0f8106f2020-12-02 18:47:30 +01004 * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
Patrice Chotard5cc16d82017-02-21 13:37:12 +01005 */
6
7#ifndef __CONFIG_H
8#define __CONFIG_H
9
Patrice Chotard4807c402018-07-16 10:04:19 +020010#include <linux/sizes.h>
11
Patrice Chotard5cc16d82017-02-21 13:37:12 +010012/* ram memory-related information */
Patrice Chotard5cc16d82017-02-21 13:37:12 +010013#define PHYS_SDRAM_1 0x40000000
14#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
Nicolas Le Bayon7aac4e92017-09-25 09:14:19 +020015#define PHYS_SDRAM_1_SIZE 0x3E000000
Patrice Chotard5cc16d82017-02-21 13:37:12 +010016#define CONFIG_SYS_LOAD_ADDR PHYS_SDRAM_1 /* default load addr */
17
Patrice Chotard5cc16d82017-02-21 13:37:12 +010018#define CONFIG_SYS_HZ_CLOCK 1000000000 /* 1 GHz */
19
Patrice Chotard5cc16d82017-02-21 13:37:12 +010020/* Environment */
Patrice Chotard3ef751e2017-09-25 09:14:18 +020021
Patrice Chotard83ba2432020-02-03 15:00:59 +010022/*
23 * For booting Linux, use the first 256 MB of memory, since this is
24 * the maximum mapped by the Linux kernel during initialization.
25 */
26#define CONFIG_SYS_BOOTMAPSZ SZ_256M
27
Patrice Chotard3ef751e2017-09-25 09:14:18 +020028#define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
Patrice Chotard4807c402018-07-16 10:04:19 +020029#define CONFIG_SYS_BOOTM_LEN SZ_16M
Patrice Chotard3ef751e2017-09-25 09:14:18 +020030
Patrice Chotard3ef751e2017-09-25 09:14:18 +020031#define BOOT_TARGET_DEVICES(func) \
32 func(MMC, mmc, 0) \
33 func(USB, usb, 0) \
34 func(DHCP, dhcp, na)
35#include <config_distro_bootcmd.h>
36#define CONFIG_BOOTFILE "uImage"
37#define CONFIG_EXTRA_ENV_SETTINGS \
38 "kernel_addr_r=0x40000000\0" \
39 "fdtfile=stih410-b2260.dtb\0" \
40 "fdt_addr_r=0x47000000\0" \
41 "scriptaddr=0x50000000\0" \
Riku Voipio0899bd22018-05-24 17:15:26 +030042 "pxefile_addr_r=0x50100000\0" \
Lee Jonesb8139082017-09-25 09:14:20 +020043 "ramdisk_addr_r=0x48000000\0" \
Patrice Chotard3ef751e2017-09-25 09:14:18 +020044 BOOTENV
45
Patrice Chotard5cc16d82017-02-21 13:37:12 +010046/* Extra Commands */
Patrice Chotard5cc16d82017-02-21 13:37:12 +010047
48#define CONFIG_SETUP_MEMORY_TAGS
49
50/* Size of malloc() pool */
51#define CONFIG_SYS_MALLOC_LEN 0x1800000
52#define CONFIG_SYS_GBL_DATA_SIZE 1024 /* Global data structures */
53#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - \
54 CONFIG_SYS_MALLOC_LEN - \
55 CONFIG_SYS_GBL_DATA_SIZE)
56
57/* Monitor Command Prompt */
58#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
59
Patrice Chotard5cc16d82017-02-21 13:37:12 +010060#define CONFIG_SYS_MAX_FLASH_BANKS 1
61
62#define CONFIG_SKIP_LOWLEVEL_INIT
63
Patrice Chotarde9d12572017-09-05 11:04:22 +020064/* USB Configs */
65#define CONFIG_USB_OHCI_NEW
66#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
67
68#define CONFIG_USB_HOST_ETHER
69#define CONFIG_USB_ETHER_ASIX
70#define CONFIG_USB_ETHER_MCS7830
71#define CONFIG_USB_ETHER_SMSC95XX
72
73/* NET Configs */
Patrice Chotarde9d12572017-09-05 11:04:22 +020074
Patrice Chotard5cc16d82017-02-21 13:37:12 +010075#endif /* __CONFIG_H */