02 Mar, 2020
1 commit
-
Change plain test README to rst format and move this file
in documentation directory.Signed-off-by: Patrick Delaunay
Tested-by: Heinrich Schuchardt
Reviewed-by: Patrice Chotard
14 Feb, 2020
3 commits
-
Change the dfu functions dfu_otp_read and dfu_pmic_read to static,
this patch avoids warning when compiling with W=1.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard -
Add include for dfu, add prototype for set_dfu_alt_info
and avoid warning when compiling with W=1.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard -
Update readme:
- list the supported SOC and change family to STM32MP15x
- add warning on OTP write and prerequisite:
check if MAC address is not yet provisioned.
- Use filesize for mmc write command (avoid to write all partition
with ${partsize}). ${filesize} and ${partsize} are set by previous
load command.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard
06 Feb, 2020
2 commits
-
At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.Move the compatibility features into a separate header file.
Signed-off-by: Simon Glass
-
At present devres.h is included in all files that include dm.h but few
make use of it. Also this pulls in linux/compat which adds several more
headers. Drop the automatic inclusion and require files to include devres
themselves. This provides a good indication of which files use devres.Signed-off-by: Simon Glass
Reviewed-by: Anatolij Gustschin
21 Jan, 2020
1 commit
-
- stm32mp1: split SOC and board and cleanup config
18 Jan, 2020
1 commit
-
At present panic() is in the vsprintf.h header file. That does not seem
like an obvious choice for hang(), even though it relates to panic(). So
let's put hang() in its own header.Signed-off-by: Simon Glass
[trini: Migrate a few more files]
Signed-off-by: Tom Rini
17 Jan, 2020
3 commits
-
Split the board and SOC support for STM32MP15x family and
prepare the introduction of new boards with STM32MP15x.This path define the 2 configurations:
- STM32MP15x: STM32MP15x soc support (new)
- TARGET_ST_STM32MP15x: STMicroelectronics board support (choice)Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard -
Move CONFIG_ENV_SECT_SIZE and CONFIG_ENV_OFFSET in stm32mp15_*_defconfig
for ST board with NOR support (STM32MP15xx-EV1 boards)
- CONFIG_SECT_SIZE values = the max supported NOR erase size (256KB)
- CONFIG_ENV_OFFSET = offset for NOR (ENV_IS_IN_SPI_FLASH)This Patch prepares the U-Boot support of boards with STM32MP15x SOC
not provided by STMicroelectronics.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard -
Move the ST command in board/st/common, as this command is only used
by ST board. Prepare the support in U-Boot of boards with STM32MP15x
SOC but not STMicroelectronics.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard
08 Jan, 2020
1 commit
-
Since the coprocessor state is tracked in a backup register, there is
no more need for tracking it in an environment variable : remove it.Signed-off-by: Fabien Dessenne
Acked-by: Patrick Delaunay
03 Dec, 2019
4 commits
-
A number of board function belong in init.h with the others. Move them.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
These functions belong in cpu_func.h. Another option would be cache.h
but that code uses driver model and we have not moved these cache
functions to use driver model. Since they are CPU-related it seems
reasonable to put them here.Move them over.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
These functions belong in serial.h so move them over.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
This is only used by a few files so it should not be in the common header.
Move it out.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
26 Nov, 2019
3 commits
-
Add read for OTP and PMIC NVM with alternates
on virtual DFU device.Serie-cc: Boris Brezillon
Signed-off-by: Patrick Delaunay -
This patch adds the support of the spi nand device in mtdparts command
and in dfu_alt_info.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard -
Generate automatically dfu_alt_info for the supported device.
The simple command "dfu 0" allows to start the dfu stack on usb 0
for the supported devices:
- dfu mtd for nand0
- dfu mtd for nor0
- dfu mmc for SDCard
- dfu mmc for eMMC
- dfu ram for images in DDRThe DUF alternate use the "part", "partubi" and "mmcpart" options
to select the correct MTD or GPT partition or the eMMC hw boot partition.Signed-off-by: Patrick Delaunay
Reviewed-by: Patrice Chotard
22 Oct, 2019
1 commit
-
Select the correct USB product id used by the download gadget
for ST stm32mp1 boards.The board stm32mp1 select the correct product id, as defined in
http://www.linux-usb.org/usb.ids for the STMicroelectronics
vendor id = 0x0483 (CONFIG_USB_GADGET_VENDOR_NUM):
- dfu = 0xdf11 : STM Device in DFU mode
it is the value used by ROM code and reused for stm32prog
command
- fasboot = 0x0afb : Android Fastboot device
- others = 0x5720 (CONFIG_USB_GADGET_PRODUCT_NUM)
Mass Storage Device
it is used for UMS command / usb_dnl_umsThis patch avoid conflict when the same USB VID/PID is used for
ums, fastboot or dfu command (two different protocols associated
to the same PID).Signed-off-by: Patrick Delaunay
Acked-by: Patrice Chotard
14 Oct, 2019
1 commit
-
Signed-off-by: Yannick Fertré
05 Sep, 2019
1 commit
-
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.cwarning: no previous prototype for 'board_interface_eth_init'\
[-Wmissing-prototypes]
int board_interface_eth_init(int interface_type, ....
^~~~~~~~~~~~~~~~~~~~~~~~Signed-off-by: Patrice Chotard
Signed-off-by: Patrick Delaunay
Acked-by: Joe Hershberger
27 Aug, 2019
16 commits
-
Add information for remoteproc usage to load firmware in M4 coprocessor
on stm32mp157.Signed-off-by: Patrick Delaunay
-
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.itsAdd extlinux example to manage config in generated FIT.
Signed-off-by: Loic Pallardy
Signed-off-by: Patrick Delaunay -
Implements copro image loading with FIT.
Once image is loaded with remoteproc,
the M4 coprocessor is automatically started.Signed-off-by: Loic Pallardy
Signed-off-by: Patrick Delaunay -
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
-
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
-
Update the stm32mp1 baord after the commit 8729b1ae2cbd
("misc: Update read() and write() methods to return bytes xfered")Signed-off-by: Patrick Delaunay
-
Add the missing driver and files for mach-stm32mp / stm32mp1 product.
Signed-off-by: Patrick Delaunay
-
- reorder include files
- remove one commentSigned-off-by: Patrick Delaunay
-
Avoid compilation issue when CONFIG_ADC is not activated
Signed-off-by: Patrick Delaunay
-
Due to kernel DT alignment, pwr-supply is renamed to vdd-supply
and is a subnode of pwr-regulators.Signed-off-by: Patrice Chotard
Signed-off-by: Patrick Delaunay -
Allows to avoid to wait 2 second in U-Boot before to
start STM32CubeProgrammer command.Signed-off-by: Patrick Delaunay
-
Avoid compilation issue when CONFIG_LED is not activated
Signed-off-by: Patrick Delaunay
-
Create a function led_error_blink and add node in device
tree.Signed-off-by: Patrick Delaunay
-
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
Signed-off-by: Patrick Delaunay -
Add variable to identify board with HW id (read from OTP)
and revision.Signed-off-by: Patrick Delaunay
-
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
12 Aug, 2019
2 commits
-
This file contains lots of internal details about the environment. Most
code can include env.h instead, calling the functions there as needed.Rename this file and add a comment at the top to indicate its internal
nature.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
Reviewed-by: Simon Goldschmidt
[trini: Fixup apalis-tk1.c]
Signed-off-by: Tom Rini -
Move this function over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger