]> Git Repo - u-boot.git/blame - include/configs/imx8qxp_mek.h
Convert CONFIG_SYS_MONITOR_LEN to Kconfig
[u-boot.git] / include / configs / imx8qxp_mek.h
CommitLineData
d0dd7397
PF
1/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2018 NXP
4 */
5
6#ifndef __IMX8QXP_MEK_H
7#define __IMX8QXP_MEK_H
8
9#include <linux/sizes.h>
1af3c7f4 10#include <linux/stringify.h>
d0dd7397
PF
11#include <asm/arch/imx-regs.h>
12
018e3fd2 13#ifdef CONFIG_SPL_BUILD
018e3fd2 14#define CONFIG_SERIAL_LPUART_BASE 0x5a060000
018e3fd2
PF
15#define CONFIG_MALLOC_F_ADDR 0x00120000
16
018e3fd2
PF
17#endif
18
6dcc6ceb
PF
19#ifdef CONFIG_AHAB_BOOT
20#define AHAB_ENV "sec_boot=yes\0"
21#else
22#define AHAB_ENV "sec_boot=no\0"
23#endif
24
d0dd7397
PF
25/* Initial environment variables */
26#define CONFIG_EXTRA_ENV_SETTINGS \
6dcc6ceb 27 AHAB_ENV \
d0dd7397
PF
28 "script=boot.scr\0" \
29 "image=Image\0" \
30 "panel=NULL\0" \
10a8cc01 31 "console=ttyLP0\0" \
d0dd7397
PF
32 "fdt_addr=0x83000000\0" \
33 "fdt_high=0xffffffffffffffff\0" \
34 "boot_fdt=try\0" \
a6c36f15 35 "fdt_file=undefined\0" \
d0dd7397
PF
36 "initrd_addr=0x83800000\0" \
37 "initrd_high=0xffffffffffffffff\0" \
38 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
de35b8f9 39 "mmcpart=1\0" \
adfaa428 40 "mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
d0dd7397 41 "mmcautodetect=yes\0" \
10a8cc01 42 "mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}\0 " \
d0dd7397
PF
43 "loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
44 "bootscript=echo Running bootscript from mmc ...; " \
45 "source\0" \
46 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
47 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
6dcc6ceb
PF
48 "loadcntr=fatload mmc ${mmcdev}:${mmcpart} ${cntr_addr} ${cntr_file}\0" \
49 "auth_os=auth_cntr ${cntr_addr}\0" \
50 "boot_os=booti ${loadaddr} - ${fdt_addr};\0" \
d0dd7397
PF
51 "mmcboot=echo Booting from mmc ...; " \
52 "run mmcargs; " \
6dcc6ceb
PF
53 "if test ${sec_boot} = yes; then " \
54 "if run auth_os; then " \
55 "run boot_os; " \
d0dd7397 56 "else " \
6dcc6ceb 57 "echo ERR: failed to authenticate; " \
d0dd7397
PF
58 "fi; " \
59 "else " \
6dcc6ceb
PF
60 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
61 "if run loadfdt; then " \
62 "run boot_os; " \
63 "else " \
64 "echo WARN: Cannot load the DT; " \
65 "fi; " \
66 "else " \
67 "echo wait for boot; " \
68 "fi;" \
d0dd7397 69 "fi;\0" \
10a8cc01 70 "netargs=setenv bootargs console=${console},${baudrate} " \
d0dd7397
PF
71 "root=/dev/nfs " \
72 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
73 "netboot=echo Booting from net ...; " \
74 "run netargs; " \
75 "if test ${ip_dyn} = yes; then " \
76 "setenv get_cmd dhcp; " \
77 "else " \
78 "setenv get_cmd tftp; " \
79 "fi; " \
6dcc6ceb
PF
80 "if test ${sec_boot} = yes; then " \
81 "${get_cmd} ${cntr_addr} ${cntr_file}; " \
82 "if run auth_os; then " \
83 "run boot_os; " \
d0dd7397 84 "else " \
6dcc6ceb 85 "echo ERR: failed to authenticate; " \
d0dd7397
PF
86 "fi; " \
87 "else " \
6dcc6ceb
PF
88 "${get_cmd} ${loadaddr} ${image}; " \
89 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
90 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
91 "run boot_os; " \
92 "else " \
93 "echo WARN: Cannot load the DT; " \
94 "fi; " \
95 "else " \
96 "booti; " \
97 "fi;" \
d0dd7397
PF
98 "fi;\0"
99
d0dd7397 100/* Link Definitions */
d0dd7397 101
d0dd7397 102/* Default environment is in SD */
d0dd7397 103
d0dd7397 104/* On LPDDR4 board, USDHC1 is for eMMC, USDHC2 is for SD on CPU board */
d0dd7397 105
d0dd7397
PF
106#define CONFIG_SYS_SDRAM_BASE 0x80000000
107#define PHYS_SDRAM_1 0x80000000
108#define PHYS_SDRAM_2 0x880000000
109#define PHYS_SDRAM_1_SIZE 0x80000000 /* 2 GB */
110/* LPDDR4 board total DDR is 3GB */
111#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1 GB */
112
d0dd7397
PF
113#ifndef CONFIG_DM_PCA953X
114#define CONFIG_PCA953X
d0dd7397
PF
115#endif
116
5c1c7c1e 117/* Misc configuration */
5c1c7c1e 118
d0dd7397 119#endif /* __IMX8QXP_MEK_H */
This page took 0.212929 seconds and 4 git commands to generate.