summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ubi: env: fix redundand managementPhilippe Reynes2019-10-162-1/+7
| | | | | | | | | | | | | | | | We check (with a #if defined()) the config ENV_UBI_VOLUME_REDUND to know if there is a redundant env. But this config is a string and is always defined with env is in ubi, so we always consider that a redundand env is used. To fix this issue, I've added a hidden flag ENV_UBI_IS_VOLUME_REDUND that is true when ENV_UBI_VOLUME_REDUND is not "". Then, I check this flag in the code, instead of the string ENV_UBI_VOLUME_REDUND. hs: fixed typo s/condider/consider Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdrStefan Roese2019-10-162-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | U-Boot now supports the "skip_check" flag to optionally skip the CRC check at open time. Currently its only possible to set this bit upon UBI volume creation. But it might be very useful to also set this bit on already installed systems (e.g. field upgrade) to make also use of the boot-time decrease on those systems. This patch now adds a new "ubi" command "ubi skipcheck" to set or clear this bit in the UBI volume header: => ubi skipcheck rootfs0 on Setting skip_check on volume rootfs0 BTW: This saves approx. 10 seconds Linux bootup time on a MT7688 based target with 128MiB of SPI NAND. Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de> Cc: Quentin Schulz <quentin.schulz@bootlin.com> Cc: Boris Brezillon <boris.brezillon@collabora.com> Cc: Heiko Schocher <hs@denx.de> Cc: Andreas Dannenberg <dannenberg@ti.com>
* ubi: Print skip_check in ubi_dump_vol_info()Stefan Roese2019-10-161-0/+1
| | | | | | | | | | | | | It might be interesting, if "skip_check" is set or not, so lets print this flag in ubi_dump_vol_info() as well. hs: fix typo in commit message Signed-off-by: Stefan Roese <sr@denx.de> Cc: Quentin Schulz <quentin.schulz@bootlin.com> Cc: Boris Brezillon <boris.brezillon@bootlin.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
* ubi: provide a way to skip CRC checksQuentin Schulz2019-10-167-9/+61
| | | | | | | | | | | | | | | | | | | Some users of static UBI volumes implement their own integrity check, thus making the volume CRC check done at open time useless. For instance, this is the case when one use the ubiblock + dm-verity + squashfs combination, where dm-verity already checks integrity of the block device but this time at the block granularity instead of verifying the whole volume. Skipping this test drastically improves the boot-time. Adapted to U-Boot by Stefan Roese. Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com> Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de> Cc: Quentin Schulz <quentin.schulz@bootlin.com> Cc: Boris Brezillon <boris.brezillon@bootlin.com>
* Merge branch 'master' of git://git.denx.de/u-boot-socfpgaTom Rini2019-10-1412-132/+195
|\ | | | | | | - vining_fpga updates
| * ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROMMarek Vasut2019-10-091-0/+2
| | | | | | | | | | | | | | | | The EEPROM contains eth1 MAC address as well, use it. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Silvio Fricke <silvio.fricke@softing.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * ARM: socfpga: vining_fpga: Update environmentMarek Vasut2019-10-092-25/+83
| | | | | | | | | | | | | | | | Update board environment to match the one used in deployment. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Silvio Fricke <silvio.fricke@softing.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * ARM: socfpga: vining_fpga: Update generated headersMarek Vasut2019-10-094-88/+82
| | | | | | | | | | | | | | | | Update headers generated by quartus to the latest version. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Silvio Fricke <silvio.fricke@softing.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * ARM: socfpga: vining_fpga: Update DTMarek Vasut2019-10-092-4/+13
| | | | | | | | | | | | | | | | | | Pick minor changes from the downstream DT, disable MMC, add GMAC0 node and adjust PHY skew settings for GMAC1. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Silvio Fricke <silvio.fricke@softing.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
| * ARM: socfpga: vining_fpga: Rename VINING|FPGAMarek Vasut2019-10-0911-15/+15
| | | | | | | | | | | | | | | | | | 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: Silvio Fricke <silvio.fricke@softing.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* | Merge tag 'u-boot-imx-20191014' of ↵Tom Rini2019-10-1449-665/+1270
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx u-boot-imx-20191014 ------------------- Travis: https://travis-ci.org/sbabic/u-boot-imx/builds/597498628 - logicpd pinmux - i.MX7ULP: imx_ddr_size - fixes Toradex i.MX6/i.MX7 - pico-imx7d - tpc70 converted to DM - New Board: meerkat96 - add HAB version command - i.MX8 : imx8: Jump from alias to OCRAM address at SPL init imx8qm/qxp: Set SPL TEXT base to OCRAM base
| * | i2c: imx_lpi2c: add ipg clkPeng Fan2019-10-142-0/+12
| | | | | | | | | | | | | | | | | | | | | The controller needs two clk, per clk and ipg clk, so let's add ipg clk. Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * | imx :hab: Add hab version commandSjoerd Simons2019-10-142-0/+22
| | | | | | | | | | | | | | | | | | | | | THe RVT data includes a major and minor version in its header parameter. Add a new command to print this out. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
| * | imx: imx8mm_evk: add board_mmc_get_env_devPeng Fan2019-10-141-0/+5
| | | | | | | | | | | | | | | | | | Add board_mmc_get_env_dev to correctly return devno for mmc env Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * | mx7ulp_evk: Use imx_ddr_size()Fabio Estevam2019-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use imx_ddr_size() to retrieve the total DDR size instead of passing a hardcoded memory size. imx_ddr_size() calculates the memory size based on the actual MMDC registers values and is useful to detect misconfigurations, so switch to this more robust approach. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * | imx: mmdc_size: Allow building it for i.MX7ULPFabio Estevam2019-10-142-2/+4
| | | | | | | | | | | | | | | | | | | | | i.MX7ULP uses the same MMDC controller IP as found on i.MX53 and i.MX6, so build mmdc_size.c for i.MX7ULP as well. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * | imx: mmdc_size: Fix checkpatch warningsFabio Estevam2019-10-141-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original imx_ddr_size() implementation had some issues reported by checkpatch like this: CHECK: Prefer kernel type 'u32' over 'uint32_t' #127: FILE: arch/arm/mach-imx/mmdc_size.c:16: + uint32_t ctl; WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #151: FILE: arch/arm/mach-imx/mmdc_size.c:40: + unsigned ctl = readl(&mem->ctl); Fix all of them. Signed-off-by: Fabio Estevam <festevam@gmail.com>
| * | imx: Place imx_ddr_size() into a separate fileFabio Estevam2019-10-143-53/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Place imx_ddr_size() into a separate file. The motivation for doing this is to be able to easily reuse imx_ddr_size() on i.MX7ULP. Currently imx_ddr_size() is inside arch/arm/mach-imx/cpu.c, which is not built for i.MX7ULP. Changing the logic to allow building cpu.c for i.MX7UP would require adding several ifdef's, leading to a not a very elegant solution. To allow better reuse, just place imx_ddr_size() into a common mmdc_size.c file. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Stefano Babic <sbabic@denx.de>
| * | configs: icorem6: Enable nandbcb commandShyam Saini2019-10-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This also enables mtd configs which are required by nandbcb command. This command would be used to configure boot control block(BCB) while writing spl image on nand device. Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
| * | colibri_imx7: provide proper node name to pmic_getIgor Opaniuk2019-10-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of pmic_get() uses uclass_find_device_by_name(), which behaviour was changed in 4213609cc7 ("drivers: core: use strcmp when find device by name"). Now we have to supply full node name with unit address. Fixes boot issue: U-Boot 2019.07-00788-g0ef6e69a1e-dirty (Jul 19 2019 - 15:27:02 +0300) CPU: Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 41C Reset cause: POR DRAM: 512 MiB initcall sequence 9ffd3a4c failed at call 87803c61 (err=-19) ERROR Please RESET the board Fixes: 4213609cc7("drivers: core: use strcmp when find device by name") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
| * | spl, Makefile: Take external offset into account for fit imagesSjoerd Simons2019-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building a FIT image for SPL to load also take into account the configured external offset. This allows the SPL to load the u-boot FIT image correctly when configuring SECURE_BOOT on i.mx6 is enabled (with CONFIG_FIT_EXTERNAL_OFFSET=0x3000). Note this doesn't allow secure booting; but it does allow an unsigned SPL/u-boot with secure boot support eanbled to boot on open device. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
| * | colibri_imx7: remove legacy sdboot wrapperIgor Opaniuk2019-10-131-23/+0
| | | | | | | | | | | | | | | | | | Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * | colibri_imx6: remove legacy sdboot wrapperIgor Opaniuk2019-10-131-18/+0
| | | | | | | | | | | | | | | | | | Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * | colibri-imx6ull: remove legacy sdboot wrapperIgor Opaniuk2019-10-131-14/+0
| | | | | | | | | | | | | | | | | | Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * | apalis_imx6: remove legacy sdboot wrapperIgor Opaniuk2019-10-131-19/+0
| | | | | | | | | | | | | | | | | | Remove legacy sdboot wrapper as distroboot can be used instead. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
| * | imx8qm/qxp: Set SPL TEXT base to OCRAM baseYe Li2019-10-133-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Modify the SPL TEXT base from OCRAM alias to OCRAM base 0x100000, so we can use full OCRAM not limit to 96KB Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
| * | imx8: Jump from alias to OCRAM address at SPL initYe Li2019-10-132-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running SPL on iMX8, the A core starts at address 0 which is a alias to OCRAM 0x100000. The alias only map first 96KB of OCRAM, so this require the SPL size can't beyond 96KB. But when using SPL DM, the size increase significantly and may exceed 96KB. So to fix the problem, we will change SPL linker address to OCRAM address 0x100000. And then jump to the absolute address not the PC relative address for entering OCRAM. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
| * | imx: config: Update KP's TPC70 config to support SWUpdateLukasz Majewski2019-10-131-2/+5
| | | | | | | | | | | | | | | | | | | | | This patch updates envs responsible for using USB pendrive as a SWUpdate based tool for recovery and update. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: Convert TPC70 (imx6q) board to use DM/DTS in SPL and u-bootLukasz Majewski2019-10-135-314/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch converts the TPC70 to use driver model and device tree description in both SPL and u-boot proper. Notable changes (DM/DTS conversion): - PINCTRL{_IMX6} - DM_I2C - enable 'regulator' and 'pmic' commands - DM_MMC and BLK (USDHC) - DM_ETH - DM WDT (including SYSRESET) Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: dts: Add u-boot specific set of device tree properties for tpc70Lukasz Majewski2019-10-131-0/+59
| | | | | | | | | | | | | | | | | | | | | This commit adds new file - imx6q-kp-u-boot.dtsi with a set of u-boot specific properties for imx6q KP device. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: dts: Add TPC70 board (imx6q based) device tree descriptionLukasz Majewski2019-10-132-0/+220
| | | | | | | | | | | | | | | | | | This commit defines the TPC70 imx6q board with device tree description. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: led: Enable LED default stateLukasz Majewski2019-10-131-0/+4
| | | | | | | | | | | | | | | | | | This change sets the default state of LEDs on TPC70. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: cosmetic: Replace magic numbers when setting ENET clockLukasz Majewski2019-10-131-1/+2
| | | | | | | | | | | | | | | | | | | | | This is a cosmetic change, just to use proper define instead of magic numbers. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: Add board_boot_order() to distinguish between eMMC and SD bootLukasz Majewski2019-10-131-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TPC70 can boot from SD card (debug/development) and eMMC (production). The board_boot_order() function provides a run time check for the device from which one wants to boot (it is selected by GPIO pins setup). Moreover, a fallback to SD card is provided if the detection is not possible or working properly. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: config: Update TPC70 config to support eMMC's boot0 SPL updateLukasz Majewski2019-10-131-0/+5
| | | | | | | | | | | | | | | | | | | | | The TPC70 can boot from eMMC's boot0. This patch allows it to update this HW partition's SPL. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | imx: tpc70: config: Add script commands to update u-boot and OE's wicLukasz Majewski2019-10-131-0/+21
| | | | | | | | | | | | Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | pico-imx7d: Support distro boot for FIT image caseJun Nie2019-10-131-26/+11
| | | | | | | | | | | | | | | | | | | | | Support distro boot for pico imx7d in FIT image case. Signed-off-by: Jun Nie <jun.nie@linaro.org> Tested-by: Joris Offouga <offougajoris@gmail.com>
| * | pico-imx7d: add config to enable CAAMJun Nie2019-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | | Add config to enable CAAM so that hardware random number generator works. Signed-off-by: Jun Nie <jun.nie@linaro.org>
| * | ARM: imx6q_logic: Remove legacy pinmuxing code from board file.Adam Ford2019-10-131-85/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the OCRAM expanded to 256KB and the SPL_PINCTRL enabled with -u-boot.dtsi entries to include the pinmuxing in SPL, the manual code setting up the pinmux can go away. This patch removes the legacy pinmuxing code from the board file. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | ARM: imx6q_logic: Enable Pin muxing in SPLAdam Ford2019-10-132-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the 256KB of OCRAM available to SPL now, there should be enough room to enable the pinmuxing in SPL from the device tree. This patch enables SPL_PINCTRL et al and adds the serial and usdhc pin mux references to the -u-boot.dtsi file so the pins can be configured from the device tree. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
| * | ARM: imx6q_logic: Enable 256KB OCRAMAdam Ford2019-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since this board config only supports, the i.MX6D/i.MX6Q configurations, 256K of on-chip RAM is available which increases the space available to SPL to help further reduce board code and further enable device tree functions. This patch enables 256K of RAM. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | board: tbs2910: Convert eth to driver modelSoeren Moch2019-10-133-84/+3
| | | | | | | | | | | | | | | | | | So we can remove lots of legacy config code. Signed-off-by: Soeren Moch <smoch@web.de>
| * | board: tbs2910: Convert pci to driver modelSoeren Moch2019-10-132-18/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we can get rid of legacy pci config code. PCI_PNP is not required for this board, remove it to reduce the size of the u-boot binary. DM_PCI does not start the host controller automatically anymore. Do so in preboot instead. Signed-off-by: Soeren Moch <smoch@web.de>
| * | ARM: dts: imx6q-tbs2910: Sync devicetree with kernel 5.3Soeren Moch2019-10-131-1/+2
| | | | | | | | | | | | Signed-off-by: Soeren Moch <smoch@web.de>
| * | mx6: mx6sabre common: Use more conventional spelling of fdtfileSjoerd Simons2019-10-131-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Both the distro boot configuration as well as the general pxe support standardized on fdtfile as the variable to hold the dtb filename. Adjust to follow that such that e.g. "pxe boot" will just work. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
| * | Add i.MX7D based Meerkat96 board supportShawn Guo2019-10-139-0/+345
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Meerkat96 board, based on the NXP i.MX7D SoC, is a member of 96Boards community and complies with all Consumer Edition board specifications. https://www.novtech.com/products/meerkat96.html https://www.96boards.org/product/imx7-96/ The initial supported/tested devices include: - Debug serial - SD - USB Host (with Ethernet) With these support, it's good enough for loading Linux Kernel from SD or Ethernet over USB. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Peng Fan <peng.fan@nxp.com> Tested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
| * | ARM: dts: import meerkat96 board supportShawn Guo2019-10-132-0/+376
| | | | | | | | | | | | | | | | | | It imports device tree source of meerkat96 board from Linux Kernel. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
* | | Merge tag 'video-for-2020.01' of ↵Tom Rini2019-10-1430-61/+3941
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-video - panel bridge support in stm32 ltdc - DSI host uclass - sandbox DSI host uclass test driver and DSI host test - MIPI DSI helpers - Synopsys Designware MIPI DSI host bridge driver - STM32 DSI controller driver - OTM800A and RM68200 panel support - DSI host updates for stm32f769 and stm32mp1 dtsi files - splash screen for stm32f769 and stm32mp1 boards - stm32 defconfig updates for display support
| * | | stm32mp1: configs: add display devicesYannick Fertré2019-10-133-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support of panels otm8009A, RM68200 & DSI controller. Limit resolution to 1280x800. Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
| * | | stm32mp1: configs: update videoYannick Fertré2019-10-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update video configs to support bitmap 16bpp, 24bpp, 32bpp & RLE8. Signed-off-by: Yannick Fertré <yannick.fertre@st.com>