summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* env: Move env_get_f() to env.hSimon Glass2019-08-1122-12/+32
| | | | | | | Move this function over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move get_env_id() to env.hSimon Glass2019-08-115-7/+18
| | | | | | | | Move this function over to the new header file. Also rename it to have an env_ prefix like the other functions. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Create a new file for environment functionsSimon Glass2019-08-113-4/+29
| | | | | | | | | | | | | | | | At present we have environment.h but this file includes all the environment-related header files as well as internals such as default_environment. It seems desirable to have a new header to hold the commonly used environment functions, so that most files can avoid including all of this unnecessary stuff. Create a new env.h header and move one function over to it. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* common: Remove video_setmem()Simon Glass2019-08-112-10/+0
| | | | | | | This function is no-longer defined in U-Boot. Drop the declaration from common.h Signed-off-by: Simon Glass <sjg@chromium.org>
* common: Move lcd_setmem() to lcd.hSimon Glass2019-08-113-3/+2
| | | | | | | This function relates to lcd.h and is about to become obsolete with the driver-model conversion. Move it out of common.h Signed-off-by: Simon Glass <sjg@chromium.org>
* common: Drop the dpram_... functionsSimon Glass2019-08-111-5/+0
| | | | | | | These declarations are not used anymore, so drop them. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* common: Move gzip functions into a new gzip headerSimon Glass2019-08-1118-58/+124
| | | | | | | | | As part of the effort to remove things from common.h, create a new header for the gzip functions. Move the function declarations to it and add missing documentation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* MAINTAINERS: Add entries for Android A/B and AVBIgor Opaniuk2019-08-111-0/+20
| | | | | | | 1. Add myself as Android A/B and AVB maintainer 2. Add Sam Protsenko as Designated reviewer for A/B Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com>
* MAINTAINERS: Add entry for HI3660 SoCManivannan Sadhasivam2019-08-111-0/+2
| | | | | | | | | Add MAINTAINERS entry for HI3660 SoC by adding the arch includes. While doing so, adding myself as the co-maintainer for HISILICON SoCs since I'm planning to maintain HI3660 SoC separately and considering doing improvements to the existing HiSilicon SoC architecture. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* mmc: Add support for HI3660 SoC reusing hi6220_dw_mmc driverManivannan Sadhasivam2019-08-111-3/+26
| | | | | | | | | This commit adds MMC driver support for HI3660 SoC reusing hi6220_dw_mmc driver. Since HI3660 operates at different clock rate and uses fifo mode now, let's introduce the platform data and utilize it for different SoCs supported by this driver. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* board: hisilicon: Add support for Hikey960 boardManivannan Sadhasivam2019-08-119-0/+612
| | | | | | | | | | | | | | | | | This commit adds board support for Hikey960 board from Hisilicon. This board is one of the Consumer Edition boards of the 96Boards family powered by Kirin960 SoC. More information about this board can be found in 96Boards website: https://www.96boards.org/product/hikey960/ The initial supported/tested devices include: - Debug serial - SD With these support, it's good enough for loading Linux Kernel from SD. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* arm: dts: Add devicetree for Hikey960 boardManivannan Sadhasivam2019-08-113-0/+618
| | | | | | | | | | This commit adds devicetree for Hikey960 board. Most of the contents are copied from Linux kernel with some modifications for u-boot. To be more precise, SD card's speed related properties are removed due to a bug in u-boot clock implementation. Hence forcing the SD controller to work in standard speed. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* arm: dts: Import HI3660 devicetree from LinuxManivannan Sadhasivam2019-08-113-0/+2431
| | | | | | This commit imports HI3660 SoC devicetree from Linux Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* spl: implement stack usage checkSimon Goldschmidt2019-08-113-0/+64
| | | | | | | | | | | | | | | | | | | | | This implements a stack usage check in SPL. Many boards start up SPL to run code + data from one common, rather small SRAM. To implement a sophisticated SPL binary size limit on such boards, the stack size (as well as malloc size and global data size) must be subtracted from this SRAM size. However, to do that properly, the stack size first needs to be known. This patch adds a new Kconfig option: - SPL_SYS_REPORT_STACK_F_USAGE: memset(0xaa) the whole area of the stack very early and check stack usage based on this constant later before the stack is switched to DRAM Initializing the stack and checking it is implemented in weak functions, in case a board does not use the stack as saved in gd->start_addr_sp. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* serial_lpuart: Fix config check issue when using clk driver in SPLYe Li2019-08-111-4/+4
| | | | | | | | Should use CONFIG_IS_ENABLED not IS_ENABLED for CLK driver, so it will check the CONFIG_SPL_CLK when building SPL Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* pci: intel: Fix configuration type based on secondary numberLey Foon Tan2019-08-111-4/+6
| | | | | | | | | | | | | | This fix issue when access config from PCIe switch. The PCIe controller need to send Type 0 config TLP if the targeting bus matches with the secondary bus number, which is when the TLP is targeting the immediate device on the link. The PCIe controller send Type 1 config TLP if the targeting bus is larger than the secondary bus, which is when the TLP is targeting the device not immediate on the link. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
* pci: intel: Fix error when enumerating multi-function PCIe deviceLey Foon Tan2019-08-111-2/+4
| | | | | | | | | | Hardware return completion status non-zero when read from non exist function in multi-function PCIe device. Return error will cause PCIe enumeration fail. Change it to return 0 and return value 0xffffffff when error. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
* pci: intel: Increase TLP polling counterLey Foon Tan2019-08-111-1/+1
| | | | | | | Some PCIe devices require longer time to response. Increase polling counter to 20000 (~100ms). Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
* Merge branch 'master' of git://git.denx.de/u-boot-shWIP/10Aug2019Tom Rini2019-08-1026-21/+5477
|\ | | | | | | - R8A77980 V3H support
| * ARM: renesas: Add R8A77980 V3H Condor board codeMarek Vasut2019-08-0910-0/+533
| | | | | | | | | | | | | | Add board code for the R8A77980 V3H Condor board. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: renesas: Add R8A77980 V3H platform codeMarek Vasut2019-08-093-0/+7
| | | | | | | | | | | | | | Add a few bits of platform code to support R8A77980 V3H SoC. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * ARM: dts: renesas: Add R8A77980 V3H DTs and headersMarek Vasut2019-08-094-0/+1723
| | | | | | | | | | | | | | Import R8A77980 V3H DTs and headers from Linux 5.2.7 , commit 5697a9d3d55f. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * clk: renesas: Add R8A77980 V3H clock tablesMarek Vasut2019-08-093-0/+262
| | | | | | | | | | | | | | Import R8A77980 V3H clock tables from Linux 5.2.7 , commit 5697a9d3d55f. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * pinctrl: renesas: Add R8A77980 V3H PFC tablesMarek Vasut2019-08-095-0/+2920
| | | | | | | | | | | | | | Import R8A77980 V3H PFC tables from Linux 5.2.7 , commit 5697a9d3d55f. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * net: sh_eth: Fix 64bit build warningsMarek Vasut2019-08-092-16/+16
| | | | | | | | | | | | | | | | Fix various type warnings when building this driver for 64bit machine. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * net: sh_eth: Add R8A77980 V3H gether supportMarek Vasut2019-08-092-5/+16
| | | | | | | | | | | | | | | | | | The R8A77980 V3H gether needs a few minor adjustments to the sh_eth driver, add them to support ethernet on R8A77980. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* | Merge branch 'master' of git://git.denx.de/u-boot-usbTom Rini2019-08-1018-24/+537
|\ \ | | | | | | | | | | | | | | | - DaVinci USB updates - Various OHCI fixes - Gadget fixes
| * | fastboot: Remove "bootloader-version" variableSam Protsenko2019-08-082-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per [1], there is no such fastboot variable as "bootloader-version". Only "version-bootloader" is supported. Let's reflect this and not confuse users further. [1] https://android.googlesource.com/platform/system/core/+/refs/tags/android-q-preview-4/fastboot/README.md Fixes: 3aab70afc531d1 ("usb/gadget: add the fastboot gadget") Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com>
| * | fastboot: getvar: Add "is-userspace" variableSam Protsenko2019-08-081-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per documentation [1], Android-Q requires for bootloader to provide "is-userspace" variable. "no" value should be always returned. This patch implements this fastboot variable. [1] https://android.googlesource.com/platform/system/core/+/refs/tags/android-q-preview-4/fastboot/README.md Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com>
| * | usb: gadget: f_dfu.c: fix memory leakRalph Siemsen2019-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dfu_prepare_function() allocates N+1 descriptor header structures, the last one being the "DFU Functional Descriptor". dfu_unbind() handles de-allocation, but fails to free the final one (eg. "DFU Functional Descriptor"), leading to memory leak. Fixed by incrementing counter, as in dfu_prepare_function(). Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
| * | thor: fix crash after usb initialization failureMarek Szyprowski2019-08-081-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Registration of USB download gadget might fail for various reasons, so add a check for g_dnl_register() funtion return value. Without this fix, thor_init() will try to access the registered gadget structures resulting in NULL pointer dereference issue. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
| * | fastboot: Remove "slot-suffixes" variableSam Protsenko2019-08-081-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "slot-suffixes" variable was dropped in fastboot tool (in [1]). Let's track AOSP/master and drop this variable in U-Boot as well. [1] https://android.googlesource.com/platform/system/core/+/42b18a518bac85c3eea14206f6cbafbd1e98a31f Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> [lukma: Remove getvar_slot_suffixes() declaration] Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * | usb, ohci, pci: add DM support for PCI-based OHCI USB controllerHeiko Schocher2019-08-083-0/+60
| | | | | | | | | | | | | | | | | | | | | add new DM based PCI driver ohci-pci for PCI-based OHCI USB support. Signed-off-by: Heiko Schocher <hs@denx.de>
| * | usb, ohci: add warning if none on pci foundHeiko Schocher2019-08-081-1/+4
| | | | | | | | | | | | Signed-off-by: Heiko Schocher <hs@denx.de>
| * | usb, ohci-hcd: set OHCI_USE_NPS if DM_PCIHeiko Schocher2019-08-081-2/+3
| | | | | | | | | | | | | | | | | | set OHCI_USE_NPS if DM_PCI is enabled. Signed-off-by: Heiko Schocher <hs@denx.de>
| * | usb, ohci: fix ohci swap register accessHeiko Schocher2019-08-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 57faca19a82f ("drivers: USB: OHCI: allow compilation for 64-bit targets") broke ohci support for the mpc85xx based socrates board, as it removed volatile keyword from ohci_readl/writel. Fix this so usb works again on socrates board. Signed-off-by: Heiko Schocher <hs@denx.de>
| * | usb, ohci-hdc: fix warning 'ohci_pci_ids' defined but not usedHeiko Schocher2019-08-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | var ohci_pci_ids is only used if DM_USB is not enabled. So define this varaible only if !CONFIG_IS_ENABLED(DM_USB) Signed-off-by: Heiko Schocher <hs@denx.de>
| * | ARM: da850-evm: Enable the USB PHY and MUSB DriverAdam Ford2019-08-083-0/+15
| | | | | | | | | | | | | | | | | | | | | This patch will enable the MUSB driver to support mass storage devices connected to the OTG port in host mode. Signed-off-by: Adam Ford <aford173@gmail.com>
| * | usb: musb-new: Add support for da8xx-musbAdam Ford2019-08-083-0/+359
| | | | | | | | | | | | | | | | | | | | | With the recently added phy driver, this patch will enable the musb driver on the da8xx to operate in host mode. Signed-off-by: Adam Ford <aford173@gmail.com>
| * | phy: Add support for phy-da8xx-usbAdam Ford2019-08-083-0/+71
| | | | | | | | | | | | | | | | | | | | | In preparation for supporting the musb driver, this patch adds support for the usb phy associated with the musb driver. Signed-off-by: Adam Ford <aford173@gmail.com>
* | | Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86WIP/09Aug2019Tom Rini2019-08-0953-619/+1573
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enable SD slot on Intel Edison - Populate CSRT ACPI table for shared DMA controller on Intel Tangier - Convert Intel ICH-SPI driver to use new spi-mem ops - Enable config_distro_bootcmd for QEMU x86 - Support U-Boot as a payload for Intel Slim Bootloader - Avoid writing temporary asl files into the source tree which fixes the parallel build issue occasionally seen
| * | | x86: Skip setting up MTRRs in slimbootloaderPark, Aiden2019-08-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The setting up MTRRs have already been done in previous Slim Bootloader stages. Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | board: intel: Add new slimbootloader boardPark, Aiden2019-08-0910-0/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add slimbootloader board to run U-boot as a Slim Bootloader payload - Add new board/intel/slimbootloader directory with minimum codes - Add slimbootloader configuration files - Add doc/board/intel/slimbootloader.rst Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: add slimbootloader board MAINTAINERS file] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: slimbootloader: Add a slimbootloader device treePark, Aiden2019-08-092-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new device tree which has very minimum nodes - x86 reset - x86 tsc_timer - x86 pci - Slim Bootloader serial Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: slimbootloader: Set TSC information for tsc_timerPark, Aiden2019-08-092-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Slim Bootloader already calibrated TSC and provides it to U-Boot. Therefore, U-Boot does not have to re-calibrate TSC. Configuring tsc_base and clock_rate makes x86 tsc_timer driver bypass TSC calibration and use the provided TSC frequency. - Get TSC frequency from performance info hob - Set tsc_base and clock_rate for tsc_timer driver Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: slimbootloader: Add serial driverPark, Aiden2019-08-093-1/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Slim Bootloader provides serial port info thru its HOB list pointer. All these HOBs are eligible for Slim Bootloader based board only. - Get serial port information from the serial port info HOB - Leverage ns16550 driver with slimbootloader specific platform data Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: slimbootloader: Add memory configurationPark, Aiden2019-08-093-1/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Slim Bootloader provides memory map info thru its HOB list pointer. Configure memory size and relocation memory from the HOB data, and provide e820 entries as well. - Get memory size from the memory map info HOB - Set available top memory lower than 4GB for U-Boot relocation - Provide e820 entries from the memory map info HOB Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: Add a common HOB libraryPark, Aiden2019-08-099-337/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FSP (CONFIG_HAVE_FSP) and Slim Bootloader (CONFIG_SYS_SLIMBOOTLOADER) consume HOB (CONFIG_USE_HOB) data from the each HOB list pointer. Add a common HOB library in lib/hob.c and include/asm/hob.h. Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: lib: fsp: Use EFI_GUID and efi_guid_tPark, Aiden2019-08-097-105/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use existing EFI_GUID and efi_guid_t instead of struct efi_guid. This is pre-work before making a common HOB library. - Change 'struct efi_guid' to efi_guit_t - Remove 'struct efi_guid' - Define GUIDs with EFI_GUID() macro - Use guidcmp() instead of compare_guid() - Remove compare_guid() Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested on MinnowMax Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | | x86: Add new slimbootloader CPU typePark, Aiden2019-08-099-4/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This slimbootloader CPU type is to enable U-Boot as a payload which runs on top of Slim Bootloader (https://github.com/slimbootloader). The Slim Bootloader is designed with multi-stage architecture for the execution from reset vector to OS booting, and supports QEMU, Apollolake, Whiskeylake and Coffeelake platforms consuming Intel FSP (https://github.com/IntelFsp) for silicon initialization including CAR and memory initialization. The Slim Bootloader generates new HOB (Hand Off Block) which are serial port info, memory map info, performance data info and so on, and passes it to a Payload. U-Boot as a payload will use these HOB information for basic initialization such as serial console. As an initial commit, - Add CONFIG_SYS_SLIMBOOTLOADER to enable slimbootloader CPU type - Add new arch/x86/cpu/slimbootloader directory with minimum codes - Get hob_list pointer from Slim Bootloader Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>