Enable LTO on mamoj to reduce SPL and uboot size. Tested with gcc gcc-11.1.0 U-Boot 2022.04-rc4-00051-g17fc5facd0 (Mar 23 2022 - 16:43:43 +0100) CPU: Freescale i.MX6DL rev1.3 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 40C Reset cause: POR Model: BTicino i.MX6DL Mamoj board DRAM: 512 MiB Core: 29 devices, 12 uclasses, devicetree: separate MMC: FSL_SDHC: 2 Loading Environment from MMC... OK In: serial Out: serial Err: serial Net: Error: ethernet@2188000 address not set. No ethernet found. Tested-by: Raffaele RECALCATI <raffaele.recalcati@bticino.it> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
64 lines
1.5 KiB
Text
64 lines
1.5 KiB
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_MX6=y
|
|
CONFIG_SYS_TEXT_BASE=0x17800000
|
|
CONFIG_SYS_MALLOC_LEN=0x2300000
|
|
CONFIG_NR_DRAM_BANKS=1
|
|
CONFIG_ENV_SIZE=0x20000
|
|
CONFIG_ENV_OFFSET=0x100000
|
|
CONFIG_MX6QDL=y
|
|
CONFIG_TARGET_MX6DL_MAMOJ=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="imx6dl-mamoj"
|
|
CONFIG_SPL_TEXT_BASE=0x00908000
|
|
CONFIG_SPL_DRIVERS_MISC=y
|
|
CONFIG_IMX_HAB=y
|
|
# CONFIG_CMD_BMODE is not set
|
|
CONFIG_LTO=y
|
|
CONFIG_SYS_MEMTEST_START=0x80000000
|
|
CONFIG_SYS_MEMTEST_END=0x88000000
|
|
CONFIG_DISTRO_DEFAULTS=y
|
|
CONFIG_BOOTDELAY=3
|
|
CONFIG_SPL_OS_BOOT=y
|
|
CONFIG_SPL_FALCON_BOOT_MMCSD=y
|
|
CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x1000
|
|
CONFIG_CMD_SPL=y
|
|
CONFIG_CRC32_VERIFY=y
|
|
CONFIG_CMD_MEMTEST=y
|
|
CONFIG_CMD_DFU=y
|
|
CONFIG_CMD_GPIO=y
|
|
CONFIG_CMD_I2C=y
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_USB=y
|
|
CONFIG_CMD_USB_MASS_STORAGE=y
|
|
CONFIG_CMD_CACHE=y
|
|
CONFIG_CMD_PMIC=y
|
|
CONFIG_CMD_EXT4_WRITE=y
|
|
CONFIG_ENV_OVERWRITE=y
|
|
CONFIG_ENV_IS_IN_MMC=y
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
CONFIG_SYS_MMC_ENV_DEV=2
|
|
CONFIG_BOUNCE_BUFFER=y
|
|
CONFIG_DFU_MMC=y
|
|
CONFIG_USB_FUNCTION_FASTBOOT=y
|
|
CONFIG_FASTBOOT_BUF_ADDR=0x12000000
|
|
CONFIG_FASTBOOT_BUF_SIZE=0x10000000
|
|
CONFIG_FASTBOOT_FLASH=y
|
|
CONFIG_FASTBOOT_FLASH_MMC_DEV=2
|
|
CONFIG_SYS_I2C_MXC=y
|
|
CONFIG_SUPPORT_EMMC_BOOT=y
|
|
CONFIG_FSL_USDHC=y
|
|
CONFIG_MTD=y
|
|
CONFIG_PHYLIB=y
|
|
CONFIG_PHY_MICREL=y
|
|
CONFIG_PHY_MICREL_KSZ8XXX=y
|
|
CONFIG_FEC_MXC=y
|
|
CONFIG_MII=y
|
|
CONFIG_PINCTRL_IMX6=y
|
|
CONFIG_MXC_UART=y
|
|
CONFIG_IMX_THERMAL=y
|
|
CONFIG_USB=y
|
|
# CONFIG_SPL_DM_USB is not set
|
|
CONFIG_USB_GADGET=y
|
|
CONFIG_USB_GADGET_MANUFACTURER="FSL"
|
|
CONFIG_USB_GADGET_VENDOR_NUM=0x0525
|
|
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
|
CONFIG_CI_UDC=y
|