]> Git Repo - J-u-boot.git/blame - include/configs/colibri_imx6.h
Merge tag 'u-boot-imx-master-20250127' of https://gitlab.denx.de/u-boot/custodians...
[J-u-boot.git] / include / configs / colibri_imx6.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
a02d517b 2/*
1874cdde 3 * Copyright 2013-2019 Toradex, Inc.
a02d517b
MK
4 *
5 * Configuration settings for the Toradex Colibri iMX6
a02d517b
MK
6 */
7
8#ifndef __CONFIG_H
9#define __CONFIG_H
10
1af3c7f4
SG
11#include <linux/stringify.h>
12
a02d517b 13#include "mx6_common.h"
a02d517b 14
a02d517b 15#include <asm/arch/imx-regs.h>
552a848e 16#include <asm/mach-imx/gpio.h>
a02d517b 17
4db38665 18#define CFG_MXC_UART_BASE UART1_BASE
a02d517b 19
a02d517b 20/* MMC Configs */
6cc04547
TR
21#define CFG_SYS_FSL_ESDHC_ADDR 0
22#define CFG_SYS_FSL_USDHC_NUM 2
a02d517b 23
a02d517b 24/* Command definition */
a02d517b 25
e85a536c
SA
26#define BOOT_TARGET_DEVICES(func) \
27 func(MMC, mmc, 1) \
0e15165b 28 func(MMC, mmc, 0) \
e85a536c
SA
29 func(USB, usb, 0) \
30 func(DHCP, dhcp, na)
31#include <config_distro_bootcmd.h>
32#undef BOOTENV_RUN_NET_USB_START
33#define BOOTENV_RUN_NET_USB_START ""
a02d517b 34
16e33d35
IO
35#define UBOOT_UPDATE \
36 "uboot_hwpart=1\0" \
37 "uboot_blk=8a\0" \
38 "uboot_spl_blk=2\0" \
39 "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && " \
40 "setexpr blkcnt ${blkcnt} / 0x200\0" \
41 "update_uboot=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
42 "mmc write ${loadaddr} ${uboot_blk} ${blkcnt}\0" \
43 "update_spl=run set_blkcnt && mmc dev 0 ${uboot_hwpart} && " \
44 "mmc write ${loadaddr} ${uboot_spl_blk} ${blkcnt}\0"
45
a02d517b 46#define MEM_LAYOUT_ENV_SETTINGS \
9af131e3 47 "bootm_size=0x10000000\0" \
7fe2408b
MZ
48 "fdt_addr_r=0x18200000\0" \
49 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
50 "pxefile_addr_r=0x18300000\0" \
51 "ramdisk_addr_r=0x18400000\0" \
52 "scriptaddr=0x18280000\0"
a02d517b 53
0613c36a 54#define CFG_EXTRA_ENV_SETTINGS \
e85a536c 55 BOOTENV \
1377a776 56 "boot_script_dhcp=boot.scr\0" \
a02d517b 57 "console=ttymxc0\0" \
3f7d518a 58 "fdt_board=eval-v3\0" \
a02d517b 59 MEM_LAYOUT_ENV_SETTINGS \
16e33d35 60 UBOOT_UPDATE \
a02d517b
MK
61 "setethupdate=if env exists ethaddr; then; else setenv ethaddr " \
62 "00:14:2d:00:00:00; fi; tftpboot ${loadaddr} " \
63 "flash_eth.img && source ${loadaddr}\0" \
64 "setsdupdate=setenv interface mmc; setenv drive 1; mmc rescan; load " \
65 "${interface} ${drive}:1 ${loadaddr} flash_blk.img && " \
66 "source ${loadaddr}\0" \
a02d517b
MK
67 "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \
68 "setusbupdate=usb start && setenv interface usb; setenv drive 0; " \
69 "load ${interface} ${drive}:1 ${loadaddr} flash_blk.img && " \
70 "source ${loadaddr}\0" \
71 "splashpos=m,m\0" \
51aaaf5e 72 "splashimage=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"
a02d517b
MK
73
74/* Miscellaneous configurable options */
a02d517b 75
a02d517b 76/* Physical Memory Map */
a02d517b
MK
77#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
78
aa6e94de 79#define CFG_SYS_SDRAM_BASE PHYS_SDRAM
65cc0e2a
TR
80#define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
81#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
a02d517b 82
a02d517b 83#endif /* __CONFIG_H */
This page took 0.495181 seconds and 4 git commands to generate.