Commit Graph

9239 Commits

Author SHA1 Message Date
d185daffd1 board:i2som add watchdog func 2025-06-30 12:28:43 +08:00
b4d71ff13b board: enable watchdog input 2024-11-29 17:04:26 +08:00
ed132ee5f9 board: add GW102 board 2024-11-29 11:31:18 +08:00
f7b6571109 i2S6UBY2: add gpio switch for SDIO WiFi module 2018-06-08 22:21:37 +08:00
904f545563 i2S6ULY2: add function whether the SOM has eMMC flash 2018-05-05 15:15:06 +08:00
25be156863 i2S6ULY2: update uboot into bootpart of eMMC flash 2018-05-05 14:58:09 +08:00
5a6218a7d5 i2S6ULY2: eMMC variant use GPT partition 2018-04-30 11:02:13 +08:00
731900fa3c i2S6ULY2: support update eMMC partition
This function reference by Digi U-Boot.
2018-04-30 11:00:48 +08:00
d992ec7d03 i2S-6ULY2: add SOM and Board string 2018-04-10 17:47:14 +08:00
6fcfc4bdce i2SOM: modify macro name 2018-04-10 14:48:01 +08:00
5e22ce1fca i2S-6ULL: rework the eMMC variant 2018-04-03 00:12:21 +08:00
5e56f8119d i2SOM: add write bootstream to NAND flash
The u-boot of i.MX6ULL chip needs header data.The update_nand.c will
add header data when writing into NAND flash.
These code reference from Digi ccimx6ul.
2018-03-25 15:25:59 +08:00
f7652281cd i2SOM: add NAND and eMMC for i2S-6UL 2018-01-06 23:56:54 +08:00
1705d0a0dd i2SOM: add support i2S-6UL product 2018-01-06 23:12:16 +08:00
15e52e5063 modify booting arguments 2017-12-03 17:09:51 +08:00
802e2f862d add PWM for backlight and use LCD 16bits bus
i2C-B6ULL board use 16bit bus on LCD interface.
The backlight use 800hz peroid of LCD 4.3inch.
2017-08-16 14:49:07 +08:00
1ec01951a4 add i2S-6ULL SOM module from i2SOM technology company
support boot from eMMC and NAND flash.
2017-08-06 01:09:22 +08:00
0ec2a01911 MLK-13131: mx6qarm2: add fastboot and recovery support
Add fastboot and recovery mode support for mx6qarm

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
(Cherry picked from commit 505e899ce582118da28ca1f4487ce7f179225bd7)
2016-09-15 14:00:58 -05:00
ffc7bc56e7 MLK-13132: mx6qarm2: mt128x64mx32: adjust ahb/axi podf dividers
Adjust ahb/axi clock root podf dividers to be divided by 1
to allow ahb/axi clock root to be 24Mhz when sourced
from osc_clk.

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
(Cherry picked from commit 9e80234c823d6a2a0d9e10ab4c4c605bf646bd22)
2016-09-15 13:59:27 -05:00
e644db2827 MLK-13141 mx6qpsabresd: Do not touch VGEN3 and VGEN5
VGEN3 and VGEN5 have been fused the right value in PF0100 on i.mx6qp board,
so software didn't need to change their voltage output anymore. Otherwise,
VGEN3 will be wrongly updated from 1.8v to 2.8v.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit 6f7f185664a401f03f6ce6c81b996c1f27fdbe73)
2016-08-30 17:26:50 +08:00
44a84b44a8 MLK-13115 imx: mx6ullevk: Update LPDDR2 script for i.MX6ULL 9x9 EVK
Update the LPDDR2 script to 1.2 rev with delay line settings changed.

File:
  IMX6ULL_9X9_LPDDR2_400MHz_16bit_V1.2.inc
  https://nxp1.sharepoint.com/teams/123/IMX6ULL/SitePages/Documents.aspx

Changes:
  Update Delay Line Settings based on the delay line calibration results of more boards.
       MMDC_MPRDDLCTL   = 0x40403439
       MMDC_MPWRDLCTL   = 0X4040342D

Test:
  One 9x9 EVK board pass stress memtester.

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-08-23 16:49:22 +08:00
a72491e307 MLK-13070 imx: mx6ullevk: Add 9x9 EVK support
Add two build configs for i.MX6ULL 9X9 EVK. And update lpddr2 script
for the board to version 1.0.

