summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* configs: nxp: Enable CONFIG_SYS_RELOC_GD_ENV_ADDRKuldeep Singh2020-05-196-0/+6
| | | | | | | | | | | | Commit 323d3af59fe4 ("configs: ls1012ardb: Enable CONFIG_SYS_RELOC_GD_ENV_ADDR") enables the config only for LS1012ARDB. Apart from LS1012A-RDB, other platforms such as LS1012A-FRWY, LS2088A and LS1046A-RDB/FRWY also require this config to be enabled. This also helps in resolving booting crash observed in flash environment. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1012a: Reduce CONFIG_ENV_SIZE to 0x2000Ashish Kumar2020-05-1915-15/+15
| | | | | | | | | | | | | All LS1012A board variants have same CONFIG_ENV_SECT_SIZE and CONFIG_ENV_SIZE values. If both config values are same, flash environment cannot be saved. Since, CONFIG_ENV_SECT_SIZE needs to be same as that of flash sector size, this entry cannot be changed. Reduce CONFIG_ENV_SIZE value to 0x2000. This also helps in making config value aligned with other boards environemt size. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Signed-off-by: Ashish Kumar <Ashish.kumar@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1012a: Increase CONFIG_SYS_MALLOC_LEN sizeKuldeep Singh2020-05-191-1/+1
| | | | | | | | | | CONFIG_SYS_MALLOC_LEN is currently set to low value and leaves very less space to do malloc in flash environmet. Increase the value to get more memory and also make it align with other boards(ls1046a, ls1043a etc.) config values. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls2080ardb: Make BOOT command access flash memory as per spi-memKuldeep Singh2020-05-191-4/+10
| | | | | | | | | BOOT command currently access spi-nor flash memory directly. As per spi-mem framework, flash memory access via absolute addresses is no more possible. Use flash APIs to access memory instead of directly using it. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls2080ardb: Make MC_INIT access flash memory as per spi-memKuldeep Singh2020-05-191-10/+18
| | | | | | | | | MC_INIT command currently access spi-nor flash memory directly. As per spi-mem framework, flash memory access via absolute addresses is no more possible. Use flash APIs to access memory instead of directly using it. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1046a: Define ENV_ADDR valueKuldeep Singh2020-05-193-2/+4
| | | | | | | | | | | | | CONFIG_ENV_ADDR helps in picking environment from flash before DDR init. The macro value is already defined in ls1046ardb_tfa_defconfig, also define the value as 0x40300000 in qspi_defconfig. ls1046aqds has one spansion flash "S25FL128S_64K" of size 16M with sector size 64K. Correct ENV_ADDR and ENV_SECT_SIZE value for QSPI and TFA defconfigs of the board. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls2080a: Correct ENV_ADDR valueKuldeep Singh2020-05-193-2/+3
| | | | | | | | | | | CONFIG_ENV_ADDR helps in picking environment from flash before DDR init. QSPI region in LS2088ARDB and LS2088AQDS starts from 0x20000000 offset. Correct the config value i.e 0x80500000 -> 0x20500000. Also, define config value as 0x20300000 in qspi defconfig. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1088a: Correct ENV_ADDR valueKuldeep Singh2020-05-192-2/+2
| | | | | | | | | CONFIG_ENV_ADDR helps in picking environment from flash before DDR init. QSPI region starts from 0x20000000 offset. Correct the config value i.e 0x80500000 -> 0x20500000. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* treewide: Update fsl qspi node dt properties as per spi-mem driverKuldeep Singh2020-05-1919-56/+35
| | | | | | | | | | | | | | According to new qspi driver, some properties like "bus-num, num-cs, big-endian" are no longer used. Device endiannes can be determined from device-type data in driver. Now use board specific compatibles, generic node names and specific labels to align with linux device-tree properties. Also consolidate spi-max-frequency to 50Mhz treewide. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1046a: Move SPI_FLASH_SPANSION to defconfigKuldeep Singh2020-05-1910-15/+8
| | | | | | | | | Enable CONFIG_SPI_FLASH_SPANSION in defconfigs of LS1046ARDB and LS1046AQDS which have two spansion flases i.e s25fs512s each of size 64M. Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1012a: Enable CONFIG_SPI_FLASH_SPANSION in defconfigsKuldeep Singh2020-05-1912-1/+11
| | | | | | | | | | Since CONFIG_FSL_QSPI is already enabled for LS1012A in defconfigs. Also enable CONFIG_SPI_FLASH_SPANSION for LS1012A boards having spansion flashes. Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs: ls1043a: Move CONFIG_FSL_QSPI and SPI_FLASH_SPANSION to defconfigKuldeep Singh2020-05-195-8/+5
| | | | | | | | | Move CONFIG_FSL_QSPI to the board defconfigs and while at it also move CONFIG_SPI_FLASH_SPANSION for LS1043AQDS. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* treewide: Remove unused FSL QSPI config options for Layerscape platformsKuldeep Singh2020-05-1917-127/+2
| | | | | | | | | | | Some of these options are not used by the driver anymore and some of them are obsolete as the information is gathered from the dt. Also consolidating defines in common headers. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com> Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* Merge tag 'efi-2020-07-rc3' of ↵WIP/18May2020Tom Rini2020-05-1822-55/+1117
|\ | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for efi-2020-07-rc3 A series of patches introduces the possibility to manage UEFI variables via an OP-TEE module. CONFIG_EFI_MM_COMM_TEE enables this. If this option is not specified the U-Boot behavior remains unchanged. A defconfig is provided for compile testing (lx2160ardb_tfa_stmm_defconfig). An incorrect UEFI memory allocation for fsl-layerscape is fixed
| * dts: nxp2160ardb: add op-tee nodeIlias Apalodimas2020-05-171-0/+6
| | | | | | | | | | | | | | A defconfig is added on lx2160ardb which allows UEFI variable management via OP-TEE. Enable the the node in the relevant DTS file. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
| * configs: lx2160a: Add default config for lx2160a using StMM in OP-TEEIlias Apalodimas2020-05-172-0/+86
| | | | | | | | | | | | | | | | | | | | Previous patches allow UEFI secure variables to be stored in an RPMB device using OPTEE. Add a config for the lx2160a hardware so the feature gets at least compiled. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Remove superfluous differences to lx2160ardb_tfa_defconfig. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * doc: uefi.rst: Add OP-TEE variable storage config optionsIlias Apalodimas2020-05-171-0/+17
| | | | | | | | | | | | | | | | | | If OP-TEE is compiled with an EDK2 application running in secure world it can process and store UEFI variables in an RPMB. Add documentation for the config options enabling this. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * MAINTAINERS: Add maintainer for EFI variables via OP-TEEIlias Apalodimas2020-05-171-0/+6
| | | | | | | | | | | | | | Add myself as maintainer for the OP-TEE related UEFI variable storage. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * cmd: efidebug: Add support for querying UEFI variable storageIlias Apalodimas2020-05-171-1/+57
| | | | | | | | | | | | | | | | | | With the previous patches that use OP-TEE and StandAloneMM for UEFI variable storage we've added functionality for efi_query_variable_info. So let's add the relevant command to efidebug and retrieve information about the container used to store UEFI variables Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
| * efi_loader: Implement EFI variable handling via OP-TEEIlias Apalodimas2020-05-173-0/+675
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In OP-TEE we can run EDK2's StandAloneMM on a secure partition. StandAloneMM is responsible for the UEFI variable support. In combination with OP-TEE and it's U-Boot supplicant, variables are authenticated/validated in secure world and stored on an RPMB partition. So let's add a new config option in U-Boot implementing the necessary calls to OP-TEE for the variable management. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Pipat Methavanitpong <pipat1010@gmail.com> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * efi_loader: Add headers for EDK2 StandAloneMM communicationSughosh Ganu2020-05-171-0/+208
| | | | | | | | | | | | | | | | | | | | | | | | In Arm devices OP-TEE has the ability to run StandAloneMM (from EDK2) in a separate partition and handle UEFI variables. A following patch introduces this functionality. Add the headers needed for OP-TEE <--> StandAloneMM communication Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * efi_loader: round the memory area in efi_add_memory_map()Michael Walle2020-05-1712-54/+62
|/ | | | | | | | | | | | | | | | | Virtually all callers of this function do the rounding on their own. Some do it right, some don't. Instead of doing this in each caller, do the rounding in efi_add_memory_map(). Change the size parameter to bytes instead of pages and remove aligning and size calculation in all callers. There is no more need to make the original efi_add_memory_map() (which takes pages as size) available outside the module. Thus rename it to efi_add_memory_map_pg() and make it static to prevent further misuse outside the module. Signed-off-by: Michael Walle <michael@walle.cc> Add missing comma in sunxi_display.c. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* Merge branch '2020-05-15-kconfig-migrations'Tom Rini2020-05-159-20/+39
|\ | | | | | | | | - Convert CONFIG_DELAY_ENVIRONMENT to Kconfig and update initr_pci to be Kconfig'd.
| * qemu-x86*_defconfig: Enable CONFIG_PCI_INIT_RWIP/2020-05-15-kconfig-migrationsOvidiu Panait2020-05-153-2/+2
| | | | | | | | | | | | | | | | Enable CONFIG_PCI_INIT_R for qemux86 and qemux86-64 pci enumeration during boot in order to eliminate the custom preboot commands in include/configs/qemu-x86.h. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
| * qemu_arm_defconfig: Enable CONFIG_PCI_INIT_ROvidiu Panait2020-05-151-2/+1
| | | | | | | | | | | | Replace the "pci enum" preboot sequence with CONFIG_PCI_INIT_R=y. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
| * qemu_arm64_defconfig: Enable CONFIG_PCI_INIT_ROvidiu Panait2020-05-151-2/+1
| | | | | | | | | | | | Replace the "pci enum" preboot sequence with CONFIG_PCI_INIT_R=y. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
| * board_r: Introduce CONFIG_PCI_INIT_R Kconfig optionOvidiu Panait2020-05-152-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With CONFIG_DM_PCI enabled, PCI buses are not enumerated at boot, as they are without that config option enabled. However, there are cases such as DM PCI-based Ethernet devices that need the PCI bus enumerated so that they can be discovered by their drivers. Currently, to solve this, some boards enumerate the pci bus using "pci enum" preboot command, while others do it manually in board files (in board_init/board_late_init/etc. functions). In order to possibly make the pci enumeration process uniform across all boards, introduce CONFIG_PCI_INIT_R Kconfig option. This change also preserves the current behavior in the !DM_PCI case (pci_init is run unconditionally at boot). Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
| * board_r: env: Use IS_ENABLED() instead of #ifdefsOvidiu Panait2020-05-151-10/+11
| | | | | | | | | | | | | | | | | | Use IS_ENABLED() instead of #ifdef in should_load_env and initr_env functions. No functional change intended. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
| * env: Convert CONFIG_DELAY_ENVIRONMENT to KconfigOvidiu Panait2020-05-152-1/+12
|/ | | | | | This converts ad-hoc CONFIG_DELAY_ENVIRONMENT to Kconfig. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
* configs: Resync with savedefconfigTom Rini2020-05-154-30/+19
| | | | | | Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge branch '2020-05-15-misc-bugfixes'Tom Rini2020-05-15131-290/+345
|\ | | | | | | | | | | | | | | | | - A number of symbol name consistency updates - JFFS2 bugfix - Use /* fallthrough */ for now to help at least gcc know when we're intentionally not 'break;'ing in a switch statement, we'll adopt fallthrough; later on. - Assorted other fixes
| * lib: rsa: avoid overriding the object name when already specifiedWIP/2020-05-15-misc-bugfixesJan Luebbe2020-05-152-9/+21
| | | | | | | | | | | | | | | | | | | | | | If "object=" is specified in "keydir" when using the pkcs11 engine do not append another "object=<key-name-hint>". This makes it possible to use object names other than the key name hint. These two string identifiers are not necessarily equal. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Bastian Krause <bst@pengutronix.de> Reviewed-by: George McCollister <george.mccollister@gmail.com>
| * MAINTAINERS: POWERPC MPC8XX: Update email addressChristophe Leroy2020-05-151-1/+1
| | | | | | | | | | | | | | | | Our email addresses have changed from @c-s.fr to @csgroup.eu Update entry in MAINTAINERS Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
| * tools: ftdgrep: use /* fallthrough */ as neededHeinrich Schuchardt2020-05-151-4/+7
| | | | | | | | | | | | | | GCC recognizes /* fallthrough */ if -Wimplicit-fallthrough=3 is enabled. Let's use it consistently. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * tools: mkimage: use /* fallthrough */ as neededHeinrich Schuchardt2020-05-151-1/+1
| | | | | | | | | | | | | | GCC recognizes /* fallthrough */ if -Wimplicit-fallthrough=3 is enabled. Let's use it consistently. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * common/board_f: avoid -Wtype-limits warningHeinrich Schuchardt2020-05-151-1/+1
| | | | | | | | | | | | | | | | CONFIG_SYS_SDRAM_BASE maybe zero. Avoid a build warning when compiling with -Wtype-limits. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * spl: Always define preloader_console_initSamuel Holland2020-05-153-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A large number of boards call preloader_console_init unconditionally. Currently, they fail to build with CONFIG_SPL_SERIAL=n, because the function is undefined in that case. To fix the build, always define preloader_console_init, but make it no-op when CONFIG_SPL_SERIAL=n. For the few boards that did check for CONFIG_SPL_SERIAL before calling preloader_console_init, remove the checks, since the function can now be called unconditionally. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
| * lib: rsa: Also check for presence of r-squared propertyJan Kiszka2020-05-151-1/+1
| | | | | | | | | | | | Better than crashing later if it is missing. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
| * Makefile: add file 'defconfig' to clean targetHeinrich Schuchardt2020-05-151-1/+1
| | | | | | | | | | | | | | | | File 'defconfig' is a build artifact of 'make savedefconfig'. Remove it when cleaning. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * JFFS2: Add useful fields into listsPetr Borsodi2020-05-152-78/+81
| | | | | | | | | | | | | | | | The inode list uses version and ino, the dirent list uses version and pino. This information is collected during scanning, reducing accesses to flash and significantly speeding up ls and read. Signed-off-by: Petr Borsodi <petr.borsodi@i.cz>
| * JFFS2: Process obsolete nodes as well as accurate onesPetr Borsodi2020-05-151-26/+47
| | | | | | | | | | | | | | | | Obsolete nodes (ie. without the JFFS2_NODE_ACCURATE flag) were ignored because they had seemingly invalid crc. This could lead to finding the phantom node header in obsolete node data. Signed-off-by: Petr Borsodi <petr.borsodi@i.cz>
| * drivers/reset/Kconfig: fix typoTrevor Woerner2020-05-151-1/+1
| | | | | | | | Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * rename symbol: CONFIG_STM32 -> CONFIG_ARCH_STM32Trevor Woerner2020-05-1513-13/+13
| | | | | | | | | | | | Have this symbol follow the pattern of all other such symbols. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * rename symbol: CONFIG_TEGRA -> CONFIG_ARCH_TEGRATrevor Woerner2020-05-1544-50/+49
| | | | | | | | | | | | Have this symbol follow the pattern of all other such symbols. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * rename symbol: CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOODTrevor Woerner2020-05-1551-67/+66
| | | | | | | | | | | | | | | | Have this symbol follow the pattern of all other such symbols. This patch also removes a TODO from the code. Reviewed-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * arm: orion5x: finish moving SoC to mach-orion5xTrevor Woerner2020-05-152-1/+1
| | | | | | | | | | | | | | | | The SPL linker script had been left in arch/$(ARCH)/cpu/$(CPU)/$(SOC); therefore move it to the already-established arch/$(ARCH)/mach-$(SOC) location. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * rename symbol: CONFIG_ORION5X -> CONFIG_ARCH_ORION5XTrevor Woerner2020-05-1510-11/+10
| | | | | | | | | | | | | | Have this symbol follow the pattern of all other such symbols. This patch removes a TODO from the code. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * arch/arm/Makefile: sort machine namesTrevor Woerner2020-05-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | The comment immediately above the block of machine directory names implored users to keep the macro names sorted, but, alas, this is no longer the case. Put the list of machine directory names back in alphanumerical order by CONFIG_* macro name, as the comment asks. Sort all the symbols as though they all followed the convention of having the string "ARCH_" in the middle of their definitions. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * arm: lpc32xx: move SoC to mach-lpc32xxTrevor Woerner2020-05-1511-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following the example of most other SoCs in arch/$(ARCH)/cpu/$(CPU)/$(SOC) move the lpc32xx code from arch/arm/cpu/arm926ejs/lpc32xx to arch/arm/mach-lpc32xx. Following the checklist from commit 01f14456306c ("ARM: prepare for moving SoC sources into mach-*"): [1] move files from arch/arm/cpu/arm926ejs/lpc32xx to arch/arm/mach-lpx32xx [2] add machine entry to arch/arm/Makefile [3] remove "obj-y += ..." from arch/arm/cpu/arm926ejs/Makefile [4] fix the Kconfig file path in arch/arm/Kconfig [5] (no MAINTAINERS update) Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| * rsa: don't use malloc.h in rsa-sign.cJonathan Gray2020-05-151-1/+1
| | | | | | | | | | | | | | | | | | stdlib.h is the header for malloc since at least c89/c90. There is no system malloc.h on OpenBSD and trying to use malloc.h here falls back to the U-Boot malloc.h breaking the build of qemu_arm64. Fixes: 336d4615f8 ("dm: core: Create a new header file for 'compat' features") Signed-off-by: Jonathan Gray <jsg@jsg.id.au>