Hi Manorit
On 27/09/23 09:45, Manorit Chawdhry wrote:
Hi Neha,
On 19:03-20230926, Neha Malcom Francis wrote:
Hi Nishanth
[..]
diff --git a/arch/arm/dts/k3-j721e-r5-sk.dts b/arch/arm/dts/k3-j721e-r5-sk.dts
index 1cc64d07f7..0274465fa4 100644
--- a/arch/arm/dts/k3-j721e-r5-sk.dts
+++ b/arch
Hi Andrew,
On 09:25-20230926, Andrew Davis wrote:
> On 9/26/23 2:58 AM, Manorit Chawdhry wrote:
> > K3 devices have firewalls that are used to prevent illegal accesses to
> > memory regions that are deemed secure. The series prevents the illegal
> > accesses to A
Hi Neha,
On 19:03-20230926, Neha Malcom Francis wrote:
> Hi Nishanth
>
[..]
> > > diff --git a/arch/arm/dts/k3-j721e-r5-sk.dts
> > > b/arch/arm/dts/k3-j721e-r5-sk.dts
> > > index 1cc64d07f7..0274465fa4 100644
> > > --- a/arch/arm/dts/k3-j721e-r5-s
Hi,
On Mon, 25 Sep 2023 13:29:34 -0700 seanedm...@linux.microsoft.com wrote:
> From: Sean Edmond
>
> This patch introduces 3 improvements to align with RFC 951:
> - retransmission backoff interval maximum is configurable
> - initial retranmission backoff interval is configurable
> - transaction
Set boot core-opts to enable split mode for MCU R5 cluster by default.
This patch serves to demonstrate how this can be done.
Signed-off-by: Neha Malcom Francis
---
arch/arm/dts/k3-j7200-binman.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/dts/k3-j7200-binman.dtsi
According to the TRMs of K3 platform of devices, the ROM boot image
format specifies a "Core Options Field" that provides the capability to
set the boot core in lockstep when set to 0 or to split mode when set
to 2. Add support for providing the same from the binman DTS. Also
modify existing test
This series extends the functionality of ti-secure-rom entry type in
binman to support enabling of split mode vs. the default lockstep mode
via changing the field in the x509 certificate. A DONOTMERGE patch is
added to give an example of how this can be done via the binman.dtsi
Changes since v2:
Hi Massimo,
This patch is fine to me, but you can merge these two patch into
one, because they
are all rk3308 boards.
And if you have more than one patch, it'd better to use
--in-reply-to for follow up patches
so that the mail system know this is a patch set and grab them
On 2023/8/7 08:08, Jonas Karlman wrote:
Enable DWC_ETH_QOS_ROCKCHIP and related PHY driver on RK3588 boards that
have an enabled gmac node and drop ETH_DESIGNWARE and GMAC_ROCKCHIP for
remaining RK3588 boards.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
On 2023/8/7 08:08, Jonas Karlman wrote:
Enable DWC_ETH_QOS_ROCKCHIP and related PHY driver on RK356x boards that
have an enabled gmac node.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
configs/evb-rk3568_defconfig | 5 +++--
On 2023/8/7 08:08, Jonas Karlman wrote:
Add rk_gmac_ops and other special handling that is needed for GMAC to
work on RK3588.
rk_gmac_ops was ported from linux commits:
2f2b60a0ec28 ("net: ethernet: stmmac: dwmac-rk: Add gmac support for rk3588")
88619e77b33d ("net: stmmac: rk3588: Allow
On 2023/8/7 08:08, Jonas Karlman wrote:
Add a new glue driver for Rockchip SoCs, i.e RK3568, with a GMAC based
on Synopsys DWC Ethernet QoS IP.
rk_gmac_ops was ported from linux commit:
3bb3d6b1c195 ("net: stmmac: Add RK3566/RK3568 SoC support")
Signed-off-by: Jonas Karlman
Reviewed-by:
On 2023/8/7 08:08, Jonas Karlman wrote:
Remove spam of RX packet not available debug messages when waiting to
receive a packet.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
drivers/net/dwc_eth_qos.c | 8 +++-
1 file changed, 3 insertions(+), 5
On 2023/8/7 08:08, Jonas Karlman wrote:
Return error code when phy_connect fails or no link can be established.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
drivers/net/dwc_eth_qos.c | 2 ++
1 file changed, 2 insertions(+)
diff --git
On 2023/8/7 08:08, Jonas Karlman wrote:
rx_pkt is allocated and not used for anything, remove it.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
drivers/net/dwc_eth_qos.c | 11 ---
drivers/net/dwc_eth_qos.h | 1 -
2 files changed, 12 deletions(-)
On 2023/8/4 05:02, Jonas Karlman wrote:
A RK8XX PMIC is typically using i2c0 on RK356x devices. Add bootph-all
to required pinctrl nodes to simplify use of the prevent booting on
power plug-in option in SPL.
With the following Kconfig options and nodes in u-boot.dtsi the prevent
booting on
On 2023/8/3 03:49, Jonas Karlman wrote:
Enable missing PCIe Kconfig options now that PCIe bifurcation is fixed
to make use of the two on-board RTL8125B and the M.2 slot on NanoPi R5C
and NanoPi R5S.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
On 2023/8/3 03:49, Jonas Karlman wrote:
Update and sync Kconfig options for NanoPi R5C and NanoPi R5S with other
RK3568 boards.
SPL_FIT_SIGNATURE is enabled to add a checksum validation of the FIT
payload, also add LEGACY_IMAGE_FORMAT to keep boot scripts working.
OF_SPL_REMOVE_PROPS,
On 2023/8/22 06:30, Jonas Karlman wrote:
Add a minimal generic RK3566/RK3568 board that only have eMMC and SDMMC
enabled. This defconfig can be used to boot from eMMC or SD-card on most
RK3566/RK3568 boards that follow reference board design.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever
On 2023/8/22 06:30, Jonas Karlman wrote:
Port the Rockchip IO-domain driver for RK3568 from linux.
The driver auto probe after bind to configure IO-domain based on the
regulator voltage. Compared to the linux driver this driver is not
notified about regulator voltage changes and only
On 2023/8/22 06:30, Jonas Karlman wrote:
From: shengfei Xu
The voltage value for switchout converters is always reported as 0 uV.
When the switch is enabled, it's voltage is same as input supply.
Fix this by implementing get_value for switchout converters.
Fixes: ee30068fa574 ("power:
On 2023/8/22 06:30, Jonas Karlman wrote:
From: Joseph Chen
Information from the first range group is always used to calculate the
voltage returned for buck converters. This may result in wrong voltage
reported back to the regulator_get_value caller.
Traverse all the possible BUCK ranges to
On 2023/8/22 06:30, Jonas Karlman wrote:
With the commit 4fcba5d556b4 ("regulator: implement basic reference
counter"), keeping regulator enablement in balance become more important.
Calling regulator_autoset multiple times on a fixed regulator increase
the enable count for each call,
On 2023/8/3 03:04, Jonas Karlman wrote:
Enable mini PCIe slot, pcie3x1 node, now that the PCIe PHY driver
support bifurcation.
A pinctrl is assigned for reset-gpios or the device may freeze running
pci enum and nothing is connected to the mini PCIe slot.
Also drop the AHCI_PCI Kconfig option
On 2023/8/3 03:04, Jonas Karlman wrote:
Route signal from comb PHY instead of PCIe3 PHY to PCIe1l0 and PCIe1l1.
Fixes use of pcie2x1l0 on ROCK 5B.
Code imported from mainline linux driver.
Fixes: c5b4a012bca8 ("phy: rockchip: naneng-combphy: Support rk3588")
Signed-off-by: Jonas Karlman
On 2023/8/3 03:04, Jonas Karlman wrote:
Add support for the RK3588 variant to the driver.
Code imported almost 1:1 from mainline linux driver.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
v2:
- No change
.../phy/rockchip/phy-rockchip-snps-pcie3.c| 85
On 2023/8/3 03:04, Jonas Karlman wrote:
Configure aggregation or bifurcation mode on RK3568 based on the value
of data-lanes property.
Code imported almost 1:1 from mainline linux driver.
Fixes: 6ec62b6ca698 ("phy: rockchip: Add Rockchip Synopsys PCIe 3.0 PHY")
Signed-off-by: Jonas Karlman
On 2023/8/3 03:04, Jonas Karlman wrote:
Add a phy_init ops in preparation for upcoming support of a RK3588
variant in the driver.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
v2:
- No change
.../phy/rockchip/phy-rockchip-snps-pcie3.c| 40
On 2023/8/3 03:04, Jonas Karlman wrote:
Change to use clk_bulk API and syscon_regmap_lookup_by_phandle to
simplify in preparation for upcoming support of a RK3588 variant.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
v2:
- No change
Hi Heinrich,
On Tue, Sep 26, 2023 at 10:38:48AM +0200, Heinrich Schuchardt wrote:
> On 9/26/23 09:53, Leo Liang wrote:
> > Hi Heinrich,
> >
> > On Sat, Sep 23, 2023 at 01:35:26AM +0200, Heinrich Schuchardt wrote:
> > > Most boards don't enable the pre-console buffer. So we will not see any
> > >
On 2023/8/3 03:04, Jonas Karlman wrote:
Set number of lanes and link width speed control register based on the
num-lanes property.
Code imported almost 1:1 from dw_pcie_setup in mainline linux.
Signed-off-by: Jonas Karlman
Reviewed-by: Kever Yang
Thanks,
- Kever
---
v2:
- No change
On 2023/9/21 02:40, Frank Wunderlich wrote:
From: Frank Wunderlich
Add Bananapi R2 Pro board.
tested:
- sdcard
- both front usb-ports
- sata
- wan-port
lan-ports are connected to mt7531 switch where driver needs to be
separated from mtk ethernet-driver.
Signed-off-by: Frank Wunderlich
Hi Jonas,
Basically these patches are feature update and should be merge and
send in next MW.
I have question about PCIe bifurcation, does this also merged in linux
kernel? I do check the status
in kernel mailing list but forget to feedback with you, I didn't see the
pcie node in
On 2023/9/26 05:55, Jonas Karlman wrote:
With MMC_PWRSEQ enabled the following link issue may happen when
building SPL and SPL_PWRSEQ is not enabled.
aarch64-linux-gnu-ld.bfd: drivers/mmc/meson_gx_mmc.o: in function
`meson_mmc_probe':
drivers/mmc/meson_gx_mmc.c:295: undefined reference
From: Raymond Mao
Changes for complying to EFI spec §3.5.1.1
'Removable Media Boot Behavior'.
Boot variables can be automatically generated during a removable
media is probed. At the same time, unused boot variables will be
detected and removed.
Please note that currently the function
Hi Ilias,
On Wed, 27 Sept 2023 at 03:52, Ilias Apalodimas
wrote:
>
> On Wed, 20 Sept 2023 at 11:41, Masahisa Kojima
> wrote:
> >
> > From: Raymond Mao
> >
> > Changes for complying to EFI spec §3.5.1.1
> > 'Removable Media Boot Behavior'.
> > Boot variables can be automatically generated
Hi Tobias,
On Wed, Sep 27, 2023 at 3:29 AM Tobias Waldekranz wrote:
>
> On tis, sep 26, 2023 at 16:43, Bin Meng wrote:
> > At present if a device to map has a block size other than 512,
> > the blkmap map process just fails. There is no reason why we
> > can't just use the block size of the
Hello.
The project that I've been working on since 2 years is to enable KVM (with
the support of libvirt and virt-manager) on a recent version of Linux and
of its kernel on the old but still nice ARM Chromebook model xe303c12. My
goal is to virtualize FreeBSD 13.2 for armV7. I've almost completed
Hi Eugen,
I noticed that several AT91 boards are quite close to their SPL size
limit. For example, sama5d27_wlsom1_ek_mmc is just 173 bytes short of
its limit and doesn't even git with older GCCs. I looked at the
datasheet for that processor, and noticed that it has thumb support.
Have you
It is common to split firmware into 'Platform Init', which does the
initial hardware setup and a "Payload" which selects the OS to be booted.
Thus an handover interface is required between these two pieces.
Where UEFI boot-time services are not available, but UEFI firmware is
present on either
Some memories provide ECC detection and/or correction. For software which
wants to check memory, it is helpful to see which regions provide this
feature.
Add this as a property of the /memory nodes, since it presumably follows
the hardware-level memory system.
Signed-off-by: Simon Glass
---
Hi Simon,
On Tue, Sep 26, 2023 at 4:37 AM Simon Glass wrote:
>
> Hi Tony,
>
> On Mon, 25 Sept 2023 at 14:02, Tony Dinh wrote:
> >
> > Hi Simon,
> >
> > Here is an observation during testing the bootflow command.
> >
> > If there is a SCSI bootflow, scanning for USB bootflow will remove that
>
On tis, sep 26, 2023 at 16:43, Bin Meng wrote:
> At present if a device to map has a block size other than 512,
> the blkmap map process just fails. There is no reason why we
> can't just use the block size of the mapped device.
Won't this be very confusing to the user?
The blkmap device uses a
WARNING: unmet direct dependencies detected for PL01X_SERIAL
Depends on [n]: SERIAL [=y] && DM_SERIAL [=n]
Selected by [y]:
- TARGET_IMX28WINKHUB [=y] &&
WARNING: unmet direct dependencies detected for PL01X_SERIAL
Depends on [n]: SERIAL [=y] && DM_SERIAL [=n]
Selected by [y]:
-
On Wed, 20 Sept 2023 at 11:41, Masahisa Kojima
wrote:
>
> From: Raymond Mao
>
> Changes for complying to EFI spec §3.5.1.1
> 'Removable Media Boot Behavior'.
> Boot variables can be automatically generated during a removable
> media is probed. At the same time, unused boot variables will be
>
On 9/26/23 10:14, Simon Glass wrote:
> Use the new SPL/TPL/VPL_SYS_MALLOC_F symbols to determine whether the
> malloc pool exists.
>
> Signed-off-by: Simon Glass
> ---
>
> (no changes since v3)
>
> Changes in v3:
> - Add new patch to use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN
>
> Kconfig
On Tue, Sep 26, 2023 at 2:48 AM Miquel Raynal wrote:
>
> Hello,
>
> > > > > > These are firmware bindings, as indicated, but I
> > > > > > took them out of the /firmware node since that is for a different
> > > > > > purpose. Rob suggested that partitions was a good place. We have
> > > > > >
Hi Rogan,
On Tue, Sep 26, 2023 at 1:01 AM Rogan Dawes wrote:
>
> Hi Fabio,
>
> That prints "LLC", but does not print "Pref".
What happens if you unselect DM_SERIAL like this:
--- a/configs/imx28-wink-hub_defconfig
+++ b/configs/imx28-wink-hub_defconfig
@@ -58,4 +58,3 @@ CONFIG_DM_REGULATOR=y
Hi Sean,
> In our datacenter application, a single DHCP server is servicing 36000+
> clients.
> Improvements are required to the DHCPv4 retransmission behavior to align with
> RFC and ensure less pressure is exerted on the server:
> - retransmission backoff interval maximum is configurable
>
Introduce support for Conclusive KSTR-SAMA5D27 Single Board Computer.
Co-developed-by: Jakub Klama
Signed-off-by: Jakub Klama
Co-developed-by: Marcin Jabrzyk
Signed-off-by: Marcin Jabrzyk
Signed-off-by: Artur Rojek
---
v2: - remove redundant license text from at91-kstr-sama5d27.dts
-
Set up flexcom4 for Microchip SAMA5D27 SoC and prepare it for usage in
I2C mode.
Signed-off-by: Artur Rojek
---
v2: new patch
arch/arm/dts/sama5d2.dtsi | 20
1 file changed, 20 insertions(+)
diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi
index
Rename populate_serial_number() to a more descriptive
eeprom_read_serial() and provide the missing function prototype.
This is useful for boards that wish to read their serial number from
EEPROM at init.
Signed-off-by: Artur Rojek
---
v2: - rename the function
- move function documentation
Hi all,
this is v2 of the Conclusive KSTR-SAMA5D27 support series.
Patch [1/3] now also renames the EEPROM serial number function and moves
its documentation from .c file to the .h. We should be fine doing that,
as - to my knowledge - no other part of U-Boot seems to be using this
symbol, as
On Tue, Sep 26, 2023 at 05:08:35PM +0530, Love Kumar wrote:
> Execute "time ", and validate that it gives the approximately
> the correct amount of command execution time.
>
> Signed-off-by: Love Kumar
> ---
> test/py/tests/test_sleep.py | 20
> 1 file changed, 20
From: Patrick Delaunay
split the file stm32mp_dfu.c in two files to simplify the Makefile
- stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO
- stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog
command or VIRT device for PMIC for CONFIG_SET_DFU_ALT_INFO.
This patch also remove
From: Patrick Delaunay
Add support of USB key boot in distro boot command.
Signed-off-by: Patrick Delaunay
Signed-off-by: Patrice Chotard
---
include/configs/stm32mp13_common.h | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/include/configs/stm32mp13_common.h
Device tree alignment with Linux kernel v6.6.rc1.
Signed-off-by: Patrice Chotard
---
arch/arm/dts/stm32mp131.dtsi | 52 +--
arch/arm/dts/stm32mp135f-dk.dts | 68 ++--
arch/arm/dts/stm32mp15-pinctrl.dtsi | 364 +-
From: Patrick Delaunay
Activate the command stm32prog with CONFIG_CMD_STM32MPROG.
The CONFIG_SET_DFU_ALT_INFO is also activated to support
the required weak functions for the DFU virtual backen defined in
board/st/common/stm32mp_dfu.c.
Signed-off-by: Patrick Delaunay
Signed-off-by: Patrice
Enable USB related flags.
Signed-off-by: Patrice Chotard
---
configs/stm32mp13_defconfig | 18 ++
1 file changed, 18 insertions(+)
diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig
index 82b62744f6d..f962d0eab97 100644
--- a/configs/stm32mp13_defconfig
+++
From: Fabrice Gasnier
stm32mp135f-dk board has a type-c connector to retrieve the connection
state. For now, simply force an active peripheral mode in u-boot for
flashing.
Signed-off-by: Fabrice Gasnier
Signed-off-by: Patrice Chotard
---
arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 4
1
DT synchronization with kernel v6.6-rc1 for stm32mp
Enable USB support for stm32mp13
Enable command stm32prog for stm32mp13
Enable USB boot support for stm32mp13
Force b-session-valid for otg on stm32mp135f-dk board
Cleanup dfu support for stm32mp
Fabrice Gasnier (1):
ARM: dts: stm32: force
Le 26/09/2023 à 16:14, Simon Glass a écrit :
> It doesn't make sense to have some boards do this differently. Drop the
> condition in the hope that the maintainers can figure out any run-time
> problems.
>
> This has been tested on qemu-ppce500
>
This was added by commit ea8256f072 ("SPL:
On 9/26/23 2:58 AM, Manorit Chawdhry wrote:
K3 devices have firewalls that are used to prevent illegal accesses to
memory regions that are deemed secure. The series prevents the illegal
accesses to ATF and OP-TEE regions that are present in different K3
devices.
AM62AX and AM64X are currently
On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
> Hi Tom,
>
> On Tue, 26 Sept 2023 at 07:41, Tom Rini wrote:
> >
> > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> > > Hi Maxim,
> > >
> > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov
> > > wrote:
> > > >
> > > >
On Tue, 26 Sept 2023 at 05:25, Udit Kumar wrote:
>
> Add test case for an address range which is coalescing with one of
> range and overlapping with next range
>
> Cc: Simon Glass
> Signed-off-by: Udit Kumar
> ---
> test/lib/lmb.c | 13 -
> 1 file changed, 12 insertions(+), 1
Hi Tom,
On Tue, 26 Sept 2023 at 07:41, Tom Rini wrote:
>
> On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> > Hi Maxim,
> >
> > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov wrote:
> > >
> > > add external lwIP library as a git submodule.
> > > Use STABLE-2_2_0_RELEASE tag.
> > >
>
The spl_phase() function indicates whether U-Boot is in SPL and before
or after relocation. But sometimes it is useful to check for SPL with
zero code-size impact. Since spl_phase() checks the global_data flags,
it does add a few bytes.
Add a new spl_in_proper() function to check if U-Boot proper
The PCI helpers read only the base address for a PCI region. In some cases
the size is needed as well, e.g. to pass along to a driver which needs to
know the size of its register area.
Update the functions to allow the size to be returned. For serial, record
the information and provided it with
We should not read this unless requested. Make it conditional on the
option being provided.
Add some debugging to show the state being written.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/cpu/start.c | 8 +---
arch/sandbox/cpu/state.c | 1 +
2 files changed, 6
This function cannot return true if PCI is not enabled, since no PCI
devices will have been bound. Add a check for this to reduce code size
where it is used.
Signed-off-by: Simon Glass
---
Changes in v4:
- Add new patch to tweak device_is_on_pci_bus() for code size
include/dm/device.h | 3 ++-
This is typically not needed in SPL/TPL and increases the code size.
Drop it.
Signed-off-by: Simon Glass
---
Changes in v4:
- Add new patch to drop ns16550 serial_getinfo() in SPL
drivers/serial/ns16550.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/serial/ns16550.c
Standard passage provides for a bloblist to be passed from one firmware
phase to the next. That can be used to pass the devicetree along as well.
Add an option to support this.
Tests for this will be added as part of the Universal Payload work.
Signed-off-by: Simon Glass
---
Changes in v4:
-
This uses ARRAY_SIZE() but does not include the header file which declares
it. Fix this, so that command.h can be included without common.h
Signed-off-by: Simon Glass
---
(no changes since v1)
include/command.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/command.h
Add a missing bloblist name.
Signed-off-by: Simon Glass
---
Changes in v4:
- Split all new bloblist names into a separate patch
common/bloblist.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/bloblist.c b/common/bloblist.c
index 6f2a4577708d..a22f6c12b0c7 100644
---
Typically the bloblist is set up after the devicetree is present. This
makes sense because bloblist may use malloc() to allocate the space it
needs.
However sometimes the devicetree itself may be present in the bloblist.
In that case it is at a known location in memory so we can init the
bloblist
Move this down by 4KB so that it is large enough to hold the devicetree.
Also fix up the devicetree address in the documetation while we are here.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/Kconfig | 2 +-
doc/arch/sandbox/sandbox.rst | 4 ++--
This currently relies on sandbox attempting to read a state file. At
present it always does, even when there is no state file, in which case it
fails, but still inits the EC.
That is a bug, so update this driver to set the current image always, even
if no state is read.
Signed-off-by: Simon
This should not happen in the argument-parsing function. Move it to the
main program.
Add some debugging for reading/writing.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/cpu/start.c | 19 +++
arch/sandbox/cpu/state.c | 1 +
2 files changed, 12
Add a few simple tests for getting the root node, since this is handled
as a special case in the implementation.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/ofnode.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c
index
Add support for writing a single 64-bit value into a property.
Repurpose the existing tests to handle this case too.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c | 17 -
include/dm/ofnode.h | 10 ++
test/dm/ofnode.c | 15
Add functions to write a boolean property. This involves deleting it if
the value is false.
Add a new ofnode_has_property() as well. Add a comment about the behaviour
of of_read_property() when the property value is empty.
Signed-off-by: Simon Glass
---
(no changes since v1)
Add a way to flatten a devicetree into binary form. For livetree this
involves generating the devicetree using fdt_property() and other calls.
For flattree it simply involves providing the buffer containing the tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c |
Add a function to delete a node in an existing tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/of_access.c | 65
drivers/core/ofnode.c| 23 ++
include/dm/of_access.h | 18 +++
include/dm/ofnode.h |
Add a function to copy a node to another place under a new name. This is
useful at least for testing, since copying a test node with existing
properties is easier than writing the code to generate it all afresh.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c | 20
Provide a function to create a new, empty tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c | 56 +++
include/dm/ofnode.h | 9 +++
include/of_live.h | 8 +++
lib/of_live.c | 19 +++
Add comments to the functions where the test name does not indicate what
is being tested. Rename functions in a few cases, so that a search for the
function will also file its test.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/ofnode.c | 46
We need the UT_TESTF_SCAN_FDT flag set for these tests to run with flat
tree. In some cases it is missing, so add it.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/ofnode.c | 33 ++---
1 file changed, 18 insertions(+), 15 deletions(-)
diff --git
Follow the order used by memcpy() as it may be less confusing.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/vbe_request.c| 2 +-
boot/vbe_simple_os.c | 2 +-
drivers/core/ofnode.c | 2 +-
include/dm/ofnode.h | 6 +++---
test/dm/ofnode.c | 9 -
5 files changed,
Rather than open-coding the property names, use the existing constants
provided for this purpose. This better aligns the simple-FIT code with
the full FIT implementation.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl_fit.c | 11 ++-
1 file changed, 6
The bloblist should not be finalised until the image is fully set up.
This allows any final handoff information to be included in the bloblist.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.c | 24
1 file changed, 12 insertions(+), 12
For some reason this code was put in the main spl.c file. Move it out
to the FIT implementation where it belongs.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.c | 108 +++
common/spl/spl_fit.c | 93
We have two functions called spl_load_fit_image(), one in spl.c and one in
spl_fit.c
Rename the second one, to indicate that it relates to simple FIT parsing,
rather than the full version.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl_fit.c | 21 ++---
1
This feature has some helpers in its header file so that its functions
resolve to nothing when the feature is disabled. Add a few more and use
these to simplify the code.
With this there are no more #ifdefs in board_init_r()
Signed-off-by: Simon Glass
---
Changes in v4:
- Take account of
Use an accessor in the header file to avoid this.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Rebase on the new patch
Changes in v2:
- Use the same condition for both pieces to avoid possible problems
common/spl/spl.c | 9 +
There are copying errors in the help. Fix these.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to correct help in TPL_DM and VPL_DM
drivers/core/Kconfig | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/core/Kconfig
Move the useful help to Kconfig.
Drop mention of CONFIG_SYS_MALLOC_SIMPLE since it doesn't exist.
Correct a 'CONFIGSYS_MALLOC_F_LEN' typo
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to clean up SYS_MALLOC_SIMPLE documentation
Kconfig
Use CONFIG_SYS_MALLOC_F instead to of CONFIG_SYS_MALLOC_F_LEN to
determine whether pre-relocation malloc() is enabled.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to tidy up uses of CONFIG_SYS_MALLOC_F_LEN
Makefile | 2 +-
1 file changed, 1
Use the new SPL/TPL/VPL_SYS_MALLOC_F symbols to determine whether the
malloc pool exists.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN
Kconfig | 9 -
Enable CONFIG_TPL_SYS_MALLOC_F for boards which have a non-zero value
for CONFIG_TPL_SYS_MALLOC_F_LEN
Note that the default is yes in most cases, so no changes are needed to
board defconfig options.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to nable
Enable CONFIG_SPL_SYS_MALLOC_F for boards which have a non-zero value
for CONFIG_SPL_SYS_MALLOC_F_LEN
Note that the default is yes in most cases, so no changes are needed to
board defconfig options.
Signed-off-by: Simon Glass
---
(no changes since v3)
Changes in v3:
- Add new patch to enable
1 - 100 of 255 matches
Mail list logo