summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | CONFIG_SYS_GENERIC_BOARD: Finish migrationTom Rini2018-08-165-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | While we have long since migrated to CONFIG_SYS_GENERIC_BOARD being enabled, we had just a few places left that still referenced or defined it. Update. Signed-off-by: Tom Rini <trini@konsulko.com>
* | | Prepare v2018.09-rc2Tom Rini2018-08-131-1/+1
| | | | | | | | | | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* | | configs: Resync with savedefconfigTom Rini2018-08-133-23/+1
| | | | | | | | | | | | | | | | | | Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
* | | MAINTAINERS: Update STM32MP fragmentsPatrice Chotard2018-08-131-0/+10
| | | | | | | | | | | | | | | | | | | | | Add new drivers Add Christophe Kerello and myself as maintainers Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | ARM: dts: stm32f4: Fix DT dtc warningsPatrick Delaunay2018-08-133-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fix the following warnings for for stm32f429 evaluation and discovery boards: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | ARM: dts: stm32mp157: Add ADC DT nodePatrice Chotard2018-08-131-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | Add ADC device tree node. This allows to get analog conversions on stm32mp157. Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | ARM: dts: stm32: remove cd-inverted for stm32f746-discoPatrice Chotard2018-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | As cd-inverted property is no more used by arm_pl180_mmci driver, remove it. Update cd-gpios active level accordingly. Reported-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | ARM: dts: stm32: remove cd-inverted for stm32f769-discoPatrice Chotard2018-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | As cd-inverted property is no more used by arm_pl180_mmci driver, remove it. Update cd-gpios active level accordingly. Reported-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | ARM: omap3: evm: Enable CONFIG_BLK and misc. cleanupDerald D. Woods2018-08-132-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit enables CONFIG_BLK and removes USB_STORAGE which is awaiting proper implementation for current U-Boot interfaces. Additionally the console selection is now handled by Kconfig and no longer needs to be in the config header. CONFIG_SYS_MALLOC_F_LEN=0x2000 was added to sync with other boards. CONFIG_SPL_BLK and CONFIG_SPL_DM_MMC are disabled because they currently do not allow the OMAP3-EVM (OMAP34XX) to actually boot. Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
* | | tpm: sandbox: fix wrong assignment with a simplificationMiquel Raynal2018-08-131-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recv variable in sandbox_tpm2_fill_buf() is a pointer on a pointer of a char array. It means accessing *recv is the char array pointer itself while **recv is the first character of that array. There is no need for such indirection here, so simplify the code. Simplifying things will make the last assignment right: "*recv = NULL" is now correct. The issue has been found by the following Coverity Scan report: CID 183371: Incorrect expression (UNUSED_VALUE) Assigning value "4UL" to "*recv" here, but that stored value is overwritten before it can be used. 232 *recv += sizeof(rc); 233 234 /* Add trailing \0 */ 235 *recv = NULL; While at simplifying things, use '\0' instead of NULL when adding an empty char at the end of the buffer. Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | | tpm: sandbox: fix wrong check on pcr_mapMiquel Raynal2018-08-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second check on pcr_map in sandbox_tpm2_xfer() is wrong. It should check for pcr_map not being empty. Instead, it is a pure copy/paste of the first check which is redundant. This has been found thanks to a Coverity Scan report: CID 183370: Memory - illegal accesses (UNINIT) Using uninitialized value "pcr_index". put_unaligned_be32(tpm->pcr_extensions[pcr_index], recv); This is because pcr_index is initialized only if the user input is correct, ie. at least one valid bit is set in pcr_map. Fix the second check and also initialize pcr_index to 0 (which is harmless in case of error) to make Coverity Scan happy. Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | | MAINTAINERS: Add more sources to Arch SnapdragonRamon Fried2018-08-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Add scattered driver files around the source tree that belongs to Snapdragon arch. Not sure why they were not included in the first place. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | | db410c: add FIT supportRamon Fried2018-08-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | 1. Add FIT support for DB410c defconfig. 2. Don't overwrite bootargs (they're already defined in Linux device tree for DB410c. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | | db410: alter WLAN/BT MAC address fixupRamon Fried2018-08-131-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the way MAC address fixup is done: 1. Stop using LK handed device-tree and calculate the MAC address our own. 2. Allow overriding the generated MACS with environment variables: "wlanaddr" and "btaddr". Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | | snapdragon: added MAC generation functionsRamon Fried2018-08-132-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | Add support for generation of unique MAC address that is derived from board serial. Algorithm for generation of MAC taken from LK. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | | snapdragon: added msm_board_serial() funcRamon Fried2018-08-133-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a function to get the board serial number. In snapdragon it's actually the eMMC serial number. Function added in a new file misc.c that will include further snapdragon miscellaneous functions. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* | | stm32f7: board: Fix memory initPatrice Chotard2018-08-131-32/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 1473b12ad0b3 ("lib: fdtdec: Update ram_base to store ram start adddress") brings regression on STM32F7 which can't boot. Use fdtdec_setup_mem_size_base() to setup memory base and size. Use fdtdec_setup_memory_banksize() to setup memory bank base and size. Reported-by: Mark Olsson <mark@markolsson.se> Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Cc: Mark Olsson <mark@markolsson.se> Reviewed-by: Vikas Manocha <vikas.manocha@st.com>
* | | configs: stm32f429-evaluation: Add DISTRO_DEFAULT supportPatrice Chotard2018-08-132-12/+18
| | | | | | | | | | | | | | | | | | | | | Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32f469-discovery: Add DISTRO_DEFAULT supportPatrice Chotard2018-08-132-12/+18
| | | | | | | | | | | | | | | | | | | | | Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32h743-discovery: Add DISTRO_DEFAULT supportPatrice Chotard2018-08-132-11/+17
| | | | | | | | | | | | | | | | | | | | | Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32h743-evaluation: Add DISTRO_DEFAULT supportPatrice Chotard2018-08-132-11/+17
| | | | | | | | | | | | | | | | | | | | | Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32f4xx: Remove CONFIG_SYS_RAM_FREQ_DIVPatrice Chotard2018-08-133-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Since commit bfea69ad2793 ("stm32f7: sdram: correct sdram configuration as per micron sdram"), CONFIG_SYS_RAM_FREQ_DIV flag is no more used, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32h7xx: Migrate CONFIG_CMD_CACHE to defconfigPatrice Chotard2018-08-134-2/+2
| | | | | | | | | | | | | | | | | | | | | Remove CONFIG_CMD_CACHE from include/configs/stm32h7xx.h and enable it in stm32h7xx_defconfig Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32f746-disco: Migrate CONFIG_CMD_CACHE to defconfigPatrice Chotard2018-08-132-1/+1
| | | | | | | | | | | | | | | | | | | | | Remove CONFIG_CMD_CACHE from include/configs/stm32f746-disco.h and enable it in stm32f746-disco_defconfig Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32f4xx: Enable ICACHE and DCACHEPatrice Chotard2018-08-133-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable instruction and data caches. Fix boot_sd command as since commit d409c962169b ("armv7m: disable icache before linux booting"), instruction cache is automatically disable before linux booting. "icache off" from boot_sd command becomes useless, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32f429-disco: Remove CONFIG_SYS_RAM_CSPatrice Chotard2018-08-131-1/+0
| | | | | | | | | | | | | | | | | | This flag is not used, remove it. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | configs: stm32fxxx: Remove CONFIG_SYS_CLK_FREQPatrice Chotard2018-08-134-5/+0
| | | | | | | | | | | | | | | | | | | | | Since commit aa5e3e22f4d6 ("board: stm32: switch to DM STM32 timer") SYS_CLK_FREQ is useless, remove it from stm32f4 and stm32f7 boards. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | board: stm32: use bi_dram[0].start instead of hardcoded valuePatrice Chotard2018-08-138-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use gd->bd->bi_dram[0].start initialized from DT instead of using hardcoded CONFIG_SYS_SDRAM_BASE from config file. Remove unused CONFIG_SYS_RAM_BASE and CONFIG_SYS_SDRAM_BASE defines. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | clk: at91: utmi: add timeout for utmi lockEugen Hristev2018-08-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case the slow clock is not properly configured, the UTMI clock cannot lock the PLL, because UPLLCOUNT will "wait X slow clock cycles". In this case U-boot will loop indefinitely. Added a timeout in this case, to start U-boot even if UTMI clock is not enabled, so the user can use different media if needed, or investigate. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
* | | arm: bcm7445: Move config defines to bcm7445.hThomas Fitzsimmons2018-08-132-15/+16
| | | | | | | | | | | | | | | | | | | | | Move some configuration #defines that do not apply to other bcmstb boards from bcmstb.h to bcm7445.h. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org>
* | | arm: bcm7445: Fix parallel make race conditionThomas Fitzsimmons2018-08-132-31/+19
| | | | | | | | | | | | | | | | | | | | | | | | Move the contents of prior_stage.h into bcmstb.h to prevent a build failure when bcmstb.h is #include'ed before the asm/arch symbolic link is present. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org>
* | | rsa: Fix LibreSSL before v2.7.0Caliph Nomble2018-08-131-6/+12
| | | | | | | | | | | | | | | | | | | | | Fix LibreSSL compilation for versions before v2.7.0. Signed-off-by: Caliph Nomble <nomble@palism.com> Reviewed-by: Jonathan Gray <jsg@jsg.id.au>
* | | fs: fix typo 'dumm'Heinrich Schuchardt2018-08-131-1/+1
| | | | | | | | | | | | | | | | | | %s/dumm /dummy / Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | | avb2.0: add get_size_of_partition()Igor Opaniuk2018-08-131-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement get_size_of_partition() operation, which is required by the latest upstream libavb [1]. [1] https://android.googlesource.com/platform/external/avb/+/android-p-preview-5 Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org> Acked-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
* | | Merge git://git.denx.de/u-boot-fsl-qoriqTom Rini2018-08-1323-210/+805
|\ \ \
| * | | armv8: layerscape: Enable EHCI access for LS1012ARan Wang2018-08-102-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Program Central Security Unit (CSU) to grant access to USB 2.0 controller. Signed-off-by: Ran Wang <ran.wang_1@nxp.com> [YS: rewrite commit message] Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: layerscape: move ns_dev[] define from h to c file.Ran Wang2018-08-103-164/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move ns_dev[] from header file to C file to avoid compiling warning when header file is included by others. Signed-off-by: Ran Wang <ran.wang_1@nxp.com> [YS: rewrite commit message] Reviewed-by: York Sun <york.sun@nxp.com>
| * | | mtd: nand: fsl_ifc: Fix handling of bitflips in erased pagesDarwin Dingel2018-08-101-30/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fix made for the fsl_ifc_nand driver on linux kernel by Pavel Machek and is applied to uboot. It is currently on applied on linux-mtd. https://patchwork.kernel.org/patch/9758117/ IFC always raises ECC errors on erased pages. It is only ignored when the buffer is checked for all 0xFF by is_blank(). The problem is a single bitflip will cause is_blank() and then mtd_read to fail. The fix makes use of nand_check_erased_ecc_chunk() to check for empty pages instead of is_blank(). This also makes sure that reads are made at ECC page size granularity to get a proper bitflip count. If the number of bitflips does not exceed the ECC strength, the page is considered empty and the bitflips will be corrected when data is sent to the higher layers (e.g. ubi). Signed-off-by: Darwin Dingel <darwin.dingel@alliedtelesis.co.nz> Cc: Pavel Machek <pavel@denx.de> Cc: Scott Wood <oss@buserror.net> Acked-by: Pavel Machek <pavel@denx.de> [Kurt: Replaced dev_err by printf due to compiler warnings] Tested-by: Kurt Kanzenbach <kurt@linutronix.de> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: ls1046a: setup SEC ICIDs and fix up device treeLaurentiu Tudor2018-08-103-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for SEC ICID configuration and apply it for ls1046a. Also add code to make the necessary device tree fixups. Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: ls1046a: setup fman ports ICIDs and device treeLaurentiu Tudor2018-08-103-0/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for ICID setting of fman ports and the required device tree fixups. Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: ls1046a: add icid setup for qman portalsLaurentiu Tudor2018-08-103-4/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for ICID setting of qman portals and the required device tree fixups. Also fix an endiness issue in portal setup code. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: ls1046a: initial icid setup supportLaurentiu Tudor2018-08-107-0/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add infrastructure for ICID setup and device tree fixup on ARM platforms. This include basic ICID setup for several devices. Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: fsl-layerscape: add missing debug stream IDLaurentiu Tudor2018-08-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a define with a value for the missing debug stream ID. Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | misc: fsl_portals: setup QMAN_BAR{E} also on ARM platformsLaurentiu Tudor2018-08-102-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QMAN_BAR{E} register setup was disabled on ARM platforms, however the register does need to be set. Enable the code also on ARMs and fix the CONFIG_SYS_QMAN_MEM_PHYS define to the correct value so that the newly enabled code works. Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: ls1046a: advertise QMan v3 in configurationLaurentiu Tudor2018-08-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The QMan IP block in this SoC is version 3.2 so advertise this in the SoC configuration header. Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | armv8: fsl-layerscape: add missing register blocks base address definesLaurentiu Tudor2018-08-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add defines for the edma and qdma register block base addresses. Reviewed-by: Bharat Bhushan <bharat.bhushan@nxp.com> Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | net: Increase ethernet name string size to 20 charsPankaj Bansal2018-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 16 char ethernet name size is inadequate to hold the name of ethernet name "DPMAC17@rgmii-id", which is a valid name in LX2160AQDS/LX2160ARDB. Therefore, increase the name string size to 20 chars. Reported-by: Ioana Ciornei <ioana.ciornei@nxp.com> Suggested-by: Ioana Ciocoi Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | fsl/mc: Limit the ethernet name to ETH_NAME_LENPankaj Bansal2018-08-082-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ethernet name should be within the ETH_NAME_LEN, as this is the buffer space allocated to ethernet name. Otherwise, this causes buffer overflow. Reported-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | FSL PCI: Configure PCIe reference ratioJoakim Tjernlund2018-08-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most FSL PCIe controllers expects 333 MHz PCI reference clock. This clock is derived from the CCB but in many cases the ref. clock is not 333 MHz and a divisor needs to be configured. This adds PEX_CCB_DIV #define which can be defined for each type of CPU/platform. Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com> Reviewed-by: York Sun <york.sun@nxp.com>
| * | | Board: ls1088ardb: Enable PCIe config for Secure boot defconfigsVinitha V Pillai2018-08-071-0/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>