1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2021 Ronetix GmbH
5 * Configuration settings for the Ronetix's iMX7-CM System-on-Module.
8 #ifndef __IMX7_CM_CONFIG_H
9 #define __IMX7_CM_CONFIG_H
11 #include "mx7_common.h"
13 #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR
15 #undef CONFIG_SYS_AUTOLOAD
16 #undef CONFIG_EXTRA_ENV_SETTINGS
24 #define MY_CONFIG_BOOT_MODE "boot-mode=sd\0"
26 #define CONFIG_EXTRA_ENV_SETTINGS \
30 "fdt_file=imx7-cm.dtb\0" \
31 "fdt_addr=0x83000000\0" \
32 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
34 "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
35 "mmcargs=setenv bootargs console=${console},${baudrate} " \
37 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
38 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
41 "echo Booting from SD card ...; " \
43 "mmc dev ${mmcdev};" \
46 "bootz ${loadaddr} - ${fdt_addr}; " \
50 "echo Boot Kernel and FDT from TFTP, RootFs from SD card ...; " \
52 "mmc dev ${mmcdev};" \
53 "tftp ${fdt_addr} ${fdt_file}; " \
55 "bootz ${loadaddr} - ${fdt_addr}; " \
58 "netargs=setenv bootargs console=${console},${baudrate} " \
60 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp" \
63 "echo Booting from net ...; " \
66 "tftp ${fdt_addr} ${fdt_file}; " \
67 "bootz ${loadaddr} - ${fdt_addr}; " \
70 /* Physical Memory Map */
71 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
73 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
74 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
75 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
78 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
79 #define CONFIG_SYS_FSL_USDHC_NUM 2
83 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
85 #define CONFIG_USBD_HS
90 #endif /* __CONFIG_H */