summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'u-boot-atmel-2020.01-a' of ↵Tom Rini2019-10-0842-16/+2386
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-atmel First set of u-boot-atmel features and fixes for 2020.01 cycle The feature set includes support for two new boards from Microchip AT91: The sama5d27_wlsom1_ek , an evaluation kit which includes the SAMA5D2 SOC packaged in a 256 MB LPDDR2 SIP, on a SOM including wireless, which is placed on evaluation kit with sd-card, ethernet, LCD, Camera sensor, QSPI, etc The sam9x60ek, an evaluation kit for the new SoC based on ARM926j , the SAM9X60 . The evaluation kit includes NAND flash, QSPI, Ethernet, Audio, Camera sensor connector, etc. The full support for sam9x60ek will come at a later time. There are still missing bits regarding the clock support and power management controller.
| * configs: sam9x60ek: enable onewire supportEugen Hristev2019-10-083-0/+12
| | | | | | | | | | | | Enable support for onewire memories and onewire commands. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: atmel: sam9x60ek: add support for PDA detectionEugen Hristev2019-10-081-0/+5
| | | | | | | | | | | | Automatically detect PDA at boot. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: dts: at91: sam9x60ek: add onewire supportEugen Hristev2019-10-081-0/+17
| | | | | | | | | | | | Add support for onewire memory. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: dts: at91: sam9x60: add onewire nodeEugen Hristev2019-10-081-0/+19
| | | | | | | | | | | | Add onewire node for w1 support. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * configs: Add sam9x60ek_qspiflash_defconfigTudor Ambarus2019-10-082-0/+76
| | | | | | | | | | | | | | | | | | | | Boot from QSPI nor flash. The at91bootstrap, u-boot, u-boot env redundant, u-boot env, device tree and kernel will reside in the QSPI nor flash. The rootfs will reside in the NAND flash. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * ARM: dts: at91: sam9x60ek: Enable qspi nodeTudor Ambarus2019-10-083-0/+88
| | | | | | | | | | | | | | | | | | | | The sam9x60 qspi controller uses 2 clocks, one for the peripheral register access, the other for the qspi core and phy. Both are mandatory. Enable the qspi node together with the SST26VF064B qspi nor flash memory. Booting from the QSPI NOR flash is now possible. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * configs: sam9x60ek: Add QSPI_BOOT definesTudor Ambarus2019-10-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | Cope with the offsets defined at: https://www.at91.com/linux4sam/pub/Linux4SAM/SambaSubsections/demo_nandflash_map_lnx4sam6x.png The environment starts at 0x140000 and it's of size 0x20000. The device tree starts at 0x180000 and it's of size 0x80000. The zImage starts at 0x200000 and it's of size 0x600000. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * configs: Add sam9x60ek_nandflash_defconfigTudor Ambarus2019-10-082-0/+54
| | | | | | | | | | | | Boot from nand flash. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * board: sam9x60ek: Add NAND flash supportTudor Ambarus2019-10-082-0/+89
| | | | | | | | | | | | | | | | - EBI Chip Select Register is now in SFR, - the pins are set to default values, - timings are matching MT29F4G08BABWP's nand flash requirements. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * ARM: at91: Add SFR definitionsTudor Ambarus2019-10-081-3/+45
| | | | | | | | | | | | | | | | sama5's SFR has at offset 0x04 the DDR Configuration Register, while sam9x60's SFR contains the EBI Chip Select Register. Add a union to reconcile both boards. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * ARM: at91: Rename sama5_sfr.h to at91_sfr.hTudor Ambarus2019-10-085-6/+6
| | | | | | | | | | | | | | The Special Function Registers (SFR) are present in sam9x5 and sam9x60 too, rename sama5_sfr to at91_sfr.h. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * configs: Add sam9x60ek_mmc_defconfigSandeep Sheriker Mallikarjun2019-10-081-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add sam9x60ek_mmc_defconfig and for now only supports booting from sdcard. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> [nicolas.ferre@microchip.com: split patch, add Ethernet controller, phy and tools] [claudiu.beznea@microchip.com: add CONFIG_OF_LIBFDT_OVERLAY] Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> [tudor.ambarus@microchip.com: Fix number of DRAM banks: One DDR2-SDRAM (W972GG6KB 2 Gbit = 16 Mbit x 16 x 8 banks] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * board: atmel: Add sam9x60ek boardSandeep Sheriker Mallikarjun2019-10-086-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new board SAM9X60-EK using the ARM926 SAM9X60 SoC. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com> [tudor.ambarus@microchip.com: - fix number of DRAM banks: One DDR2-SDRAM (W972GG6KB 2 Gbit = 16 Mbit x 16 x 8 banks] - drop SPL related macros - drop memtest macros - drop CONFIG_SPI_BOOT, CONFIG_SYS_USE_DATAFLASH related macros - drop inclusion of asm/arch/at91sam9_smc.h] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * ARM: dts: at91: sam9x60: Add macb0 Ethernet controllerNicolas Ferre2019-10-082-0/+36
| | | | | | | | | | | | | | Add Ethernet controller to dtsi file and enable it on sam9x60ek platform connected with rmii. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
| * ARM: dts: Add dts files for sam9x60ekSandeep Sheriker Mallikarjun2019-10-084-0/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add device tree files for sam9x60ek board with below changes. - Add initial device nodes (pmc, pinctrl, sdhc, dbgu & pit) - Add the reg property for the pinctrl node. - Add the "u-boot,dm-pre-reloc" property to determine which nodes are used by the board_init_f stage. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com> [prasanthi.chellakumar@microchip.com: fix style/whitespace issues] Signed-off-by: Prasanthi Chellakumar <prasanthi.chellakumar@microchip.com> [nicolas.ferre@microchip.com: - fix gclk, - fix pio/pinctrl controller definition and allow to have more than only PIOA for this SoC, - removing pinctrl address] Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> [claudiu.beznea@microchip.com: - use SAM9X60's compatible for pinctrl - add drive strength and slew rate options for SDMMC0 pins.] Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> [tudor.ambarus@microchip.com: - u-boot,dm-pre-reloc property in dedicated file, - fix pit len, starts from 0xFFFFFE40 and it is of len 0x10] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * ARM: at91: Add sam9x60 socSandeep Sheriker Mallikarjun2019-10-085-0/+301
| | | | | | | | | | | | | | | | Add new Microchip sam9x60 SoC based on an ARM926. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com> [tudor.ambarus@microchip.com: fix SFR definition] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
| * mmc: atmel_sdhci: Add sam9x60-sdhci compatibility stringSandeep Sheriker Mallikarjun2019-10-081-0/+1
| | | | | | | | | | | | Add new compatibility string for matching sam9x60 product. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
| * net: macb: Add sam9x60-macb compatibility stringNicolas Ferre2019-10-081-0/+1
| | | | | | | | | | | | | | Add this new compatibility string for matching sam9x60 product macb. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
| * board: atmel: sama5d27_wlsom1_ek: fix SPL OFFS on SPIEugen Hristev2019-10-082-5/+2
| | | | | | | | | | | | | | | | Fixes redefinition of CONFIG_SYS_SPI_U_BOOT_OFFS This is now a Kconfig Fixes: e40a9ba6d2d5 ("board: atmel: sama5d2_wlsom1_ek: add qspi support and qspi boot config") Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * configs: sama5d27_wlsom1_ek: add CONFIG_SPL_AT91_MCK_BYPASSEugen Hristev2019-10-082-0/+2
| | | | | | | | | | | | | | This board has an external oscillator as MCK that does not need driving. Bypass the driving for the main oscillator in SPL. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: atmel: common: remove year from print messageEugen Hristev2019-10-081-1/+1
| | | | | | | | | | | | | | | | Remove 2017 from being printed at boot video console. This is outdated. To avoid this situation, remove the year completely. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: dts: at91: sama5d27_wlsom1: add hlcdc nodeEugen Hristev2019-10-083-0/+72
| | | | | | | | | | | | | | | | | | Add node for hlcld for u-boot logo display at boot. This is compatible with the Precision Design Associates (PDA) TM5000 screen. Timings are compatible with simple panel from Linux, panel name is pda_91_00156_a0 Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: atmel: sama5d27_wlsom1_ek: start green led in SPLEugen Hristev2019-10-081-0/+8
| | | | | | | | | | | | When SPL boots, enable green led on the board. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: atmel: sama5d2_wlsom1_ek: add qspi support and qspi boot configEugen Hristev2019-10-084-0/+137
| | | | | | | | | | | | | | Add support for qspi memory on board. Created boot support for QSPI for both u-boot proper and SPL. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: dts: at91: sama5d27_wlsom1_ek: add support for qspiEugen Hristev2019-10-083-0/+38
| | | | | | | | | | | | Add node for qspi1 memory connected on the wlsom Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: dts: at91: sama5d2: add seq for qspi1Eugen Hristev2019-10-081-0/+1
| | | | | | | | | | | | | | qspi1 does not have an alias/seq number. This is required for SPL default SF bus booting for the boards that have this SoC Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: atmel: sama5d2_wlsom1_ek: add SPL supportEugen Hristev2019-10-084-4/+185
| | | | | | | | | | | | | | Add support for SPL for this board: DRAM initialization, PMC initialization, MMC boot. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: at91: mpddrc: add lpddr2 initialization procedureEugen Hristev2019-10-082-0/+185
| | | | | | | | | | | | | | Implement the lpddr2 initialization procedure for at91 mpddrc multi-port ddram controller. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: laird: wb50n: use configure_ddrcfg_input_buffersEugen Hristev2019-10-082-3/+2
| | | | | | | | | | | | | | Replace code with new function configure_ddrcfg_input_buffers from SFR mach driver. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: at91: sfr: implement DDR input buffers open functionEugen Hristev2019-10-082-0/+14
| | | | | | | | | | | | | | | | Add a function in SFR implementation that will open the DDR input buffers. This can be called at DRAM initialization time. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: at91: sfr: convert to KconfigEugen Hristev2019-10-083-3/+14
| | | | | | | | | | | | This converts the at91 sfr to Kconfig Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * board: atmel: add sama5d27_wlsom1_ek boardNicolas Ferre2019-10-0811-0/+411
| | | | | | | | | | | | | | | | | | Add support for the SAMA5D27-WLSOM1-EK. It's based on the Microchip WireLess SoM which contains the SAMa5D27 LPDDR2 2Gbits SiP. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> [eugen.hristev@microchip.com]: added u-boot specific dtsi and ported to 2019.10 Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
| * ARM: at91: Add the chip ID for SAMA5D2 LPDDR2 SiPNicolas Ferre2019-10-082-0/+12
| | | | | | | | | | | | | | The SAMA5D2 LPDDR2 SiP (System in Package) is added for SoC identification. Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
* | Merge tag 'efi-2020-01-rc1' of ↵Tom Rini2019-10-0811-45/+91
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for efi-2020-01-rc1 The major corrections in this pull request are: Fixes for the SetVariable() boot service. Device path node for NVMe drives. Disable CONFIG_CMD_NVEDIT by default.
| * | cmd: disable CMD_NVEDIT_EFI by defaultHeinrich Schuchardt2019-10-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The growth of the UEFI sub-system leads to build failures for systems with strict limits on the U-Boot image size. CMD_NVEDIT_EFI supports displaying and editing of UEFI variables. The setting is not needed for booting. Disabling it by default reduces the size of the U-Boot image by 2 KiB. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi: device path for nvmePatrick Wildt2019-10-063-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows our EFI API to create a device path node for NVMe devices. It adds the necessary device path struct, uses the nvme namespace accessor to retrieve the id and eui64, and also provides support for the device path text protocol. Signed-off-by: Patrick Wildt <patrick@blueri.se> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | nvme: add accessor to namespace id and eui64Patrick Wildt2019-10-063-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a function which can be used by e.g. EFI to retrieve the namespace identifier and EUI64. For that it adds the EUI64 to its driver internal namespace structure and copies the EUI64 during namespace identification. Signed-off-by: Patrick Wildt <patrick@blueri.se> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | cmd: env: fix a typo in a comment of do_env_set_efi()AKASHI Takahiro2019-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | A wrong function name is referred to in a comment of do_env_set_efi(). Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | Revert "ARM: tegra: reserve unmapped RAM so EFI doesn't use it"Mian Yousaf Kaukab2019-10-061-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 0797f7f0b7e1d7853e2842ddc235ffef139fa792. Tegra specific solution is not required any more as efi core has been made aware of ram_top with the following commit: 7b78d6438a efi_loader: Reserve unaccessible memory Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de>
| * | efi_selftest: testing read-only variablesHeinrich Schuchardt2019-10-061-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UEFI spec has this sentence: "Variables that have runtime access but that are not nonvolatile are read-only data variables once ExitBootServices() is performed." At least EDK2 therefore treats variable PlatformLangCodes only as read-only at runtime. Nowhere do we make this variable read-only in U-Boot. Do not use variable PlatformLangCodes for testing if the read only attribute of variables is observed before ExitBootServices(). Fixes: 5a24239c951e ("efi_loader: selftest: enable APPEND_WRITE tests") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_selftest: correct SetVariable() testHeinrich Schuchardt2019-10-061-14/+16
| | | | | | | | | | | | | | | | | | | | | Errors should not only be announced as text but should also result in EFI_ST_FAILURE being returned. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: appending to non-existent variableHeinrich Schuchardt2019-10-061-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Appending to a non-existent variable must result in an error of type EFI_NOT_FOUND. Fixes: 09c76b79a9db ("efi_loader: SetVariable() deleting variables") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | | Merge branch '2019-10-08-master-imports'Tom Rini2019-10-086-3137/+6623
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | - Python3 conversion of genboardscfg.py - Resync Kconfiglib.py - Switch to running CI on Ubuntu "bionic" to facilitate Python 3.6 being the minimum we use and test.
| * | travis.yml: Switch to bionic for the host distributionTom Rini2019-10-081-4/+5
| | | | | | | | | | | | | | | | | | | | | To match what we're doing in GitLab, move to 'bionic' for these builds as well. Signed-off-by: Tom Rini <trini@konsulko.com>
| * | gitlab-ci: Switch to Ubuntu 18.04 imageTom Rini2019-10-081-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | In order to run all filesystem tests we need to have newer ext4 tools, move up to Ubuntu 18.04 'bionic' for our base. We need to change slightly how we invoke the provided grub-mkimage. This will also make future python3 work easier. Signed-off-by: Tom Rini <trini@konsulko.com>
| * | gitlab-ci: Have buildman use /tmp for outputTom Rini2019-10-081-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | When running as another user we might not be able to use '..' for certain directories and this is the default for buildman. Specify an output directory instead. Signed-off-by: Tom Rini <trini@konsulko.com>
| * | buildman: Perform tests in a temporary directoryTom Rini2019-10-081-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We may not always be able to write to the default output directory so have a temporary directory for our output be created. Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Stephen Warren <swarren@wwwdotorg.org> Suggested-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Tom Rini <trini@konsulko.com>
| * | kconfiglib: Update to the 12.14.0 releaseTom Rini2019-10-083-3088/+6574
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A large number of changes have happened upstream since our last sync which was to 375506d. The reason to do the upgrade at this point is for improved Python 3 support. As part of this upgrade we need to update moveconfig.py and genboardscfg.py the current API. This is: - Change "kconfiglib.Config" calls to "kconfiglib.Kconfig" - Change get_symbol() calls to syms.get(). - Change get_value() to str_value. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tom Rini <trini@konsulko.com>
| * | genboardscfg.py: Remove "warnings" print sectionTom Rini2019-10-081-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | We tell kconfiglib to not print any warnings to us so drop this code as it will be unused. Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tom Rini <trini@konsulko.com>