DDR script:
   IMX6ULL_9X9_LPDDR2_400MHz_16bit_V1.0.inc

Changes:
   Initial version

Test:
   Passed memtester overnight test on 1 board.

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-08-12 09:51:19 +08:00
bcdbe240bb MLK-12929 imx6ull: support splash screen for epdc
add splash screen feature for epdc.
it's tested on imx6ull arm2 board.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
2016-07-29 11:17:14 +08:00
fd8fbf7fa0 MLK-12996 imx: mx6dqp/dq: Fix SATA read/write fail after booting from SATA
We found a issue in PLL6 ENET that changing the bit[1:0] DIV_SELECT for ENET
ref clock will impact the SATA ref 100Mhz clock.  If SATA is initialized before
this changing, SATA read/write can't work after it. And we have to re-init SATA.

The issue can reproduce on both i.MX6DQP and i.MX6DQ. IC investigation is ongoing.

This patch is an work around that moves the ENET clock setting
(enable_fec_anatop_clock) from ethernet init to board_init which is prior
than SATA initialization. So there is no PLL6 change after SATA init.

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-07-29 10:11:25 +08:00
56cb080858 MLK-12988 imx: mx6ull Add board support for i.MX6ULL EVK
Add configs and board level codes for i.MX6ULL 14x14 EVK. Very similar
board from i.MX6UL EVK. I2C, UART, USB, QSPI, SD, ENET and LCD are ok
to work.

The codes for i.MX6ULL 9x9 EVK is kept. We will add 9x9 build target when
it is needed.

The DDR3 script is using version 1.2:

   File: EVK_IMX6ULL_DDR3L_400MHz_512MB_16bit_V1.2_NewDRAM.inc

   Test: 3 boards passed memtester.

Build target:

   mx6ull_14x14_evk_defconfig

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-07-19 16:05:53 +08:00
c5dc9e64ff MLK-12889 mx6ullarm2: Update DDR script to version 2.2
File:
  IMX6ULL_DDR3L_400MHz_1GB_16bit_V2.2.inc

Changes:
  Change MMDC_MDMISC.WALAT to 1
  setmem /32 0x021B0018 = 0x00211740

Test:
  Passed memtester on two mx6ull ddr3 arm2 boards

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-06-08 13:29:08 +08:00
b4bc642c62 MLK-12884 mx7dsabresd: Fix LCD_PWR_EN output setting
LCD_PWR_EN controls the G pin of Q13 PMOS which needs low voltage to connect
D to S for outputting LCD 3.3V. If LCD_PWR_EN is high, we measured the LCD 3v3
is actually 1.2V.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 28eb616b6c49de492cc0cdb3ad5b618bed77960f)
2016-06-06 13:31:13 +08:00
c1c4fabdc0 MLK-12815: mx6ul_14x14_evk: add new NAND config for i.MX6UL 14x14 EVK board
add new NAND config for i.MX6UL 14x14 EVK board, and disable USDHC2 when
NAND enabled due to pin conflict.

Signed-off-by: Han Xu <han.xu@nxp.com>
(cherry picked from commit 81e175bcc07792fab6010761daf6576bd600edda)
2016-05-23 17:23:22 +08:00
1f0bb39408 MLK-12800 imx: mx7dsabresd: support revC
Add revC board support.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2016-05-16 17:01:55 +08:00
7f00c72e17 MLK-12791 mx6qpsabresd: Change ENET TXCLK clock from PLL
In u-boot, i.MX6QP sabresd board uses 125Mhz ref clock from PHY,
While kernel uses the clock from internal PLL by setting GPR5 bit 9.
When doing warm reset in kernel, the GPR regigster is not reset, so
the clock source still is the PLL. This causes ENET in u-boot can't work.

In this patch, we change the u-boot to use internal PLL to align with
kernel for i.MX6QP. This also fixes the ENET issue after kernel warm reset.

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-05-16 14:12:24 +08:00
3c5628ccf4 MLK-12748-3 imx: adjust imx7d lpddr3 lpsr exit flow
On i.MX7D lpddr3, retention mode exit flow should restore
more registers to make sure the ddr controller and ddr phy
settings restored properly, otherwise, some of the boards
can NOT pass memtester after retention mode exited.

