summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mx6slevk: Use PARTUUID to specify the rootfs locationFabio Estevam2017-10-123-2/+5
| | | | | | | | | | | | | mx6slevk can run different kernel versions, such as NXP 4.1 or mainline. Currently the rootfs location is passed via mmcblk number and the problem with this approach is that the mmcblk number for the SD card changes depending on the kernel version. In order to avoid such issue, use the UUID method to specify the rootfs location. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* drivers: pci: imx: fix imx_pcie_remove functionSven-Ola Tuecke2017-10-121-4/+4
| | | | | | | | | | | | | | | | | | We have at least a minor count of boards, that failed to re-initialize PCI express in the Linux kernel. Typical failure rate is 20% on affected boards. This is mitigated by commit 6ecbe1375671 ("drivers: pci: imx: add imx_pcie_remove function"). However, at least on some i.MX6 custom boards, when calling assert_core_reset() as part of the first-time PCIe init, read access to PCIE_PL_PFLR simply hangs. Surround this readl() with imx_pcie_fix_dabt_handler() does not help. For this reason, the forced LTSSM detection is only used on the second assert_core_reset() that is called shorly before starting the Linux kernel. Signed-off-by: Sven-Ola Tuecke <sven-ola.tuecke@numberfour.eu> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Tested-by: David Müller <d.mueller@elsoft.ch>
* wandboard: Add support for the latest revd1 revisionFabio Estevam2017-10-123-5/+115
| | | | | | | | | | | | | | | | | | | | | | Latest wandboard hardware revision is revd1, which brings the following new features: - PFUZE100 PMIC - AR8035 Ethernet PHY - Upgrade Wifi/BT chip to BCM4339/BCM43430. The detection mechanism is to probe the PMIC and when it is found, then the revision of the board is revd1. As the detection is done via PMIC, we need to print the board version at a later stage via CONFIG_DISPLAY_BOARDINFO_LATE and also need to disable CONFIG_DISPLAY_BOARDINFO, which is done much earlier. Make the necessary adjustments for the AR8035 PHY to work on revd1. Based on Richard Hu's work from Technexion's U-Boot tree. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* doc: update imx_usb_loader URLStefan Agner2017-10-121-1/+1
| | | | | | | | | The changes required to use U-Boot's Serial Download Protocol implementation are now available in upstream imx_usb_loader repository. Update the URL accordingly. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* arm: imx7d: add support for Compulab cl-som-imx7Ilya Ledvich2017-10-1211-0/+1067
| | | | | | | | | | | | | | Add initial support for Compulab cl-som-imx7 SoM. The initial support includes: - MMC - eMMC - SPI flash - I2C - FEC - USB - Serial console Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
* imx: mx7: SPL support for i.MX7Uri Mashiach2017-10-123-1/+90
| | | | | | Add configuration file and spl_boot_device function for the i.MX7 SPL. Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
* imx: mx7: DDR controller configuration for the i.MX7 architectureUri Mashiach2017-10-125-1/+364
| | | | | | | | | | The configuration files imximage.cfg are used for the DDR controller configuration. Add DDR configuration function to replace the DDR controller configuration in the imximage.cfg file. The function can be used for DDR size detection. Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
* imx: mx7: fix the CCM_ macrosUri Mashiach2017-10-121-23/+23
| | | | | | | | The CCM_ macros use the CCM_BASE_ADDRESS macro, which doesn't exist. Replace the CCM_BASE_ADDRESS macros with CCM_BASE_ADDR. Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
* icorem6_rqs: env: Return mmc devnoJagan Teki2017-10-121-2/+1
| | | | | | | | | Instead of changing mmc devno from dts nodes better to return the detected devno so-that env trigger the same. Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* icore: configs: Fix merge conflict issueJagan Teki2017-10-122-2/+0
| | | | | | | | | | | | | | | | | Fix for finding mmc devices on i.MX6Q icore boards added in below comment "icorem6: Fix to find MMC devices" (sha1: a2b137b38d925df91afef52f5122927de024f81a) which is reverted in during u-boot-imx merge " Merge git://git.denx.de/u-boot-imx" (sha1: 6aee2ab68c362ace5a59f89a63abed82e0bf19e5) This patch, is recreated to fix merge conflict. Cc: Stefano Babic <sbabic@denx.de> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* topic_miami: Remove CONFIG_CMD_BOOTZ undefFabio Estevam2017-10-121-1/+0
| | | | | | | CONFIG_CMD_BOOTZ option has been converted to defconfig, so there is no need to undefine it in board config file anymore. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx6sabresd: Include <usb/ehci-ci.h> header fileDiego Dorta2017-10-121-0/+1
| | | | | | | | | | When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:586:5: warning: no previous prototype for ‘board_ehci_hcd_init’ [-Wmissing-prototypes] int board_ehci_hcd_init(int port) Remove this warning by including <usb/ehci-ci.h>. Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
* usb: ehci-ci: Add a prototype for board_ehci_power()Diego Dorta2017-10-121-0/+1
| | | | | | | | | | When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:601:5: warning: no previous prototype for ‘board_ehci_power’ [-Wmissing-prototypes] int board_ehci_power(int port, int on) Remove this warning by adding the function prototype into usb/ehci-ci.h file. Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
* mx6sabresd: Include <asm/mach-imx/spi.h> header fileDiego Dorta2017-10-121-0/+1
| | | | | | | | | | When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:680:5: warning: no previous prototype for ‘board_spi_cs_gpio’ [-Wmissing-prototypes] int board_spi_cs_gpio(unsigned bus, unsigned cs) Remove this warning by including <asm/mach-imx/spi.h>. Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
* mx6: soc: Include <asm/bootm.h> header fileDiego Dorta2017-10-121-0/+1
| | | | | | | | | | When compiling with W=1 the following warning is observed: arch/arm/mach-imx/mx6/soc.c:213:12: warning: no previous prototype for ‘get_board_rev’ [-Wmissing-prototypes] u32 __weak get_board_rev(void) Fix the build warning by including <asm/bootm.h>. Signed-off-by: Diego Dorta <diego.dorta@nxp.com>
* mx7ulp_evk: Move CONFIG_CMD_BOOTZ to KconfigFabio Estevam2017-10-122-1/+1
| | | | | | | | CONFIG_CMD_BOOTZ symbol does not work in board config file anymore, so fix this by moving it to Kconfig. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
* imx: sys_proto: Add a prototype for board_mmc_get_env_dev()Diego Dorta2017-10-121-0/+2
| | | | | | | | | | | | | | When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:266:5: warning: no previous prototype for ‘board_mmc_get_env_dev’ [-Wmissing-prototypes] int board_mmc_get_env_dev(int devno) Remove this warning by adding the function prototype into sys_proto.h file. Signed-off-by: Diego Dorta <diego.dorta@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* imx: Include <input.h> header fileDiego Dorta2017-10-1215-0/+15
| | | | | | | | | | | | | When building with W=1 errors like the one below is seen: board/freescale/mx6sabresd/mx6sabresd.c:546:5: warning: no previous prototype for ‘overwrite_console’ [-Wmissing-prototypes] int overwrite_console(void) Fix the build warnings by including <input.h>. Signed-off-by: Diego Dorta <diego.dorta@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx6: toradex: Remove custom CONFIG_SPL_PAD_TO definitionFabio Estevam2017-10-122-2/+0
| | | | | | | | CONFIG_SPL_PAD_TO is already defined inside "imx6_spl.h", so there is no need to redefine it in the board config files. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefan Agner <stefan.agner@toradex.com>
* mx25pdk: Remove duplicated defineOtavio Salvador2017-10-121-2/+0
| | | | | | The CONFIG_SYS_MMC_ENV_DEV is duplicated, drop it. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* mx25pdk: Use generic filesystem commandsOtavio Salvador2017-10-122-5/+9
| | | | | | | This rework the board to use the generic filesystem commands instead of forcing the use of FAT for the boot files. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* README.imx6: Prefer loading SPL via the new SDP mechanismFabio Estevam2017-10-121-29/+3
| | | | | | | Now that it is possible to load SPL and u-boot.img via imx_usb_loader tool, mention this method instead of the old one that relied on ymodem. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx53loco: Let CONFIG_DISPLAY_CPUINFO be selectedFabio Estevam2017-10-121-1/+0
| | | | | | | With CONFIG_DISPLAY_CPUINFO=y we get a "Reset cause" line, which brings important information of the reboot cause. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* imx6: disable clock command and print_cpuinfo code in SPLAnatolij Gustschin2017-10-122-16/+18
| | | | | | | We do not use print_cpuinfo and clock command code in SPL, disable it when building SPL image. Signed-off-by: Anatolij Gustschin <agust@denx.de>
* colibri_imx6: Avoid calling setup_display() from SPL codeFabio Estevam2017-10-121-3/+4
| | | | | | | | There is no need call setup_display() from SPL code, so move it to board_init(), which executes only in U-Boot proper. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* apalis_imx6: Avoid calling setup_display() from SPL codeFabio Estevam2017-10-121-4/+4
| | | | | | | | There is no need call setup_display() from SPL code, so move it to board_init(), which executes only in U-Boot proper. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx6cuboxi: Avoid calling setup_display() from SPL codeFabio Estevam2017-10-121-7/+8
| | | | | | | | | There is no need call setup_display() from SPL code, so move it to board_init(), which executes only in U-Boot proper. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* wandboard: Avoid calling setup_display() from SPL codeFabio Estevam2017-10-121-3/+2
| | | | | | | | | There is no need call setup_display() from SPL code, so move it to board_init(), which executes only in U-Boot proper. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* cgtqmx6eval: Avoid calling setup_display() from SPL codeFabio Estevam2017-10-121-2/+2
| | | | | | | | | There is no need call setup_display() from SPL code, so move it to board_init(), which executes only in U-Boot proper. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* mx6sabresd: Avoid calling setup_display() from SPL codeFabio Estevam2017-10-121-3/+3
| | | | | | | | | There is no need call setup_display() from SPL code, so move it to board_init(), which executes only in U-Boot proper. Reported-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* Merge git://git.denx.de/u-boot-i2cTom Rini2017-10-111-1/+6
|\
| * i2c: muxes: pca954x: look up width from chip_descChris Packham2017-10-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | Commit 8e6eda7cda6c ("drivers/i2c/muxes/pca954x: Add pca9547 I2C mux support") introduced a chip_desc for the pca954x devices but failed to update pca954x_ofdata_to_platdata() to be aware of it. Make pca954x_ofdata_to_platdata() lookup the chip_desc to validate the device width. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Marek Behun <marek.behun@nic.cz>
* | Merge branch 'rmobile' of git://git.denx.de/u-boot-shTom Rini2017-10-1035-1705/+14021
|\ \ | |/ |/|
| * ARM: rmobile: dts: Add SDR104/HS200 to Salvator-XMarek Vasut2017-10-101-0/+9
| | | | | | | | | | | | | | | | Add DT nodes to enable SDR104/HS200 modes on Salvator-X boards. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Fixup ULCB CPLD support after PFC reworkMarek Vasut2017-10-101-4/+4
| | | | | | | | | | | | | | | | | | | | The ULCB CPLD support was not updated during the PFC table rework, fix up the GPIO numbers until the CPLD support is rewritten to a proper DM capable and DT probing driver. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * doc: rmobile: Update READMEMarek Vasut2017-10-041-8/+33
| | | | | | | | | | | | | | | | Update the README with build instructions for R8A7795/R8A7796 boards. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Enable pinconfMarek Vasut2017-10-044-0/+4
| | | | | | | | | | | | | | | | Enable pinconf since it's now implemented and used in the DTs. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * pinctrl: rmobile: Add pinconf to Renesas RCar pincontrol driverMarek Vasut2017-10-041-0/+187
| | | | | | | | | | | | | | | | | | | | Add pinconf support to the PFC driver, so that it can handle DT props bias-disable, bias-pull-up, bias-pull-down, drive-strength and power-source. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * usb: Drop the EHCI RCar Gen3Marek Vasut2017-10-043-115/+0
| | | | | | | | | | | | | | | | | | | | Since we use EHCI generic driver on RCar Gen3 , this driver is useless. Remove it. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Zap ad-hoc PFC and GPIO setup in board filesMarek Vasut2017-09-282-197/+0
| | | | | | | | | | | | | | | | | | | | At long last, nuke all this ad-hoc setup in board files in favor of letting PFC pinmux and GPIO drivers do the same job, but based on DT description of the hardware rather than this board-file ugliness. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Switch to DM PFC pinmux and GPIO driverMarek Vasut2017-09-287-2/+20
| | | | | | | | | | | | | | | | | | | | Enable the PFC pinmux and GPIO drivers and disable the SH GPIO combo driver. This allows the drivers to obtain pinmux and GPIO configuration from DT rather than hard-coding it in board files. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * gpio: rmobile: Add Renesas RCar GPIO driverMarek Vasut2017-09-283-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | Add GPIO driver for the Renesas RCar SoCs . The driver currently supports only the RCar Gen3 R8A7795 and R8A7796 SoCs, but is easily extensible for the other RCar SoCs as well. This driver is meant to replace the pinmux part of SH_GPIO_PFC driver. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * pinctrl: rmobile: Add Renesas RCar pincontrol driverMarek Vasut2017-09-288-0/+11802
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add PFC pincontrol driver for the Renesas RCar Gen3 R8A7795 and R8A7796 SoCs. This driver uses the PFC pin tables from Linux, thus letting us share the occassional fixes to those tables. This driver also has a DT support, so the pinmux is configured from DT instead of the ad-hoc setup in board file. This driver is meant to replace the pinmux part of SH_GPIO_PFC driver. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Enable DM regulator supportMarek Vasut2017-09-284-0/+12
| | | | | | | | | | | | | | | | Regulators are needed for the MMC framework to let it toggle the SD power. Enable DM regulator support and support for fixed and GPIO regulator. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Switch to UniPhier SD driver on Gen3Marek Vasut2017-09-284-4/+4
| | | | | | | | | | | | | | | | | | The UniPhier SD driver handles the same Matsushita IP as is used in the Renesas RCar SoCs, yet the driver is significantly better than the SH SDHI one. Switch over to the Uniphier driver. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Enable GPIO commandMarek Vasut2017-09-244-0/+4
| | | | | | | | | | | | | | | | This command is convenient for manipulating the GPIOs, so enable it. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Remove SCIF clock configuration from board filesMarek Vasut2017-09-242-4/+0
| | | | | | | | | | | | | | | | | | The configuration is now fully performed by the SCIF and clk drivers, so remove it from the board file. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Remove AVB clock configuration from board filesMarek Vasut2017-09-242-6/+0
| | | | | | | | | | | | | | | | | | The configuration is now fully performed by the AVB and clk drivers, so remove it from the board file. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: rmobile: Remove SD clock configuration from board filesMarek Vasut2017-09-242-35/+0
| | | | | | | | | | | | | | | | | | The configuration is now fully performed by the SD and clk drivers, so remove it from the board file. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: dts: rmobile: Add PHY reset GPIOMarek Vasut2017-09-242-0/+2
| | | | | | | | | | | | | | | | The PHY reset GPIOs were missing from the DT, add them. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>