summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* env: Move env_get_hex() to env.hSimon Glass2019-08-115-12/+15
| | | | | | | Move env_get_hex() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move env_get_yesno() to env.hSimon Glass2019-08-115-6/+11
| | | | | | | Move env_get_yesno() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move env_get_ulong() to env.hSimon Glass2019-08-119-13/+20
| | | | | | | Move env_get_ulong() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move env_set_ulong() to env.hSimon Glass2019-08-1116-9/+23
| | | | | | | Move env_set_ulong() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move env_set_hex() to env.hSimon Glass2019-08-1139-21/+59
| | | | | | | | Move env_set_hex() over to the new header file along with env_set_addr() which uses it. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move envmatch() to env.hSimon Glass2019-08-114-14/+15
| | | | | | | | Move envmatch() over to the new header file. Also rename it to env_match() to better line up with other functions. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move env_relocate() to env.hSimon Glass2019-08-114-1/+10
| | | | | | | Move env_relocate() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* env: Move env_init() to env.hSimon Glass2019-08-1119-1/+27
| | | | | | | Move env_init() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* 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-shTom 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-x86Tom 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>