Switch to using new dump operation in clock provider drivers instead of
overriding soc_clk_dump.
Signed-off-by: Igor Prusov
Tested-by: Patrice Chotard
Reviewed-by: Sean Anderson
---
arch/mips/mach-pic32/cpu.c | 23
drivers/clk/aspeed/clk_ast2600.c | 13
After introducing dump to clk_ops there is no need to override or expose
this symbol anymore.
Signed-off-by: Igor Prusov
Reviewed-by: Patrice Chotard
Tested-by: Patrice Chotard
Reviewed-by: Sean Anderson
---
cmd/clk.c | 4 ++--
include/clk.h | 2 --
2 files changed, 2 insertions(+), 4
On Mon, Oct 2, 2023 at 11:32 AM Simon Glass wrote:
>
> Saving and restoring entries is used for expo and for the command line,
> which we don't use in SPL. Drop these methods.
>
> Signed-off-by: Simon Glass
> ---
>
> Changes in v3:
> - Add new patch to drop unnecessary truetype operations from
Hi Bin,
On Sun, 5 Nov 2023 at 14:05, Bin Meng wrote:
>
> Hi Simon,
>
> On Mon, Oct 2, 2023 at 9:15 AM Simon Glass wrote:
> >
> > This is needed to support Truetype fonts. In any case, the compiler
> > expects SSE to be available in 64-bit mode. Enable it.
> >
> > Signed-off-by: Simon Glass
> >
Hi John,
On Sun, 5 Nov 2023 at 09:37, John Paul Adrian Glaubitz
wrote:
>
> Hi Simon,
>
> On Sat, 2023-11-04 at 19:42 +, Simon Glass wrote:
> > Is it possible to check if it reaches the kernel? E.g. with
> > earlyprintk ? It would be good to know if U-Boot managers to jump to
> > Linux, or
Hi Simon,
On Thu, Nov 2, 2023 at 2:04 AM Simon Glass wrote:
>
> U-Boot normally requires a UART. When booting from coreboot it is
> sometimes just not available, e.g. when no sysinfo or DBG2 information
> is provided.
>
> In this case we need to continue running, since the display can be used.
>
Hi Heinrich,
On Sun, 5 Nov 2023 at 03:47, Heinrich Schuchardt
wrote:
>
> On 11/4/23 21:42, Simon Glass wrote:
> > Hi Heinrich,
> >
> > On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt
> > wrote:
> >>
> >> The existence of devices should be checked in the bind method and not in
> >> the probe
Hi Simon,
On Sat, 2023-11-04 at 19:42 +, Simon Glass wrote:
> Is it possible to check if it reaches the kernel? E.g. with
> earlyprintk ? It would be good to know if U-Boot managers to jump to
> Linux, or not.
Thanks, this is actually a very good idea. In fact, we recently restored
Move clock dump function in preparation for switching to dump function
in clk_ops.
Signed-off-by: Igor Prusov
Acked-by: Michal Simek
---
arch/arm/mach-zynq/clk.c | 57 ---
drivers/clk/clk_zynq.c | 58
2 files
This adds dump function to struct clk_ops which should replace
soc_clk_dump. It allows clock drivers to provide custom dump
implementation without overriding generic CCF dump function.
Signed-off-by: Igor Prusov
Reviewed-by: Patrice Chotard
Tested-by: Patrice Chotard
---
include/clk-uclass.h
Move clock dump function to avoid forward declaration after switching to
dump in clk_ops.
Signed-off-by: Igor Prusov
Reviewed-by: Sean Anderson
---
drivers/clk/clk_k210.c | 92 +-
1 file changed, 46 insertions(+), 46 deletions(-)
diff --git
Move clock dump function to avoid forward declaration after switching to
dump in clk_ops.
Signed-off-by: Igor Prusov
---
drivers/clk/aspeed/clk_ast2600.c | 70
1 file changed, 35 insertions(+), 35 deletions(-)
diff --git a/drivers/clk/aspeed/clk_ast2600.c
Move driver and ops structs to avoid forward declaration after switching
to dump in clk_ops.
Signed-off-by: Igor Prusov
Reviewed-by: Neil Armstrong
---
drivers/clk/meson/a1.c | 34 +-
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git
On Mon, Oct 2, 2023 at 10:23 AM Simon Glass wrote:
>
> The efi_gop driver uses private fields from the video uclass to obtain a
> pointer to the frame buffer. Use the platform data instead.
>
> Check the VIDEO_COPY setting to determine which frame buffer to use. Once
> the next stage is running
On Mon, Oct 2, 2023 at 9:30 AM Simon Glass wrote:
>
> Use the correct background colour when using white-on-black.
>
> Signed-off-by: Simon Glass
> ---
>
> (no changes since v1)
>
> boot/expo.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Reviewed-by: Bin Meng
Hi Simon,
On Mon, Oct 2, 2023 at 9:15 AM Simon Glass wrote:
>
> This is needed to support Truetype fonts. In any case, the compiler
> expects SSE to be available in 64-bit mode. Enable it.
>
> Signed-off-by: Simon Glass
> Suggested-by: Bin Meng
> ---
>
> (no changes since v1)
>
>
On Mon, Oct 2, 2023 at 9:14 AM Simon Glass wrote:
>
> Provide the user with a list of available boot options. Selecting one
> causes it to be booted. Pressing causes U-Boot to return to the
> command-line prompt.
>
> Signed-off-by: Simon Glass
> ---
>
> Changes in v3:
> - Clear the screen
Add another loop to dump additional info from clock providers that
implement dump operation.
Signed-off-by: Igor Prusov
Reviewed-by: Patrice Chotard
Tested-by: Patrice Chotard
---
cmd/clk.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/cmd/clk.c b/cmd/clk.c
index
Currently clock providers may override default implementation of
soc_clk_dump function to replace clk dump command output. This causes
confusing behaviour when u-boot is built with one of such drivers
enabled but still has clocks defined using CCF. For example, enabling
CMD_CLK and using clk dump
Hi Simon,
On 11:22-20231005, Simon Glass wrote:
> Hi Nishanth,
>
> On Thu, 5 Oct 2023 at 11:16, Nishanth Menon wrote:
> >
> > On 12:10-20231005, Nishanth Menon wrote:
> > > On 12:36-20231005, Tom Rini wrote:
> > > > On Thu, Oct 05, 2023 at 09:19:48AM -0500, Andrew Davis wrote:
> > > > > On
On 11/6/23 03:25, Sean Anderson wrote:
Several boards enable SPL_FS_FAT and SPL_LIBDISK_SUPPORT when they can't be
used (as there is no block device support enabled). Disable these configs.
The list of boards was generated with the following command:
$ tools/qconfig.py -f SPL SPL_FS_FAT
When using the USB OTG FEL mode on the Allwinner H616, the BootROM
stores some data at the end of SRAM C. This is also the location where
we place the initial SPL stack, so it will overwrite this data.
We still need the BROM code after running the SPL, so should leave that
area alone.
The purpose of SHOW_ERRORS is to print extra information. Make it depend
on LIBCOMMON to avoid having to check for two configs.
Signed-off-by: Sean Anderson
Reviewed-by: Tom Rini
---
(no changes since v5)
Changes in v5:
- New
common/spl/Kconfig | 1 +
common/spl/spl.c | 3 +--
2 files
This converts the nand load method to use spl_load. nand_page_size may not
be valid until after nand_spl_load_image is called (see e.g. fsl_ifc_spl),
so we set bl_len in spl_nand_read. Since spl_load reads the header for us,
we can remove that argument from spl_nand_load_element.
There are two
This converts the blk load method (used exclusively by NVMe) to use
spl_load. As a consequence, it also adds support for LOAD_FIT_FULL and
IMX images.
Signed-off-by: Sean Anderson
---
Changes in v6:
- Fix invalid return from spl_blk_load_image
- Explicitly initialize load_info members
Changes
If we don't DMA-align buffers we pass to FAT, it will align them itself.
This behaviour likely should be deprecated in favor of
CONFIG_BOUNCE_BUFFER, but that's a task for another series. For the
meantime, don't bother aligning the buffer unless we had been doing so in
the past.
Signed-off-by:
Updating the block protection flags for Gigadevice gd25lx256e and
ISSI is25wx256 OSPI flash parts.
Signed-off-by: Venkatesh Yadav Abbarapu
---
drivers/mtd/spi/spi-nor-ids.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/spi-nor-ids.c
Hi Nishanth,
On 19:38-20231102, Nishanth Menon wrote:
> Switch to using bootstd. Note with this change, we will stop using
> distro_bootcmd and instead depend entirely on bootflow method of
> starting the system up.
>
> Signed-off-by: Nishanth Menon
> ---
> configs/j721e_evm_a72_defconfig | 5
On Fri, 3 Nov 2023 at 21:09, Caleb Connolly wrote:
>
> This property is needed on some platforms to ensure that only the
> relevant bits are set in the M/N/D registers.
This commit broke qcs404 platform which is fixed by following add-on change:
diff --git a/drivers/clk/qcom/clock-qcs404.c
On Fri, 3 Nov 2023 at 21:11, Caleb Connolly wrote:
>
> The RCG divider field takes a value of (2*h - 1) where h is the divisor.
> This allows fractional dividers to be supported by calculating them at
> compile time using a macro.
>
> However, the clk_rcg_set_rate_mnd() function was also
What you are doing is the worst thing in the world. You have been
ignoring all my changes which I have been sending for one year, then you
wrote me that I'm not competent to do any kind of programming, later you
wrote that you would ignore all my requests and stop responding to any
questions, then
Add to support StarFive watchdog driver. The driver is imported from
linux kernel's drivers/watchdog/starfive-wdt.c without jh7100 support
because there is no support of jh7100 SoC in u-boot yet.
Howver, this patch has been kept the variant coding style because JH7100
can be added later and have a
This patchset adds to support StarFive Watchdog driver which is based on
Linux kernel's starfive-wdt driver. Actually, the original driver supports
both JH7100 and JH7110 with variant coding but this removes the JH7100
part of codes because JH7100 isn't supported in u-boot yet.
However, this patch
Adds jh7110 watchdog device tree node.
Signed-off-by: Chanho Park
---
arch/riscv/dts/jh7110.dtsi | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi
index 13c47f7caa36..6d2675d6ceac 100644
--- a/arch/riscv/dts/jh7110.dtsi
+++
Add properties to improve eye diagram which sometimes need adjust
some parameters of u2phy;
Add a property to tune disconnect threshold;
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 58 +-
1 file changed, 57 insertions(+), 1 deletion(-)
diff
Add properties to improve eye diagram which sometimes need adjust
some parameters of u2phy;
Add a property to tune disconnect threshold;
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 9 +
1 file changed, 9 insertions(+)
diff --git
Initialize ret to avoid returning garbage if blk_get_devnum_by_uclass_id
fails.
Fixes: 8ce6a2e1757 ("spl: blk: Support loading images from fs")
Signed-off-by: Sean Anderson
---
Changes in v6:
- New
common/spl/spl_blk_fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
On Sun, Nov 05, 2023 at 01:03:51PM -0700, Simon Glass wrote:
> This image type is supposed to ignore the load address. But at present
> it fails if the load address is missing. If it is zero, the image is
> loaded at address 0, which may not work on all boards.
>
> Make use of the kernel_addr_r
On Sun, Nov 05, 2023 at 01:03:52PM -0700, Simon Glass wrote:
> If the image is compressed, then the existing check fails, since the
> header is wrong.
>
> Move the check later in the boot process, after the kernel is
> decompressed. This allows use of bootm with compressed kernels, while
> still
bl_len must be a power of two, so we can use ALIGN instead of roundup and
similar tricks to avoid divisions.
Signed-off-by: Sean Anderson
---
Changes in v6:
- New
common/spl/spl_fit.c | 2 +-
common/spl/spl_imx_container.c | 8
2 files changed, 5 insertions(+), 5
spi_load_image_os performs almost the same steps as the non-falcon-boot
path of spl_spi_load_image. The load address is different, and it also
loads a device tree, but that's it. Refactor the boot process so that
they can both use the same load function.
Signed-off-by: Sean Anderson
---
(no
This converts the spi load method to use spl_load. The address used for
LOAD_FIT_FULL may be different, but there are no in-tree users of that
config. Since payload_offs is only used without OS_BOOT, we defer its
initialization.
Signed-off-by: Sean Anderson
---
Changes in v6:
- Fix soft reset
Add timer driver in Starfive SoC. It is an timer that outside
of CPU core and inside Starfive SoC.
Signed-off-by: Kuan Lim Lee
Signed-off-by: Wei Liang Lim
Reviewed-by: Simon Glass
Changes for v2:
- correct driver name, comment, variable
---
drivers/timer/Kconfig | 7 +++
This little series corrects a problem I noticed with arm64 images,
where the kernel is not recognised:
## Loading kernel from FIT Image at 1000 ...
Using 'conf-930' configuration
Verifying Hash Integrity ... OK
Trying 'kernel' kernel subimage
Description:
This image type is supposed to ignore the load address. But at present
it fails if the load address is missing. If it is zero, the image is
loaded at address 0, which may not work on all boards.
Make use of the kernel_addr_r environment variable, instead, since this
seems to be a more reliable
The destination address for decompression (or copying) is useful
information. Show this to the user while booting, e.g.:
Uncompressing Kernel Image (no loading done) to 208
Signed-off-by: Simon Glass
---
boot/image.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
Currently the renesas_sdhi_reset_tuning() unconditionally leaves SDHI
clock enabled after the tuning reset. This is not always necessary.
After the driver performed tuning reset at the end of probe function,
or in the unlikely case that tuning failed during regular operation,
the SDHI clock can
Add JH7110_SYSCLK_WDT_APB and JH7110_SYSCLK_WDT_CORE clocks for JH7110
watchdog device.
Signed-off-by: Chanho Park
---
drivers/clk/starfive/clk-jh7110.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/clk/starfive/clk-jh7110.c
b/drivers/clk/starfive/clk-jh7110.c
index
Enables StarFive Watchdog driver and WDT command.
Signed-off-by: Chanho Park
---
configs/starfive_visionfive2_defconfig | 5 +
1 file changed, 5 insertions(+)
diff --git a/configs/starfive_visionfive2_defconfig
b/configs/starfive_visionfive2_defconfig
index b15e7d24db19..7b39a63359dc
Remove NULL assignments to fields in spl_load_info when .load doesn't
reference these fields. This can result in more efficient code. filename
must stay even if it is unused, since load_simple_fit uses it.
Signed-off-by: Sean Anderson
---
Changes in v6:
- New
Implementers of SPL_LOAD_IMAGE_METHOD have to correctly determine what
type of image is being loaded and then call the appropriate image load
function correctly. This is tricky, because some image load functions
expect the whole image to already be loaded (CONFIG_SPL_LOAD_FIT_FULL),
some will load
To allow for easier reuse of this functionality, split it off into its
own function.
Signed-off-by: Sean Anderson
---
Changes in v6:
- New
common/spl/spl_legacy.c | 73 ++---
include/spl.h | 13
2 files changed, 52 insertions(+), 34
This converts the mmc loader to spl_load. Legacy images are handled by
spl_load (via spl_parse_image_header), so mmc_load_legacy can be
omitted. To accurately determine whether mmc_load_image_raw_sector is used
(which might not be the case if SYS_MMCSD_FS_BOOT is enabled), we introduce
a helper
This converts the net load method to use spl_load. As a result, it also
adds support for LOAD_FIT_FULL and IMX images.
Signed-off-by: Sean Anderson
---
Changes in v6:
- Explicitly initialize load_info members
Changes in v5:
- Rework to load header in spl_load
common/spl/spl_net.c | 29
This series adds support for loading all image types (Legacy (with and without
LZMA), FIT (with and without LOAD_FIT_FULL), and i.MX) to the MMC, SPI, NOR,
NET, FAT, EXT, NVMe, and semihosting load methods. It does this by introducing a
helper function which handles the minutiae of invoking the
These will soon be supported, so we need to be able to test it. Export the
lzma data and generally use the same process in spl_test_mmc_fs as
do_spl_test_load. If we end up needing this in third place in the future,
it would probably be good to refactor things out.
Signed-off-by: Sean Anderson
This converts the fat loader to use spl_load. Some platforms are very
tight on space, so we take care to only include the code we really need.
Signed-off-by: Sean Anderson
---
(no changes since v5)
Changes in v5:
- Rework to load header in spl_load
Changes in v3:
- Fix failing on success
Simplify things a bit for callers of spl_load_info->read by refactoring it
to use units of bytes instead of bl_len. This generally simplifies the
logic, as MMC is the only loader which actually works in sectors. It will
also allow further refactoring to remove the special-case handling of
This converts the nor load method to use spl_load. As a result it also
adds support for LOAD_FIT_FULL. Since this is the last caller of
spl_load_legacy_img, it has been removed.
We can't load FITs with external data with SPL_LOAD_FIT_FULL, so disable the
test in that case. No boards enable
On 11/5/23 18:25, Simon Glass wrote:
Hi Heinrich,
On Sun, 5 Nov 2023 at 03:47, Heinrich Schuchardt
wrote:
On 11/4/23 21:42, Simon Glass wrote:
Hi Heinrich,
On Sat, 4 Nov 2023 at 06:51, Heinrich Schuchardt
wrote:
The existence of devices should be checked in the bind method and not in
Now that spl_nand_fit_read works in units of bytes, it can be combined with
spl_nand_legacy_read. Rename the resulting function spl_nand_read, since it
is no longer FIT-specific.
Signed-off-by: Sean Anderson
---
Changes in v6:
- New
common/spl/spl_nand.c | 33 +
On real hardware, semihosting calls tends to have a large constant
overhead (on the order of tens of milliseconds). Reduce the number of
calls by one by reusing the existing fd in smh_fit_read, and closing it
at the end of spl_smh_load_image.
Signed-off-by: Sean Anderson
---
Changes in v6:
-
dev and priv server the same purpose, and are never set at the same time.
Remove dev and convert all users to priv. While we're at it, reorder bl_len
to be last for better alignment.
Signed-off-by: Sean Anderson
---
Changes in v6:
- New
common/spl/spl_mmc.c | 6 +++---
Several boards enable SPL_FS_FAT and SPL_LIBDISK_SUPPORT when they can't be
used (as there is no block device support enabled). Disable these configs.
The list of boards was generated with the following command:
$ tools/qconfig.py -f SPL SPL_FS_FAT ~SPL_MMC ~SPL_BLK_FS ~SPL_SATA \
This converts the ext load method to use spl_load. As a consequence, it
also adds support for FIT and IMX images.
Signed-off-by: Sean Anderson
---
Changes in v6:
- Explicitly initialize load_info members
Changes in v5:
- Rework to load header in spl_load
common/spl/spl_ext.c | 36
Hi,
On Sun, 5 Nov 2023 at 20:05, Simon Glass wrote:
>
> This little series corrects a problem I noticed with arm64 images,
> where the kernel is not recognised:
>
>## Loading kernel from FIT Image at 1000 ...
> Using 'conf-930' configuration
> Verifying Hash Integrity ... OK
If the image is compressed, then the existing check fails, since the
header is wrong.
Move the check later in the boot process, after the kernel is
decompressed. This allows use of bootm with compressed kernels, while
still permitting an uncompressed kernel to be used.
Signed-off-by: Simon Glass
Correct a typo in the function comment for image_decomp().
Signed-off-by: Simon Glass
---
include/image.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/image.h b/include/image.h
index 2e3cf839ee36..0fe67852c563 100644
--- a/include/image.h
+++ b/include/image.h
@@
For filesystems, filename serves the same purpose as priv. However,
spl_load_fit_image also uses it to determine whether to use a DMA-aligned
buffer. This is beneficial for FAT, which uses a bounce-buffer if the
destination is not DMA-aligned. Remove this logic, and instead achieve it
by setting
Aligning addresses and sizes causes overhead which is unnecessary when we
are not loading from block devices. Remove bl_len when it is not needed.
For example, on iot2050 we save 144 bytes with this patch (once the rest of
this series is applied):
add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-144
This converts the semihosting load method to use spl_load. As a result, it
also adds support for LOAD_FIT_FULL and IMX images.
Signed-off-by: Sean Anderson
---
Changes in v6:
- Explicitly initialize load_info members
Changes in v5:
- Rework to load header in spl_load
Changes in v2:
- New
71 matches
Mail list logo