summaryrefslogtreecommitdiffstats
path: root/board/freescale
Commit message (Collapse)AuthorAgeFilesLines
* board/freescale/vid: enables writes to all commands for LTC3882Biwen Li2020-10-232-3/+58
| | | | | | | Enable writes to all commands for LTC3882 Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* board: freescale: vid.c: Initialize variable 'i2caddress'Priyanka Singh2020-10-231-1/+1
| | | | | | | Initialize variable 'i2caddress' in print_vdd() to zero Signed-off-by: Priyanka Singh <priyanka.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* Merge branch 'next'Tom Rini2020-10-0528-637/+26
|\ | | | | | | | | | | | | Bring in the assorted changes that have been staged in the 'next' branch prior to release. Signed-off-by: Tom Rini <trini@konsulko.com>
| * board/freescale: Remove P5020DS board supportPriyanka Jain2020-09-246-52/+0
| | | | | | | | | | | | | | Remove NXP powerpc P5020DS board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * powerpc:Remove P4080DS secure boot configsPriyanka Jain2020-09-241-1/+0
| | | | | | | | | | | | | | Remove NXP powerpc P4080DS secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * configs: Remove P3041DS secure boot configsPriyanka Jain2020-09-241-1/+0
| | | | | | | | | | | | | | Remove NXP powerpc P3041DS secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * board/freescale: Remove P1024RDB board supportPriyanka Jain2020-09-242-6/+0
| | | | | | | | | | | | | | Remove NXP powerpc P1024RDB board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * board/freescale: Remove P1021RDB board supportPriyanka Jain2020-09-244-88/+1
| | | | | | | | | | | | | | Remove NXP powerpc P1021RDB board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * board/freescale: Remove P1020MBG board supportPriyanka Jain2020-09-243-8/+3
| | | | | | | | | | | | | | Remove NXP powerpc P1020MBG board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * board/freescale: Remove P1020UTM board supportPriyanka Jain2020-09-244-8/+1
| | | | | | | | | | | | | | Remove NXP powerpc P1020UTM board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * board/freescale: Remove P1025RDB board supportPriyanka Jain2020-09-245-49/+4
| | | | | | | | | | | | | | Remove NXP powerpc P1025RDB board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * configs: Remove P1010RDB secure boot configsPriyanka Jain2020-09-241-12/+0
| | | | | | | | | | | | | | Remove NXP powerpc P1010RDB secure boot configs as they are no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * board/freescale: Remove p1023rdb board supportPriyanka Jain2020-09-247-386/+0
| | | | | | | | | | | | | | Remove NXP powerpc p1023rdb board support as it is no longer maintained. Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * p1010rdb: Don't compile board_eth_init() for DM_ETHHou Zhiqiang2020-09-241-0/+2
| | | | | | | | | | | | | | | | | | | | The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> [Rebased] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * p1_p2_rdb: Don't compile board_eth_init() for DM_ETHHou Zhiqiang2020-09-241-0/+2
| | | | | | | | | | | | | | | | | | | | The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> [Rebased] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
| * fsl: p1_p2_rdb: Move vsc7835 firmware uploading to board_early_init_r()Hou Zhiqiang2020-09-241-17/+18
| | | | | | | | | | | | | | | | | | Move vsc7835 firmware uploading to board_early_init_r(), so that the switch also can work in DM eTSEC driver. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
| * powerpc: Remove bi_memstart & bi_memsize assignments in spl.cStefan Roese2020-08-267-14/+0
| | | | | | | | | | | | | | | | | | Most likely these deprecated (removed) variables are not needed. Lets remove the assignments completely from all spl.c files. Signed-off-by: Stefan Roese <sr@denx.de> Tested-by: Oleksandr Zhadan and Michael Durrant Reviewed-by: Simon Glass <sjg@chromium.org>
* | board: freescale: emc2305: Pass chip_addr to set_fan_speedWasim Khan2020-09-243-14/+12
| | | | | | | | | | | | | | | | | | | | emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to emc2305_init() and set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan <wasim.khan@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* | board/freescale/lsch3: Correct entry for 0.9vMartin Kaistra2020-09-241-1/+1
|/ | | | | | | | | According to the reference manual of LS2088A, for a VDD voltage of 0.9V, the entry should be at 01000b. Fixes: 4911948ec73 ("board/freescale,lsch3: Add entry for 0.9v") Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs:ls1046afrwy: Add tfa secure boot defonfigManish Tomar2020-07-271-0/+5
| | | | | | | | Add TFA secure boot defconfig and Enables secure boot related configs in it. Signed-off-by: Manish Tomar <manish.tomar@nxp.com> Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
* freescale: ls1043aqds: drop ifdef CONFIG_SYS_I2CBiwen Li2020-07-271-2/+4
| | | | | | | | | | | | - Drop ifdef CONFIG_SYS_I2C to initialize baudrate of i2c - Drop warning of i2c_early_init_f as follows, warning: implicit declaration of function 'i2c_early_init_f'; did you mean 'arch_early_init_r'? [-Wimplicit-function-declaration] Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* freescale: ls1043aqds: enable secure system counterBiwen Li2020-07-271-1/+7
| | | | | | | | | Enable secure system counter in board_early_init_f for udelay() to fix a bug that always return 0 by timer_read_counter() when boot from qspi(No TFA) Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* freescale: ls1046aqds: drop ifdef CONFIG_SYS_I2CBiwen Li2020-07-271-2/+4
| | | | | | | | | | | | - Drop ifdef CONFIG_SYS_I2C to initialize baudrate of i2c - Drop warning of i2c_early_init_f as follows, warning: implicit declaration of function 'i2c_early_init_f'; did you mean 'arch_early_init_r'? [-Wimplicit-function-declaration] Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* freescale: ls1046aqds: enable secure system counterBiwen Li2020-07-271-1/+7
| | | | | | | | | Enable secure system counter in board_early_init_f for udelay() to fix a bug that always return 0 by timer_read_counter() when boot from qspi(No TFA) Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* board: fsl: lx2160aqds: identify SDHC adapter during board initYangbo Lu2020-07-272-3/+44
| | | | | | | | Add support for SDHC adapter identification and configuration during board init. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* Move eSDHC adapter card identification to board filesYangbo Lu2020-07-272-3/+29
| | | | | | | | | | | | | | | | The eSDHC adapter card identification and multiplexing configuration through FPGA had been implemented in both common mmc driver and fsl_esdhc driver. However it is proper to move these code to board files and do it during board initialization. The FPGA registers are also board specific. This patch is to move eSDHC adapter card identification and multiplexing configuration from mmc driver to specific board files. And the option CONFIG_FSL_ESDHC_ADAPTER_IDENT is no longer needed. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> [Rebased, Removed T1040QDS change as board does not exist] Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
* armv8: ls1028ardb: add xspi parameter to qixis commandYuantian Tang2020-07-271-0/+13
| | | | | | | | Add xspi boot source to qixis command to let the soc boot from flex-nor flash chip. Signed-off-by: Yuantian Tang <andy.tang@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* armv8: ls1012a: RGMII ports require internal delayChaitanya Sakinam2020-07-271-1/+1
| | | | | | | | | | The correct setting for the RGMII ports on LS1012ARDB is to enable delay on both Rx and Tx so the interface mode used should be PHY_INTERFACE_MODE_RGMII_ID Signed-off-by: Chaitanya Sakinam <chaitanya.sakinam@nxp.com> Signed-off-by: Anji J <anji.jagarlmudi@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* treewide: convert bd_t to struct bd_info by coccinelleMasahiro Yamada2020-07-17113-164/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux coding style guide (Documentation/process/coding-style.rst) clearly says: It's a **mistake** to use typedef for structures and pointers. Besides, using typedef for structures is annoying when you try to make headers self-contained. Let's say you have the following function declaration in a header: void foo(bd_t *bd); This is not self-contained since bd_t is not defined. To tell the compiler what 'bd_t' is, you need to include <asm/u-boot.h> #include <asm/u-boot.h> void foo(bd_t *bd); Then, the include direcective pulls in more bloat needlessly. If you use 'struct bd_info' instead, it is enough to put a forward declaration as follows: struct bd_info; void foo(struct bd_info *bd); Right, typedef'ing bd_t is a mistake. I used coccinelle to generate this commit. The semantic patch that makes this change is as follows: <smpl> @@ typedef bd_t; @@ -bd_t +struct bd_info </smpl> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
* power: pmic_pca9450: fix PCA9450A I2C addressSébastien Szymanski2020-07-161-1/+1
| | | | | | | | | | | | | | Quoting Ye Li from NXP: "We have confirmed with PMIC team, 0x35 is used only on early chips and not used any more. 0x25 is the final address." Fix it by merging power_pca9450a_init and power_pca9450b_init into one function power_pca9450_init. Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Ye Li <ye.li@nxp.com>
* imx8m: Refactor the OPTEE memory removalPeng Fan2020-07-144-69/+0
| | | | | | | | | | | | | | | Current codes assume the OPTEE address is at the end of first DRAM bank. Adjust the process to allow OPTEE in the middle of first bank. When OPTEE memory is removed from first bank, it may split the first bank to two banks, adjust the MMU table for the split case, Since the default CONFIG_NR_DRAM_BANKS is 4, it is enough, just enlarge i.MX8MP evk to default to avoid issue. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com> Tested-by: Silvano di Ninno <silvano.dininno@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx8mp: Disables use of MR4 TUF flag (MR4[7]) bitJian Li2020-07-141-1/+1
| | | | | | | | | | In uMCTL2 Databook, for LPDDR4, it is recommended to set this register to 1. This can avoid ddr bandwidth is lower after booting with running for a while. Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Jian Li <jian.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx8mp: DDR performance tunningJian Li2020-07-141-1/+1
| | | | | | | | | 1. set SCHED.rdwr_idle_gap=0 2. set SCHED.pageclose=1 Reviewed-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Jian Li <jian.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx8mp: enable rd_port_urgentJian Li2020-07-141-0/+1
| | | | | | | Need to enable read urgent for NoC panic signal Signed-off-by: Jian Li <jian.li@nxp.com Signed-off-by: Peng Fan <peng.fan@nxp.com>
* arm: Remove mx31pdk boardJagan Teki2020-07-095-227/+0
| | | | | | | | | | DM, OF_CONTROL, DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Acked-by: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HABTom Rini2020-06-261-1/+1
| | | | | | | | | | | | | | | There are a few remaining places where we say CONFIG_SECURE_BOOT rather than CONFIG_IMX HAB. Update these instances. Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com> Cc: Eddy Petrișor <eddy.petrisor@gmail.com> Cc: Shawn Guo <shawnguo@kernel.org> Cc: Priyanka Jain <priyanka.jain@nxp.com> Fixes: d714a75fd4dc ("imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB") Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* powerpc: Remove TWR-P1025_defconfig boardJagan Teki2020-06-187-478/+0
| | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Xiaobo Xie <xiaobo.xie@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove T4160QDS_NAND_defconfig boardJagan Teki2020-06-1818-2775/+0
| | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove T1040QDS_DDR4_defconfig boardJagan Teki2020-06-1816-1657/+0
| | | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Poonam Aggrwal <poonam.aggrwal@nxp.com> Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove T1024QDS_DDR4_SECURE_BOOT_defconfig boardJagan Teki2020-06-1817-1967/+0
| | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* powerpc: Remove P1022DS_36BIT_NAND_defconfig boardJagan Teki2020-06-1811-1342/+0
| | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Timur Tabi <timur@tabi.org> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove configs/MPC8536DS_36BIT_defconfig boardJagan Teki2020-06-188-599/+0
| | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove configs/C29XPCIE_NAND_defconfig boardJagan Teki2020-06-1812-831/+0
| | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Po Liu <po.liu@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig boardJagan Teki2020-06-189-1069/+0
| | | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Naveen Burmi <naveen.burmi@nxp.com> Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove configs/BSC9131RDB_NAND_SYSCLK100_defconfig boardJagan Teki2020-06-189-629/+0
| | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Poonam Aggrwal <poonam.aggrwal@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* powerpc: Remove configs/B4420QDS_NAND_defconfig boardJagan Teki2020-06-1815-2517/+0
| | | | | | | | | | | | DM_SPI and other driver model migration deadlines are expired for this board. Remove it. Patch-cc: Ashish Kumar <ashish.kumar@nxp.com> Patch-cc: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* trivial: Fix booot occurencesMichal Simek2020-06-151-1/+1
| | | | | | | | | | s/booot/boot/g The first ase is booot instead of boot and second u-booot instead of u-boot. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
* Merge tag 'u-boot-imx-20200609' of ↵Tom Rini2020-06-092-24/+45
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx Fixes for 2020.07 ----------------- - mx53: mx53menlo Convert to DM_ETH, fix fail boot - imx8mp_evk: fix boot issue - MX6, display5: fix environment - drop warnings (watchdog) for i.MX8mm i.mx8mp - enable bootaux for i.MX8M Travis: https://travis-ci.org/github/sbabic/u-boot-imx/builds/695929999
| * imx8mp_evk: spl: no need the code since spl framework could do thatPeng Fan2020-06-081-5/+1
| | | | | | | | | | | | | | | | We no need invoke the code, since spl framework could help us do that. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * imx8mp_evk: spl: use spl_early_initPeng Fan2020-06-081-6/+6
| | | | | | | | | | | | | | | | | | Use spl_early_init to replace spl_init, spl_init will be invoked in board_init_r, we only need use spl_early_init to setup malloc and scan early dt. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Fabio Estevam <festevam@gmail.com>