For LPSR mode, ddr resume flow is same as retention mode,
just adjust it accordingly.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2016-05-09 18:47:05 +08:00
9ebc498844 MLK-12748-2 imx: remove IOMUXC GPR setting for i.mx7d retention mode
i.MX7D TO1.2 removes the DDR PADs retention mode setting
in IOMUXC GPR, it is same as TO1.0, so only apply the
IOMUXC GPR setting for TO1.1.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2016-05-09 18:46:50 +08:00
ec27deab06 MLK-12748-1 imx: adjust i.mx7d standby voltage setting
i.MX7D VDD_ARM/SOC standby voltage should be 0.95V,
adding 25mV margin, so set it to 0.975V;

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2016-05-09 18:46:33 +08:00
8a7d61d073 MLK-12629-2: i.MX6QP: update plugin
For i.MX6QP, the QoS settings is different from others. Align with DCD.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2016-05-04 15:17:36 +08:00
f521de2c5b MLK-12735 mx6qpsabresd: Update DDR script to version 1.14
DDR script file:
arik_r2_sdb_ddr3_528_1.14.inc

Compass link:
http://compass.freescale.net/livelink/livelink?func=ll&objid=235302593&objAction=browse&sort=name&viewType=1

Update:
    setmem /32  0x020e0534 =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR02  (SDQS0_B_TRIM=01, SDQS0_TRIM=10)
    setmem /32  0x020e0538 =      0x00008000  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR03  (SDQS1_B_TRIM=00, SDQS1_TRIM=00)
    setmem /32  0x020e053C =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR04  (SDQS2_B_TRIM=01, SDQS2_TRIM=10)
    setmem /32  0x020e0540 =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR05  (SDQS3_B_TRIM=01, SDQS3_TRIM=10)
    setmem /32  0x020e0544 =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR06  (SDQS4_B_TRIM=01, SDQS4_TRIM=10)
    setmem /32  0x020e0548 =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR07  (SDQS5_B_TRIM=01, SDQS5_TRIM=10)
    setmem /32  0x020e054C =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR08  (SDQS6_B_TRIM=01, SDQS6_TRIM=10)
    setmem /32  0x020e0550 =      0x00018200  // IOMUXC_SW_PAD_CTL_PAD_DRAM_ADDR09  (SDQS7_B_TRIM=01, SDQS7_TRIM=10)

    setmem /32  0x021b08c0 =      0x24912489  // fine tune SDCLK duty cyc to low - seen to improve measured duty cycle of i.mx6
    setmem /32  0x021b48c0 =      0x24914452

    setmem /32  0x021b0018 =      0x00011740  // MMDC0_MDMISC, RALAT=0x5, WALAT=0x1

Test:
    Passed stress memtester on one board.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit b7f43f47a78c9d0c14fe104daf22efab13709ab1)
2016-04-29 14:37:15 +08:00
2091a5fee3 MLK-12705-1 ARM: imx: add support for i.MX7D TO1.2
i.MX7D TO1.2 uses same DDR script as TO1.0,
TO1.1 uses dedicated DDR script.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 527d57e02b05eb0166dcaa1929e46dd2357a8720)
2016-04-29 14:22:05 +08:00
519bc30d20 MLK-12694 mx6ullarm2: Remove the CD detection of SD2
Since the CD pin of SD2 is DNP on the mx6ull arm2 board, this will cause
SD2 access problem even the card is inserted. Hard code the CD result to
1 to assume the card is always on.
The SD driver will return other errors if the card does not exist.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 47efe2fda62297ab1da8594828cd7bd928ecbda7)
2016-04-22 10:41:29 +08:00
a89a842393 MLK-12687 mx6ullarm2: Clean up macro usage for pins conflict devices
1. Bind the macro CONFIG_MX6ULL_DDR3_ARM2_EMMC_REWORK to eMMC 8 bits rework, which
conflicts with QSPIA and NAND, that we have to disable them at same time.

2. Bind the macro CONFIG_MX6ULL_DDR3_ARM2_QSPIB_REWORK to QSPI B port rework, which
conflicts with SD2 and NAND, that we have to disable them at same time.

3. Fix a typo issue of CONFIG_MX6ULL_DDR3_ARM2_EMMC_REWORK

