summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* i.MX7ULP: evk: Enable fuse comamndPeng Fan2019-10-082-0/+2
| | | | | | Enable fuse command Signed-off-by: Peng Fan <peng.fan@nxp.com>
* misc: Kconfig: make i.MX7ULP could use MXC_OCOTPPeng Fan2019-10-081-1/+1
| | | | Signed-off-by: Peng Fan <peng.fan@nxp.com>
* i.MX7ULP: Fix wrong i2c configuration nameYe Li2019-10-084-2/+4
| | | | | | | | 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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* i.MX7ULP: Add CONFIG_MX7ULP to kconfigYe Li2019-10-081-1/+5
| | | | | | | | Since many drivers need this CONFIG_MX7ULP to distiguish the settings for i.MX7ULP only. Add this entry to cpu's kconfig. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* i.MX7ULP: Fix PCC register bits mask and offset issueYe Li2019-10-081-2/+2
| | | | | | | | | 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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* i.MX7ULP: Correct the clock indexBai Ping2019-10-081-1/+1
| | | | | | | | | 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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* i.MX7ULP: Fix system reset after a7 rtc alarm expired.Bai Ping2019-10-082-0/+11
| | | | | | | | | | | 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> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* i.MX7ULP: evk: Modify FDT file to disable SD3.0 for usb bootPeng Fan2019-10-082-0/+48
| | | | | | | | | Since the SD3.0 kernel driver needs M4 image support, this causes problem for usb boot booting into kernel. To decouple the relationship, we modify the FDT file in u-boot to disable SD3.0. So the kernel won't depend on M4 image. Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx: i.MX7ULP: add get_boot_devicePeng Fan2019-10-083-0/+41
| | | | | | | Add get_boot_device for i.MX7ULP Signed-off-by: Peng Fan <peng.fan@nxp.com> Tested-by: Fabio Estevam <festevam@gmail.com>
* configs: nitrogen6x: Add DM_SPI/DM_SPI_FLASH supportTroy Kisky2019-10-087-0/+14
| | | | | | | | | | | | | | Add CONFIG_DM_SPI/CONFIG_DM_SPI_FLASH to all defconfigs whose board is nitrogen6x. mx6qsabrelite_defconfig nitrogen6dl2g_defconfig nitrogen6dl_defconfig nitrogen6q2g_defconfig nitrogen6q_defconfig nitrogen6s1g_defconfig Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
* configs: nitrogen6x: Add DM_GPIO supportTroy Kisky2019-10-087-0/+7
| | | | | | | | | | | | | | | | Add CONFIG_DM_GPIO to all defconfigs whose board is nitrogen6x. mx6qsabrelite_defconfig nitrogen6dl2g_defconfig nitrogen6dl_defconfig nitrogen6q2g_defconfig nitrogen6q_defconfig nitrogen6s1g_defconfig This is in preparation for adding CONFIG_DM_SPI. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
* nitrogen6x: reserve used gpiosTroy Kisky2019-10-081-1/+29
| | | | | | | | | | | | This prevents messages like gpio@20a0000: get_value: error: gpio GPIO2_2 not reserved when CONFIG_DM_GPIO is enabled. Also, when CONFIG_DM_GPIO is enabled, checkboard is too early to use gpio_get_value, so read it directly on failure. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
* configs: nitrogen6x: Add DM_MMC/DM_USB/AHCI supportTroy Kisky2019-10-087-0/+34
| | | | | | | | | | | | | | | | | | Add DM_MMC to all defconfigs whose board is nitrogen6x. mx6qsabrelite_defconfig nitrogen6dl2g_defconfig nitrogen6dl_defconfig nitrogen6q2g_defconfig nitrogen6q_defconfig nitrogen6s1g_defconfig This commit is adding multiple configs, but seems to be the minimum change to not lose features and still compile fine. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
* nitrogen6x: migrate to using device treeTroy Kisky2019-10-0814-16/+543
| | | | | | | Migrate to using device tree required for further driver model integration. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
* ARM: imx: Support larger SPL size on IMX6DQRobert Hancock2019-10-083-3/+37
| | | | | | | | | | | | | Previously the SPL size on all iMX6 platforms was restricted to 68KB because the OCRAM size on iMX6SL/DL parts is only 128KB. However, the other iMX6 variants have 256KB of OCRAM. Add an option CONFIG_MX6_OCRAM_256KB which allows using the full size on boards which don't need to support the SL/DL variants. This allows for an SPL size of 196KB, which makes it much easier to use configurations such as SPL with driver model and FDT control. Signed-off-by: Robert Hancock <hancock@sedsystems.ca> Tested-by: Adam Ford <aford173@gmail.com> #imx6q_logic
* spl: imx: only use HAB if spl fit signature is not enabledRicardo Salveti2019-10-081-0/+2
| | | | | | | | | | | | There is no need to use HAB for FIT signature validation when SPL_FIT_SIGNATURE is also enabled, as that will be validated via the normal U-Boot signed FIT image flow. This allows having SPL validated by HAB and the payloads to follow being validated with FIT signatures only. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* imx: apalis_imx6: select MX6Q via KconfigRicardo Salveti2019-10-081-0/+1
| | | | | | | | | | | Toradex Apalis iMX6 modules are available in the iMX6D and iMX6Q variants, which are quite similar and already managed via only one dtb in u-boot (imx6-apalis.dtb). Select MX6Q via Kconfig by default in order to automatically enable the HAS_CAAM and MX6_SMP features. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Reviewed-by: Peng Fan <peng.fan@nxp.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
* apalis_imx6: fix broken fsl_esdhc_imx conversionRicardo Salveti2019-10-081-2/+2
| | | | | | | | | | Commit e37ac717d796 ("Convert to use fsl_esdhc_imx for i.MX platforms") converted FSL_ESDHC to FSL_ESDHC_IMX, but the config check for apalis_imx6 wasn't updated accordantly. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Reviewed-by: Peng Fan <peng.fan@nxp.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
* apalis_imx6: add board_fit_config_name_match to support FIT in SPLRicardo Salveti2019-10-081-0/+10
| | | | | | | | Only one dtb is currently supported, so match with imx6-apalis. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Reviewed-by: Peng Fan <peng.fan@nxp.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
* arm: dts: imx: fsl-imx8qm.dtsi: add gpio aliases to fix gpio commandPeng Fan2019-10-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | The gpio command currently uses equal bank names "GPIO0_" for all existing gpio banks, i. e.: U-Boot# gpio status -a Bank GPIO0_: GPIO0_0: input: 0 [ ] GPIO0_1: input: 0 [ ] ... Bank GPIO0_: GPIO0_0: input: 0 [ ] GPIO0_1: input: 0 [ ] ... So the command is broken, it is not possible to address a desired bank. Add gpio aliases to fix this. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Anatolij Gustschin <agust@denx.de>
* spl: pass args to board_return_to_bootromPeng Fan2019-10-085-7/+18
| | | | | | | | | | | Pass spl_image and bootdev to board_return_bootrom. i.MX8MN needs the args to let ROM to load images Cc: Simon Glass <sjg@chromium.org> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
* serial: Kconfig: make MXC_UART usable for MX7 and IMX8MPeng Fan2019-10-081-1/+1
| | | | | | | | i.MX7 and i.MX8M use mxc uart driver, so let's make the SoC could use MXC_UART kconfig. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
* tools: imx8mimage: fix HDMI/FIT parsingPeng Fan2019-10-081-2/+5
| | | | | | | | | | Add missed break for HDMI entry. And moving FIT parsing earlier, because it does not have parameter, it will not runs into CFG_REG_SIZE. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* pinctrl: imx: use devfdt_get_addr_size_indexPeng Fan2019-10-081-3/+1
| | | | | | | | fdtdec_get_addr_size could not parse addr/size correctly is using address-cells 2 and size-cells 2 on an ARM32 SoC. So switch to use devfdt_get_addr_size_index. Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx: mx6slevk: enable DM_SPI and DM_SPI_FLASHPeng Fan2019-10-084-28/+6
| | | | | | | | | With DM_SPI and DM_SPI_FLASH enabled, we could get: spi 0 [ ] mxc_spi | | | `-- ecspi@02008000 spi_flash 0 [ ] spi_flash_std | | | `-- m25p80@0 Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx: mx6ul_14x14_evk: convert to DM_VIDEOPeng Fan2019-10-085-41/+71
| | | | | | | | | | To support DM_VIDEO, Add display node for lcdif Drop board iomuxc settings. Enable DM_VIDEO Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Anatolij Gustschin <agust@denx.de>
* imx: mx6ul_14x14_evk: Fix SPL bootPeng Fan2019-10-081-16/+0
| | | | | | | | | | | | | | | | When booting SPL on the board, met boot failure: " Trying to boot from MMC2 MMC Device 1 not found spl: could not find mmc device 1. error: -19 SPL: failed to boot from all boot devices " Let's register the two mmc controllers in SPL stage to avoid boot failure. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* imx: add i.MX6ULZ boardPeng Fan2019-10-085-3/+87
| | | | | | | | | | Add i.MX6ULZ board support. the i.MX6ULZ is SW compatible with i.MX6ULL. so most code of i.MX6ULL can be reused by i.MX6ULZ. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* imx: add i.MX6ULZ cpu typePeng Fan2019-10-084-0/+8
| | | | | | | | Add i.MX6ULZ cpu type and helper. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* arm: dts: import dts for i.MX6ULZPeng Fan2019-10-082-1/+39
| | | | | | | | | Import kernel dts for i.MX6ULZ from commit <0a8ad0ffa4d8> ("Merge tag 'for-linus-5.3-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux") Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* arm: dts: sync dts for i.MX6ULLPeng Fan2019-10-084-1703/+127
| | | | | | | | | Sync kernel dts for i.MX6ULL from commit <0a8ad0ffa4d8> ("Merge tag 'for-linus-5.3-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux") Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* arm: dts: sync dts for i.MX6ULPeng Fan2019-10-085-616/+863
| | | | | | | | | Sync kernel dts for i.MX6UL from commit <0a8ad0ffa4d8> ("Merge tag 'for-linus-5.3-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux") Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* Prepare v2019.10v2019.10Tom Rini2019-10-071-1/+1
| | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* NET: DW: fix regression for ARC boardsEugeniy Paltsev2019-10-073-2/+3
| | | | | | | | | | | | | The commit 642b80d256e ("net: designware: drop compatible altr, socfpga-stmmac") breaks designware ethernet for all ARC boards. It removes "altr, socfpga-stmmac" compatible from "drivers/net/designware.c" without changing compatible in the boards which use it. Fix that by adding "snps,arc-dwmac-3.70a" compatible string to "drivers/net/designware.c" and using it in ARC boards device tree. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
* Merge branch '2019-10-06-master-imports'Tom Rini2019-10-0617-9/+22
|\ | | | | | | | | - Regression work-around on SoCFPGA by disabling WDT in some cases. - Fix seg fault on 'host info' in some cases.
| * cmd: host: fix seg fault at "host info"AKASHI Takahiro2019-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | With the patch below applied, host_block_dev structure was switched to be placed in platdata rather than priv. The command "host info" must be aligned with this change. Otherwise, we will see "Segmentation Fault." Fixes: 8f994c860d91 ("sandbox: blk: Switch to use platdata_auto_alloc_size for the driver data") Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * MAINTAINERS: Update my email addressMaxime Ripard2019-10-062-4/+4
| | | | | | | | | | | | I'm not at bootlin anymore, and my mail address doesn't work any longer. Signed-off-by: Maxime Ripard <mripard@kernel.org>
| * arm: socfpga: disable CONFIG_SPL_WDT for gen5 and a10Simon Goldschmidt2019-10-0613-0/+13
| | | | | | | | | | | | | | | | | | These boards don't have a watchdog enabled in SPL, so make sure CONFIG_SPL_WDT is not enabled. Fixes: commit 6874cb72204f ("watchdog: Split WDT from SPL_WDT") Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * gitlab-ci: fix typo 'plaforms'Heinrich Schuchardt2019-10-061-4/+4
|/ | | | | | | %s/plaforms/platforms/g Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* Merge branch 'master' of git://git.denx.de/u-boot-shTom Rini2019-10-057-0/+44
|\ | | | | | | - ARM: dts: rmobile: Restore increase off-on delay on the SD Vcc regulator
| * ARM: dts: rmobile: Restore increase off-on delay on the SD Vcc regulatorMarek Vasut2019-09-307-0/+44
| | | | | | | | | | | | | | | | | | | | | | This patch restores commit c49d0ac38a76 ("ARM: dts: rmobile: Increase off-on delay on the SD Vcc regulator"), which was accidentally dropped during DT resync in commit 317d13ac6307 ("ARM: dts: rmobile: Synchronize Gen3 DTs with Linux 5.0"). Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Fixes: 317d13ac6307 ("ARM: dts: rmobile: Synchronize Gen3 DTs with Linux 5.0")
* | Merge branch '2019-10-04-master-imports'WIP/04Oct2019Tom Rini2019-10-0443-72/+145
|\ \ | | | | | | | | | | | | | | | | | | | | | - Assorted TI platform fixes - Revert the change that broke environment flag validation - Assorted typo fixes - Assorted Kconfig dependency fixes - Other minor bug fixes
| * | Revert "env: solve compilation error in SPL"Tom Rini2019-10-041-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7d4776545b0f8a8827e5d061206faf61c9ba6ea9. The changes here break environment validation and furthermore do not seem to be required. Signed-off-by: Tom Rini <trini@konsulko.com>
| * | ARM: dts: imx6q-logicpd: Add missing imx6q-logicpd-u-boot for SPLAdam Ford2019-10-042-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SPL device tree is missing the entires for gpio1, uart1, usdhc1 and usdhc2. This creates the missing imx6q-logicpd-u-boot.dtsi file which will enable these functions so SPL can properly setup UART, detect microSD card, and startup. Fixes: 8f4691e31a18 ("ARM: imx6q_logic: With SPL_OF_CONTROL enabled, remove MMC init") Signed-off-by: Adam Ford <aford173@gmail.com>
| * | initcall.h: initcall_run_list(): Improve debug outputOvidiu Panait2019-10-041-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Existing debug output is mixed with the function name: initcall_run_list() initcall: 25263initcall_run_list() (relocated to 425263) Turn it to: initcall_run_list() initcall: 25263 (relocated to 425263) Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
| * | Kconfig: fix a typo in the description of bmp command.Andrius Štikonas2019-10-041-1/+1
| | | | | | | | | | | | Signed-off-by: Andrius Štikonas <andrius@stikonas.eu>
| * | Kconfig: Migrate CONFIG_BOOTM_* optionsTom Rini2019-10-0430-53/+74
| | | | | | | | | | | | | | | | | | | | | Migrate all of the existing OS support options that are under CONFIG_BOOTM_* to Kconfig. Signed-off-by: Tom Rini <trini@konsulko.com>
| * | cmd: part: number: return hexadecimal valueRoman Stratiienko2019-10-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At this point we are using part number sub-command to retrieve UUID of the partition using it's name. e.g.: part number mmc $mmcdev system_a system_a_index part uuid mmc $mmcdev:${system_a_index} system_a_uuid Since 'part uuid' sub-command expects partition index in hex format and 'part number' returns decimal value, 'part uuid' command will provide wrong UUID or fail. Fixes: be683756f62034 ("cmd: part: Add 'number' sub-command") Cc: Dirk Behme <dirk.behme@de.bosch.com> Reported-by: Pontus Fuchs <pontus.fuchs@se.bosch.com> Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
| * | ARM: keystone2: update the default addresses of the secure monitorJean-Jacques Hiblot2019-10-041-2/+2
| | | | | | | | | | | | | | | | | | | | | To accommodate the growth of u-boot, we need to shift the location of the secure monitor. Moving it 64kB further. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
| * | board: ti: am654: Disable TRNG node for HS devicesAndrew F. Davis2019-10-043-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | On HS devices the access to TRNG is restricted on the non-secure ARM side, disable the node in DT to prevent firewall violations. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>