summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Kconfig: gadget: Move CONFIG_USB_FUNCTION_THOR to KconfigLukasz Majewski2018-02-0231-9/+31
| | | | | | | | This commit moves USB_FUNCTION_THOR config to Kconfig. Signed-off-by: Lukasz Majewski <lukma@denx.de> Acked-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
* Kconfig: usb: Sort USB_FUNCTION_* entriesLukasz Majewski2018-02-021-7/+7
| | | | | | | Lets provide alphabetical order for USB_FUNCTION_* entries of USB_GADGET_DOWNLOAD Signed-off-by: Lukasz Majewski <lukma@denx.de>
* env: sf: use env_import_redund to simplify env_sf_loadSimon Goldschmidt2018-02-011-59/+8
| | | | | | | | | | | For the redundant environment configuration, env_sf_load still contained duplicate code instead of using env_import_redund(). Simplify the code by only executing the load twice and delegating everything else to env_import_redund. Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* env: make env drivers propagate env_import return valueSimon Goldschmidt2018-02-0110-23/+10
| | | | | | | | | | | | | | For multiple env drivers to correctly implement fallback when one environment fails to load (e.g. crc error), the return value of env_import has to be propagated by all env driver's load function. Without this change, the first driver that succeeds to load an environment with an invalid CRC return 0 (success) and no other drivers are checked. Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* env: move more common code to env_import_redundSimon Goldschmidt2018-02-015-51/+36
| | | | | | | | | | | | | | There is more common code in mmc, nand and ubi env drivers that can be shared by moving to env_import_redund. For this, a status/error value whether the buffers were loaded are passed as additional parameters to env_import_redund. Ideally, these are already returned to the env driver by the storage driver. This is the case for mmc, nand and ubi, so for this change, code deduplicated. Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* env: make env_import(_redund) return 0 on success, not 1Simon Goldschmidt2018-01-313-8/+8
| | | | | | | | | | | | | | | | env_import (and env_import_redund) currently return 1 on success and 0 on error. However, they are only used from functions returning 0 on success or a negative value on error. Let's clean this up by making env_import and env_import_redund return 0 on success and -EIO on error (as was the case for all users before). Users that cared for the return value are also updated. Funny enough, this only affects onenand.c and sf.c Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* cmd: nvedit: env_get_f must check for env_get_char error codesSimon Goldschmidt2018-01-311-3/+8
| | | | | | | | | | | | | | | env_get_f calls env_get_char to load single characters from the environment. However, the return value of env_get_char was not checked for errors. Now if the env driver does not support the .get_char call, env_get_f did not notice this and looped over the whole size of the environment, calling env_get_char over 8000 times with the default settings, just to return an error in the end. Fix this by checking if env_get_char returns < 0. Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini2018-01-3122-90/+272
|\
| * armv8: ls2088ardb: Add 3DS RDIMM supportYork Sun2018-01-302-19/+6
| | | | | | | | | | | | | | | | | | | | Tested with MTA72ASS8G72PSZ-2S6G1. This is 3DS RDIMM module with x4 DDR chips. LS2088ARDB needs to be modified to connect all DQS signals. Some of them are grounded by default for x8 chips. Tested with RDIMM MTA18ASF2G72PDZ on main memory controllers. DP-DDR doesn't support RDIMM. Dropped related timing table. Signed-off-by: York Sun <york.sun@nxp.com>
| * armv8: ls1046ardb: Add RDIMM supportYork Sun2018-01-302-4/+24
| | | | | | | | | | | | | | This adds 2Rx8 RDIMM on LS1046ARDB board. Tested with RDIMM MTA18ASF2G72PDZ and MTA9ASF1G72PZ. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Cleanup unused variableYork Sun2018-01-306-6/+0
| | | | | | | | | | | | Variable "row_density" is no longer used. Drop it from DIMM structure. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Modify binding registers to save time on data initYork Sun2018-01-301-11/+49
| | | | | | | | | | | | | | | | | | | | | | DDR controllers always use binding register to determine the memory space to perform data initialization. In case of controller interleaving, the space is doubled, resulting twice long wait. It wasn't too bad until the memory capacity increases. To reduce the wait time, reduce the binding space to half and restore it after data initialization. Three-way interleaving is no longer used and is removed. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Add calculation of register control wordsYork Sun2018-01-305-11/+54
| | | | | | | | | | | | | | | | DDR4 RDIMM has some information in SPD to be used to calculate the control words for register chip. The rest can be found from JEDEC spec DDR4RCD02. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Add 3DS RDIMM supportYork Sun2018-01-308-16/+89
| | | | | | | | | | | | | | On top of RDIMM support, add new register calculation to support 3DS RDIMMs. Only symmetrical 3DS is supported at this time. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Fix workaround for A009803York Sun2018-01-301-1/+1
| | | | | | | | | | | | | | Wrong field was masked in this workaround due to wrong endianness. The impacted SoCs have big-endian. Signed-off-by: York Sun <york.sun@nxp.com>
| * drivers/ddr/fsl: Fix DDR4 RDIMM supportYork Sun2018-01-304-22/+41
| | | | | | | | | | | | | | | | | | | | | | For DDR4, command/address delay in mode registers and parity latency in timing config register are only needed for UDIMMs, but not RDIMMs. Add additional register rcw_3 for DDR4 RDIMM. Fix mirrored bit for dual rank RDIMMs. Set sdram_cfg_3[DIS_MRS_PAR] for RDIMMs. Fix calculation of timing config registers. Use hexadecimal format for printing RCW (register control word) registers. Signed-off-by: York Sun <york.sun@nxp.com>
| * armv8: ls1088a: Add CONFIG_SPI_FLASH_SPANSION to sdcard defconfigsAshish Kumar2018-01-303-0/+3
| | | | | | | | | | Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * driver: fsl-mc: Perform fsl-mc fdt fixup for lazyapply dplYogesh Gaur2018-01-302-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | For for case of lazyapply method, API fdt_fixup_board_enet() gets invoked before DPL being deployed. This leads to an issue that fsl-mc fdt fixup status marked as fail and dprc driver didn't get registered in linux boot. Fixes this issue by calling fdt_fixup_board_enet() for case when DPL is deployed successfully in lazyapply method. Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
* | davinci: Fix omapl138_lcdk buildsTom Rini2018-01-311-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | The omapl138_lcdk platform is not a DA850 SoC so we need to select SOC_DA8XX and not SOC_DA850, as it was before. It does however point out a bit of a misnomer in how all of these PLL defines are named as they are generic to DA8xx, not DA850 centric. Remove the 'if SOC_DA850' under the defaults as these are simply the defaults. As SOC_DA8XX will select SYS_DA850_DDR_INIT when needed, we do not need it under both SOC options. Fixes: 76e22222d3aa ("Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig") Signed-off-by: Tom Rini <trini@konsulko.com>
* | Merge tag 'xilinx-for-v2018.03' of git://git.denx.de/u-boot-microblazeTom Rini2018-01-3169-225/+5801
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xilinx changes for v2018.03 - Several Kconfig fixes (also moving configs to defconfigs) - Some DTS updates - ZynqMP psu rework based on Zynq concept - Add low level initialization for zc770 and zcu102 - Add support for Zynq zc770 x16 nand configuration - Add mini nand/emmc ZynqMP targets - Some arasan nand changes
| * | arm64: zynqmp: Fix misspelled choice defaultUlf Magnusson2018-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no JTAG symbol in the "Boot mode" choice. JTAG_MODE was probably intended. No functional changes. Kconfig choices fall back on using the first (visible) symbol in the choice as the default if the default symbol is not visible. Discovered in Kconfiglib (https://github.com/ulfalizer/Kconfiglib), which prints the following warning: warning: the default selection JTAG (undefined) of <choice> (defined at arch/arm/cpu/armv8/zynqmp/Kconfig:107) is not contained in the choice I've added a corresponding warning to the C tools too, which is currently in linux-next: https://patchwork.kernel.org/patch/9983667/ Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Moved ethernet PHY configs of ZynqMP boards to defconfigVipul Kumar2018-01-309-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | This patch moved ethernet PHY configs of ZynqMP boards to respective defconfig. Signed-off-by: Vipul Kumar <vipulk@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | microblaze: Moved ethernet PHY configs of Microblaze board to defconfigVipul Kumar2018-01-302-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | This patch moved ethernet PHY configs of Microblaze board to respective defconfig. Signed-off-by: Vipul Kumar <vipulk@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Moved ethernet PHY configs of Zynq boards to defconfigVipul Kumar2018-01-3013-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | This patch moved ethernet PHY configs of Zynq boards to respective defconfig. Signed-off-by: Vipul Kumar <vipulk@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Remove ethernet alias for topic-miamiMichal Simek2018-01-301-1/+0
| | | | | | | | | | | | | | | | | | | | | Ethernet is not enabled that's why this alias should be completely unused. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Mark cc108 uart to be initialized before relocationMichal Simek2018-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | The same change is done for others zynq boards to get uart as early as possible. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Update years in copyright to reflect latest changesMichal Simek2018-01-307-6/+7
| | | | | | | | | | | | | | | | | | Updating year in zynq files. Also add missing Copyright to board.c. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Add psu_init for zcu102-rev1.0Michal Simek2018-01-301-0/+975
| | | | | | | | | | | | | | | | | | Add low level initialization for zcu102-rev1.0. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Prepare psu_init reworkMichal Simek2018-01-306-11/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | Move generic functions to common location psu_spl_init.c. Function declarations are added to private header. These changes are done in connection to the fact that still files from HDF can be copied over and compilation should pass. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Call psu_init() only when ZYNQMP_PSU_INIT_ENABLEDMichal Simek2018-01-302-1/+5
| | | | | | | | | | | | | | | | | | | | | Remove SPL_BUILD dependency from zynqmp.c and move it to header file. Use only one symbol for including psu_init. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Remove unused empty functionsMichal Simek2018-01-301-12/+0
| | | | | | | | | | | | | | | | | | Remove functions which are no longer renerated by PCW. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan: Select CONFIG_SYS_NAND_SELF_INITEzequiel Garcia2018-01-302-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Arasan NFC driver requires the self-init mode, so it should select it. Instead of having the config header define the macro, it's cleaner to select the option at the Kconfig level. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan_nfc: Use the calculated ecc address for updating ecc registerSiva Durga Prasad Paladugu2018-01-301-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch corrects the ecc address calculation before updating to ecc register. The ecc address has to be calculated based on page, oob and ecc sizes of the device. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan_nfc: Add support for ondie eccSiva Durga Prasad Paladugu2018-01-301-27/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for ondie ecc. As of now this adds support for micron parts which supports ondie ecc. Didn't found any better way to detect ondie ecc support by a device except sorting out with manufacture and device id's. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | nand: arasan_nfc: Move common ecc struct initialization init routineSiva Durga Prasad Paladugu2018-01-301-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Move common part of ecc structure initialization to arasan_nand_init() routine. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | xilinx: zynqmp: Add new target with only emmc enabledSiva Durga Prasad Paladugu2018-01-304-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds new target which is called as mini configuration with only emmc functionality and other required basic features enabled. This will be used to run in system with small footprint and needs emmc support. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | xilinx: zynqmp: Add new target with only nand enabledSiva Durga Prasad Paladugu2018-01-305-0/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds new target which is called as mini configuration with only nand functionality and other required basic features enabled. This will be used to run in system with small footprint and needs nand support. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Provide a config to not map DDR region in MMU tableSiva Durga Prasad Paladugu2018-01-302-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DDR less systems are possible for configuration like mini qspi and making DDR region as normal memory may cause speculative access which results u-boot hang if DDR is absent. So, this patch fixes the issue by not making DDR memory region entry into MMU table. Future solution is to prepare MMU table per memory node in dts instead of hard code DDR addresses. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Propagate error value from psu_init()Michal Simek2018-01-303-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | psu_init() returns int which wasn't declared and checked. The patch is fixing function declarations and code to handle return values properly. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm64: zynqmp: Remove whitespaces in psu_init() commentMichal Simek2018-01-301-4/+4
| | | | | | | | | | | | | | | | | | Remove additional spaces before comment. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Fix pmu register description coding styleMichal Simek2018-01-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Drop the space before/after '<' and '>'; and separate the entries to be a bit more readable. Reported-by: Julia Cartwright <julia@ni.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Enable distro defaults settingMichal Simek2018-01-3013-111/+13
| | | | | | | | | | | | | | | | | | | | | BOOTCOMMAND is composed with distro_bootcmd but this variable is not present. Enabling distro defaults setting is fixing it. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Move bootcommand to defconfigMichal Simek2018-01-3018-2/+32
| | | | | | | | | | | | | | | | | | | | | It will cleanup generic config and enable option to change it for every board. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Enable DM_GPIO when neededMichal Simek2018-01-3018-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | There are two reasons for doing this change. There is still !DM driver for xilinx soft gpio IP and especially it is saving some space for memory constrained boards like cse (almost ~400B). Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Enable DM_ETH and DM_MMC only if subsystem is enabledMichal Simek2018-01-301-2/+2
| | | | | | | | | | | | | | | | | | | | | Do not enable DM_ETH/MMC if subsystems are not enabled. This saves memory for memory constrained boards like cse. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Enable BLK when neededMichal Simek2018-01-305-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | There is no reason to enable BLK by default for all boards which is just increasing memory footprint for memory contrained boards like cse. zc770s are also saving some space. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Disable networking for zc770 xm011Michal Simek2018-01-301-6/+4
| | | | | | | | | | | | | | | | | | | | | Ethernet cable is not connected for xm011 that's why disable all ethernet related configurations. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Enable debug console for zc770 xm011Michal Simek2018-01-301-0/+5
| | | | | | | | | | | | | | | | | | Wire debug console which is useful for early debugging. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | arm: zynq: Add identification string to Xilinx boardsMichal Simek2018-01-306-0/+6
| | | | | | | | | | | | | | | | | | | | | It is good to see this string to make sure that u-boot which runs on the board is the same which should run there. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
| * | armv8: zynqmp: Map PCIe High as device memoryAnders Hedlund2018-01-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Set the 8GB PCIe High area as device memory. Also extend the DDR High area to cover the full 32GB range. Signed-off-by: Anders Hedlund <anders.j.hedlund@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>