1 /* 2 * Copyright (C) 2015 Technexion Ltd. 3 * 4 * Configuration settings for the Technexion PICO-IMX6UL-EMMC board. 5 * 6 * SPDX-License-Identifier: GPL-2.0+ 7 */ 8 #ifndef __PICO_IMX6UL_CONFIG_H 9 #define __PICO_IMX6UL_CONFIG_H 10 11 12 #include <asm/arch/imx-regs.h> 13 #include <linux/sizes.h> 14 #include "mx6_common.h" 15 #include <asm/imx-common/gpio.h> 16 17 #define CONFIG_DISPLAY_CPUINFO 18 #define CONFIG_DISPLAY_BOARDINFO 19 20 /* Size of malloc() pool */ 21 #define CONFIG_SYS_MALLOC_LEN (16 * SZ_1M) 22 23 #define CONFIG_BOARD_EARLY_INIT_F 24 25 #define CONFIG_MXC_UART 26 #define CONFIG_MXC_UART_BASE UART6_BASE_ADDR 27 28 /* MMC Configs */ 29 #define CONFIG_FSL_USDHC 30 #define CONFIG_FSL_ESDHC 31 #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC1_BASE_ADDR 32 33 #define CONFIG_MMC 34 #define CONFIG_GENERIC_MMC 35 #define CONFIG_DOS_PARTITION 36 #define CONFIG_SUPPORT_EMMC_BOOT 37 38 /* USB Configs */ 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 */ 46 47 #define CONFIG_CI_UDC 48 #define CONFIG_USBD_HS 49 #define CONFIG_USB_GADGET_DUALSPEED 50 #define CONFIG_USB_GADGET 51 52 #define CONFIG_USB_FUNCTION_MASS_STORAGE 53 #define CONFIG_USB_GADGET_DOWNLOAD 54 #define CONFIG_USB_GADGET_VBUS_DRAW 2 55 56 #define CONFIG_G_DNL_VENDOR_NUM 0x0525 57 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 58 #define CONFIG_G_DNL_MANUFACTURER "FSL" 59 60 #define CONFIG_G_DNL_VENDOR_NUM 0x0525 61 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 62 #define CONFIG_G_DNL_MANUFACTURER "FSL" 63 64 #define CONFIG_DEFAULT_FDT_FILE "imx6ul-pico-hobbit.dtb" 65 66 #define CONFIG_SYS_MMC_IMG_LOAD_PART 1 67 68 #define CONFIG_EXTRA_ENV_SETTINGS \ 69 "image=zImage\0" \ 70 "console=ttymxc5\0" \ 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} " \ 80 "root=${mmcroot}\0" \ 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 ...; " \ 84 "run mmcargs; " \ 85 "if run loadfdt; then " \ 86 "bootz ${loadaddr} - ${fdt_addr}; " \ 87 "else " \ 88 "echo WARN: Cannot load the DT; " \ 89 "fi;\0" 90 91 #define CONFIG_BOOTCOMMAND \ 92 "if mmc rescan; then " \ 93 "if run loadimage; then " \ 94 "run mmcboot; " \ 95 "else run netboot; " \ 96 "fi; " \ 97 "else run netboot; fi" 98 99 #define CONFIG_SYS_MEMTEST_START 0x80000000 100 #define CONFIG_SYS_MEMTEST_END CONFIG_SYS_MEMTEST_START + SZ_128M 101 102 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR 103 #define CONFIG_SYS_HZ 1000 104 105 #define CONFIG_CMDLINE_EDITING 106 #define CONFIG_STACKSIZE SZ_128K 107 108 /* Physical Memory Map */ 109 #define CONFIG_NR_DRAM_BANKS 1 110 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR 111 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 115 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) 120 121 /* FLASH and environment organization */ 122 #define CONFIG_SYS_NO_FLASH 123 124 #define CONFIG_ENV_SIZE SZ_8K 125 #define CONFIG_ENV_IS_IN_MMC 126 #define CONFIG_ENV_OFFSET (8 * SZ_64K) 127 128 #define CONFIG_SYS_MMC_ENV_DEV 0 129 #define CONFIG_SYS_MMC_ENV_PART 0 130 #define CONFIG_MMCROOT "/dev/mmcblk0p2" 131 132 #endif /* __PICO_IMX6UL_CONFIG_H */ 133