2 * Copyright (C) 2015 Technexion Ltd.
4 * Configuration settings for the Technexion PICO-IMX6UL-EMMC board.
6 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __PICO_IMX6UL_CONFIG_H
9 #define __PICO_IMX6UL_CONFIG_H
12 #include <asm/arch/imx-regs.h>
13 #include <linux/sizes.h>
14 #include "mx6_common.h"
15 #include <asm/imx-common/gpio.h>
17 #define CONFIG_DISPLAY_CPUINFO
18 #define CONFIG_DISPLAY_BOARDINFO
20 /* Size of malloc() pool */
21 #define CONFIG_SYS_MALLOC_LEN (16 * SZ_1M)
23 #define CONFIG_BOARD_EARLY_INIT_F
25 #define CONFIG_MXC_UART
26 #define CONFIG_MXC_UART_BASE UART6_BASE_ADDR
29 #define CONFIG_FSL_USDHC
30 #define CONFIG_FSL_ESDHC
31 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR
34 #define CONFIG_CMD_MMC
35 #define CONFIG_GENERIC_MMC
36 #define CONFIG_CMD_FAT
37 #define CONFIG_DOS_PARTITION
38 #define CONFIG_SUPPORT_EMMC_BOOT
41 #define CONFIG_CMD_USB
42 #define CONFIG_USB_EHCI
43 #define CONFIG_USB_EHCI_MX6
44 #define CONFIG_USB_STORAGE
45 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
46 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
47 #define CONFIG_MXC_USB_FLAGS 0
48 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 /* Only OTG1 port enabled */
51 #define CONFIG_USBD_HS
52 #define CONFIG_USB_GADGET_DUALSPEED
53 #define CONFIG_USB_GADGET
55 #define CONFIG_CMD_USB_MASS_STORAGE
56 #define CONFIG_USB_FUNCTION_MASS_STORAGE
57 #define CONFIG_USB_GADGET_DOWNLOAD
58 #define CONFIG_USB_GADGET_VBUS_DRAW 2
60 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
61 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
62 #define CONFIG_G_DNL_MANUFACTURER "FSL"
64 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
65 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
66 #define CONFIG_G_DNL_MANUFACTURER "FSL"
68 #define CONFIG_DEFAULT_FDT_FILE "imx6ul-pico-hobbit.dtb"
70 #define CONFIG_SYS_MMC_IMG_LOAD_PART 1
72 #define CONFIG_EXTRA_ENV_SETTINGS \
75 "fdt_high=0xffffffff\0" \
76 "initrd_high=0xffffffff\0" \
77 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
78 "fdt_addr=0x83000000\0" \
79 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
80 "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
81 "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
82 "mmcautodetect=yes\0" \
83 "mmcargs=setenv bootargs console=${console},${baudrate} " \
85 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
86 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
87 "mmcboot=echo Booting from mmc ...; " \
89 "if run loadfdt; then " \
90 "bootz ${loadaddr} - ${fdt_addr}; " \
92 "echo WARN: Cannot load the DT; " \
95 #define CONFIG_BOOTCOMMAND \
96 "if mmc rescan; then " \
97 "if run loadimage; then " \
99 "else run netboot; " \
101 "else run netboot; fi"
103 #define CONFIG_CMD_MEMTEST
104 #define CONFIG_SYS_MEMTEST_START 0x80000000
105 #define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + SZ_128M
107 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
108 #define CONFIG_SYS_HZ 1000
110 #define CONFIG_CMDLINE_EDITING
111 #define CONFIG_STACKSIZE SZ_128K
113 /* Physical Memory Map */
114 #define CONFIG_NR_DRAM_BANKS 1
115 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
117 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
118 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
119 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
121 #define CONFIG_SYS_INIT_SP_OFFSET \
122 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
123 #define CONFIG_SYS_INIT_SP_ADDR \
124 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
126 /* FLASH and environment organization */
127 #define CONFIG_SYS_NO_FLASH
129 #define CONFIG_ENV_SIZE SZ_8K
130 #define CONFIG_ENV_IS_IN_MMC
131 #define CONFIG_ENV_OFFSET (8 * SZ_64K)
133 #define CONFIG_SYS_MMC_ENV_DEV 0
134 #define CONFIG_SYS_MMC_ENV_PART 0
135 #define CONFIG_MMCROOT "/dev/mmcblk0p2"
137 #define CONFIG_CMD_BOOTZ
138 #define CONFIG_CMD_CACHE
140 #endif /* __PICO_IMX6UL_CONFIG_H */