summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2016-03-09colibri_vf: read kernel and device tree from static UBI volumesColibri_iMX7_LinuxImageV2.6Alpha1_20160315Stefan Agner
With the next release our update scripts write the kernel and device tree in seperate UBI volumes. This allows to use a lot less UBI/UBIFS support in U-Boot, which should lower the risk of hitting bugs in this area. Boot times are also slightly faster (measurements showed an improvement of ~150ms). Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2016-03-09apalis_tk1: adjust defargs for l4t r21.4 bootingMarcel Ziswiler
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: load flashscript from {board}/ directoryMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: remove fix MAC addr from default configurationMax Krummenacher
As we now have the configblock handling the MAC address is set from the configblock. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: remove CONFIG_SYS_USE_NANDMax Krummenacher
This lives now in colibri_imx7_defconfig Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09cmd_writebcb_mx7: add command to write FCB, DBBT, Bootloader on MX7Max Krummenacher
Code mostly ported from imx-kobs-5.3. MTD partitioning is set accordingly. writebcb: Write Boot Control Block (FCB and DBBT) writeboot: Write bootloadder Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: change mtd partitionining for kobs-ngMax Krummenacher
kobs-ng needs a partition which holds FCB, DBBT, and Bootloader, not FCB, DBBT alone. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09cmd_writebcb.c: add i.MX7 struct membersMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: unify config and environmentMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: remove CONFIG_VIDEO_MODE / panelMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: set fdt_file for Colibri iMX7Max Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7.h: updateMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09DDR3 conf: autodetect RAM sizeMax Krummenacher
Use get_ram_size() to autodetect up to 2Gbyte of RAM on rank 0. If chips with two ranks would get stuffed one would have to set the size of one rank in DDRC_ADDRMAP0. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09colibri_imx7: add initial, cp from mx7sabresdMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09mx7dsabresd: add NAND/UBI to configMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09iMX6/7 soc.c: allow for board supplied serialMax Krummenacher
Introduce CONFIG_SERIAL_TAG_BOARD which removes the definition of void get_board_serial(struct tag_serialnr *serialnr) in order to allow its definition in board specific code. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
2016-03-09Revert "MLK-11408-2 imx: mx7d: Isolate 26 IP resources to domain 0 for A core"Ye.Li
This reverts commit e7d4767331f1a2cbef61b4e89beb73731f267499.
2016-03-09MLK-11767:imx: Modify the u-boot ENV offset for NAND storageYe.Li
The current 36M offset will conflict with NAND FCB firmware2 when the nand chip block is 1MB size. This patch change it to 36M + 1M offset, so the redundant u-boot at firmware2 will not be broken. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11706: imx6sx: SabreSD: Expand malloc pool to 32MSandor Yu
Same issue as ENGR00321137, commit 3695635. GIS module need total 3M+3M+1.5M+1.5M=9M video memory. and sys reserved 16M memory for malloc. When gis module enabled, malloc may failed to allocate memory for other modules, that may cause system hang. Expand malloc pool to 32M. Signed-off-by: Sandor Yu <R01008@freescale.com>
2016-03-09MLK-11718-3: imx: change the NAND env setting addressHan Xu
The previous 8M address for NAND env might conflict with other boot parameters as the NAND block size increasing, change it to 36M to avoid it. Signed-off-by: Han Xu <b45815@freescale.com>
2016-03-09MLK-11718-1: mtd: nand: change the maximum nange page size and oob sizeHan Xu
enlarge the maximum nand page size and oob size to 16k byte and 1280byte. Signed-off-by: Han Xu <b45815@freescale.com>
2016-03-09MLK-11662-1 imx: mx6ul: Change 14x14 LPDDR2 ARM2 memory size to 256MBYe.Li
The actual memory size is 256MB not 512MB, otherwise it has a wrap problem in memory and will cause memtester failed. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11554 imx: mx6ulevk: Modify the mtest memory end to half of PHYS_SDRAM_SIZEYe.Li
Since the mx6ul 9x9 evk has different DDR size with 14x14 evk, change to use the half of PHYS_SDRAM_SIZE for mtest end. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11548 imx: imx6qp: add SabreSD board supportAnson Huang
Add i.MX6QP SabreSD board support. Signed-off-by: Anson Huang <b20788@freescale.com>
2016-03-09MLK-11528 imx: mx6ul check fuse before init beePeng Fan
Need to check fuse bit 25 of bank 0 word 4 before initialize bee. The bit: 0 means bee enabled, 1 means bee disabled. If disabled, continuing initialize bee will cause system hang, so need to check this bit before initialize bee. Add macro to enable BEE in header file, default disabled. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11461 imx: imx6ul: enable LDO bypass for 9x9 EVK boardAnson Huang
i.MX6UL-9x9-EVK board has PFUZE3000, so enable LDO bypass support for this board. Signed-off-by: Anson Huang <b20788@freescale.com>
2016-03-09MLK-11408-2 imx: mx7d: Isolate 26 IP resources to domain 0 for A coreYe.Li
In current design, if any peripheral was assigned to both A7 and M4, it will receive ipg_stop or ipg_wait when any of the 2 platforms enter low power mode. We will have a risk that, if A7 enter wait, M4 enter stop, peripheral will have chance to get ipg_stop and ipg_wait asserted same time. There are 26 peripherals impacted by this IC issue: SIM2(sim2/emvsim2) SIM1(sim1/emvsim1) UART1/UART2/UART3/UART4/UART5/UART6/UART7 SAI1/SAI2/SAI3 WDOG1/WDOG2/WDOG3/WDOG4 GPT1/GPT2/GPT3/GPT4 PWM1/PWM2/PWM3/PWM4 ENET1/ENET2 Software Workaround: The solution is set M4 to a different domain with A core. So the peripherals are not shared by them. This way requires the uboot implemented the RDC driver and set the 26 IPs above to domain 0 only. CM4 image will set the M4 to domain 1 only. This patch enables the CONFIG_MXC_RDC for mx7d SABRESD board and ARM2 boards, and setup the 26 IP resources to domain 0. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11388 imx: mx7d: add support for mx7d 19x19 lpddr2 arm2 boardYe.Li
This mx7d 19x19 lpddr2 arm2 board is based on 19x19 lpddr3 arm2 board with DDR changed to 512M LPDDR2. We added DDR script for LPDDR2 and a new u-boot build target: mx7d_19x19_lpddr2_arm2_config LPDDR2 script source: lpddr2_0_1.ds Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11367 imx: mx6ul: Add cma bootargs for 6ul 9x9 boardYe.Li
Since the i.MX6ul 9x9 evk board only has 256MB LPDDR2, while the CMA size used in kernel configuration is 320MB, so we have to set another value for the 9x9 evk board. This patch sets the cma=96M bootargs to in uboot. So the kernel will overwrite to use the new value. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11364 imx: mx6ul : Add support for i.MX6UL 9x9 EVK boardYe.Li
The i.mx6ul 9x9 EVK shares the same base board with 6ul 14x14 EVK with two main changes on CPU board: 1. Change to use pfuze 3000. 2. Use 256MB LPDDR2 memory. This patch uses a macro CONFIG_6UL_9X9_LPDDR2 to distinguish the changes above, basing on 14x14 EVK board level codes. The new build target for the 9x9 EVK: mx6ul_9x9_evk_config Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11281-2 ARM: imx7d: enable plug in mode by default for lpsr modeAnson Huang
As we need to support LPSR mode resume and due to hardware design requirement, DCD can NOT put DRAM exit from retention mode, so only plug in mode can do that to support LPSR mode, so enabled plug in mode by default for imx7d 12x12-lpddr3-arm2 board. Signed-off-by: Anson Huang <b20788@freescale.com>
2016-03-09MLK-11263-2 video: epdc: move setup_waveform_file to board commonPeng Fan
Since setup_waveform_file in different boards code have same implementation, move setup_waveform_file to board common code. Also rename it to board_setup_waveform_file This patch also fix a bug when using flush_cache. We should pass 'waveform_buf' to flush_cache, but not a string named 'addr'. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11263-1 video: epdc: support display logo on E-Ink screenPeng Fan
Support draw image on E-ink screen. 1. The image format should be PGM-P5 raw data format. 2. The image should be named epdc_logo.pgm. 3. If no epdc_logo.pgm found in the first partition(FAT), will choose to draw black border on the screen. 4. Default configuration is to draw image at pos (0,0). If 'splashpos' env is set, will choose the pos from 'splashpos'. 5. The image size should not be bigger than screen total pixel size. 6. Implement board_setup_logo_file in board/freescale/common/epdc_setup.c 7. Introudce function prototype for board_setup_logo_file. Note: i.MX7D EPDC supports advanced mode and standard mode. Since current PXP in uboot for i.MX7D not ready, only support standard mode now. advanced and standard mode needs waveform firmware's support. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11228-3 android: Add "data" partition in fastbootYe.Li
Enable fastboot command "fastboot flash data" Custom may need to update data partition in fastboot mode. This patch enable flash data partition in emmc\sd. Signed-off-by: Zhang Sanshan <b51434@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11228-1 android: Integrate community fastboot with FSL i.MX fastbootYe.Li
1. Replace the UDC driver with community's USB gadget d_dnl driver. 2. Integrate the FSL SD/SATA/NAND flash operations, since the GPT and EFI partitions are not support by i.MX. 3. Add FDT support to community's android image. 4. Change the booti command to boota, due to the booti has been used for ARM64 image boot. 5. Modify boota implementation to load ramdisk and fdt to their loading addresses specified in boot.img header, while bootm won't do it for android image. 6. Modify the android image HAB implementation. Authenticate the boot.img on the "load_addr" for both SD and NAND. 7. Enable new configuration CONFIG_FSL_FASTBOOT for Freescale's fastboot with relevant header file "fsl_fastboot.h". While disabling the configuration, the community fastboot is used. 8. Use community's way to combine cmdline in boot.img and u-boot environment, not overwrite the cmdline in boot.img Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11227 imx: mx6ul_14x14_lpddr2_arm2 add weimnor defconfigPeng Fan
1. Add weimnor boot defconfig 2. move CONFIG_FSL_USDHC and CONFIG_VIDEO to board header 3. Add CONFIG_SYS_FLASH_PROTECTION for mx6ul 14x14 lpddr2 arm2 4. correct CONFIG_SYS_FLASH_SECT_SIZE and CONFIG_SYS_MAX_FLASH_SECT 5. Add comments for setup_eimnor, since ENET2_RXER pin conflicts with ENET2. Also eimnor support will disable SD1/SD2, need ENET to boot kernel and nfs using enet. So setup_eimnor should be invoked after setup_fec Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11135-2 imx: mx6ul: Add MX6UL LPDDR2 ARM2 board supportYe.Li
Add MX6UL LPDDR2 ARM2 board BSP codes, supported peripherals: SD1, eMMC(USDHC2), USB OTG1, I2C, ENET2, PMIC. Due to a board issue, the SD1 only supports 1 bit bus width. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11135-1 imx: mx6ul: Abstract the common settings of 6UL ARM2 boardYe.Li
Create a new head file mx6ul_arm2.h, and move the common settings of MX6UL ARM2 boards to this file. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11134-2 imx: mx7d_12x12_ddr3_arm2 update spi nor codePeng Fan
We should use board_spi_cs_gpio and remove the GPIO from CONFIG_SF_DEFAULT_CS. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11134-1 imx: mx6ul_14x14_ddr3_arm2 correct CONFIG_DEFAULT_SPI_CSPeng Fan
We should not put the GPIO in CONFIG_SF_DEFAULT_CS Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11059 imx: HAB unable to support Encrypted boot for 4096-bit keysUlises Cardenas
Abstracted the CSF size in imximage from a hardcoded value to a config setting CONFIG_CSF_SIZE. This configuration is only enabled for secure boot. Increased the size of the CSF default allocation to 0x4000. This size covers the event the worst case of 4906-bits keys.
2016-03-09MLK-11062 imx: mx7d arm2: Add nand mtdpart info to u-boot environmentsYe.Li
For nand boot, the mtdpart info are needs to load kernel and rootfs. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11010 imx: mx7d: Fix EIMNOR lock issue on mx7d 19x19 lpddr3 boardYe.Li
Since the flash blocks are locked at default , need to set "CONFIG_SYS_FLASH_PROTECTION" to unlock them before write/erase. The patch also add the pinmux for LBA (ADV) pin and set eimnor enabled at default. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-10956 imx: mx6ul: Change BSP name and dtb name for 14x14 packageYe.Li
Since there is another 9x9 package for mx6ul, modify the BSP names of ddr3 arm2 board and evk board to add 14x14 package info. Also modify the loaded dtb file to align with kernel. After the change, the build target for mx6ul ddr3 arm2 board is: mx6ul_14x14_ddr3_arm2_config and the build target for mx6ul evk board is: mx6ul_14x14_evk_config Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-10955 imx: mx7d arm2: Add NAND support for mx7d 19x19 lpddr3 arm2 boardYe.Li
Add the default TSOP NAND support and build target. New build target for nand boot: mx7d_19x19_lpddr3_arm2_nand_config Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-10546-1 imx: mxsfb include fb.hPeng Fan
Include fb.h in mxsfb.h. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-10839: arm: imx: mx7d 19x19 lpddr3 arm2 board supportAdrian Alonso
* Add mx7d_19x19_lpddr3_arm2 target board supprt * Enable i2c, spinor, usb, usdhc, qspi, enet, uart * Build targets mx7d_19x19_lpddr3_arm2_defconfig mx7d_19x19_lpddr3_arm2_eimnor_defconfig - Set EIMNOR settings for Intel Sibley Asynchronous mode - Set flash sector size for 256kb (erase block size) Signed-off-by: Adrian Alonso <aalonso@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-10873-1 imx:mx7d use pmic frameworkPeng Fan
Use pmic framework to simplify code and make code clean. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-10865 imx: mx6ulevk: Add android supportYe.Li
Add android features booti, fastboot and recovery to i.MX6UL EVK board. Since there is no user button on the board, we can't implement the recovery by using button. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-10852 imx: mx6ul_ddr3_arm2: Add support for NAND bootYe.Li
Since the NAND has two pins conflict with SD2, when NAND is enabled, we must disable SD2. So the CONFIG_SYS_FSL_USDHC_NUM needs configure to 1 and should be moved to under defining CONFIG_SYS_USE_NAND. New build target for NAND boot: mx6ul_ddr3_arm2_nand_config Signed-off-by: Ye.Li <B37916@freescale.com>