summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* arm: dts: split mtk-reset.h into per-chip headerRyder Lee2019-10-112-3/+37
| | | | | | | | This follows the linux header rules to avoid conflict bitfields. Tested-by: Frank Wunderlich <frank-w@public-files.de> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
* waitbit: Add the generic wait_for_bit macros for 16 and 32 bits.Kursad Oney2019-10-111-0/+2
| | | | | | | | | | wait_for_bit_le32 and wait_for_bit_le16 use the raw I/O functions which would default to big-endian on BE systems. Create the generic equivalents to use the native endianness. Signed-off-by: Kursad Oney <kursad.oney@broadcom.com> Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* Merge tag 'xilinx-for-v2020.01' of ↵Tom Rini2019-10-0910-69/+142
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-microblaze Xilinx/FPGA changes for v2020.01 FPGA: - Enable fpga loading on Versal - Minor fix Microblaze: - Fix LMB configurations to support initrds - Some other cleanups Zynq: - Minor config/dt changes - Add distro boot support for usb1 and mmc1 - Remove Xilinx private boot commands and use only distro boot ZynqMP: - Kconfig cleanups, defconfig updates - Update some dt files - Add firmware driver for talking to PMUFW - Extend distro boot support for jtag - Add new IDs - Add system controller configurations - Convert code to talk firmware via mailbox or SMCs Versal: - Add board_late_init() - Add run time DT memory setup - Add DFU support - Extend distro boot support for jtag and dfu - Add clock driver - Tune mini configurations Xilinx: - Improve documentation (boot scripts, dt binding) - Enable run time initrd_high calculation - Define default SYS_PROMPT - Add zynq/zynqmp virtual defconfig Drivers: - Add Xilinx mailbox driver for talking to firmware - Clean zynq_gem for Versal - Move ZYNQ_HISPD_BROKEN to Kconfig - Wire genphy_init() in phy.c - Add Xilinx gii2rgmii bridge - Cleanup zynq_sdhci - dwc3 fix - zynq_gpio fix - axi_emac fix Others: - apalis-tk1 - clean config file
| * arm64: zynqmp: Use mailbox driver for PMUFW config loadingMichal Simek2019-10-081-0/+1
| | | | | | | | | | | | | | | | With new mailbox driver PMUFW configuration object can be loaded via the same interface and there is no need to have pmu_ipc.c completely. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
| * firmware: zynqmp: Separate function for sending message via mailboxMichal Simek2019-10-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | U-Boot running in EL3 can't use SMC that's why there is a need to talk to PMUFW directly via mailbox. The same logic is applied to all functions which need to talk to PMUFW that's why move this logic to separate function to avoid code duplication. Also SMC request ID can be composed from PM_SIP_SVC offset that's why ZYNQMP_SIP_SVC_GET_API_VERSION macro can be removed completely. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * firmware: zynqmp: create firmware headerIbai Erkiaga2019-10-081-0/+38
| | | | | | | | | | | | | | | | | | New firmware header to place firmware specific macro and function declarations. The patch also moves the macros defining PM operations as well as some helper macros. Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * microblaze: Setup reasonable maximum bootm lenMichal Simek2019-10-081-0/+2
| | | | | | | | | | | | We are far from 8MB default size. Setup 64MB for now. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * microblaze: Enable cache by defaultMichal Simek2019-10-081-0/+3
| | | | | | | | | | | | | | | | | | | | The whole cache code needs to be redesign to read information about cache from DT instead of macro selection. Enable caches by default because systems have caches on by default for Linux. Also enable CMD_CACHE to be able to disable cache if there is any issue. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * microblaze: Move CONFIG_LMB from board file to config.hMichal Simek2019-10-081-3/+0
| | | | | | | | | | | | It is common for the whole architecture that's why move it there. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * configs: apalis-tk1: Do not define CONFIG_SYS_BOOT_RAMDISK_HIGH againMichal Simek2019-10-081-2/+0
| | | | | | | | | | | | | | | | CONFIG_SYS_BOOT_RAMDISK_HIGH is already defined in arch/arm/include/asm/config.h:10:#define CONFIG_SYS_BOOT_RAMDISK_HIGH that's why there is no reason to define it again in board file. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * net: phy: Add gmiitorgmii converter supportSiva Durga Prasad Paladugu2019-10-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for gmiitorgmii converter. This converter sits between the MAC and the external phy MAC <==> GMII2RGMII <==> RGMII_PHY. The ethernet driver probes this bridge and this bridge driver probes real phy driver and invokes the real phy functionalities as requested. This bridge just needs to be configured based on real phy negotiated speed and duplex. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Remove all Xilinx private commandsMichal Simek2019-10-081-51/+3
| | | | | | | | | | | | | | All platforms have been moved to distro boot that's why remove the rest of configurations to have unified boot flow. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Use {} around variables for qspi and nand boot cmdsMichal Simek2019-10-081-2/+2
| | | | | | | | | | | | | | Follow conventions and used {} around variables. Fixes: 90e97ab31e02 ("arm: zynq: Define distro boot commnads for qspi, nand and nor") Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Fix NOR boot modeMichal Simek2019-10-081-2/+2
| | | | | | | | | | | | | | | | There are two typos in this command that's why it couldn't work properly. This bootmode is almost unused from the beggining on this SoC. Fixes: 90e97ab31e02 ("arm: zynq: Define distro boot commnads for qspi, nand and nor") Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Enable USB1 as secondary boot deviceMichal Simek2019-10-081-1/+1
| | | | | | | | | | | | | | Xilinx Zynq SoC has two usb controllers and both could be used as secondary boot method. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Specify MMC controller number for boot sequenceMichal Simek2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | Xilinx Zynq SoC has two sdhci controllers but boot is only possible from the first one. That's why there is a need to specify controller number. mmc1 is supposed to be secondary boot device and should be also listed in distribution boot. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: versal: Fix for OCM overwriting issueAshok Reddy Soma2019-10-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch reduces the console buffer size from 2048 to 1024, thus fixes OCM overwriting issue. Differences are in bss section as is shown from output: xilinx_versal_mini: all -2056 bss -2048 text -8 u-boot: add: 0/0, grow: 0/-3 bytes: 0/-2056 (-2056) function old new delta cli_simple_run_command 340 332 -8 static.lastcommand 2049 1025 -1024 console_buffer 2049 1025 -1024 Better would be to use PPU RAM but this change is also aligned with changes done in ZynqMP mini configurations. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Increase input buffer console size to 2kMichal Simek2019-10-081-0/+1
| | | | | | | | | | | | | | ZynqMP and Versal is using 2k that's why aligned all platform together to be able to use the same scripts. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Increase init ram size by 4KSiva Durga Prasad Paladugu2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | Increase init ram size by 4K such that more stack space will be available during initialization as the present stackspace is not sufficient if DEBUG option is enabled and causes system hang. Increasing init ram size provides sufficient stack space during init even if DEBUG enabled and solves the hang issue. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * ARM: zynq: Do not enable NETBSD support by defaultMichal Simek2019-10-081-0/+2
| | | | | | | | | | | | | | | | | | This option is disable in Xilinx tree for quite a long time that's why let's disable it in mainline. If there is anybody who requires this options then it should be moved to Kconfig first and should be removed from this config. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: zynqmp: Add new jtag distro boot commandSiva Durga Prasad Paladugu2019-10-081-0/+9
| | | | | | | | | | | | | | | | This patch adds new jtag distro boot command to look for bootscript file in DDR and execute it first incase of jtag bootmode. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: zynqmp: Update scriptaddr value to 512MBSiva Durga Prasad Paladugu2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | This patch updates scriptaddr value to 512MB as having it at 32MB has high chance of script corruption incase of bigger kernel. Be aware that 512MB is used for SPL malloc area that's why images should be loaded after SPL (the best after u-boot relocation). Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: versal: Change boot script offset address in versalT Karthik Reddy2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | With the current boot script offset address in qspi is being overlaped by BOOT.BIN as it is over 90MB with fpga included. So moving the script offset address to end of flash after "bootenv" mtd partition. Here we are considering qspi flash size >= 128Mbytes on versal and left 512Kbytes space to save boot.scr script. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: versal: Add new dfu usb distro boot commandT Karthik Reddy2019-10-081-0/+11
| | | | | | | | | | | | | | This patch adds new dfu usb distro boot command to look for bootscript from dfu-util and runs it. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
| * arm64: versal: Add new jtag distro boot commandSiva Durga Prasad Paladugu2019-10-081-1/+10
| | | | | | | | | | | | | | | | | | | | This patch adds new jtag distro boot command to look for bootscript file in DDR and execute it first incase of jtag bootmode. This patch also updates scriptaddr to 512MB as there is high of script corruption incase of bigger kernel image. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: versal: Define configs related to USB DFU functionalitySiva Durga Prasad Paladugu2019-10-081-1/+24
| | | | | | | | | | | | | | | | This patch defines macros required for DFU functionality for Xilinx Versal platform. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: zynqmp: Set initrd_high to as high as possibleT Karthik Reddy2019-10-081-1/+0
| | | | | | | | | | | | | | | | | | | | This patch is setting up the initrd_high to as high as possible by leaving max stack size for u-boot so that bigger rootfs can also be loaded by u-boot for booting kernel. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: versal: Set initrd_high to as high as possibleSiva Durga Prasad Paladugu2019-10-081-1/+0
| | | | | | | | | | | | | | | | | | This patch is setting up the initrd_high to as high as possible by leaving max stack size for u-boot so that bigger rootfs can also be loaded by u-boot for booting kernel. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * arm64: versal: fpga: Add PL bit stream load supportSiva Durga Prasad Paladugu2019-10-082-0/+22
| | | | | | | | | | | | | | | | | | This patch adds PL bitstream load support for Versal platform. The PL bitstream is loaded by making an SMC to ATF which in turn communicates with platform firmware which configures and loads PL bitstream on to PL. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
* | Merge tag 'u-boot-imx-20191009' of ↵Tom Rini2019-10-0929-104/+862
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-imx u-boot-imx-20191009 ------------------- Travis : https://travis-ci.org/sbabic/u-boot-imx/builds/595148532 - MX6UL / ULZ - Toradex board - Allow to set OCRAM for MX6Q/D - MX7ULP - MX8: (container image, imx8mq_mek), SCU API - fix several board booting from SD/EMMC (cubox-i for example) - pico boards [trini: display5 merged manually] Signed-off-by: Tom Rini <trini@konsulko.com>
| * | pico-imx7d: fix splash logo drawingJoris Offouga2019-10-081-0/+1
| | | | | | | | | | | | | | | Signed-off-by: Joris Offouga <offougajoris@gmail.com> Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
| * | apalis_imx6: use distroboot by defaultIgor Opaniuk2019-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | | Use distro_bootcmd as default bootcmd instead of legacy wrappers. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
| * | colibri_imx6/imx7/imx8x: use distroboot by defaultIgor Opaniuk2019-10-083-4/+6
| | | | | | | | | | | | | | | | | | | | | Use distro_bootcmd as defauult bootcmd instead of legacy wrappers. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
| * | imx: Add i.MX8MM EVK board support.Peng Fan2019-10-081-0/+153
| | | | | | | | | | | | | | | | | | | | | | | | Add board and SoC dts Add ddr training code support SD/MMC/GPIO/PINCTRL/UART Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * | imx: imx8mm: add clock bindings headerPeng Fan2019-10-081-0/+253
| | | | | | | | | | | | | | | | | | Import clock bindings header file from Linux 5.3.0-rc2 Signed-off-by: Peng Fan <peng.fan@nxp.com>
| * | imx: mx6ul_14x14_evk: fix link issueAnatolij Gustschin2019-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since recent splash changes common code for splashscreen logo should be used instead of adding duplicated code under board directories. mx6ul_9x9_evk and mx6ul_14x14_evk configurations used old board specific logo code and do not link, fix them. Signed-off-by: Anatolij Gustschin <agust@denx.de> Acked-by: Peng Fan <peng.fan@nxp.com>
| * | imx: add support for i.MX7/i.MX8MQ reset controllerPatrick Wildt2019-10-082-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the reset controller that's used on the i.MX7D and i.MX8MQ. This will be needed to be able to assert the PCIe reset pins. Bindings taken from Linux, driver implementation mostly taken from Linux and adjusted to U-Boot infrastructure. Signed-off-by: Patrick Wildt <patrick@blueri.se> Reviewed-by: Fabio Estevam <festevam@gmail.com>
| * | imx: add support for i.MX8MQ power domain controllerPatrick Wildt2019-10-082-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the power domain controller that's used on the i.MX8MQ. This will be needed to be able to power on the PCIe controller. Bindings taken from Linux, driver implementation taken from the i.MX8 power domain controller and adjusted for the i.MX8M SoC. Signed-off-by: Patrick Wildt <patrick@blueri.se>
| * | imx: wandboard: convert FEC support to DM_ETHAnatolij Gustschin2019-10-081-8/+0
| | | | | | | | | | | | | | | | | | Remove CONFIG_DM_ETH conversion warning to avoid board removal. Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * | DM: WDT: Convert WDT driver to use DM/DTS (including SYSRESET)Lukasz Majewski2019-10-081-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit enables support for CONFIG_WDT in the U-Boot proper. Moreover, the SYSRESET_WATCHDOG driver is used to support 'reset' command. As SPL is not yet ready for DM conversion, the CONFIG_HW_WATCHDOG is enabled for it. This allows the legacy SPL code to work properly. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | DM: SPI: Convert display5 to use SPI with DM/DTS (but no in SPL)Lukasz Majewski2019-10-081-2/+5
| | | | | | | | | | | | | | | | | | | | | The DM/DTS support for SPI is disabled on purpose for SPL, as it is not supported as of time of this conversion. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | DM: eth: Switch display5 board to use DM_ETHLukasz Majewski2019-10-081-8/+0
| | | | | | | | | | | | | | | | | | | | | After this commit the display5 device would use FEC driver supporting driver model (DM_ETH). Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | DM: I2C: Switch display5 board to use DM_I2CLukasz Majewski2019-10-081-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After this commit the display5 device would use I2C driver supporting driver model (DM_I2C). The 'i2c' and 'eeprom' commands now use DM I2C drivers and initialize on-bus devices according to device tree description. Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | pico-imx6: Add Falcon modeFabio Estevam2019-10-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Falcon mode support, which allows the SPL to load and jump to the Linux kernel directly, without the need of loading U-Boot proper. CONFIG_SPL_OS_BOOT=y needs to be passed in the defconfig in order to use Falcon mode. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * | pico-imx6: Add splashscreen supportFabio Estevam2019-10-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Add splashscreen support. Tested with the parallel FT5x06-WVGA panel. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * | pico-imx6: Add Ethernet supportFabio Estevam2019-10-081-0/+10
| | | | | | | | | | | | | | | | | | | | | Add Ethernet support. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * | pico-imx6: Fix bootmenu handlingOtavio Salvador2019-10-081-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | We should use a common script to allow booting the U-Boot console as fallback so we ended using a 'default_boot' and 'base_boot' environment scripts to accomplish that. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * | pico-imx6: Add initial supportFabio Estevam2019-10-081-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the initial support for the pico-imx6 variants. DDR initialization is based on the TechNexion's U-Boot code. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * | mx53loco: Fix U-Boot corruption after saving the environmentFabio Estevam2019-10-081-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | U-Boot binary has grown in such a way that it goes beyond the reserved area for the environment variables. Running "saveenv" causes U-Boot to hang because of this overlap. Fix this problem by increasing the CONFIG_ENV_OFFSET size. Also, in order to prevent this same problem in the future, use CONFIG_BOARD_SIZE_LIMIT, which will detect the overlap in build-time. CONFIG_BOARD_SIZE_LIMIT does not accept math expressions, so declare CONFIG_ENV_OFFSET with its direct value instead. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| * | configs: pico-imx7d: Convert to DM_VIDEOJoris Offouga2019-10-081-1/+1
| | | | | | | | | | | | | | | | | | This commit convert all pico-imx7d to DM_VIDEO Signed-off-by: Joris Offouga <offougajoris@gmail.com>