1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Copyright 2018 Emcraft Systems
5 * Copyright 2022 Purism
15 #include <linux/sizes.h>
16 #include <asm/arch/imx-regs.h>
18 #define CFG_SYS_FSL_USDHC_NUM 2
20 #define CONSOLE_ON_UART1
22 #ifdef CONSOLE_ON_UART1
23 #define CFG_MXC_UART_BASE UART1_BASE_ADDR
24 #define CONSOLE_UART_CLK 0
25 #define CONSOLE "ttymxc0"
26 #elif defined(CONSOLE_ON_UART2)
27 #define CFG_MXC_UART_BASE UART2_BASE_ADDR
28 #define CONSOLE_UART_CLK 1
29 #define CONSOLE "ttymxc1"
30 #elif defined(CONSOLE_ON_UART3)
31 #define CFG_MXC_UART_BASE UART3_BASE_ADDR
32 #define CONSOLE_UART_CLK 2
33 #define CONSOLE "ttymxc2"
34 #elif defined(CONSOLE_ON_UART4)
35 #define CFG_MXC_UART_BASE UART4_BASE_ADDR
36 #define CONSOLE_UART_CLK 3
37 #define CONSOLE "ttymxc3"
39 #define CFG_MXC_UART_BASE UART1_BASE_ADDR
40 #define CONSOLE_UART_CLK 0
41 #define CONSOLE "ttymxc0"
44 #ifndef CONFIG_SPL_BUILD
45 #define BOOT_TARGET_DEVICES(func) \
49 #include <config_distro_bootcmd.h>
54 /* Initial environment variables */
55 #define CFG_EXTRA_ENV_SETTINGS \
56 "scriptaddr=0x80000000\0" \
57 "pxefile_addr_r=0x80100000\0" \
58 "kernel_addr_r=0x80800000\0" \
59 "kernel_comp_addr_r=0x90000000\0" \
60 "kernel_comp_size=0x08000000\0" \
61 "fdt_addr_r=0x84800000\0" \
62 "ramdisk_addr_r=0x85000000\0" \
63 "console=" CONSOLE ",115200\0" \
64 "bootargs=u_boot_version=" PLAIN_VERSION "\0" \
65 "stdin=usbacm,serial\0" \
66 "stdout=usbacm,serial\0" \
67 "stderr=usbacm,serial\0" \
70 /* Link Definitions */
72 #define CFG_SYS_INIT_RAM_ADDR 0x40000000
73 #define CFG_SYS_INIT_RAM_SIZE 0x80000
75 #define CFG_SYS_SDRAM_BASE 0x40000000
76 #define PHYS_SDRAM 0x40000000
77 #define PHYS_SDRAM_SIZE 0xc0000000 /* 3GB LPDDR4 one Rank */
79 /* Monitor Command Prompt */
81 #define CFG_SYS_FSL_ESDHC_ADDR 0