summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'u-boot-stm32_20190827' of ↵WIP/27Aug2019Tom Rini2019-08-2763-883/+2062
|\ | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-stm - Fixes and update related to STM32MP1 platforms
| * stm32mp1: update README for remoteproc supportPatrick Delaunay2019-08-271-2/+34
| | | | | | | | | | | | | | Add information for remoteproc usage to load firmware in M4 coprocessor on stm32mp157. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: add example files for FIT generationPatrick Delaunay2019-08-273-0/+205
| | | | | | | | | | | | | | | | | | | | | | | | Add example of its files to generate FIT to start kernel on ev1 or dk2 board with - only kernel and dtb = fit_copro_kernel_dtb.its - kernel, M4 copro firmware and dtb = it_copro_kernel_dtb.its Add extlinux example to manage config in generated FIT. Signed-off-by: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: Add copro image support for M4 firmwarePatrick Delaunay2019-08-271-0/+24
| | | | | | | | | | | | | | | | | | Implements copro image loading with FIT. Once image is loaded with remoteproc, the M4 coprocessor is automatically started. Signed-off-by: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * image: add new "copro" image typePatrick Delaunay2019-08-272-0/+2
| | | | | | | | | | | | | | | | | | | | 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>
| * stm32mp1: Add remoteproc support for m4 coprocessorPatrick Delaunay2019-08-277-1/+36
| | | | | | | | | | | | | | | | | | Alignment with kernel patch proposal for binding: [PATCH v4 0/8] stm32 m4 remoteproc on STM32MP157c https://lkml.org/lkml/2019/5/14/159 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * misc: change RCC form MISC to NOP uclassPatrick Delaunay2019-08-271-4/+1
| | | | | | | | | | | | | | The RCC driver have no operation so the new NOP uclass is more appropriate. It only used as parent for clock and reset driver. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board update command stboard on misc_read resultPatrick Delaunay2019-08-271-1/+1
| | | | | | | | | | | | | | | | Update management of misc_read, which now return length of data after the commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes xfered") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: update sysconf_init on misc_read resultPatrick Delaunay2019-08-271-1/+1
| | | | | | | | | | | | | | | | Update management of misc_read in sysconf_init, which now return length of data after the commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes xfered") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: update test on misc_read resultPatrick Delaunay2019-08-271-1/+1
| | | | | | | | | | | | | | Update the stm32mp1 baord after the commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes xfered") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stpmic1: simplify stpmic1_sysreset_requestPatrick Delaunay2019-08-271-8/+1
| | | | | | | | | | | | | | Retrieve parent device from dev->parent instead of calling uclass_get_device_by_driver() Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * pmu: stpmic1: change specific NVM api to MISCPatrick Delaunay2019-08-273-53/+96
| | | | | | | | | | | | | | | | | | 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>
| * bsec: update after MISC u-class updatePatrick Delaunay2019-08-272-27/+33
| | | | | | | | | | | | | | | | Since the commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes xfered"); The misc bsec driver need to be adapted to reflect the number of transferred bytes. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * MAINTAINERS: update ARM STM STM32MP and STM32MP1 BOARDPatrick Delaunay2019-08-272-4/+20
| | | | | | | | | | | | Add the missing driver and files for mach-stm32mp / stm32mp1 product. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: clk: use gd to store frequency informationPatrick Delaunay2019-08-271-7/+9
| | | | | | | | | | | | | | Use existing gd structure to store frequency information which can be used in drivers or arch without new request. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: clk: remove debug tracesPatrick Delaunay2019-08-271-17/+4
| | | | | | | | | | | | Remove many debug trace. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: Makefile cleanupPatrick Delaunay2019-08-271-1/+2
| | | | | | | | | | | | Don't compile psci for SPL build. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: ram: add pattern parameter in infinite write testPatrick Delaunay2019-08-271-11/+20
| | | | | | | | | | | | | | | | Add pattern for infinite test_read and test_write, that allow to change the pattern to test without recompilation; default pattern is 0xA5A5AA55. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: ram: reload watchdog during ddr testPatrick Delaunay2019-08-271-0/+3
| | | | | | | | | | | | Avoid watchdog during infinite DDR test. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: ram: update loop management in infinite testPatrick Delaunay2019-08-271-13/+25
| | | | | | | | | | | | | | Reduce verbosity of the infinite tests to avoid CubeMX issue. test and display loop by 1024*1024 accesses: read or write. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: ram: fix address issue in 2 testsPatrick Delaunay2019-08-271-11/+14
| | | | | | | | | | | | | | | | | | | | If user choose to test memory size is 1GByte (0x40000000), memory address would overflow in test "Random" and test "FrequencySelectivePattern". Thus the system would hangs up when running DDR test. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Bossen WU <bossen.wu@st.com>
| * stm32mp1: ram: cosmetic: remove unused prototypePatrick Delaunay2019-08-271-4/+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>
| * serial: stm32: add Framing error supportPatrick Delaunay2019-08-272-2/+5
| | | | | | | | | | | | | | | | | | Add management of Bit 1 of USART_ISR = FE: Framing error This bit is set by hardware when a de-synchronization, excessive noise or a break character is detected. It is cleared by software, writing 1 to the FECF bit in the USART_ICR register (for stm32 after f4). Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * mmc: stm32_sdmmc2: reload watchdogChristophe Kerello2019-08-271-0/+3
| | | | | | | | | | | | | | This patch solves a watchdog reset issue during mmc erase command. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: cosmetic: cleanup filePatrick Delaunay2019-08-271-2/+1
| | | | | | | | | | | | | | - reorder include files - remove one comment Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: remove board_check_usb_power when ADC is not activatedPatrick Delaunay2019-08-271-0/+4
| | | | | | | | | | | | Avoid compilation issue when CONFIG_ADC is not activated Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: Update the way vdd-supply is retrieved from DTPatrick Delaunay2019-08-274-6/+17
| | | | | | | | | | | | | | | | Due to kernel DT alignment, pwr-supply is renamed to vdd-supply and is a subnode of pwr-regulators. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: check the boot-source to disable bootdelayPatrick Delaunay2019-08-271-0/+6
| | | | | | | | | | | | | | Allows to avoid to wait 2 second in U-Boot before to start STM32CubeProgrammer command. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: protect the led function callsPatrick Delaunay2019-08-271-1/+3
| | | | | | | | | | | | Avoid compilation issue when CONFIG_LED is not activated Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: support of error led on ed1/ev1 boardPatrick Delaunay2019-08-272-30/+39
| | | | | | | | | | | | | | Create a function led_error_blink and add node in device tree. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: enable v1v2_hdmi and v3v3_hdmi regulator on dk2 bootPatrick Delaunay2019-08-273-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | As for Audio codec IC, HDMI IC is not "IO safe". HDMI regulators (v3v3 and v1v2) must be enabled to allow I2C1 bus usage. HDMI IC must be under reset during power up and keep HDMI and AUDIO devices in reset while they are not used in U-Boot to keep them in low power mode (each device can be kept in reset independently keeping their power supplies ON until kernel). Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: board: add environment variable for board id and board revPatrick Delaunay2019-08-271-0/+19
| | | | | | | | | | | | | | Add variable to identify board with HW id (read from OTP) and revision. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: add spi load support in splPatrick Delaunay2019-08-272-0/+2
| | | | | | | | | | | | | | | | | | Add the boot for NOR, SPL load U-Boot.img at offset CONFIG_SYS_SPI_U_BOOT_OFFS = 0x80000. It is the start address of mtd partition ssbl in nor. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> 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: add condition to activate WATCHDOG in SPLPatrick Delaunay2019-08-271-1/+1
| | | | | | | | | | | | Only activate WATCHDOG in SPL when CONFIG_WATCHDOG is activated in U-Boot. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: add CONFIG_CMD_BMPPatrick Delaunay2019-08-273-0/+3
| | | | | | | | | | | | Activate command BMP for splash screen support Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: add BACKLIGHT_GPIO supportPatrick Delaunay2019-08-273-0/+3
| | | | | | | | | | | | | | Backlight of panel raydium RM68200 is controlled by a simple gpio, thus we activate the support for the needed driver. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: add CONFIG_DM_VIDEOPatrick Delaunay2019-08-273-0/+3
| | | | | | | | | | | | Activate command DM_VIDEO for LCD support Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: Deactivate SPI_FLASH_BARPatrick Delaunay2019-08-273-3/+0
| | | | | | | | | | | | | | Remove CONFIG_SPI_FLASH_BAR as the SPI NOR layer uses stateless 4 byte opcodes by default. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: imply CONFIG_OF_LIBFDT_OVERLAYPatrick Delaunay2019-08-271-0/+1
| | | | | | | | | | | | | | Add imply for FDT overlay that can be usefuill for kernel device tree management but it is not mandatory (can be removed to gain space) 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: Activate DISABLE_CONSOLEPatrick Delaunay2019-08-271-0/+1
| | | | | | | | | | | | Activate DISABLE_CONSOLE needed for stm32prog support on uart. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: select CONFIG_STM32_SERIALPatrick Delaunay2019-08-274-3/+1
| | | | | | | | | | | | Select the serial driver mandatory for the console. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: deactivate ARMV7_VIRT for basic bootPatrick Delaunay2019-08-271-0/+1
| | | | | | | | | | | | | | for the moment basic and trusted configuration must start CPU in Supervisor mode and not in Hypervisor Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: activate PRE_CONSOLE_BUFFERPatrick Delaunay2019-08-271-0/+8
| | | | | | | | | | | | Correctly handle silent=1 in the default environment. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
| * stm32mp1: configs: activate CONFIG_SILENT_CONSOLEPatrick Delaunay2019-08-271-0/+1
| | | | | | | | | | | | | | Allow to disable console with environment variable 'silent': > env set silent 1; env save 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-273-2/+18
| | | | | | | | | | | | | | | | | | | | 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>