]> Git Repo - u-boot.git/blame - include/configs/kp_imx53.h
Convert CONFIG_SYS_LOAD_ADDR to Kconfig
[u-boot.git] / include / configs / kp_imx53.h
CommitLineData
855ff8e6 1/* SPDX-License-Identifier: GPL-2.0+ */
ee943655
LM
2/*
3 * Copyright (C) 2018
4 * Lukasz Majewski, DENX Software Engineering, [email protected]
ee943655
LM
5 */
6
7#ifndef __CONFIG_H_
8#define __CONFIG_H_
9
10#include <asm/arch/imx-regs.h>
11#include <linux/sizes.h>
12
13#define CONFIG_SYS_FSL_CLK
14
15/* Size of malloc() pool */
16#define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)
17
ee943655 18/* USB Configs */
ee943655
LM
19#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
20#define CONFIG_MXC_USB_FLAGS 0
21
ee943655 22/* Command definition */
ee943655
LM
23
24#define CONFIG_EXTRA_ENV_SETTINGS \
25 "console=ttymxc1,115200\0" \
26 "fdt_addr=0x75000000\0" \
27 "fdt_high=0xffffffff\0" \
28 "scriptaddr=0x74000000\0" \
29 "kernel_file=fitImage\0"\
e8d2f286 30 "silent=1\0"\
ee943655
LM
31 "rdinit=/sbin/init\0" \
32 "addinitrd=setenv bootargs ${bootargs} rdinit=${rdinit} ${debug} \0" \
33 "upd_image=st.4k\0" \
34 "uboot_file=u-boot.imx\0" \
a73b4b60
LM
35 "updargs=setenv bootargs console=${console} ${smp} ${displayargs}\0" \
36 "initrd_ram_dev=/dev/ram\0" \
37 "addswupdate=setenv bootargs ${bootargs} root=${initrd_ram_dev} rw\0" \
5f6d63ad 38 "addkeys=setenv bootargs ${bootargs} di=${dig_in} key1=${key1}\0" \
ee943655
LM
39 "loadusb=usb start; " \
40 "fatload usb 0 ${loadaddr} ${upd_image}\0" \
41 "up=if tftp ${loadaddr} ${uboot_file}; then " \
42 "setexpr blkc ${filesize} / 0x200; " \
43 "setexpr blkc ${blkc} + 1; " \
44 "mmc write ${loadaddr} 0x2 ${blkc}" \
45 "; fi\0" \
ddba5e59 46 "upwic=setenv wic_file kp-image-kp${boardsoc}.wic; "\
ee943655
LM
47 "if tftp ${loadaddr} ${wic_file}; then " \
48 "setexpr blkc ${filesize} / 0x200; " \
49 "setexpr blkc ${blkc} + 1; " \
50 "mmc write ${loadaddr} 0x0 ${blkc}" \
51 "; fi\0" \
52 "usbupd=echo Booting update from usb ...; " \
53 "setenv bootargs; " \
54 "run updargs; " \
a73b4b60
LM
55 "run addinitrd; " \
56 "run addswupdate; " \
5f6d63ad 57 "run addkeys; " \
ee943655
LM
58 "run loadusb; " \
59 "bootm ${loadaddr}#${fit_config}\0" \
60 BOOTENV
61
62#define CONFIG_BOOTCOMMAND "run usbupd; run distro_bootcmd"
63
64#define BOOT_TARGET_DEVICES(func) \
65 func(MMC, mmc, 0) \
66 func(DHCP, dhcp, na)
67
68#include <config_distro_bootcmd.h>
69
70#define CONFIG_ARP_TIMEOUT 200UL
71
72/* Miscellaneous configurable options */
73#define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
ee943655
LM
74
75/* Physical Memory Map */
ee943655
LM
76#define PHYS_SDRAM_1 CSD0_BASE_ADDR
77#define PHYS_SDRAM_1_SIZE (512 * SZ_1M)
78#define PHYS_SDRAM_SIZE (PHYS_SDRAM_1_SIZE)
79
80#define CONFIG_SYS_SDRAM_BASE (PHYS_SDRAM_1)
81#define CONFIG_SYS_INIT_RAM_ADDR (IRAM_BASE_ADDR)
82#define CONFIG_SYS_INIT_RAM_SIZE (IRAM_SIZE)
83
84#define CONFIG_SYS_INIT_SP_OFFSET \
85 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
86#define CONFIG_SYS_INIT_SP_ADDR \
87 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
88
89/* environment organization */
ee943655
LM
90
91#endif /* __CONFIG_H_ */
This page took 0.212687 seconds and 4 git commands to generate.