summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* configs: Migrate the various SPL_BOOT_xxx choices for PowerPCTom Rini2019-06-14130-112/+207
| | | | | | | | The non-CONFIG_SPL_FRAMEWORK SPL used on some PowerPC platforms have a choice between CONFIG_SPL_NAND_BOOT, CONFIG_SPL_MMC_BOOT and CONFIG_SPL_SPI_BOOT. Migrate this to Kconfig Signed-off-by: Tom Rini <trini@konsulko.com>
* common: Fix a typo abnove -> aboveAndy Shevchenko2019-06-141-1/+1
| | | | Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
* tools: add tools/spl_size_limit to ignore listSimon Goldschmidt2019-06-141-0/+1
| | | | | | | | This tool has just been added but it seems I forgot to add it to the ignore list. So to prevent the built binary being marked as unversioned, add it to the ignore list. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
* net: Convert CONFIG_TFTP_BLOCKSIZE to KconfigMarek Vasut2019-06-1425-13/+18
| | | | | | | | | Convert CONFIG_TFTP_BLOCKSIZE to Kconfig, update defconfigs, headers and whitelist. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Christian Gmeiner <christian.gmeiner@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
* net: Convert CONFIG_IP_DEFRAG to KconfigMarek Vasut2019-06-1432-13/+25
| | | | | | | | | | Convert CONFIG_IP_DEFRAG to Kconfig, update defconfigs, headers and whitelist. This patch is a follow-up on a patch by Christian Gmeiner with the added config/header/whitelist updates. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reported-by: Christian Gmeiner <christian.gmeiner@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
* MAINTAINERS: change Ramon Fried email addressRamon Fried2019-06-142-2/+2
| | | | | | | | Change my email address, too many mails gets to my private mail, created specific email account just for developmement. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* Merge tag 'u-boot-amlogic-20190612' of git://git.denx.de/u-boot-amlogicTom Rini2019-06-128-28/+234
|\ | | | | | | | | | | | | - pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groups - pinctrl: meson-gxbb: add hdmi related pins to fix HDMI on GXBB - pinctrl: meson: add support for getting pinmux status - pinctrl: meson-g12a: add support for drive-strength-microamp property
| * pinctrl: meson-gxbb: add hdmi related pinsMaxime Jourdan2019-06-121-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | The GXBB pinctrl is missing pins related to HDMI, namely hot plug detection (hpd) and I2C (sda + scl). This fixes HDMI support for GXBB in u-boot. Reported-by: Mohammad Rasim <mohammad.rasim96@gmail.com> Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Tested-by: Mohammad Rasim <mohammad.rasim96@gmail.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * pinctrl: meson: g12a: add DS bank valueGuillaume La Roque2019-06-121-10/+10
| | | | | | | | | | | | | | | | add drive-strength bank regiter and bit value for G12A SoC Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> Tested-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * pinctrl: meson: add support of drive-strength-microampGuillaume La Roque2019-06-123-14/+74
| | | | | | | | | | | | | | | | | | | | | | drive-strength-microamp is a new feature needed for G12A SoC. the default DS setting after boot is usually 500uA and it is not enough for many functions. We need to be able to set the drive strength to reliably enable things like MMC, I2C, etc ... Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> Tested-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * dm: pinctrl: Add driver-strength-microamp propertyGuillaume La Roque2019-06-121-0/+3
| | | | | | | | | | | | | | | | Add drive-strength-microamp property support to allow drive strength in uA Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> Tested-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * pinctrl: meson-axg: add support for getting pinmux statusNeil Armstrong2019-06-121-0/+48
| | | | | | | | | | | | | | | | In order to support the "pinmux status" command, use the common functions to get the pins count and names, and add the AXG specific function to get the current function from registers. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * pinctrl: meson-gx: add support for getting pinmux statusNeil Armstrong2019-06-121-0/+44
| | | | | | | | | | | | | | | | | | In order to support the "pinmux status" command, use the common functions to get the pins count and names, and add the GX specific function to get the current function from registers. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Tested-by: Maxime Jourdan <mjourdan@baylibre.com>
| * pinctrl: meson: add common function to get pins nameNeil Armstrong2019-06-122-0/+27
| | | | | | | | | | | | | | In order to support the "pinmux status" command, add common function to get pins count and pin name. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
| * pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groupsNeil Armstrong2019-06-122-4/+9
| | | | | | | | | | | | | | | | The GPIO_TEST_N was in the wrong pmx group table, move it back with the AO groups, GPIODV_18 was missing, add it back, and finally the GPIOCLK_* group names were missing. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
* | Merge tag 'efi-2019-07-rc5' of git://git.denx.de/u-boot-efiTom Rini2019-06-126-52/+102
|\ \ | | | | | | | | | | | | | | | Pull request for UEFI sub-system for v2019.07-rc5 This pull request provides fixes for event services.
| * | efi_loader: implement event queueHeinrich Schuchardt2019-06-102-28/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up to now we have only been using a flag queued for events. But this does not satisfy the requirements of the UEFI spec. Events must be notified in the sequence of decreasing TPL level and within a TPL level in the sequence of signaling. Implement a queue for signaled events. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_selftest: correct event group testHeinrich Schuchardt2019-06-101-5/+4
| | | | | | | | | | | | | | | | | | | | | If any member of the event group is signaled, all members must be set to signaled and their notification functions have to be queued. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: event signaling in ExitBootServicesHeinrich Schuchardt2019-06-105-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ExitBootServices() has to stop timer related activity before calling the events of the EFI_EVENT_GROUP_EXIT_BOOT_SERVICES event group. But our current implementation was stopping all other events. All events have to observe the task priority level. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: SignalEvent for event in signaled stateHeinrich Schuchardt2019-06-101-0/+2
| | | | | | | | | | | | | | | | | | | | | If an event is already in the signaled state, SignalEvent should not queue the notification function but simply return EFI_SUCCESS. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
| * | efi_loader: RegisterProtocolNotify event signalingHeinrich Schuchardt2019-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In a following patch efi_signal_event() will only queue an event if it is not signaled. Set the is_signaled status to false before signaling the event. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | | Merge tag 'u-boot-stm32-20190606' of https://github.com/pchotard/u-bootTom Rini2019-06-1127-171/+2352
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add Ethernet support for STM32MP1 - Add saveenv support for STM32MP1 - Add STM32MP1 Avenger96 board support - Add SPI driver suport for STM32MP1 - Add watchdog support for STM32MP1 - Update power supply check via USB TYPE-C for STM32MP1 discovery board
| * | | configs: stm32mp15: Enable Ethernet featureChristophe Roullier2019-06-062-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to enable Ethernet and use driver for Synopsys Ethernet QoS device Signed-off-by: Christophe Roullier <christophe.roullier@st.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | | stm32mp1: Add Ethernet support for stm32mp1 boardChristophe Roullier2019-06-061-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add default SERVERIP address Enable noncached memory region required by ethernet driver Add PXE support Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
| * | | ARM: dts: stm32: Add Ethernet support on stm32mp1Christophe Roullier2019-06-063-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | This patch add Ethernet support on stm32mp157 eval board Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
| * | | net: dwc_eth_qos: add Ethernet stm32mp1 supportChristophe Roullier2019-06-061-52/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synopsys GMAC 4.20 is used. And Phy mode for eval and disco is RMII with PHY Realtek RTL8211 (RGMII) We also support some other PHY config on stm32mp157c PHY_MODE (MII,GMII, RMII, RGMII) and in normal, PHY wo crystal (25Mhz and 50Mhz), No 125Mhz from PHY config Signed-off-by: Christophe Roullier <christophe.roullier@st.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * | | board: stm32mp1: Add board_interface_eth_initChristophe Roullier2019-06-061-3/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Called to configure Ethernet PHY interface selection and configure clock selection in RCC Ethernet clock tree. Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
| * | | stm32mp1: clk: use the correct identifier for ethckPatrick Delaunay2019-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ETHCK_K is the identifier the kernel clock for ETH in kernel binding, selected by ETHKSELR / gated by ETHCKEN = BIT(7). U-Boot driver need to use the same identifier, so change ETHCK to ETHCK_K. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
| * | | configs: stm32mp15: Enable SPI relative flagsPatrice Chotard2019-06-062-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable STM32_SPI, SPI, DM_SPI and CMD_SPI flags. This enables the SPI support for STM32MP15. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | spi: stm32: Add Serial Peripheral Interface driver for STM32MPPatrice Chotard2019-06-064-0/+625
| | | | | | | | | | | | | | | | | | | | | | | | Add SPI driver support for STM32MP SoCs family. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | clk: stm32mp1: Add SPI1 clock entryPatrice Chotard2019-06-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add missing SPI1 clock needed by SPI1 instance. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | board: stm32mp1: Update power supply check via USB TYPE-CPatrice Chotard2019-06-061-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 2 new checks: - detect when USB TYPE-C cable is not plugged correctly. In this case, GND and VBUS pins are connected but not CC1 and CC2 pins. - detect is an USB Type-C charger supplies more than 3 Amps which is not compliant with the USB Type-C specification In these 2 situations, stop the boot process and let red led blinks forever. V cc1 | V cc2 | power supply | red led | console message range (Volts) |range (Volts)| (Amps) | blinks | --------------|-------------|--------------|---------|----------------------------------- > 2.15 | < 0.2 | > 3 | for ever| USB TYPE-C charger not compliant with specification [2.15 - 1.23[ | < 0.2 | 3 | NO | NO [1.23 - 0.66[ | < 0.2 | 1.5 | 3 times | WARNING 1.5A power supply detected [0.66 - 0] | < 0.2 | 0.5 | 2 times | WARNING 500mA power supply detected < 0.2 | < 0.2 | | for ever| ERROR USB TYPE-C connection in unattached mode > 0.2 | > 0.2 | | for ever| ERROR USB TYPE-C connection in unattached mode Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | configs: stm32mp15: Enable WDT flagsPatrice Chotard2019-06-062-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to enable WATCHDOG and WDT flags to be able to reset the watchdog and to support watchdog driver model. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | watchdog: stm32mp: Add watchdog driverPatrice Chotard2019-06-065-0/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds IWDG (Independent WatchDoG) support for STM32MP platform. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | | ARM: dts: stm32mp: Add iwdg2 support for stm32mp157cPatrice Chotard2019-06-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds independent watchdog support for stm32mp157c in SPL. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | | watchdog: Kconfig: Sort entry alphabeticallyPatrice Chotard2019-06-061-48/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make adding new entry easier, sort Kconfig entries in alphabetical order. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Stefan Roese <sr@denx.de>
| * | | stm32mp1: Update env_get_location for NOR supportPatrice Chotard2019-06-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update env_get_location() to be able to save environment into NOR (SPI_FLASH). Series-cc: pde, cke, pch, uboot-stm32 Cover-letter: Add saveenv support for STM32MP1 This series adds saveenv support for STM32MP1 on several boot devices. STM32MP1 is able to boot on eMMC, sdcard and NOR (NAND support is not fully supported). On eMMC and sdcard, environment is saved in EXT4 partition On NOR, environment is saved in a dedicated partition On NAND, environment is saved in a UBI volume. This series: - enables NAND and NOR support on ev1 board - enables ENV_IS_IN_SPI_FLASH, ENV_IS_IN_UBI, ENV_IS_IN_EXT4 flags - fixes get_mtdparts() - allows to override interface, device and partition for ext4 environment - updates rule to set ENV_IS_NOWHERE value - introduce ENV_IS_IN_DEVICE END Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | configs: stm32mp15: Enable ENV_IS_SPI_FLASHPatrice Chotard2019-06-063-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add all relative flags needed by ENV_IS_IN_SPI_FLASH Reserved a 256KB partition in NOR to save the U-Boot environment. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | configs: stm32mp15: Enable ENV_IS_IN_UBIPatrice Chotard2019-06-063-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Add all relative flags needed by ENV_IS_IN_UBI Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | stm32mp1: Increase ENV_SIZEPatrice Chotard2019-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase ENV_SIZE from 4 to 8 Ko Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | mtd: Fix get_mtdparts()Patrice Chotard2019-06-061-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When ENV_IS_IN_UBI is enable, get_mtdparts is called before relocation. During first get_mtdparts() call, mtdparts is not available in environment, it can be retrieved by calling board_mtdparts_default(), but following env_set() do nothing as we are before relocation. Finally mtdparts is still not available in environment. At second get_mtdparts() call, use_defaults is false, but mtdparts is still not in environment and is NULL. Remove use_defaults bool, only mtdparts criteria is useful. Fixes: commit 5ffcd50612f6 ("mtd: Use default mtdparts/mtids when not defined in the environment") Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | stm32mp1: Add env_get_location()Patrice Chotard2019-06-061-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of several environment location support, env_get_location is needed to select the correct location depending of the boot device . Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | configs: stm32mp15: Enable ENV_IS_IN_EXT4 and all relative flagsPatrick Delaunay2019-06-062-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable ENV_IS_IN_EXT4 and all relative flags to be able to load/save environment in EXT4 partition. This will allows to load/save environment on both sdcard and eMMC. As for stm32mp15, bootfs has not the same partition number on sdcard and on eMMC, we use "auto" key which allows to find the first partition in device with bootable flag which is partition 4 on sdcard and partition 2 on eMMC. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | env: enable saveenv command when one CONFIG_ENV_IS_IN is activatedPatrick Delaunay2019-06-061-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ENV_IS_IN_DEVICE to test if one the CONFIG_ENV_IS_IN_ is defined and support the command saveenv even if CONFIG_ENV_IS_NOWHERE is activated Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * | | env: allow ENV_IS_NOWHERE with other storage targetPatrice Chotard2019-06-061-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow U-Boot to get default environment for some boot mode (USB for example), and to select storage location when it is booting from flash device; ENVL_NOWHERE is present in env_locations with other one. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * | | board: stm32mp1: Add env_ext4_get_dev_part() and env_ext4_get_intf()Patrice Chotard2019-06-061-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to : - select the current device to save the environment file - select the correct EXT4 boot device instance and partition to save the environment file. For EXT4, device is mmc, device instance is 0 for sdcard or 1 for eMMC. The partition is set to "auto" to select the first partition with bootable flag. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | env: ext4: Allow overriding interface, device and partitionPatrice Chotard2019-06-061-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For platform which can boot on different device, this allows to override interface, device and partition from board code. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | stm32mp1: support dynamic MTDPARTSPatrice Chotard2019-06-062-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch configure the default value for mtdids and mtparts dynamically according the presence of nor and nand in the board device tree Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | | stm32mp1: activate NAND and NOR support on EV1Patrick Delaunay2019-06-066-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the necessary configuration to have NAND and NOR support on ev1 board for BASIC boot (with SPL) or for TRUSTED boot (with TF-A). STM32MP> nand info Device 0: nand0, sector size 256 KiB Page size 4096 b OOB size 224 b Erase size 262144 b subpagesize 4096 b options 0x00184200 bbt options 0x00060000 STM32MP> sf probe SF: Detected mx66l51235l with page size 256 Bytes, erase size 64 KiB, total 64 MiB Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * | | arm: mach-stm32mp: Add newline to the MAC error messageManivannan Sadhasivam2019-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without newline, the error message appears for non prgrammed OTP boards looks messsy. Hence add it to look more clean. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>