summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* efi_loader: interrupts in simple network protocolHeinrich Schuchardt2019-09-051-0/+2
| | | | | | | | | GetStatus() must clear the interrupt status. Transmit() should set the TX interrupt. Receive() should clear the RX interrupt. Initialize() and Start() should clear the interrupt status. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* env: net: U_BOOT_ENV_CALLBACKs should not depend on CMD_NETHeinrich Schuchardt2019-09-042-2/+2
| | | | | | | | | | | | | | | | Some environment variables are relevant for networking. For these U_BOOT_ENV_CALLBACKs have been defined. When the corresponding environment variable is updated the callback updates the state of the network sub-system. In the UEFI subsystem we can use the network even if CONFIG_CMD_NET is not defined. Let the usage of the U_BOOT_ENV_CALLBACKs depend on CONFIG_NET and not on CONFIG_CMD_NET. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* net: make net_random_ethaddr() more randomMichael Walle2019-09-041-1/+1
| | | | | | | | | | | | The net_random_ethaddr() tries to get some entropy from different startup times of a board. The seed is initialized with get_timer() which has only a granularity of milliseconds. We can do better if we use get_ticks() which returns the raw timer ticks. Using this we have a higher chance of getting different values at startup. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* net: dwc_et_qos: update weak function board_interface_eth_initPatrick Delaunay2019-09-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | Align the board and driver prototype for board_interface_eth_init to avoid execution issue (the interface_type parameter is defined as int or phy_interface_t). To have a generic weak function (it should be reused by other driver) I change the prototype to use directly udevice. This prototype is added in netdev.h to allow compilation check and avoid warning when compiling with W=1 on file board/st/stm32mp1/stm32mp1.c warning: no previous prototype for 'board_interface_eth_init'\ [-Wmissing-prototypes] int board_interface_eth_init(int interface_type, .... ^~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* net: introduce packet capture supportRamon Fried2019-09-041-0/+55
| | | | | | | | | | | | | | Add support for capturing ethernet packets and storing them in memory in PCAP(2.4) format, later to be analyzed by any PCAP viewer software (IE. Wireshark) This feature greatly assist debugging network issues such as detecting dropped packets, packet corruption etc. Signed-off-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Alex Marginean <alexm.osslist@gmail.com> Tested-by: Alex Marginean <alexm.osslist@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* dm: cache: Add enable and disable ops for cache uclassRick Chen2019-09-031-0/+31
| | | | | | | | Add cache enable/disable ops to the DM cache uclass driver Signed-off-by: Rick Chen <rick@andestech.com> Cc: KC Lin <kclin@andestech.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* sifive-fu540: config: Add mmc0 as a boot target deviceAlistair Francis2019-09-031-0/+1
| | | | | | | | Add the mmc0 device as a BOOT_TARGET_DEVICES. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* Revert "vexpress64: fvp dram: add DRAM configuration"Ryan Harkin2019-08-311-15/+2
| | | | | | | | | This reverts commit fc04b923541d984b1544056fd3bfa8129d4e5aac where the FVP DRAM configuration was added. Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Sudeep Holla <sudeep.holla@arm.com>
* Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xxTom Rini2019-08-298-219/+144
|\ | | | | | | | | Enable DM PCI for T2080RDB, T4240RDB, T1024RDB, T1042D4RDB, P1020RDB, P2020RDB, P2041RDB, P3041DS, P4080DS, and MPC8548CDS
| * powerpc: MPC8548CDS: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-8/+14
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: corenet_ds: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-44/+19
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: P2041RDB: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-40/+15
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: p1_p2_rdb: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-13/+23
| | | | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled for P1020, P1021, P1024, P1025 and P2020 RDB boards. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: T104xRDB: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-18/+20
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: T102xRDB: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-39/+15
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: T102xRDB: Remove the useless macro CONFIG_ARCH_T1040Hou Zhiqiang2019-08-281-24/+0
| | | | | | | | | | | | | | | | | | | | Remove the macro CONFIG_ARCH_T1040 from the T102xRDB.h and the PCIE4 related macros, as there are only 3 PCIe controllers on T102x SoCs. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: T4240RDB: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-16/+19
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
| * powerpc: T208xRDB: Disable legacy PCIe driver when DM_PCI is enabledHou Zhiqiang2019-08-281-17/+19
| | | | | | | | | | | | | | | | Disable legacy PCIe driver and unused PCIe macros when DM_PCI enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
* | Merge branch 'u-boot-stm32_20190827' of ↵WIP/27Aug2019Tom Rini2019-08-274-31/+9
|\ \ | |/ |/| | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-stm - Fixes and update related to STM32MP1 platforms
| * image: add new "copro" image typePatrick Delaunay2019-08-271-0/+1
| | | | | | | | | | | | | | | | | | | | Define new image type for coprocessor images. It is used in FIT to identify the files loaded with remoteproc command (elf or bin). Signed-off-by: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmu: stpmic1: change specific NVM api to MISCPatrick Delaunay2019-08-271-7/+0
| | | | | | | | | | | | | | | | | | Use MISC u-class to export the NVM register (starting at 0xF8 offset) and avoid specific API. - SHADOW have offset < 0. - NVM have register > 0 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * serial: stm32: remove unused includePatrick Delaunay2019-08-271-15/+0
| | | | | | | | | | | | | | The "serial_stm32.h" is only used by drivers/serial/serial_stm32.c and it is the file ./drivers/serial/serial_stm32.h Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: Set bootdelay to 1Patrice Chotard2019-08-271-0/+1
| | | | | | | | | | | | | | | | This allows to display splashcreen without waiting an extra delay of 2 seconds due to default value of bootdelay. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: add altbootcmdPatrick Delaunay2019-08-271-1/+2
| | | | | | | | | | | | | | | | Add altbootcmad as it is used for - bootcountlimit - in mach-stm32mp/cpu.c for BOOT_RECOVERY mode Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: support MTDPARTS only if neededPatrick Delaunay2019-08-271-0/+2
| | | | | | | | | | | | MTD is only use if NAND or NOR driver is activated. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: remove CONFIG_SYS_HZPatrick Delaunay2019-08-271-5/+0
| | | | | | | | | | | | Use the default value from lib/Kconfig. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stpmic1: program pmic to keep only the debug unit onPatrick Delaunay2019-08-271-2/+3
| | | | | | | | | | | | | | | | | | | | Depending on backup register value, we maintain the debug unit powered-on for debugging purpose. Only BUCK1 is required for powering the debug unit, so revert the setting for all the other power lanes, except BUCK3 that has to be always on. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: cosmetic: remove commentPatrick Delaunay2019-08-271-1/+0
| | | | | | | | | | | | Remove unnecessary comment. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
* | Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xxTom Rini2019-08-271-1/+1
|\ \ | |/ |/| | | | | | | Support of device tree model for T2080RDB, T4240RDB, T1024RDB, T1042D4RDB, P1020RDB, P2020RDB, P2041RDB, P3041DS, P4080DS, P5040DS and MPC8548CDS. Also support of i2c dm model.
| * powerpc: mpc8548cds: extend the reserved length for monitorHou Zhiqiang2019-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the reserved length for monitor to fix the following build error: BINMAN u-boot-with-dtb.bin Wrote map file './image.map' to show errors binman: Section '/binman': contents size 0x80000 (524288) exceeds section size 0x40000 (262144) Makefile:1373: recipe for target 'u-boot-with-dtb.bin' failed make: *** [u-boot-with-dtb.bin] Error 1 Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
* | Merge branch '2019-08-26-master-imports'Tom Rini2019-08-265-1954/+8
|\ \ | | | | | | | | | - Assorted minor bugfixes
| * | tools: remove easylogo and include/video_logo.hWIP/2019-08-26-master-importsHeinrich Schuchardt2019-08-261-1951/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/video_logo.h once was created via the tool easylogo and than used in cpu/mpc8xx/video.c to display Tux. video_logo.h has been replaced by include/linux_logo.h and is not needed anymore. Delete the include and the tool, Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | ARM: am3517-evm: Disable CONFIG_USB_EHCI_OMAP in SPLAdam Ford2019-08-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Found accidentally in omap3_logic, CONFIG_USB_EHCI_OMAP adds some code size to SPL, so this patch disables it on the am3517-evm to reduce the code a bit since it's tight for space. Signed-off-by: Adam Ford <aford173@gmail.com>
| * | ARM: omap3_logic: Fix SPL boot failure when EHCI enabledAdam Ford2019-08-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the USB code is still being built into SPL even when the SPL menu options have it explicitly disabled for SPL. Unit there is a better solution, This patch undefines CONFIG_USB_EHCI_OMAP when building SPL which reduces the code and lets the board boot again. Fixes: 25e4ff45b17d ("ARM: omap3_logic: Enable OMAP EHCI support for SOM-LV Boards") Signed-off-by: Adam Ford <aford173@gmail.com>
| * | vexpress/aemv8a: drop CONFIG_ARMV8_SWITCH_TO_EL1Sudeep Holla2019-08-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support KVM, we need to drop at EL2 and not EL1 before we boot Linux kernel. This causes issues on platform with VHE and secondaries booting at EL2 via TF-A PSCI CPU_ON call. Cc: Ryan Harkin <ryan.harkin@linaro.org> Cc: Liviu Dudau <liviu.dudau@foss.arm.com> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: David Feng <fenghua@phytium.com.cn> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
| * | arm: ti: Fix regression in distro boot for mmcNuno Gonçalves2019-08-261-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | When devnum was changed to a local variable in distro_bootcmd we ran into a problem on TI platforms (confirmed on Beaglebone) as we had been using 'setenv devnum' there as well and it needs to match the other usage. Fixes: 13dd6665ed18 ("distro: not taint environment variables if possible") [trini: Review other platforms, re-word commit message] Signed-off-by: Tom Rini <trini@konsulko.com>
* | Merge https://gitlab.denx.de/u-boot/custodians/u-boot-riscvWIP/26Aug2019Tom Rini2019-08-265-1/+61
|\ \ | |/ |/| | | | | - Support SPL and OpenSBI (FW_DYNAMIC firmware) boot. - Fix qemu kconfig build warning.
| * riscv: qemu: add SPL configurationLukas Auer2019-08-261-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add two new configurations (qemu-riscv{32,64}_spl_defconfig) with SPL enabled for RISC-V QEMU. QEMU does not require SPL to run U-Boot. The configurations are meant to help the development of SPL on RISC-V. The configurations enable RAM as the only SPL boot device. Images must be loaded at address 0x80200000. In the default boot flow, U-Boot SPL starts in machine mode, loads the OpenSBI FW_DYNAMIC firmware and U-Boot proper from the supplied FIT image, and starts OpenSBI. U-Boot proper is then started in supervisor mode by OpenSBI. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
| * spl: support booting via RISC-V OpenSBILukas Auer2019-08-263-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RISC-V OpenSBI is an open-source implementation of the RISC-V Supervisor Binary Interface (SBI) specification. It is required by Linux and U-Boot running in supervisor mode. This patch adds support for booting via the OpenSBI FW_DYNAMIC firmware. It supports OpenSBI version 0.4 and higher. In this configuration, U-Boot SPL starts in machine mode. After loading OpenSBI and U-Boot proper, it will start OpenSBI. All necessary parameters are generated by U-Boot SPL and are passed to OpenSBI. U-Boot proper is started in supervisor mode by OpenSBI. Support for OpenSBI is enabled with CONFIG_SPL_OPENSBI. An additional configuration entry, CONFIG_SPL_OPENSBI_LOAD_ADDR, is used to specify the load address of the OpenSBI firmware binary. It is not used directly in U-Boot and instead is intended to make the value available to scripts such as FIT configuration generators. The header file include/opensbi.h is based on header files from the OpenSBI project. They are recent, as of commit bae54f764570 ("firmware: Add fw_dynamic firmware"). Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
| * fdtdec: make CONFIG_OF_PRIOR_STAGE available in SPLLukas Auer2019-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | The current preprocessor logic prevents CONFIG_OF_PRIOR_STAGE from being used in U-Boot SPL. Change the logic to also make it available in U-Boot SPL. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
* | Convert CONFIG_SYS_SPI_U_BOOT_OFFS to KconfigWIP/2019-08-24-master-importsHannes Schmelzer2019-08-2562-118/+0
| | | | | | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_SYS_SPI_U_BOOT_OFFS Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> [trini: Expose this for SPL_SPI_SUNXI for now] Signed-off-by: Tom Rini <trini@konsulko.com>
* | moveconfig: prepare moving CONFIG_SYS_SPI_U_BOOT_OFFS to Kconfig step 4Hannes Schmelzer2019-08-251-1/+0
| | | | | | | | | | | | | | the x530 board needs conversion of SPL_SPI_LOAD to Kconfig first Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
* | moveconfig: prepare moving CONFIG_SYS_SPI_U_BOOT_OFFS to Kconfig step 3Hannes Schmelzer2019-08-252-2/+6
| | | | | | | | | | | | | | | | Exact two boards are referencing CONFIG_SYS_SPI_U_BOOT_OFFS to another define, we replace this manually with the value for having a clean run of moveconfig.py afterwards. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
* | moveconfig: prepare moving CONFIG_SYS_SPI_U_BOOT_OFFS to Kconfig step 2Hannes Schmelzer2019-08-2513-8/+21
| | | | | | | | | | | | | | | | | | | | some boards have common headers for several individual build-targets where CONFIG_SYS_SPI_U_BOOT_OFFS is defined even it is not needed (only needed if CONFIG_SPL_SPI_LOAD is defined also). Take this define here under '#ifdef CONFIG_SPL_SPI_LOAD' for having a clean run of moveconfig.py Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
* | moveconfig: prepare moving CONFIG_SYS_SPI_U_BOOT_OFFS to Kconfig step 1Hannes Schmelzer2019-08-2512-12/+12
| | | | | | | | | | | | | | | | Some boards have coded this offset with formula or bitshifts in their board-config. Manually convert these things into hex-values to be able using moveconfig.py afterwards. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
* | mtd: nand: raw: Move CONFIG_SYS_NAND_USE_FLASH_BBT to KconfigStefan Roese2019-08-2514-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert CONFIG_SYS_NAND_USE_FLASH_BBT to Kconfig, update defconfigs, headers and whitelist. Please note that this symbol already was used in Kconfig (imply in CONFIG_NAND_ATMEL) which did not work, since this symbol was not available in Kconfig. This changes now with this patch and all boards with CONFIG_NAND_ATMEL will have BBT enabled. Which is what I also need on my GARDENA AT91SAM based board. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Eugen Hristev <eugen.hristev@microchip.com> Cc: Miquel Raynal <miquel.raynal@bootlin.com> Cc: Gregory CLEMENT <gregory.clement@bootlin.com> [trini: Rework such that the configs are unchanged to start with] Signed-off-by: Tom Rini <trini@konsulko.com>
* | Convert CONFIG_ARCH_CPU_INIT to KconfigAdam Ford2019-08-2541-51/+0
|/ | | | | | | | | This converts the following to Kconfig: CONFIG_ARCH_CPU_INIT Signed-off-by: Adam Ford <aford173@gmail.com> Acked-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Tested-by: Felix Brack <fb@ltec.ch>
* Merge tag 'u-boot-rockchip-20190823' of ↵WIP/24Aug2019Tom Rini2019-08-2412-24/+3
|\ | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip - remove rk3288 fennec board - remove SPL raw image support for Rockchip SoCs - add common misc_init_r() for ethaddr from cpuid - enable USB HOST support for rk3328 - unify code for finding a valid gpt in part driver
| * evb_rk3399: revert CONFIG_SYS_MMC_ENV_DEV to 0Max Kellermann2019-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | This was changed to 1 in commit 0717dde057e, but a few months later, commit 5f9411af37b swapped the order of eMMC and SD card by assigning indexed aliases to `&sdhci` and `&sdmmc`. Signed-off-by: Max Kellermann <max.kellermann@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> (Add signature) Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * disk: efi: ignore 'IGNOREME' GPT header found on cros eMMCsUrja Rannikko2019-08-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Some ChromeOS devices (atleast veyron speedy) have the first 8MiB of the eMMC write protected and equipped with a dummy 'IGNOREME' GPT header - instead of spewing error messages about it, just silently try the backup GPT. Note: this does not touch the gpt cmd writing/verifying functions, those will still complain. Signed-off-by: Urja Rannikko <urjaman@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>