summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-09MLK-11408-1 imx: mx7d: Add mx7d RDC driver supportYe.Li
Add the peripherals/masters definitions and registers base addresses for mx7d RDC. Enable the RDC driver by setting CONFIG_MXC_RDC. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09tools/imximage: set DCD pointer to NULL when its length is 0Baruch Siach
When dcd_len is 0 the Write Data command that the set_dcd_rst_v2() routine generates is empty. This causes HAB to complain that the command is invalid. --------- HAB Event 1 ----------------- event data: 0xdb 0x00 0x0c 0x41 0x33 0x06 0xc0 0x00 0xcc 0x00 0x04 0x04 To fix this set the DCD pointer in the IVT to NULL in this case. The DCD header itself is still needed for detect_imximage_version() to determine the image version. Conflicts: tools/imximage.c cherry-picked from http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=873bf926bfbb0a667158261813115fa6819661b7 Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Stefano Babic <sbabic@denx.de> (cherry picked from commit 873bf926bfbb0a667158261813115fa6819661b7)
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-09MA-6987 the value of vmalloc on Kernel command line still display 400M after ↵zhang sanshan
we change it to other values(sabresd dq and auto 6qp 0812 daily build) Correct the bootargs which is printed. It should be newbootargs rather than bootimage's bootargs. Signed-off-by: zhang sanshan <b51434@freescale.com>
2016-03-09MLK-11320 ARM: imx7d: disable wdog powerdown timer for LPSRAnson Huang
In LPSR mode, wdog will be reset when resume, need to disable wdog powerdown timer to avoid system reset after timeout setting of 16 seconds. Signed-off-by: Anson Huang <b20788@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-11281-1 ARM: imx7d: add lpsr resume support for imx7dAnson Huang
For imx7d 12x12-lpddr3-arm2 board, when system enters LPSR mode and waked up, ARM core will be reset and uboot needs to be executed first, the LPSR register contains a resume entery, if this entry is non-zero, then it means it is a resume from LPSR mode, uboot plug in code needs to make DRAM exit from retention mode then jump to the entry directly, otherwise, it is a cold boot, normal boot process will be performed. 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-11299 ARM: imx7d: initialize PMIC standby mode and voltageAnson Huang
Datasheet Rev-B defines standby voltage as 1V for i.MX7D, we add 25mV for board level IR drop. Signed-off-by: Anson Huang <b20788@freescale.com>
2016-03-09MLK-10957: ARM: mx6qp: do not turn off PURobin Gong
There is narrow window that PRE driver is ready but GPU driver probe later, and the later GPU driver turn on PU may cause 'PRE hang' issue. To simplify thing, do not turn off PU in u-boot. Signed-off-by: Robin Gong <b38343@freescale.com> (cherry picked from commit 6b0787b726e2ff32210d742d93ecd3f4bb2ae402)
2016-03-09MLK-11304 MX6 SabreSD: Disable HDMI detectPeng Fan
As the HDMI splash screen feature is not well supported, we should not set it to be the default display. In case, users leave the 'panel' uboot environment variable empty and connect the board with a HDMI monitor, the HDMI detect funtion will work and enable the HDMI splash screen. So, this patch disables HDMI detect function so that users may only explicitly set the 'panel' variable to be 'HDMI' to use HDMI splash screen. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Signed-off-by: Liu Ying <Ying.Liu@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MA-6928 Bootargs cannot be setzhang sanshan
The bootargs is not set correctly. The final bootargs consist of uboot's bootargs and bootimg's bootargs. This patch set bootimg's bootargs as final bootargs if uboot's bootargs is not set. And take uboot's bootargs as final bootargs if uboot's bootargs is set. Signed-off-by: zhang sanshan <b51434@freescale.com>
2016-03-09MA-6924 [Android_MX6_MX7] fastboot: 'fastboot reboot-bootloader' do not workzhang sanshan
'fastboot reboot-bootloader' is took as 'fastboot reboot' in V2015.04. The length of fastboot command is decided by the length of cmd_dispatch_info's cmd. So need put reboot-bootloader in front of reboot. Signed-off-by: zhang sanshan <b51434@freescale.com>
2016-03-09MLK-11275 imx: mx6ul: Fix otg1 id pin pad setting on 6ul DDR3 ARM2Ye.Li
This pin is missed to change in patch: "MLK-11230 imx6: USB: Modify OTG ID pin pad setting to pull up" Should set it to pull down at default. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11270 ARM: imx: correct the pmic standby voltage of sw1ab on i.mx6ulBai Ping
The SW1AB on PMIC is used for ARM_SOC_IN supply, set the standby voltage to 0.975V to save power when system is in DSM mode. Signed-off-by: Bai Ping <b51503@freescale.com>
2016-03-09MLK-10932-3 common: autoboot: need to disconnect with pc for usb bootPeter Chen
For USB boot, eg, mfgtool programming case, some laptops/pcs may not work properly if the board do not disconnect until linux kernel usb driver initialization process, finishes the ROM code connection at u-boot can fix this problem, and this was the original work flow when mfgtool flow was introduced at u-boot. Tested-by: Spring Zhang <b17931@freescale.com> Tested-by: Zhang Sanshan <b51434@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com>
2016-03-09MLK-10932-2 ARM: imx7: imx-regs: add disconnect_from_pc APIPeter Chen
Add disconnect_from_pc API which is used to disconnect the connection with PC which is established at rom code. Tested-by: Spring Zhang <b17931@freescale.com> Tested-by: Zhang Sanshan <b51434@freescale.com> Signed-off-by: Peter Chen <peter.chen@freescale.com>
2016-03-09MLK-10932-1 ARM: imx6: imx-regs: add disconnect_from_pc APIPeter Chen
Add disconnect_from_pc API which is used to disconnect the connection with PC which is established at rom code. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2016-03-09MLK-11238 imx: mx7d fix usdhc pad settingsPeng Fan
To CD/VSELECT/RST, should use same pad settings with USDHC_PAD_CTRL, because default NO_PAD_CTRL's settings is 100K Pull-Down. But, we need pull-up for CD/VSELECT/RST. Also some board provides external pull-down/up, we'd better use internal pull-up for these pad settings. To mx7d_12x12_lpddr3_arm2: If no card plugged in, "mmc dev 1" will show "Card did not respond to voltage select". After apply this patch, it will show "MMC: no card present". To mx7dsabresd: Alougth without this patch, if no card plugged in sd1, still correct msg "MMC: no card present", anyway we'd better use pull-up. 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-2 android: Add fastboot command "reboot-bootloader" supportYe.Li
enable fastboot command: "fastboot reboot-bootloader" After type this command, the board will reboot to bootloader mode. Set ANDROID_FASTBOOT_BOOT flag in SNVS_LPGPR before reboot. 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-11237 imx: mx6qpsabreauto update ddr script to 1.07Peng Fan
Update ddr script to version 1.07: 1. Change MDCCR from default value to 0x24912492, it will improve DDR duty cycle 2. The MMDC reorder bypass option, which has better DRAM performance URL: http://compass.freescale.net/livelink/livelink?func=ll&objId=234335046&objAction=browse&viewType=1 Test Results: 3 boards passed 48 hours memtester stress test. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11230 imx6: USB: Modify OTG ID pin pad setting to pull upYe.Li
Set the ID pin pad to pull up not the pull down at default, otherwise we can't enter the device mode, but always detect as host. After this change we have to use portA cable to play as host, and use portB cable for device. 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-11217 imx: mx6ul: Modify QSPI PAD DSE to 120ohmYe.Li
The current pad DSE for QSPI is 60ohm. Per hardware team measurement, this setting cause too strong drive to clock and data signals. Need to change the DSE to 120ohm for better signal quality. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11216-2 imx: mx7d-ddr3 remove epdc qos settingsPeng Fan
Remove epdc qos settings from plugin.S, since set_epdc_qos does same thing. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11216-1 imx:mx7d_12x12_ddr3_arm2 add missed Kconfig filesPeng Fan
Add missed Kconfig files for mx7d_12x12_ddr3_arm2 board. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11211 lcd: fix build warningPeng Fan
Fix build warning: common/lcd.c: In function 'lcd_clear': common/lcd.c:166:6: warning: variable 'bg_color' set but not used [-Wunused-but-set-variable] int bg_color; ^ common/lcd.c: In function 'lcd_setmem': common/lcd.c:296:2: warning: format '%d' expects argument of type 'int', but argument 2 has type 'u_long' [-Wformat=] debug("LCD panel info: %d x %d, %d bit/pix\n", panel_info.vl_col, ^ common/lcd.c:296:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'u_long' [-Wformat=] Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11201 mx7: clock: Fix PLL divider for the 100MHz caseFabio Estevam
We should divide the 1000MHz ENET PLL clock by 10 in order to achieve 100MHz, so fix the divider accordingly. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
2016-03-09MLK-11159-2 Revert "MLK-11028 imx: mx6qp change L2 prefetch offset to 0"Robby Cai
This reverts commit 2bc93d766dee5d5dc33035446f82622c4f1fb784. After further investigation, find L2 prefetch offset setting of 0xF is not the root cause for USB stress reboot failure. With the fix in USB driver, and L2 prefetch offset setting of 0xF, the reboot stress test has passed 4-days both on imx6q and imx6qp sabreauto board. Signed-off-by: Robby Cai <r63905@freescale.com> (cherry picked from commit 6e9282c2567b2820699fa55d2c6bf0ab78e992d6)
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-11121 imx: mx6qpsabreauto use correct cfg filePeng Fan
IPU on/ L2 on --> nand fail IPU close/ L2 on --> nand ok IPU on/ L2 close --> nand ok This problem is because mx6qp.cfg should be used for mx6qpsabreauto, but not imximage.cfg which is for mx6qsabreauto. 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-11101 imx: mx6: Move the set_wdog_reset out of CONFIG_LDO_BYPASS_CHECKYe.Li
Since the 6ul does not enable the CONFIG_LDO_BYPASS_CHECK, but have to use the set_wdog_reset function. Need to move the funciton out of CONFIG_LDO_BYPASS_CHECK to resolve build issue. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11099 imx: mx6ul: Enable the Watchdog WDOG_B signal outputYe.Li
When using watchdog timeout in kernel, the reset does not output the WDOG_B signal, so the power supply won't be reset. To solve the problem, we enable it in u-boot. Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11028 imx: mx6qp change L2 prefetch offset to 0Peng Fan
Change L2 prefetch offset to 0 to make system stable. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11035 imx: mx6 update thermal slope factorsPeng Fan
From temp sensor guys: " I confirmed the math with him(had do the accuracy study) today. The new, final equation is: Tmeas = (Nmeas - n1) / slope + t1 + offset n1= fused room count t1= 25 offset=3.580661 slope= 0.4148468 – 0.0015423*n1 " 87723f903454aaf17336e0fe9098ea7911c19f3c update the thermal with not accurate slope parameters. This patch fix it. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
2016-03-09MLK-11090 imx: mx6ul: Add build target for emmc boot on ddr3 arm2 boardYe.Li
The mx6ul ddr3 arm2 board needs rework to enable the emmc. Since the pin used by emmc are multiplexed with SD1 and QSPI, the SD1 and QSPI can't work. The u-boot build target for emmc is: mx6ul_14x14_ddr3_arm2_emmc_config Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11064 imx: mx6qp: Adjust AQos settings for peripheralsYe.Li
To resolve USB camera bandwidth issue, the patch sets recommended AQoS setting from IC team value for peripheral and only on imx6qp. The address is: 0xbb0608, the value is: 0x80000201 Signed-off-by: Ye.Li <B37916@freescale.com>
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-11050 ARM: imx6: configure the PMIC_STBY_REQ pin as open drainBai Ping
Configure the PMIC_STBY_REQ pin as open drain 100K according to the design team's requirement for the PMIC_STBY_REQ pin. Signed-off-by: Bai Ping <b51503@freescale.com>
2016-03-09MLK-11033 imx: mx7d: Update the lpddr3 script to 3.0.3 revYe.Li
Update the DDR script for i.MX7D 12x12 LPDDR3 ARM2 board and i.MX7D 19x19 LPDDR3 ARM2 board to file "7D_lpddr3_0_3.ds5" Updated items: Changes DRAMTMG2 WR2RD from 7 to 8. Compass link for this script: http://compass.freescale.net/livelink/livelink?func=ll &objid=233861153&objAction=browse&sort=name Test results: Passed overnight test on two MX7D 12x12 LPDDR3 ARM2 board Passed overnight test on one MX7D 19x19 LPDDR3 ARM2 board Signed-off-by: Ye.Li <B37916@freescale.com>
2016-03-09MLK-11036 imx: mx6ul fix plugin build fail and update ddrPeng Fan
Since directory name changed, need to change it in imximage.cfg, or we will get "Can't stat board/freescale/mx6ulevk/plugin.bin". Since this commit 7331a4cc0853722b4c3addf1927a2797f39f5de2 missed to update ddr, here update the plugin code. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>