summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ARM: imx: Rename VINING|2000Marek Vasut2019-06-117-9/+12
| | | | | | | | | | The company Samtec was merged into Softing, migrate the board over to the new name and update copyright headers. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Silvio Fricke <silvio.fricke@softing.com> Cc: Stefano Babic <sbabic@denx.de>
* mx6sx: vining2000: pinmux usdhc4 resetChristoph Fritz2019-06-111-0/+4
| | | | | | This patch configures pinmux for pin usdhc4 reset. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
* MAINTAINERS: Add imx dts files to i.MX maintainers listFabio Estevam2019-06-111-0/+1
| | | | | | | | | Add imx dts files to the MAINTAINERS file list, so that i.MX devicetree related patches can be properly sent to the i.MX folks. Reported-by: Adam Ford <aford173@gmail.com> Signed-off-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* serial: mxc: Add iMX6SX compatible stringMarek Vasut2019-06-111-0/+1
| | | | | | | | | Add compatible string for iMX6SX. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Silvio Fricke <silvio.fricke@softing.com> Cc: Stefano Babic <sbabic@denx.de>
* ARM: imx: novena: Enable DM PCIMarek Vasut2019-06-111-0/+1
| | | | | | | | | Enable DM PCI support on iMX6Q Novena. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* pci: imx: Add DM and DT supportMarek Vasut2019-06-111-6/+105
| | | | | | | | | | | | Add DM support and support for probing the iMX PCI driver from DT. The legacy non-DM support is retained, however shall be removed once DM PCI is the only option remaining. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* pci: imx: Pass driver private data aroundMarek Vasut2019-06-111-19/+25
| | | | | | | | | | | | Pass the driver private data around the driver as much as possible, instead of having it as a static global variable. This is done in preparation for the DM conversion, no functional change. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* pci: imx: Fix potential 64bit memory access clampingMarek Vasut2019-06-111-9/+11
| | | | | | | | | | | | | The driver limits the config space base to 32bit, however it can be 64bit on 64bit iMX hardware too. Remove that limitation. This patch has no impact on the iMX6, which is the only SoC currently supported by this driver. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* pci: imx: Factor out hard-coded register base addressesMarek Vasut2019-06-111-31/+44
| | | | | | | | | | | Pull out hard-coded register base addresses into driver private structure in preparation for DM conversion. No functional change. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* ARM: imx: Call imx_pcie_remove() only for non-DM PCI driverMarek Vasut2019-06-111-1/+1
| | | | | | | | | | | | The DM iMX PCI driver has DM_FLAG_OS_PREPARE set and will call imx_pcie_remove() from the .remove callback. Do not call it from the architecture code again. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* mx6sabresd: Remove U-Boot proper mmc initializationFabio Estevam2019-06-111-44/+0
| | | | | | | | | After the conversion to DM there is no need to have mmc initialization code inside U-Boot proper. Remove the unneeded code. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* mx6sabresd: Select pinctrl driverFabio Estevam2019-06-111-0/+2
| | | | | | With the conversion to DM we should select the pinctrl driver. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* mx6sabresd: Remove CONFIG_SPL_DM to decrease the SPL sizeFabio Estevam2019-06-111-1/+0
| | | | | | | | | | | | | | | | | | | Currently the mx6qsabresd board does not boot: U-Boot SPL 2019.07-rc2 (May 16 2019 - 14:28:55 -0300) Trying to boot from MMC1 spl: could not find mmc device 0. error: -19 SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### The reason for the boot failure is that that the SPL size got greater than the 68KB limit (4KB header + 64KB max size) as explained in include/configs/imx6_spl.h. Remove the CONFIG_SPL_DM option, so that the SPL binary could fit into the allowed size and the board can boot again. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* imx8qxp_mek: Remove unneeded config options settingsFabio Estevam2019-06-111-8/+0
| | | | | | | | Remove such unneeded custom config options because the provided default values are good enough. Signed-off-by: Fabio Estevam <festevam@gmail.com> Acked-by: Peng Fan <peng.fan@nxp.com>
* imx8qm_mek: Remove unneeded config options settingsFabio Estevam2019-06-111-9/+0
| | | | | | | | Remove such unneeded custom config options because the provided default values are good enough. Signed-off-by: Fabio Estevam <festevam@gmail.com> Acked-by: Peng Fan <peng.fan@nxp.com>
* imx: Extend PCL063 support for phyCORE-i.MX6ULL SOMParthiban Nallathambi2019-06-1112-11/+384
| | | | | | | | | | | | | | | | | | | | | | | | | | | Extend PHYTEC phyBOARD-i.MX6UL for phyCORE-i.MX6UL SoM (PCL063) with eMMC on SoM. CPU: Freescale i.MX6ULL rev1.0 792 MHz (running at 396 MHz) CPU: Industrial temperature grade (-40C to 105C) at 38C Reset cause: POR Model: Phytec phyBOARD-i.MX6ULL-Segin SBC Board: PHYTEC phyCORE-i.MX6ULL DRAM: 256 MiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 In: serial@02020000 Out: serial@02020000 Err: serial@02020000 Net: FEC0 Working: - Eth0 - i2C - MMC/SD - eMMC - UART (1 & 5) - USB (host & otg) Signed-off-by: Parthiban Nallathambi <parthitce@gmail.com>
* apalis-tk1: use UUID for rootfsIgor Opaniuk2019-06-111-21/+41
| | | | | | | | | | 1. Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs partition. This fixes the issue, when MMC controllers are probed in a different order in U-boot and Linux kernel. 2. Fix legacy USB command (both sdboot and usbboot can be used now). Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* apalis_imx6: use UUID for rootfsIgor Opaniuk2019-06-111-21/+43
| | | | | | | | | | 1. Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs partition. This fixes the issue, when MMC controllers are probed in a different order in U-boot and Linux kernel. 2. Fix legacy USB command (both sdboot and usbboot can be used now). Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* colibri_vf: use UUID for rootfsIgor Opaniuk2019-06-111-4/+11
| | | | | | | | | Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs partition. This fixes the issue, when MMC controllers are probed in a different order in U-boot and Linux kernel. Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* colibri-imx6ull: use UUID for rootfsIgor Opaniuk2019-06-111-4/+9
| | | | | | | | | Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs partition. This fixes the issue, when MMC controllers are probed in a different order in U-boot and Linux kernel. Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* colibri_imx7: use UUID for rootfsIgor Opaniuk2019-06-111-19/+28
| | | | | | | | | Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs partition. This fixes the issue, when MMC controllers are probed in a different order in U-boot and Linux kernel. Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
* board: toradex: add apalis imx8qm 4gb wb it v1.0b module supportMarcel Ziswiler2019-06-1112-0/+1221
| | | | | | | | | | | | | | | | | | | | | This commit adds initial support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot supports either booting from the on-module eMMC or may be used for recovery purpose using the universal update utility (uuu) aka mfgtools 3.0. Functionality wise the following is known to be working: - eMMC, 8-bit and 4-bit MMC/SD card slots - Gigabit Ethernet - GPIOs - I2C Unfortunately, there is no USB functionality for the i.MX 8QM as of yet. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
* imx8: fuse: fix fuse driverMarcel Ziswiler2019-06-111-2/+0
| | | | | | | | This fixes the i.MX 8 fuse driver to actually build for i.MX 8QM as well. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
* imx8qm: fix cpu frequency reportingMarcel Ziswiler2019-06-111-1/+3
| | | | | | | | | | | | | | | CPU frequency reporting failed with the following error message being printed: sc_pm_get_clock_rate: resource:507 clk:2: res:3 Could not read CPU frequency: -22 CPU: NXP i.MX8QM RevB A53 at 0 MHz Fix this by differentiating between the A35 as found on the i.MX 8QXP and the A53 as found on the i.MX 8QM SoCs. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
* clk: imx8qm: fix usdhc2 clocksMarcel Ziswiler2019-06-111-0/+18
| | | | | | | | | | | | | Trying to bring up uSDHC2 the following error message was observed: MMC: imx8_clk_set_rate(Invalid clk ID #60) imx8_clk_set_rate(Invalid clk ID #60) usdhc@5b030000 - probe failed: -22 This commit fixes this by properly setting resp. clocks. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
* arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4Marcel Ziswiler2019-06-111-0/+75
| | | | | | | Add support for i2c0, i2c1, i2c2, i2c3 and i2c4. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
* arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4Marcel Ziswiler2019-06-111-0/+80
| | | | | | | Add support for lpuart1, lpuart2, lpuart3 and lpuart4. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
* pico-imx6ul: MAINTAINERS: Add pico-dwarf entryFabio Estevam2019-06-111-0/+1
| | | | | | | | pico-dwarf-imx6ul_defconfig does not have an entry in MAINTAINERS file, so add it to avoid a build warning. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <festevam@gmail.com>
* pico-imx6ul: MAINTAINERS: Unify all board entriesFabio Estevam2019-06-111-8/+0
| | | | | | It is easier to consolidate all boards into a single entry. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* pico-imx7d: MAINTAINERS: Unify all board entriesFabio Estevam2019-06-111-8/+2
| | | | | | It is easier to consolidate all boards into a single entry. Signed-off-by: Fabio Estevam <festevam@gmail.com>
* colibri_imx7: fastboot supportIgor Opaniuk2019-06-111-0/+8
| | | | | | | Enable fastboot support (including "fastboot oem" subset of commands). Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
* ARM: imx: novena: Convert to DM VIDEOMarek Vasut2019-06-113-5/+18
| | | | | | | | | | Enable DM Video support on iMX6Q Novena and fix minor details to restore previous behavior of the system. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* ARM: imx: novena: Enable DM USBMarek Vasut2019-06-111-0/+1
| | | | | | | | | Enable DM USB support on iMX6Q Novena. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* ARM: imx: novena: Convert block devices to DMMarek Vasut2019-06-114-63/+12
| | | | | | | | | | Enable DM block, DM MMC and DM SATA support on iMX6Q Novena convert board code to match the DM support. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* ARM: imx: novena: Enable DM GPIOMarek Vasut2019-06-113-0/+6
| | | | | | | | | | Enable DM GPIO support on iMX6Q Novena and fix up board code where applicable. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* ARM: imx: novena: Enable DM pin controlMarek Vasut2019-06-111-0/+5
| | | | | | | | | Enable DM pin control support on iMX6Q Novena. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* ARM: dts: imx: novena: Import Novena DT from LinuxMarek Vasut2019-06-113-2/+796
| | | | | | | | | | Import iMX6Q Novena device tree from Linux 5.1-rc7 37624b58542f . Enable DT control in full U-Boot . Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Vagrant Cascadian <vagrant@debian.org>
* pico-imx7d: enable boot without PMICJun Nie2019-06-111-2/+5
| | | | | | | | | | | | If PMIC is not probed successfully, it is still OK to boot with default configuration although power is not optimized. Default voltage of SW1A/SW1B is 1.1V/1.0V for PC32PF3000A1EP on pico according to table 42 of spec of PF3000 ver 9.0. Default mode of SW1A/SW1B is APS as expected(table 47). Signed-off-by: Jun Nie <jun.nie@linaro.org>
* pico-imx7d: README: Add BL33 usage caseJun Nie2019-06-111-0/+44
| | | | | | | Add Documentation of BL33 usage case. U-boot is in non-secure world in this case. Signed-off-by: Jun Nie <jun.nie@linaro.org>
* pico-imx7d: Add bl33 configJun Nie2019-06-111-0/+66
| | | | | | | | Add default configuration to run u-boot as BL33 in the boot flow case of ATF(ARM Trusted Firmware) -> OPTEE -> U-boot. Signed-off-by: Jun Nie <jun.nie@linaro.org> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* pico-imx7d: Add boot option for verified bootJun Nie2019-06-111-3/+35
| | | | | | | | Add boot option to boot from fitimage to support verified boot. The boot script plain text file should be packed into fit blob as image with name of bootscr. Signed-off-by: Jun Nie <jun.nie@linaro.org>
* pico-imx7d: Reserve region of memory to OPTEEJun Nie2019-06-111-0/+5
| | | | | | | | | | | | Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size so that the OPTEE memory is not override during u-boot relocation. Note the OPTEE live in the end part of DRAM and OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Jun Nie <jun.nie@linaro.org> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* pico-imx7d: Correct uart clock rootJun Nie2019-06-112-1/+19
| | | | | | | | | | | Correct uart clock root ID. Incorrect ID may result the clock is gated because rate value 0 is returned in imx_get_uartclk() The ID can be ignored if CONFIG_SKIP_LOWLEVEL_INIT is not enabled because init_clk_uart() will enable all uart clocks in that case. Signed-off-by: Jun Nie <jun.nie@linaro.org>
* imx: mx7: Skip secure init in arch_cpu_initJun Nie2019-06-111-15/+28
| | | | | | | | Skip secure related initialization in arch_cpu_init if low level init is skipped. Because these should be done in early stage firmware, such as ARM trusted firmware. Signed-off-by: Jun Nie <jun.nie@linaro.org>
* mx7_common: Share configs to skip low level initJun Nie2019-06-112-11/+11
| | | | | | | | | | | | | Share configs in mx7 to skip low level init if we are in the case where OPTEE is loaded already (maybe by ARM Trusted Firmware) and that most of the low level initialization is already done and that we may/should skip it doing them here. Fix the definition detection with size detection to decide whether to skip it. Signed-off-by: Jun Nie <jun.nie@linaro.org> Reviewed-by: Fabio Estevam <festevam@gmail.com>
* spi: imx: work with cs greater 0Heiko Schocher2019-06-111-22/+52
| | | | | | | currently spi mxc driver can only handle cs 0. Allow it to handle also cs > 0. Signed-off-by: Heiko Schocher <hs@denx.de>
* spi: imx: remove doubled pointer from mxc_spi_probeHeiko Schocher2019-06-111-4/+3
| | | | | | | | | | | in mxc_spi_probe() plat and mxcs pointer are created: struct mxc_spi_slave *plat = bus->platdata; struct mxc_spi_slave *mxcs = dev_get_platdata(bus); which have the same value. Remove plat pointer. Signed-off-by: Heiko Schocher <hs@denx.de>
* arm, imx, Makefile: fix u-boot-dtb.imx build in CONFIG_MULTI_DTB_FIT caseHeiko Schocher2019-06-112-1/+14
| | | | | | | | | | | | in case CONFIG_MULTI_DTB_FIT is set and u-boot-dtb.imx image is build, currently u-boot-dtb.bin is used for generating the u-boot-dtb.imx binary, which is wrong, as it contains only a dtb blob not the fit.blob Use instead the u-boot-fit-dtb.bin for generating u-boot-dtb.imx which contains the fit.blob. Signed-off-by: Heiko Schocher <hs@denx.de>
* wandboard: Rework Makefile to prevent spl.o from being builtEzequiel Garcia2019-06-112-4/+2
| | | | | | | | The spl.c source was entirely conditioned by CONFIG_SPL_BUILD. Change this moving CONFIG_SPL_BUILD to be used in the Makefile, which is slightly cleaner and more readable. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
* ARM: imx: dh-imx6: Convert SPI support to DMMarek Vasut2019-06-113-10/+9
| | | | | | | | | | Enable DM SPI and SF support on DHCOM iMX6 PDK2. Convert board code to match the DM support. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Ludwig Zenz <lzenz@dh-electronics.com> Cc: Stefano Babic <sbabic@denx.de>