1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2017-2018 NXP
4 * Copyright 2019 Siemens AG
7 #ifndef __IMX8X_CAPRICORN_H
8 #define __IMX8X_CAPRICORN_H
10 #include <linux/sizes.h>
11 #include <asm/arch/imx-regs.h>
13 #include "siemens-env-common.h"
16 #ifdef CONFIG_SPL_BUILD
18 #define CONFIG_SYS_MONITOR_LEN (1024 * 1024)
20 #define CONFIG_MALLOC_F_ADDR 0x00120000
22 #define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
24 #endif /* CONFIG_SPL_BUILD */
26 #define CONFIG_FACTORYSET
28 /* ENET1 connects to base board and MUX with ESAI */
29 #define CONFIG_FEC_ENET_DEV 1
30 #define CONFIG_FEC_MXC_PHYADDR 0x0
32 /* I2C Configuration */
33 #ifndef CONFIG_SPL_BUILD
35 #define EEPROM_I2C_BUS 0 /* I2C0 */
36 #define EEPROM_I2C_ADDR 0x50
38 #define PCA9552_1_I2C_BUS 1 /* I2C1 */
39 #define PCA9552_1_I2C_ADDR 0x60
40 #endif /* !CONFIG_SPL_BUILD */
43 #ifdef CONFIG_AHAB_BOOT
44 #define AHAB_ENV "sec_boot=yes\0"
46 #define AHAB_ENV "sec_boot=no\0"
49 #define MFG_ENV_SETTINGS_DEFAULT \
50 "mfgtool_args=setenv bootargs console=${console},${baudrate} " \
55 "bootcmd_mfg=run mfgtool_args;" \
56 "if iminfo ${initrd_addr}; then " \
57 "if test ${tee} = yes; then " \
58 "bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; " \
60 "booti ${loadaddr} ${initrd_addr} ${fdt_addr}; " \
63 "echo \"Run fastboot ...\"; fastboot 0; " \
68 "m4_0_image=m4_0.bin\0" \
69 "loadm4image_0=fatload mmc ${mmcdev}:${mmcpart} " \
70 "${loadaddr} ${m4_0_image}\0" \
71 "m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0\0" \
73 #define CONFIG_MFG_ENV_SETTINGS \
74 MFG_ENV_SETTINGS_DEFAULT \
75 "initrd_addr=0x83100000\0" \
76 "initrd_high=0xffffffffffffffff\0" \
79 /* Initial environment variables */
80 #define CONFIG_EXTRA_ENV_SETTINGS \
81 CONFIG_MFG_ENV_SETTINGS \
89 "fdt_addr=0x83000000\0" \
90 "fdt_high=0xffffffffffffffff\0" \
91 "cntr_addr=0x88000000\0" \
92 "cntr_file=os_cntr_signed.bin\0" \
93 "initrd_addr=0x83800000\0" \
94 "initrd_high=0xffffffffffffffff\0" \
96 "nfsopts=vers=3,udp,rsize=4096,wsize=4096,nolock rw\0" \
97 "hostname=capricorn\0" \
101 /* Default location for tftp and bootm */
103 /* On CCP board, USDHC1 is for eMMC */
105 #define CONFIG_SYS_SDRAM_BASE 0x80000000
106 #define PHYS_SDRAM_1 0x80000000
107 #define PHYS_SDRAM_2 0x880000000
108 /* DDR3 board total DDR is 1 GB */
109 #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1 GB */
110 #define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 GB */
112 #define BOOTAUX_RESERVED_MEM_BASE 0x88000000
113 #define BOOTAUX_RESERVED_MEM_SIZE SZ_128M /* Reserve from second 128MB */
115 #endif /* __IMX8X_CAPRICORN_H */