4. Enable QSPI support for default SD boot case.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 00f36b3e9445ff47ed68262ef2d656e410cd8fcd)
2016-04-21 11:27:28 +08:00
70b1c1bb1c MLK-12690 imx: mx6ull: fix build error for plugin
Fix build error for Plugin

"Can't stat board/freescale/mx6ul_14x14_ddr3_arm2/plugin.bin: Bad file descriptor"

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 95860f1213c038ef2e5900d1874ff5398ac0be2a)
2016-04-21 11:14:01 +08:00
5c8c027bcd MLK-12677 mx6ullarm2: Update DDR script to version 2.1
File:
  IMX6ULL_DDR3L_400MHz_1GB_16bit_V2.1.inc

Changes:
  Change ZQ_OFFSET to the default value:00
	setmem /32 0x021B0890 = 0x00400000
  Change IOMUXC_SW_PAD_CTL_PAD_DRAM_RESET.DDR_SEL to 11
	setmem /32 0x020E0288 = 0x000C0030
  Change duty cycle fine tune cell for SDCLK and SDQS
	setmem /32 0x021B08C0 = 0x00944009

Test:
  One mx6ull ARM2 board passed memtest.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 8128b2f3b419a1d15a0489a91e56a4ac82eaf0c4)
2016-04-20 14:35:17 +08:00
67c19ad1a2 MLK-12616-11 imx: mx6ull: add mx6ull arm2 board support
Support mx6ull ddr3 arm2 board.
DDR script version 1.1. Passed memtester on 3 boards.

Take mx6ul 14x14 ddr3 arm2 as reference.

Note:
LCD/NAND/ECSPI not tested, need hardware rework.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 584050b98c)
2016-04-13 13:03:20 +08:00
ce6ec8bf30 MLK-12563: imx: mx6ul evk: fix LCD_nPWREN setting
Q901 is PMOS, LCD_nPWREN should be at low voltage then output is 3V3.
If LCD_nPWREN is high, output is 2.4V which is not correct.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2016-03-25 16:30:10 +08:00
166367ad35 MLK-12551: imx6ul evk: fix 74LV OE usage
Fix 74LV OE gpio index. pinmux is correct, but gpio index
is wrong, so gpio output will not have effect, since we
use wrong GPIO5_IO18, but not correct GPIO5_IO8.

And at the end of the initialization of 74lv init, should
keep OE voltage level at LOW, but not high.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
2016-03-25 16:29:59 +08:00
9232e9f763 MLK-12483-5 mx6ul: Enable module fuse check EVK board and DDR3 ARM2 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>
2016-03-25 16:29:35 +08:00
bf1d8faf1d MLK-12442: imx: mx6qarm2: lpddr2 set dram 2 channel fixed mode
Setup MMDC in two channel fixed mode
Initialize dram banks for two channel fixed mode
DRAM bank = 0x00000000
-> start  = 0x10000000
-> size   = 0x20000000
DRAM bank = 0x00000001
-> start  = 0x80000000
-> size   = 0x20000000

Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
2016-03-25 16:22:16 +08:00
c8c60f578d MLK-12371-2: imx: mx7dsabresd: fix POR reset failed after DDR enter retention
Since DDR enter retention mode after kernel enter DSM mode, we have to exit DDR
retention mode before uboot boot, so add this in DCD and plugin code.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit 62248ef80d)
2016-03-25 16:22:04 +08:00
419fad166e MLK-12555-3 mx7dsabresd: Remove the SRS setting for wdog
Since the WDOG driver has updated to clear SRS at software assertion of
WDOG. We don't need this in board level.

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-03-25 16:06:45 +08:00
8a713e8cd1 MLK-12555-2 mx6ulevk: Enable the Watchdog WDOG_B signal output
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 <ye.li@nxp.com>
2016-03-25 16:06:35 +08:00
7b53ee014c MLK-12555 mx6sxsabreauto: Enable the Watchdog WDOG_B signal output
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 <ye.li@nxp.com>
2016-03-25 16:06:25 +08:00
5e48e6dbac MLK-12553 mx6sabresd: Add RGMII support
Need to configure the phy AR8031 to output 125Mhz clock for ENET
reference clock. And introduce a TX clock delay.

Signed-off-by: Ye Li <ye.li@nxp.com>
2016-03-25 16:06:05 +08:00