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_GENERIC_MMC
35 #define CONFIG_DOS_PARTITION
36 #define CONFIG_SUPPORT_EMMC_BOOT
39 #define CONFIG_USB_EHCI
40 #define CONFIG_USB_EHCI_MX6
41 #define CONFIG_USB_STORAGE
42 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
43 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
44 #define CONFIG_MXC_USB_FLAGS 0
45 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1 /* Only OTG1 port enabled */
48 #define CONFIG_USBD_HS
49 #define CONFIG_USB_GADGET_DUALSPEED
50 #define CONFIG_USB_GADGET
52 #define CONFIG_USB_FUNCTION_MASS_STORAGE
53 #define CONFIG_USB_GADGET_DOWNLOAD
54 #define CONFIG_USB_GADGET_VBUS_DRAW 2
56 #define CONFIG_G_DNL_VENDOR_NUM 0x0525
57 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
58 #define CONFIG_G_DNL_MANUFACTURER "FSL"
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_DEFAULT_FDT_FILE "imx6ul-pico-hobbit.dtb"
66 #define CONFIG_SYS_MMC_IMG_LOAD_PART 1
68 #define CONFIG_EXTRA_ENV_SETTINGS \
71 "fdt_high=0xffffffff\0" \
72 "initrd_high=0xffffffff\0" \
73 "fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
74 "fdt_addr=0x83000000\0" \
75 "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \
76 "mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
77 "mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
78 "mmcautodetect=yes\0" \
79 "mmcargs=setenv bootargs console=${console},${baudrate} " \
81 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
82 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
83 "mmcboot=echo Booting from mmc ...; " \
85 "if run loadfdt; then " \
86 "bootz ${loadaddr} - ${fdt_addr}; " \
88 "echo WARN: Cannot load the DT; " \
91 #define CONFIG_BOOTCOMMAND \
92 "if mmc rescan; then " \
93 "if run loadimage; then " \
95 "else run netboot; " \
97 "else run netboot; fi"
99 #define CONFIG_SYS_MEMTEST_START 0x80000000
100 #define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + SZ_128M
102 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
103 #define CONFIG_SYS_HZ 1000
105 #define CONFIG_CMDLINE_EDITING
106 #define CONFIG_STACKSIZE SZ_128K
108 /* Physical Memory Map */
109 #define CONFIG_NR_DRAM_BANKS 1
110 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
112 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
113 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
114 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
116 #define CONFIG_SYS_INIT_SP_OFFSET \
117 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
118 #define CONFIG_SYS_INIT_SP_ADDR \
119 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
121 /* FLASH and environment organization */
122 #define CONFIG_SYS_NO_FLASH
124 #define CONFIG_ENV_SIZE SZ_8K
125 #define CONFIG_ENV_IS_IN_MMC
126 #define CONFIG_ENV_OFFSET (8 * SZ_64K)
128 #define CONFIG_SYS_MMC_ENV_DEV 0
129 #define CONFIG_SYS_MMC_ENV_PART 0
130 #define CONFIG_MMCROOT "/dev/mmcblk0p2"
132 #endif /* __PICO_IMX6UL_CONFIG_H */