Ye Li [Wed, 15 Feb 2017 08:34:50 +0000 (16:34 +0800)]
MLK-13929-1 video: Add MIPI DSI host controller driver for i.MX7ULP
Add the host driver base from kernel for MIPI DSI controller on i.MX7ULP.
The controller provides a DPI-2 interface for LCDIF video stream, and a APB interface
for packet transmission.
The driver provides APIs to register a MIPI panel device and its driver. The panel
driver can use the write packet function provided by the host driver to send control
packets to panel device via APB interface.
MIPI DSI has its PHY and dedicated PLL. The driver will setup them when enabling the DSI
host.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e02115dd1c5d36ec06eabcb5a0b8e09aaf0f29a0)
(cherry picked from commit
1e984bba8cd961daa4c5bf994a6a90a72cc2f114)
(cherry picked from commit
a4f1e8b67658d4b828d792d5b28cbcf4e7600479)
Ye Li [Thu, 16 Mar 2017 09:02:56 +0000 (17:02 +0800)]
MLK-14445-6 mx7ulp_evk: Add USB OTG0 support
Porting codes to support USB OTG0 on the EVK board. Convert
to use DM USB driver.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
b4e01a67a0740c524e7522da7ace0488f86261db)
(cherry picked from commit
23144983d3347f8f91695cea73aab8558cc66629)
Ye Li [Thu, 16 Mar 2017 07:59:26 +0000 (15:59 +0800)]
MLK-14445-4 mx7ulp: Fix wrong i2c configuration name
Wrong I2c driver configuration name is used in codes, so I2c driver is
not built. Correct it.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
d54d59ecc1800a46d5ed897448496b8d73a822aa)
(cherry picked from commit
d7983b7aeaa669790c918670a2f9f9d74c9c00a5)
Ye Li [Thu, 16 Mar 2017 05:40:01 +0000 (13:40 +0800)]
MLK-14445-3 mx7ulp_evk: Enable wdog driver for reset cpu
Enable the CONFIG_ULP_WATCHDOG in defconfig, so that reset command
can work.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
da1c290f0b890fafeb8ce29b53b764eaee53520b)
(cherry picked from commit
7a4ba3eb22732ba0d4cc47552413bad8c1d94dbe)
Ye Li [Thu, 16 Mar 2017 03:25:35 +0000 (11:25 +0800)]
MLK-14445-2 mx7ulp_evk: Add QSPI flash support
Porting the QSPI flash board support from v2016.03, and convert to use
DM QSPI driver.
Since we need to support QSPI at default in u-boot, change the default
DTS file to qspi enabled DTS.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
41895cd598be6c4a64fc4fec521120e4962abc28)
(cherry picked from commit
b4698ce0e5b6952a88702075ce905a059da277d9)
Ye Li [Thu, 16 Mar 2017 05:31:38 +0000 (13:31 +0800)]
MLK-14445-1 mx7ulp: select CONFIG_MX7ULP for EVK board
Since many drivers need this CONFIG_MX7ULP to distiguish the settings
for i.MX7ULP only. So have to select this kconfig for EVK board.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
a4d958d120d29f6f79e9023715a42bac582f4c76)
(cherry picked from commit
ed4a4a9d1c695f8fafd31e92059b9d3e8e696708)
Ye Li [Tue, 14 Feb 2017 05:39:10 +0000 (13:39 +0800)]
MLK-13925-1 mx7ulp_evk: Update LPDDR3 script to V1.4
Update LPDDR3 script from v1.2 to v1.4 EVK_IMX7ULP1_LPDDR3_320MHz_1GB_32bit_V1.4.inc
with the changes below:
Version 1.3
-Update the precharge command to CMD=01 at the DDR initialization phase
Version 1.4
-remove unimplemented registers
Write data bit delay --refer to the DDR_TRIM bits in IOMUXC1_DDR_SW_PAD_CTL_PAD_DDRn
File:
http://compass.freescale.net/livelink/livelink?func=ll&objid=
235761218&objAction=browse&sort=name&viewType=1
Test:
One EVK board passes overnight stress test.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e3343cb38eac2cc69b58247b5adcb500e5f19834)
(cherry picked from commit
f5dc17e6579f677eebe1df59570737f4d51430dd)
Ye Li [Tue, 14 Feb 2017 03:39:12 +0000 (11:39 +0800)]
MLK-13924 mx7ulp: Fix APLL num and denom setting issue
For the current APLL setting, as we want the APLL PFD0 to meet DDR clock 320Mhz requirement.
We set MULT to 20, NUM to 4 and DENOM to 2, to get final 22 multiplier. But according to the RM,
the NUM should always be less than the DENOM. So our setting violates the rule.
Actually the ROM has already set the MULT to 22 and leave NUM/DENOM in default value. The calculated APLL PFD0 clock
is 318.9888Mhz, which also meet the DDR requirement.
To fix the issue, we remove the PLL settings in DCD to use default value from ROM, and only set the PFD0 FRAC.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
8cc70b1ded5309dee522aa00b43bd702a209ba51)
(cherry picked from commit
4eb0fbdacfe0678e41d1ebf35c7863736e83637e)
Ye Li [Tue, 14 Feb 2017 02:30:18 +0000 (10:30 +0800)]
MLK-13923 mx7ulp: Fix PCC register bits mask and offset issue
The offset for FRAC and the mask for PCD are not correct. If we set FRAC, we
can't get the right frequency. Fix them to correct value.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
079db9559c06c5e68ab8f6cd67ec4f5115dd2d59)
(cherry picked from commit
cd293a66df0409c6d030c22f872353e8f2613f03)
Bai Ping [Thu, 9 Feb 2017 05:50:32 +0000 (13:50 +0800)]
MLK-13899 ARM: mx7ulp: Correct the clock index on imx7ulp
On i.MX7ULP, value zero is reserved in SCG1 RCCR register,
so the val should be decreased by 1 to get the correct clock
source index.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit
7c9a3573ec0191f1e0bea12956346a5eab2db43a)
(cherry picked from commit
de38b748fcd138ddcae4dda2bcfbf04466c33d21)
(cherry picked from commit
36dded26c8bbbdf57a5588604a14439e10fbdd8b)
Bai Ping [Thu, 19 Jan 2017 10:27:34 +0000 (18:27 +0800)]
MLK-13761 board: imx7ulp: Fix system reset after a7 rtc alarm expired.
The board will reboot if A7 core enter mem mode by rtc, then M4 core
enter VLLS mode after the RTC alarm expired. Enable the dumb PMIC mode
to fix this issue.
Since i.MX7ULP B0 moves the SNVS LP into M4 domain, A core can't access
it. So check the CPU rev and not apply the settings for B0.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit
5aa5974f487e0b4c2e963a86203161c5f05e2fdf)
(cherry picked from commit
f8e921300640044f25e6285e72969ecd2e7acbfd)
Ye Li [Fri, 23 Dec 2016 04:01:06 +0000 (12:01 +0800)]
MLK-13645 mx7ulp: Modify FDT file to disable SD3.0 for mfgtool
Since the SD3.0 kernel driver needs M4 image support, this causes problem to mfgtool.
To decouple the relationship, we modify the FDT file in u-boot to disable
SD3.0 when booting from USB for mfgtool. So the kernel won't depend on M4 image.
Signed-off-by: Ye Li <ye.li@nxp.com>
Tested-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit
1826d6e4dc732521190c742f812193be95eea211)
(cherry picked from commit
589812f232a7a07873a74e5506153977ce11dce2)
(cherry picked from commit
6211998daee1c9c520edaa0d2b3cdc834e7b6ce8)
Ye Li [Fri, 25 Nov 2016 06:00:55 +0000 (14:00 +0800)]
MLK-13525-1 mx7ulp: Add common plugin codes for mx7ulp
Add common plugin codes to call ROM's hwcnfg_setup and generate IVT2
header.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
58ffe85c25ff554c185d8f6fd8b6443f167227da)
(cherry picked from commit
8dc963c970f81f9cdefff0955eba6b27ca7dc17e)
(cherry picked from commit
ba08d78c8486e767c85aff9823ecfecd9f1e148a)
Ye Li [Thu, 9 May 2019 02:36:07 +0000 (19:36 -0700)]
MLK-13450-17 sf: Add Macronix MX25R6435F SPI NOR flash to flash parameters array
On mx7ulp EVK board, we use MX25R6435F NOR flash, add its parameters
and IDs to flash parameter array. Otherwise, the flash probe will fails.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
0d6bee19bb3e87ebf984fdc218b3b020006cb2e9)
Ye Li [Mon, 14 Nov 2016 09:58:04 +0000 (17:58 +0800)]
MLK-13450-7 mx7ulp: Add M4 core boot support when using single boot mode
The single boot mode in MX7ULP will only boot up A7, the M4 is running in ROM
by checking entry from SIM0 GP register.
In this patch, We bind M4 image with u-boot.bin by allocating a section for m4 image.
So the whole image (included M4 image) will be loaded by A7 ROM into DDR. Then
when u-boot is up, it will try to load M4 image into TCML and boot it there.
Since M4 image will not be relocated in u-boot codes, we must load it during
board_f. Current implementation put it in arch_cpu_init to get M4 booted
as quick as possible.
We requires the M4 image with IVT head and padding embedded, not a RAW binary. The
image should be same as what is used for M4 QSPI boot in dual boot mode.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
04163dbd4f6190f310fff17b53b4bc7b8370ba89)
(cherry picked from commit
81b5ea14493ef25a6cca22bc5651ec3e93e941f3)
(cherry picked from commit
1e4414da2e9a671896af1af887ab710489a2007e)
Ye Li [Tue, 13 Dec 2016 07:33:41 +0000 (15:33 +0800)]
MLK-13602-3 mx6ullevk: Enable module fuse checking for mx6ull boards
Enable the module disable fuse checking configurations, and ENET fuse checking during
ENET setup.
Signed-off-by: Ye Li <ye.li@nxp.com>
Tested-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit
d2192a3909be8ab9433082e7c04c917489b28e25)
(cherry picked from commit
5fa7d431db1c5eda903f211a99c426d8d57293bd)
(cherry picked from commit
5fc6fe6b0f85f61bc60712af5b8cd55e7b8b0789)
Ye Li [Tue, 15 Mar 2016 14:16:54 +0000 (22:16 +0800)]
MLK-12483-5 mx6ul: Enable module fuse check EVK board
Enable the configurations CONFIG_MODULE_FUSE and CONFIG_OF_SYSTEM_SETUP for
module fuse check. And modify board level codes for SD, FEC and EIM.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9232e9f7637afa3b71b43ab2d1361582ec5a080a)
(cherry picked from commit
687b586bf7d3b0d2f796c8ea768e4fb450079adb)
(cherry picked from commit
f1cdd3b004b15d950b35f3ef625af23c2f106f5a)
Ye Li [Wed, 16 Mar 2016 05:50:54 +0000 (13:50 +0800)]
MLK-12483-4 mx6: Modify drivers to disable fused modules
Add the fuse checking in drivers, when the module is disabled in fuse,
the driver will not work.
Changed drivers: BEE, GPMI, APBH-DMA, ESDHC, FEC, QSPI, ECSPI, I2C,
USB-EHCI, GIS, LCDIF and EPDC.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
1704e116f9b39aeb99201919a18bc2b1e19a980e)
(cherry picked from commit
2d3b5df8530cd5ef883750378838dea7c40259af)
(cherry picked from commit
6e8c9ae136bee8ec0121c1db4b935510caad09db)
Ye Li [Wed, 4 Apr 2018 08:46:32 +0000 (01:46 -0700)]
MLK-18156-3 configs: mx6ullevk: Update build configs
Add new build configs for 9x9 evk and NAND/QSPI boot.
Update 14x14 EVK build config to align with v2017.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e93235cbcf624a476c95f4e9e8fd51e667ab4aa2)
Ye Li [Wed, 4 Apr 2018 08:45:41 +0000 (01:45 -0700)]
MLK-18156-2 mx6ullevk: Update board level codes
To align with v2018.03, add functions:
1. Support GPMI NAND
2. Support LCD splash screen
3. Add 9x9 EVK board support with LPDDR2 used
4. Update PMIC and LDO bypass for 9x9 EVK
5. Support two ethernet controllers
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
154d6c905a848eed3bcc1ae2e142da3508a61b92)
Ye Li [Wed, 4 Apr 2018 07:52:22 +0000 (00:52 -0700)]
MLK-18156-1 dts: mx6ullevk: Add DTS for i.MX6ULL EVK boards
Update the DTS files for 14x14 EVK and 9x9 EVK to align with
v2018.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
0519c07b74ee3eb6818d71abb02d256ed574bf61)
Ye Li [Wed, 4 Apr 2018 06:19:07 +0000 (23:19 -0700)]
MLK-18155-3 configs: mx6ulevk: Update build configs
Align the build config files with v2018.03.
Add config files for reworked eMMC, NAND boot, QSPI boot
and plugin support. Move original defconfig to _spl_defconfig to keep
SPL support.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
bf3882af8ddc804bc35a16dd73034b88eab5e4e2)
Ye Li [Wed, 4 Apr 2018 05:58:09 +0000 (22:58 -0700)]
MLK-18155-2 mx6ulevk: Update board level codes
Add functions below to align with v2018.03
1. Switch from SPL to Non-SPL
2. Add plugin and DCD for DDR initialization
3. Add two ethernet controllers support
4. Add LCD splash screen
5. Add GPMI NAND support
6. Add LDO bypass settings
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
35588e570f0232c56ac5b711bb47212205cccdd1)
Ye Li [Wed, 4 Apr 2018 05:54:49 +0000 (22:54 -0700)]
MLK-18155-1 dts: mx6ulevk: Add DTS for i.MX6UL EVK boards
Update imx6ul.dtsi file to align with kernel
(commit
f3834c73366f985fef6c1fdaaa129dfceb6151cb)
Remove the MMC alias due DM MMC will used as device index.
Add the DTS files for 14x14 EVK, 9x9 EVK, etc.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
c2e510834d88b4f3a04af240d9585d4ab3c6ac9c)
Ye Li [Wed, 4 Apr 2018 02:50:27 +0000 (19:50 -0700)]
MLK-18154-3 configs: mx6sllevk: Update build configs
Align the build configs with v2018.03, add new config for EPDC enabled.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
bbc43351ab3da32bcdb33ad1d9aa0bd6c7d7f193)
Ye Li [Wed, 4 Apr 2018 02:48:37 +0000 (19:48 -0700)]
MLK-18154-2 mx6sllevk: Update board level codes
Add EPDC and LCD splash screen display support
Update environment settings to align with v2018.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
5c2afb47a6ce15e6a0830771b09452d346c87688)
Ye Li [Wed, 4 Apr 2018 02:41:18 +0000 (19:41 -0700)]
MLK-18154-1 dts: mx6sllevk: Update DTS to align with v2018.03
Update DTS, DTSi and clock binding file for mx6sllevk:
1. Fix USDHC pad settings
2. Add pin settings for i2c bus force idle
3. Fix non-removable bug for usdhc2
4. Update clock
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
26bd5feefec059a0176768e89016cdc289839103)
Ye Li [Tue, 3 Apr 2018 08:59:43 +0000 (01:59 -0700)]
MLK-18153-3 configs: mx6slevk: Update build configs for mx6slevk
Add two build configs for EPDC and plugin.
Update default mx6slevk defconfig and spinor defconfig to align
with v2017.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
c635b7f4f0eeb29510896f0df2715b8c1fb59553)
Ye Li [Tue, 3 Apr 2018 08:53:04 +0000 (01:53 -0700)]
MLK-18153-2 mx6slevk: Update board codes to align with v2018.03
Porting functions from v2018.03 in board level codes:
1. Add EPDC support
2. Update environment settings
3. Add LDO bypass and update PMIC settings
4. Add keypad support
5. Add plugin support
6. Add DM ethernet driver support
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
88232c1cbf9389e82f8e00c1cc3fcd6456292ed4)
Ye Li [Tue, 3 Apr 2018 08:49:54 +0000 (01:49 -0700)]
MLK-18153-1 dts: mx6slevk: Update DTS and DTSi to align with v2018.03
Copy the DTS and DTSi from 4.14 kernel.
Changes in DTS specified for u-boot:
1. Add alias for mmc and usb
2. Add pin settings for i2c bus force idle
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e669373fc5f861750b2b7b59cde6c31c43cf61fb)
Ye Li [Tue, 3 Apr 2018 07:31:00 +0000 (00:31 -0700)]
MLK-18152-6 configs: mx6sxsabreauto: Update and add build configs
Update mx6sxsabreauto defconfig to align with v2018.03.
Add other configs to support QSPI1 boot, NAND boot and plugin.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
779b3bd0ede4050689b12982bfa2abe1d07b566e)
Ye Li [Tue, 3 Apr 2018 07:27:48 +0000 (00:27 -0700)]
MLK-18152-5 mx6sxsabreauto: Update board codes to align with v2018.03
Update DM PMIC settings and LDO bypass support.
Add BMODE support.
Add LVDS and LCD splash screen support
Add two ethernet controller support
Update environment settings
Add plugin support
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
beaea14e18f138249521f0de8a8ef902d555cb89)
Ye Li [Tue, 3 Apr 2018 07:21:44 +0000 (00:21 -0700)]
MLK-18152-4 dts: mx6sxsabreauto: Update DTS to align with v2018.03
Copy the DTS from 4.14 kernel
Compared with kernel DTS, the changes in DTS for u-boot:
1. Add pin settings for supporting i2c bus force idle.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
67d0c3427562a81713ac8d00f5a976ac2942cb1a)
Ye Li [Tue, 3 Apr 2018 04:00:43 +0000 (21:00 -0700)]
MLK-18152-3 configs: mx6sxsabresd: Update and add build configs
Update mx6sxsabresd defconfig to align with v2018.03 with DM
ethernet enabled.
Add other configs to support QSPI2 boot, reworked eMMC, M4 fastboot and
plugin.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
8b5dd6ebeedf3325aacc3f61c1ae77b584d8756a)
Ye Li [Tue, 3 Apr 2018 03:52:12 +0000 (20:52 -0700)]
MLK-18152-2 mx6sxsabresd: Update board codes to align with v2018.03
Add emmc support which needs board rework.
Add I2C2.
Update DM PMIC settings and LDO bypass support.
Add BMODE support.
Add LVDS and LCD splash screen support
Add PCI power and reset GPIO and disable PCI at default.
Update QSPI settings for QSPI boot and M4 fastup.
Update environment settings
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
e74716b6e78f016226dc9f800b04574f545d9367)
Ye Li [Tue, 3 Apr 2018 03:45:16 +0000 (20:45 -0700)]
MLK-18152-1 dts: mx6sxsabresd: Update and add mx6sxsabresd DTS files
Update i.MX6SX dtsi file and relevant DTS header files.
Add the imx6sx-sdb-emmc DTS file for reworked eMMC board.
Changes in DTS and DTSi:
1. Add spi0 and spi1 alias for qspi1 and qspi2.
2. Add USB alias for usb0 and usb1
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9d8838cb1409c265db3dd0b64219e1286202c10d)
Ye Li [Tue, 7 May 2019 07:42:52 +0000 (00:42 -0700)]
MLK-18151-3 config: mx7dsabresd: Update config files to align with v2018.03
Add config files to support NAND boot.
Add config file for plugin.
Add config files for RevA board and RevB boards.
Remove the SYS_TEXT_BASE
Rename mx7dsabresd_qspi_defconfig to mx7dsabresd_qspi1_defconfig
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Mon, 2 Apr 2018 08:33:43 +0000 (01:33 -0700)]
MLK-18151-2 mx7dsabresd: Update codes to align with v2018.03
1. Add plugin support
2. Update to latest ddr3 script v2.0 version
refer commit (
b4db09bc0fc96e7c7461afade6346e0700ad582f)
3. Add ddr3 script for TO1.1
5. Update header file for NAND boot settings.
6. Remove the wdog WCR bit 4 clear. Since we have implemented reset_cpu for mx7d.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
16e51b5b59700a49c48cdfd8b308aa8793eeb44a)
Ye Li [Tue, 7 May 2019 05:35:22 +0000 (22:35 -0700)]
MLK-18151-1 dts: mx7d: Update imx7d dts and binding files
Porting the the imx7d dtsi, dts files and binding files from 4.14 kernel
(
e88899128d81ea8b82dfd7d294572f21c388e568)
New dts files are added to support GPMI-WEIM, RevA boards.
Changes in DTS and DTSi:
1. Add USB alias
2. Modify the SPI alias for qspi
3. Disable USDHC2 since it is for SDIO
4. Add i2c force idle support pins
5. Add back mmc alias by comparing with 2018.03.
6. Update clock, pin and reset binding files
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Mon, 13 Mar 2017 14:09:03 +0000 (22:09 +0800)]
MLK-14418-12 imx: mx7dsabresd: Update LCD splash screen codes
Update LCD setup codes to use the parameters structure used for all
i.mx platforms, discard to use videmode environment variable.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
3b0609ca267baaf6a78bebaccc6896e6508d1844)
(cherry picked from commit
e97965bbd8f9346d909cda433cafd04a750d9867)
Peng Fan [Tue, 7 Feb 2017 02:22:02 +0000 (10:22 +0800)]
MLK-14418-8 imx: mx7dsabresd: add epdc support
Add epdc support from v2016.03.
Add a epdc specified DTS file for using epdc
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
ab2f9e136f5da034a8335dc8ca276a54367132e8)
(cherry picked from commit
ccfa28aec4093ac30a9b76d973f0288ab9c8f92c)
Peng Fan [Tue, 7 Feb 2017 01:44:16 +0000 (09:44 +0800)]
MLK-14418-7 imx: mx7dsabresd: add FEC DM support
Add FEC2 and convert to use FEC DM driver.
Add board rev check.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
0137915ed40e2da5a6de4d30574d08e2bf3a0363)
(cherry picked from commit
a9678f16455526b171a7d7118ba5865336964477)
Ye Li [Tue, 7 May 2019 10:51:04 +0000 (03:51 -0700)]
MLK-21851 mxs_nand: Update compatible string for i.MX6SX
The iMX6SX uses compatible string "fsl,imx6sx-gpmi-nand" for gpmi
node in DTS, so update the driver for the string
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye.Li [Mon, 13 Apr 2015 09:18:14 +0000 (17:18 +0800)]
MLK-10647 armv7: Fix Dcache disable issue on i.MX7
The issue on the i.MX7D is that, there is one cache-able memory access
between the L1 and L2 cache flush by calling the flush_dache_all->
v7_maint_dcache_all() [Flush L1 and L2 cache) which written in the C code.
L1-cache-flush -> This will flush L1 cache to L2 cache in the end.
Cache-able memory access -> This will have the chance cause the L1 line-fill
with dirty data from L2 cache(L1 cache-line dirty,
L2 clean)
L2-cache-flush -> This will only flush L2 cache to L3, but still
some dirty data on the L1 cacheline.
After C & M bit clean, -> The dirty data on the L1 cache line lost, which will
cause memory coherent issue if that dirty cache line
has some useful data
This patch should works fine on the i.MX6 and i.MX7.
The second cache flush have zero impact on the i.MX6, but this is really need for
the i.MX7D platform due to the L1 line-fill during the first dcache_flush.
And the second flush will not bring in the L1 dirty cache line due to the C bit is
clear now, which means the dcache is disabled.
Acked-by: Jason Liu<r64343@freescale.com>
Reviewed-by: Jason Liu<r64343@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
f5d5f07fba936c4bb05c887de9d72fb75b3dc0f2)
(cherry picked from commit
86c784cf4c4b633d37a76de7d47155c08f75dc82)
(cherry picked from commit
d85cd484e6825631aa1ab572e5e0539f2191d795)
(cherry picked from commit
2b29c1873c2293abe1c4b361392521223b9c9ecf)
(cherry picked from commit
3eaf56494f3000f841531e8c219cf3dd9ca024f7)
(cherry picked from commit
fd1ecbfba9ba0fb52a757a70a2fcbeb325508be2)
Peng Fan [Tue, 23 Feb 2016 02:12:20 +0000 (10:12 +0800)]
MLK-12425-6: mx7: add epdc qos settings
This EPDC/EPXP QoS setting is needed for EPDC stress test to pass.
Signed-off-by: Robby Cai <r63905@freescale.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
1b32518d1c27f05eb84a4cb93594710354b2e343)
(cherry picked from commit
8fd2dbe9097b09715f84e1c0c17dcd6a6351fb35)
(cherry picked from commit
a92a02f984aa7871aa5bb1a83e0e3f444796fedd)
Peng Fan [Thu, 19 Mar 2015 02:10:07 +0000 (10:10 +0800)]
MLK-10774-2 HDMI: splash screen function enhancement
-Change HDMI video mode to VGA.
-Add pixel clock fraction part setting in IPU driver,
fix video mode timing issue.
-Add overflow state clear workaround,
fix kernel hang in HDMI driver issue.
-Correct IPU clock to 264MHz.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
5028519b434d5dfbe53c48ac4b115ff8b69bbac7)
(cherry picked from commit
8dcbd43b971616fb67dc3b2af32e2d33f68ed0ce)
(cherry picked from commit
46b20bec72b53f10c1edf0bd8add5b356fbd7c42)
Liu Ying [Mon, 27 Apr 2015 10:07:47 +0000 (18:07 +0800)]
MLK-10747-2 video: ipu: Enable/disable LDB_DI clock when necessary
This patch adds enable/disable hooks support for ldb_di[0/1] clocks
and enables/disables them when necessary.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit
615d4c51679a6c2ee0ed4c5e3922eec76646eef1)
(cherry picked from commit
152192507c3bbaba093783d7da32b88327705c63)
(cherry picked from commit
036b71e1cd77ddb1827fd85eb7035fb7eccb7b12)
(cherry picked from commit
1e926d675270d5cbac604632319849e897c32048)
Liu Ying [Tue, 28 Apr 2015 06:20:44 +0000 (14:20 +0800)]
MLK-10747-1 video: ipu: Build ldb_di clock relevant code only for MX6 and MX53
The LDB is found in MX6 variants and MX53, so this patch makes the ldb_di clock
relevant code be built only for them.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit
3e40c7466ae7d1d6ca74011bfe69ae059d412a3b)
(cherry picked from commit
0c47d4138fd2fe8aa864160e23428b2ef95f16ae)
(cherry picked from commit
a59c901317e70da111b426db1be77f289eccbcbc)
(cherry picked from commit
e83a985b7170446b753f96e71f45bfaa67b53b08)
Han Xu [Thu, 14 Dec 2017 22:33:51 +0000 (16:33 -0600)]
MLK-17656: mtd: qspi: support read the flag status in fspi driver
support to read the flag status in driver to avoid the spi-nor framework
wait_for_ready hang issue.
Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit
767faa948d2d140b6d56ee505f81f8f57c045a3d)
(cherry picked from commit
55e83ccb588c3e953f55148161bc524b5dab7a25)
Ye Li [Wed, 10 May 2017 14:52:42 +0000 (09:52 -0500)]
MLK-14878 qspi: Fix issue when enabling DDR mode
There are two problems in enabling DDR mode in this new driver:
1. The TDH bits in FLSHCR register should be set to 1. Otherwise, the TX DDR delay logic
won't be enabled. Since u-boot driver does not have DDR commands in LUT. So this won't
cause explicit problem.
2. When doing read/write/readid/erase operations, the MCR register is overwritten, the bits
like DDR_EN are cleared during these operations. When we using DDR mode QSPI boot, the TDH bit
is set to 1 by ROM. if the DDR_EN is cleared, there is no clk2x output for TX data shift.
So these operations will fail.
The explicit problem is users may get "SF: unrecognized JEDEC id bytes: ff, ff, ff" error
after using DDR mode QSPI boot on 6UL/ULL EVK boards.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
16270556212e6c7422e87f69572c90f1afe6998b)
(cherry picked from commit
1c84e2e3ceeb0c7dce3d5a8b139e7ef6d56725bf)
Ye Li [Mon, 6 May 2019 08:58:10 +0000 (01:58 -0700)]
MLK-13450-16 fsl_qspi: Update changes for mx7ulp
The mx7ulp has small TX/RX FIFO (64Bytes) and AHB buffer size (128Bytes)
than other i.MX. Change some parameters for it.
Also found when the DDR_EN bit is set, sometime the page programming will fail
during large data programming. The 64 bytes data is not programmed into flash.
But when DDR_EN is clear, there is no such issue. Suspect this is a IC issue.
We have disable the DDR_EN for mx7ulp.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
5a69ddb7e9886e082da42ddf673415702975ee60)
Ye Li [Fri, 5 Jan 2018 02:55:03 +0000 (20:55 -0600)]
MLK-17345 mxc_ocotp: Update redundancy banks for mx7ulp B0
On mx7ulp B0, beside bank 0 and 1, the fuse bank 9, 10, 28 are changed to
Redundancy mode not ECC, so they can support to program different bits of
a word in multiple times.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
af901cae281a617063559f60761ad4e912fccd5f)
(cherry picked from commit
fe82358d1b881acb7a89d2e17036acf78d49e931)
Ye Li [Wed, 9 Mar 2016 12:59:43 +0000 (20:59 +0800)]
MLK-12527-1 mxc_keyb: Add MXC keyboard driver
The i.MX6SL EVK needs this driver in android fastboot support. Add
this driver to u-boot.
To use the driver, user must define:
CONFIG_MXC_KPD Enable the driver
CONFIG_MXC_KEYMAPPING Key mapping matrix
CONFIG_MXC_KPD_COLMAX The column size of key mapping matrix
CONFIG_MXC_KPD_ROWMAX The row size of the key mapping matrix
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
5096e572667ff41217deb4ba9b1bd15e93fa6b59)
(cherry picked from commit
e84160eaf5c057da45a227039c6f8a7911f43a82)
(cherry picked from commit
7f8757016e97adeacba256bd0cb6ad8882f6a51e)
Ye Li [Tue, 27 Mar 2018 07:45:10 +0000 (00:45 -0700)]
MLK-14930-2 dwc_ahsata: Fix memory issue in reset_sata
The reset_sata should reset the sata device info and free the probe_ent
memory. Otherwise, it will cause memory leak if we init the sata again.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
148488728486137a790a89e9b869cc938c3e0c57)
Ye Li [Tue, 27 Mar 2018 07:56:19 +0000 (00:56 -0700)]
MLK-14930-1 cmd: sata: Fix sata init and stop issue
When sata stop is executed, the sata_curr_device is not reset to -1, so
any following sata commands will not initialize the sata again and cause
problem.
Additional, in sata init implementation, the sata_curr_device should be updated,
otherwise sata will be initialized again when doing other sata commands like
read/write/info/part/device.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9bccfd01c618a5d059f332c000c42e5bf39880d9)
Ye Li [Fri, 28 Apr 2017 14:36:57 +0000 (09:36 -0500)]
MLK-14938-22 mxc_gpio: Change to get value from DR register
Currently the driver gets value from PSR register, but this register
is only for input mode. For output mode, it always return 0 not the
value we set for output.
This patch changes to use DR register, which returns the DR value for
output mode, and PSR value for input mode.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
4afc3f90943c6b117f79b66d2cd04e64f437b0c2)
(cherry picked from commit
8cca3efba0d508b2c267f8a32b302970dd05244d)
Ye.Li [Wed, 11 Jun 2014 08:21:29 +0000 (16:21 +0800)]
ENGR00315894-60 GPIO: Modify driver mxc_gpio to support RDC Semaphores
For GPIO group which shared by multiple masters, it may set in RDC
to shared and semaphore required. Before access the GPIO register,
the GPIO driver must get the RDC semaphore, and release the semaphore
after the GPIO register access.
When CONFIG_MXC_RDC is set, the features related to RDC semaphores
is enabled in mxc_gpio driver.
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
84d63e2e2ce12f714e88baad8b2325684614a7c1)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Conflicts:
drivers/gpio/mxc_gpio.c
(cherry picked from commit
c9943b9c8a78bb2c9886bfe582e82978387d8dee)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
faf94726cac8316c4342e19936f1e03ef283ace3)
(cherry picked from commit
6c0474fe0e4fc543c62b22c05c2702a881f56418)
(cherry picked from commit
7cd5fec7ce6a9ecfdaa1a9c1aaaa0d0ac18a4f86)
(cherry picked from commit
74d68c1b9f098c44992d591616372f0ec5ff13dd)
Ye Li [Tue, 4 Apr 2017 16:24:46 +0000 (00:24 +0800)]
MLK-14608 fsl_esdhc: Fix wp_enable issue
The wp-gpios property is used for gpio, if this is set, the WP pin is muxed
to gpio function, can't be used as internal WP checking.
This patch changes to examine the "fsl,wp-controller" for using internal WP checking. And
wp-gpios for using gpio pin.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
733a7fde6fea35d6f2ea18c7759a06904b655e54)
(cherry picked from commit
9da605be6d73b8fca627cdd272fce51bdc4c0b6d)
Peng Fan [Tue, 23 Feb 2016 04:43:10 +0000 (12:43 +0800)]
MLK-12434-1: imx: dynamic setting mmcdev and mmcroot
Align to imx_v2015.04, dynamic setting mmcdev and mmcroot.
Then when boot linux, we can have correct "root=/dev/mmcblk[x]p2"
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b46b99a901eb194e81fc4836ee2259ad8857f4d3)
(cherry picked from commit
6f6a828fbe7478efd5932c302e6368877107bbca)
(cherry picked from commit
bb628be4e993e98fb2fe8fc6af7b16e706d0f32d)
Ye.Li [Wed, 11 Jun 2014 07:34:49 +0000 (15:34 +0800)]
ENGR00315894-55 iMX6SX: add debug monitor support
Debug monitor will print out last failed AXI access info when
system reboot is caused by AXI access failure, only works when
debug monitor is enabled.
Enable this module on i.MX6SX.
Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
df6ac8531d498021ed379c74fc1847bd2cec7179)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
4f4ecdbf6fe2673b8ad117df1a4974bdb7e6aa4a)
(cherry picked from commit
e1c98a672e50fd0405686b74dad50680a75a8a9f)
(cherry picked from commit
5265a3052505fae2a212af292412a62b20a16f97)
Ye.Li [Thu, 12 Jun 2014 11:47:27 +0000 (19:47 +0800)]
ENGR00315894-81 gis: Add gis module
Add gis module, current gis is support vadc input.
Add power down function to lcdif driver.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
a007b00dd8ef9f773dfdebef0b1deb0990281793)
(cherry picked from commit
a31dcdafb0963381e7213c59f79a340ef27ec2e2)
(cherry picked from commit
02dfe2e4af5f51d39a51542fb0e81f93faf505bc)
(cherry picked from commit
a8e94954d8ccc44c41d77a5e356d6a99b3d45649)
(cherry picked from commit
0864a17afbc93fed72273c7d7d3be0fc8681e794)
Ye.Li [Thu, 12 Jun 2014 11:40:53 +0000 (19:40 +0800)]
ENGR00315894-80 pxp: Add pxp module
Add pxp module.
Support csc between YUV444 and RGB888 and scaling.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
4c6e1f9ed1b2f5c98a34502b44b6414593fdd290)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
92295fafcdbaa3a3fe0a63ede15f896dfc9ce0b0)
(cherry picked from commit
096a63e81a8c78b3f8bbc65a9d418aa032d62231)
(cherry picked from commit
b24cce0ad3ec9f386ca7aa231d8a2db33462f092)
(cherry picked from commit
40c2e2c2160ac23f89a682c965ebea6488b8bffc)
Ye.Li [Thu, 12 Jun 2014 11:39:16 +0000 (19:39 +0800)]
ENGR00315894-79 csi: Add csi module
Add csi module.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
854ae26758ec8132ef749b98645dd2f43b84e5e2)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
5f133bd9420109951fd03bd5168801327e929c3b)
(cherry picked from commit
16960e59fa3334162d2e2212ee4bc1e7f0c420a3)
(cherry picked from commit
bc0639ed8f5069f198067916caf088908492329d)
(cherry picked from commit
c7232ae1c27ef561d2235bb4db837ef9805f86d2)
(cherry picked from commit
039bb76082a16b0e43e818a4d9df68ab4320ede5)
Ye.Li [Thu, 12 Jun 2014 11:37:19 +0000 (19:37 +0800)]
ENGR00315894-78 vadc: Add vadc module
Add vadc module.
Both PAL and NTSC mode can work.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
03c31ae30c1e81c99f6824221e4801433445e04a)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
b5d776ffc1519c16091736445b3217ffb7fcd7db)
(cherry picked from commit
2377eb9fd299b76888f11faf76383b68e77bcc8a)
(cherry picked from commit
808d447235bd0f9134c7d00fa480cd55b4e0426e)
(cherry picked from commit
99977a1152981247a84252dba1d1cf55c0406b08)
Ye Li [Mon, 26 Mar 2018 08:56:39 +0000 (01:56 -0700)]
ENGR00315894-77 mx6: soc: Add vadc power up/down function
Add vadc power up/down function.
When gis enable in uboot, the CSI0 input mux select setting
to vadc module, clean the bit when gis disabled
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
e0cfa889531d0a2587fb1fc607fffcc9599a2f4e)
Ye.Li [Thu, 12 Jun 2014 11:33:05 +0000 (19:33 +0800)]
ENGR00315894-76 mx6 clock: Add vadc clock enable function
Add vadc clock enable function.
Signed-off-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
721c7a1448c5b7265b597b83d18f8338a27ea213)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
903a59ef941f39b6d7f693dd7c60528e166de079)
(cherry picked from commit
dc767fb7d5c155f2a6ef01c4dee808b9c1944fc2)
(cherry picked from commit
0a48932f375a969e6f7e72d171522146981b2135)
(cherry picked from commit
b6f962db57c988c31d35e204f638ba3b0c53eb4a)
Peng Fan [Tue, 23 Feb 2016 02:14:34 +0000 (10:14 +0800)]
MLK-12425-2 video: epdc: introduce epdc support
Support EPDC.
E-Ink feature is supported by i.MX6DL/SL/SLL/ULL and i.MX7D.
This driver supports user defined logo file, if there is no logo file, it will
draw a black border around a white screen.
If need to enable EPDC, a waveform file is required to let all
work.
Since we need LCD_MONOCHROME mode for EPDC, we introduce LCD_MONOCHROME
support.
Please refer to Linux Reference Manual for how to flash WAVEFORM file.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Robby Cai <R63905@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit
a7244f279cc3c3994bcd103f5e9a183b1075ae71)
(cherry picked from commit
21bf1c38b7d75c31875fb02a972c458f25d9c33a)
Ye Li [Mon, 26 Mar 2018 06:16:39 +0000 (23:16 -0700)]
MLK-12483-3 mx6: Add a module fuse checking
Implement a functionality to read the soc fuses and check if any module
is fused. For fused module, we have to disable it in u-boot dynamically,
and change the its node in FDT to "disabled" status before starting the kernel.
In this patch, we implement the ft_system_setup for FDT fixup. This function will
be called during boot process or by "fdt systemsetup" command.
To enable the module fuse checking, two configurations must be defined:
CONFIG_MODULE_FUSE
CONFIG_OF_SYSTEM_SETUP
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
8aef13ebd92f709f4e6b80cf46c7cfe0f69bb211)
(cherry picked from commit
42a6fcbaf9f3a959462f857b31700383d20f7a56)
Ye Li [Mon, 26 Mar 2018 05:23:41 +0000 (22:23 -0700)]
MLK-18147-3 mx6sabreauto/sabresd: Port defconfigs from v2018.03
Add defconfigs to support various boot devices and platforms
for MX6DQ/DQP/DL/S sabreauto and sabresd boards.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
d88863b467d2aebc802d634dcc96060f5af45414)
Ye Li [Mon, 26 Mar 2018 03:42:07 +0000 (20:42 -0700)]
MLK-18147-2 mx6sabreauto/sabresd: Update mx6dq/dqp/dl/s sabre boards codes
Porting the mx6dq/dqp/dl/s sabresd and sabreauto codes from v2018.03
The major change is moving back to non-SPL mode for sabre boards.
which means all old things like DCD, plugin are added back for each
platform. This inherits the way used in v2018.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
3a3a0f07c85b0ae86b18709445206db0310c3b63)
Ye Li [Fri, 23 Mar 2018 09:43:06 +0000 (02:43 -0700)]
MLK-18147-1 arm: dts: mx6dq/dqp/dl/s: Porting DTS and binding files from v2018.03
Port the DTS and relevent binding files from v2018.03 for i.MX6DQ/DQP/DL/S
Sabreauto and SabreSD boards.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
bedc2a2223746a8059b80518ec094077c0d4c44d)
Ye Li [Fri, 23 Mar 2018 09:46:41 +0000 (02:46 -0700)]
MLK-18146-4 mx6: Update mx6 common head file
Align the common head file with v2017.03, since some configurations
have been moved to Kconfig, so don't need them in mx6_common.h now.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
183c12aeec8faae933f3222c40d333f1fc6ef89a)
Ye Li [Mon, 26 Mar 2018 07:53:34 +0000 (00:53 -0700)]
MLK-18146-3 mx6: Update pads definition files
Update the pins.h for i.MX6SL/UL/ULL to align with v2017.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
86c6ba24e56e32ad9942b14fe8565651f9a4c3c6)
Ye Li [Mon, 26 Mar 2018 07:52:17 +0000 (00:52 -0700)]
MLK-18146-2 mx6: Update registers mapping file
Update the CCM and AIPS registers mapping files to align with v2017.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
4479d29d344c89fe3f0ba73934e72bc6099b6eaf)
Ye Li [Fri, 23 Mar 2018 09:37:28 +0000 (02:37 -0700)]
MLK-18146-1 mx6: Align SOC level codes with v2017.03
Update codes for i.MX6 soc and clock settings to align with v2017.03
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
82ecba47271848a339a53eef7e770526bc3b3967)
Ye Li [Fri, 11 Mar 2016 09:28:00 +0000 (17:28 +0800)]
ENGR00325255 pcie:enable pcie support on imx6sx sd
Enable pcie support in uboot on imx6sx sd boards
- enable_pcie_clock should be call before ssp_en is set,
since that ssp_en control the phy_ref clk gate, turn on
it after the source of the pcie clks are stable.
- add debug info
- add rx_eq of gpr12 on imx6sx
- there are random link down issue on imx6sx. It's
pcie ep reset issue.
solution:reset ep, then retry link can fix it.
(cherry picked from commit
ec78595a24b5ff1020baa97b6d6e79a3a3326307)
Signed-off-by: Richard Zhu <r65037@freescale.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
81fd30250110d72992758f08b66c07306126892b)
(cherry picked from commit
4226ce46f24e176dcfc20aea1af0713b4b425655)
Richard Zhu [Tue, 24 Jun 2014 01:59:47 +0000 (09:59 +0800)]
ENGR00319415 pcie: random link down issue after warm-rst
There are about 0.02% percentage on some imx6q/dl/solo
hw boards, random pcie link down when warm-reset is used.
Make sure to clear the ref_ssp_en bit16 of gpr1 before
warm-rst, and set ref_ssp_en after the pcie clks are
stable to workaround it.
imx6sl doesn't have the pcie module, mask the pcie
related codes from imx6sl.
rootcause:
* gpr regisers wouldn't be reset by warm-rst, while the
ref_ssp_en is required to be reset by pcie.
(work-around in u-boot)
* ref_ssp_en should be set after pcie clks are stable.
(work-around in kernel)
Signed-off-by: Richard Zhu <r65037@freescale.com>
(cherry picked from commit
5cc825b12c6b86a22f1a6a0535b52cf3ee142e77)
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
6193cf4e3384a59e29546d13a67657f7faeafc9e)
(cherry picked from commit
7b4aabeddffabca46d7d6e7ef2611de468a6b4f7)
(cherry picked from commit
a117fc7b2b8d930fd7a47b168c4638365cb3a475)
Ye.Li [Fri, 5 Jun 2015 14:11:41 +0000 (22:11 +0800)]
MLK-11064 imx: mx6qp: Adjust AQos settings for peripherals
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>
(cherry picked from commit
11906c712a52e7a20caf71d7c5da4e951a59db29)
(cherry picked from commit
5dcf073b8f2479a2adbb8d9fb03d9c9c70664e32)
(cherry picked from commit
c4ebac1b9a519cbce67b6c29ee169a42f853876b)
Ye Li [Fri, 11 Mar 2016 07:44:01 +0000 (15:44 +0800)]
MLK-12534 mx6: shutdown vddpu and PCIE phy to save power
Shutdown VDDPU and PCIE phy to save power.
For PCIE, the i.MX6SL and i.MX6UL does not have this module,
so don't need it.
For VDDPU, the i.MX6UL does not have GPU, does not need it. And on
i.MX6QP 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.
Reference:
commit:
6b0787b726e2ff32210d742d93ecd3f4bb2ae402
commit:
4bd0032c0eba50fa0caf43f50f735a3cfbe36a8d
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
5c96ea91fe89c67991c929c9b39ffaa940d28391)
(cherry picked from commit
6a5442b41ef400edd0b332962a3450e909b85df5)
(cherry picked from commit
2d7e33530f9bea23c7d09e5b6ae27b0e17f0aa94)
Ye Li [Fri, 23 Mar 2018 09:24:09 +0000 (02:24 -0700)]
MLK-18145 imx: Fix wrong pad name prefix
The pads name bind with CONFIG_MX6Q and CONFIG_6DL should start with MX6_PAD
not MX6Q_PAD and MX6DL_PAD. Otherwise we will get build break.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
be7aa84842d9cb4e94f50ff798b6e54712ece89a)
Ye Li [Fri, 23 Mar 2018 09:04:35 +0000 (02:04 -0700)]
MLK-18144 mx6: Change CONFIG_MX6D kconfig to select MX6Q
The i.MX6D is a variant of i.MX6Q. The only difference is the core number.
So we can select CONFIG_MX6Q to reduce duplicated codes and remove duplicated
usages of CONFIG_MX6D.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
f0f452da4b7aecbb80c240d83a08869bd0cad082)
Ye Li [Fri, 23 Mar 2018 08:59:21 +0000 (01:59 -0700)]
MLK-18143 mx6: Add CONFIG_MX6QP kconfig
Since i.MX6QP is a variant of i.MX6Q, the CONFIG_MX6QP will select CONFIG_MX6Q.
Users can use is_mx6dqp to distinguish them at runtime.
The reason to add this kconfig is plugin mode will use this configuration.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
a56c1d98d8d56a34ca1226e15fe05b75cd9b3686)
Ye Li [Fri, 23 Mar 2018 08:14:13 +0000 (01:14 -0700)]
MLK-10958 imx: mx6ul support Bus Encryption Engine
This patch is to support Bus Encryption Engine(BEE) for i.MX 6UL.
Supported feature:
1. SNVS key and soft key
2. CTR and ECB mode
3. Specify address region to bee.
Two commands are included:
bee init [key] [mode] [start] [end] - BEE block initial
"Example: bee init 1 1 0x80000000 0x80010000\n"
bee test [region]
"Example: bee test 1\n"
Mapping:
[0x10000000 - (0x10000000 + size - 1)] : [start - (start + size - 1)]
[0x30000000 - (0x30000000 + IRAM_SIZE - 1)] : [IRAM_BASE_ADDR -
(IRAM_BASE_ADDR + IRAM_SIZE - 1)]
Whatever start is, start - (start + size -1) will be fixed mapping to
0x10000000 - (0x10000000 + size - 1)
Since default AES region's protected size is SZ_512M, so
on mx6ul evk board, you can not simply run 'bee init', it will
overlap with uboot execution environment, you can use
'bee init 0 0 0x80000000 0x81000000'.
If want to use bee, Need to define CONFIG_CMD_BEE in board configuration
header file, since CONFIG_CMD_BEE default is not enabled.
This patch also checks fuse bit 25 of bank 0 word 4 before initialize bee.
The bit: 0 means bee enabled, 1 means bee disabled.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
9d592121bebbdb9ded0009a2703c7cab01edfa70)
Ye Li [Fri, 23 Mar 2018 07:53:44 +0000 (00:53 -0700)]
MLK-12495 mx6: Add LDO bypass support to i.MX6 SOC
Port LDO bypass SOC codes from v2017 to support the features:
1. Add check for 1.2GHz core speed. If Speed grading fuse is for 1.2GHz,
enable LDO bypass and setup PMIC voltages. LDO bypass is dependent
on the flatten device tree file.
2. We set WDOG_B in set_anatop_bypass() before, because it is the only case, but now
on i.mx6sabreauto board, we didn't use ldo-bypass mode, but have to use WDOG_B to
reboot whole board, so split these code to independent function so that board file
can call it freely.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
6bceaf009718cec856e11106d26e13601631fa4f)
Ye Li [Fri, 23 Mar 2018 06:45:26 +0000 (23:45 -0700)]
MLK-18142 imx: timer: Modify GPT timer driver for mx7
Modify the GPT common platform driver for mx7 which only use 24Mhz
OSC as clock source.
Note: at default, the mx7d will use system counter as timer. The GPT
is disabled.
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
(cherry picked from commit
ff8902ab14705935a30f318db8d1c71ce3cc40dc)
Ye Li [Fri, 23 Mar 2018 06:23:44 +0000 (23:23 -0700)]
MLK-18141-2 env: Kconfig: Add ENV_IS_IN_SATA config
The ENV_IS_IN_SATA config is missed, add it into env/Kconfig, that
we can enable it for SATA boot.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
75b6d78fbb2ed29039852f9e652f9acd80bf7eaa)
Ye Li [Fri, 23 Mar 2018 06:21:48 +0000 (23:21 -0700)]
MLK-18141-1 env: sata: Fix build warning and break
Fix below build warning and errors:
env/sata.c: In function ‘env_sata_save’:
env/sata.c:59:9: warning: implicit declaration of function ‘sata_get_dev’ [-Wimplicit-function-declaration]
sata = sata_get_dev(env_sata);
^~~~~~~~~~~~
env/sata.c:59:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
sata = sata_get_dev(env_sata);
^
env/sata.c: In function ‘env_sata_load’:
env/sata.c:101:10: warning: ‘return’ with a value, in function returning void
return -EIO;
^
env/sata.c:94:13: note: declared here
static void env_sata_load(void)
^~~~~~~~~~~~~
env/sata.c:105:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
sata = sata_get_dev(env_sata);
^
env/sata.c:108:10: warning: ‘return’ with a value, in function returning void
return -EIO;
^
env/sata.c:94:13: note: declared here
static void env_sata_load(void)
^~~~~~~~~~~~~
env/sata.c:113:10: warning: ‘return’ with a value, in function returning void
return -EIO;
^
env/sata.c:94:13: note: declared here
static void env_sata_load(void)
^~~~~~~~~~~~~
env/sata.c:116:9: warning: ‘return’ with a value, in function returning void
return env_import(buf, 1);
^~~~~~~~~~~~~~~~~~
env/sata.c:94:13: note: declared here
static void env_sata_load(void)
^~~~~~~~~~~~~
env/sata.c: At top level:
env/sata.c:120:14: error: ‘ENVL_ESATA’ undeclared here (not in a function)
.location = ENVL_ESATA,
^~~~~~~~~~
env/sata.c:122:11: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.load = env_sata_load,
Signed-off-by: Ye Li <ye.li@nxp.com>
Ye Li [Fri, 23 Mar 2018 03:59:35 +0000 (20:59 -0700)]
ENGR00328312 i2c: imx: Optimize the i2c device recovery solution
From i2c spec, if device pull down the SDA line that causes
i2c bus dead, host can send out 9 clock to let device release
SDA.
But for some special device like pfuze100, it pull down SDA line
and the solution cannot take effort.
The patch just add NACK and STOP signal after 8 dummy clock, and pmic
can release SDA line after the recovery. Test case catch 375 times of
i2c hang, and all are recovered.
Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
6220bb6fb43aa485a10f96fb6ade864b3371e4ca)
Clement Le Marquis [Thu, 20 Sep 2018 01:07:10 +0000 (03:07 +0200)]
MLK-19790 imx: caam: new u-boot command to set PRIBLOB bitfield from CAAM SCFGR register to 0x3
It is highly recommended to set the PRIBLOB bitfield to 0x3 once your
encrypted boot image has booted up, this prevents the generation of new
blobs that can be used to decrypt an encrypted boot image. The PRIBLOB is
a sticky type bit and cannot be changed until the next power on reset.
Add the set_priblob_bitfield U-Boot command to prevent the generation of
new blobs.
Signed-off-by: Clement Le Marquis <clement.lemarquis@nxp.com>
Acked-by: Ye Li <Ye.Li@nxp.com>
(cherry picked from commit
69cca568b85f36a77ef6ef31538f69366d238845)
Ye Li [Wed, 17 Oct 2018 06:12:37 +0000 (23:12 -0700)]
MLK-19963 imx8mm: Update CPU speed grading
According to iMX8MM datasheet (IMX8MMIEC_Rev_D and IMX8MMCEC_Rev_D),
the speed grading for imx8mm is 800Mhz, 1.2Ghz, 1.6Ghz and 1.8Ghz.
Update them to get_cpu_speed_grade_hz function.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
e9b7faa15914293678a2aa4ff1b4159619eec566)
Ye Li [Fri, 12 Oct 2018 05:36:41 +0000 (22:36 -0700)]
MLK-19960-3 imx8mm: power down core 1/2/3 for variant parts
Power down the A53 cores for dual core and single core iMX8MM parts
to save power.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
4a732af597df87db74e386190fd90b20931b7205)
Ye Li [Wed, 17 Oct 2018 08:58:31 +0000 (01:58 -0700)]
MLK-19960-2 imx8mm: Update kernel DTB for variant parts
According the part type, delete A53 cores' nodes and disable VPU
decoder/encoder nodes from kernel DTB.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
1d72b97d94757760e390396a6d49ff89e268cb67)
Ye Li [Thu, 11 Oct 2018 09:06:19 +0000 (02:06 -0700)]
MLK-19960-1 imx8mm: Add support for variant parts
iMX8MM family has several variant parts below.
Add CPU type and relevant updates
i.MX 8M Mini Quad Full featured, 4x A53
i.MX 8M Mini QuadLite No VPU, 4x A53
i.MX 8M Mini Dual Full featured, 2x A53
i.MX 8M Mini DualLite No VPU, 2x A53
i.MX 8M Mini Solo Full featured, 1x A53
i.MX 8M Mini SoloLite No VPU, 1x A53
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
264f90d7638a900913f4f87ea4bad0a688f01bc1)
Ye Li [Fri, 24 Aug 2018 06:41:45 +0000 (23:41 -0700)]
MLK-18901-2 imx8mq: Enable mtest command for ARM2 and EVK boards
Enable the mtest command and add relevant configurations for tested memory
range to all ARM2 boards and EVK board.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
bb3dfa130dd0af57dfe7a41869f6ecd843e6c558)
(cherry picked from commit
26aab18d03486fdf088e38f7ee3b1588b7b01e5f)
Leonard Crestez [Mon, 22 Apr 2019 11:52:27 +0000 (14:52 +0300)]
MLK-21515 configs/imx8: Remove earlycon=lpuart32 value
All our imx8qm/8qxp dts files have a chosen/stdout-path parameter so
passing an earlycon value is not required: the kernel can figure it out
based from dtb.
Passing earlycon=lpuart32 only works with nxp internal linux tree
because we made "lpuart32" add a 0x10 offset by default. That does not
seem upstreamable without breaking other lpuart earlycon users such as
layerscape.
See commit
5481bac06657 ("MLK-13911-12 tty: serial: fsl: add earlycon
support"), inherited in various forms from imx_4.9.y.
This commit makes uboot imx_v2018.03 work out-of-the-box with upstream
linux on imx8qxp-mek.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
7cc130466e17d60d2a5af2c6506b7fc4b3b40900)
Leonard Crestez [Fri, 19 Apr 2019 15:05:25 +0000 (18:05 +0300)]
MLK-21000 imx8: Ignore upstream power-domains of len != 4
In upstream the power-domains for imx8 have different bindings and when
uboot attempts to parse them it ends up disabling everything.
This fix allows running upstream linux on imx8qxp without custom boot
binaries.
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
aa9d0414644a3cd9ebfbda9a995163763e8086c2)
Breno Lima [Tue, 9 Apr 2019 02:48:11 +0000 (23:48 -0300)]
MLK-21420 crypto: fsl: blob: Flush dcache range for destination address
The blob command is not working on i.MX7D, i.MX8MQ and i.MX8MM
devices.
Due to different cache management it's necessary to flush dcache
range for destination address so data can be available in memory.
Add necessary operations in blob_encap() and blob_decap() functions.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
639e5c15816c3eea0d4904a72ad175627be043d8)
Breno Lima [Mon, 8 Apr 2019 02:15:33 +0000 (23:15 -0300)]
MLK-21389 imx: hab: Check if IVT header is HABv4
The HABv4 implementation in ROM checks if HAB major version
in IVT header is 4.x.
The current implementation in hab.c code is only validating
HAB v4.0 and HAB v4.1 and may be incompatible with newer
HABv4 versions.
Modify verify_ivt_header() function to align with HABv4
implementation in ROM code.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit
33f51b401dffa393274a28f9d49a87af3eb02fe0)
Breno Lima [Thu, 4 Apr 2019 02:51:51 +0000 (23:51 -0300)]
MLK-21386 Revert "drivers/crypto/fsl: assign job-rings to non-TrustZone"
Commit
22191ac35344 ("drivers/crypto/fsl: assign job-rings to
non-TrustZone") breaks HABv4 encrypted boot support in the
following i.MX devices:
- i.MX6UL
- i.MX7S
- i.MX7D
- i.MX7ULP
For preparing a HABv4 encrypted boot image it's necessary to
encapsulated the generated DEK in a blob. The blob generation
function takes into consideration the Job Ring TrustZone
ownership configuration (JROWN_NS) and can be only decapsulated
by the same configuration.
The ROM code expects DEK blobs encapsulated by the Secure World
environments which commonly have JROWN_NS = 0.
As U-Boot is running in Secure World we must have JROWN_NS=0
so the blobs generated by dek_blob tool can be decapsulated
by the ROM code.
As NXP BSP does not requires all job-rings assigned to
non-Secure world this commit can be safely reverted.
This reverts commit
22191ac353445ad8fafc5a78aefcd94e78963041.
Reviewed-by: Silvano Di Ninno <silvano.dininno@nxp.com>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
(cherry picked from commit
3eebc76f5571f7ce74d385235019e8eb4a6718f6)
Peng Fan [Fri, 29 Mar 2019 08:55:39 +0000 (16:55 +0800)]
MLK-21291 imx8mm: evk: not restrict uart4 when enabling jailhouse
When booting dual linux with jailhouse, inmate linux will use
the 2nd uart, so not restrict access the uart for jailhouse case.
The best solution would be using SIP call to ATF, for simplicity,
directly modify the RDC register.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit
b22b70ff0b5bbacea7383bde9e8893bb504199c3)
(cherry picked from commit
e5768d04b57599ef8d5fcb4664d87b7c3ba50feb)