1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2017 NXP Semiconductors
5 * Configuration settings for the i.MX7D Pico board.
8 #ifndef __PICO_IMX7D_CONFIG_H
9 #define __PICO_IMX7D_CONFIG_H
11 #include "mx7_common.h"
13 #define PHYS_SDRAM_SIZE SZ_1G
15 /* Size of malloc() pool */
16 #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)
18 #define CONFIG_MXC_UART_BASE UART5_IPS_BASE_ADDR
21 #define CONFIG_FEC_MXC
23 #define CONFIG_FEC_XCV_TYPE RGMII
24 #define CONFIG_ETHPRIME "FEC"
25 #define CONFIG_FEC_MXC_PHYADDR 1
27 #define CONFIG_PHY_ATHEROS
30 #define IMX_FEC_BASE ENET_IPS_BASE_ADDR
33 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
35 #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */
36 #define CONFIG_SYS_MMC_IMG_LOAD_PART 1
38 #define CONFIG_EXTRA_ENV_SETTINGS \
42 "fdt_high=0xffffffff\0" \
43 "initrd_high=0xffffffff\0" \
44 "fdtfile=imx7d-pico-pi.dtb\0" \
45 "fdt_addr=0x83000000\0" \
46 "fdt_addr_r=0x83000000\0" \
47 "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
48 "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
49 "ramdisk_addr_r=0x83000000\0" \
50 "ramdiskaddr=0x83000000\0" \
51 "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
52 "finduuid=part uuid mmc 0:1 uuid\0" \
55 #define BOOT_TARGET_DEVICES(func) \
59 #include <config_distro_bootcmd.h>
61 #define CONFIG_SYS_MEMTEST_START 0x80000000
62 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x20000000)
64 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
65 #define CONFIG_SYS_HZ 1000
67 /* Physical Memory Map */
68 #define CONFIG_NR_DRAM_BANKS 1
69 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
71 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
72 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
73 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
75 #define CONFIG_SYS_INIT_SP_OFFSET \
76 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
77 #define CONFIG_SYS_INIT_SP_ADDR \
78 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
81 #define CONFIG_SYS_I2C
82 #define CONFIG_SYS_I2C_MXC
83 #define CONFIG_SYS_I2C_MXC_I2C1
84 #define CONFIG_SYS_I2C_MXC_I2C2
85 #define CONFIG_SYS_I2C_MXC_I2C3
86 #define CONFIG_SYS_I2C_MXC_I2C4
87 #define CONFIG_SYS_I2C_SPEED 100000
91 #define CONFIG_POWER_I2C
92 #define CONFIG_POWER_PFUZE3000
93 #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08
95 /* FLASH and environment organization */
96 #define CONFIG_ENV_SIZE SZ_8K
98 #define CONFIG_ENV_OFFSET (8 * SZ_64K)
99 #define CONFIG_SYS_FSL_USDHC_NUM 2
101 #define CONFIG_SYS_MMC_ENV_DEV 0
102 #define CONFIG_SYS_MMC_ENV_PART 0
105 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
106 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
107 #define CONFIG_MXC_USB_FLAGS 0
108 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
110 #define CONFIG_IMX_THERMAL