[PATCH 1/2] dm: core: ofnode: Add ofnode_read_bootscript_flash()

Simon Glass sjg at chromium.org
Fri Aug 4 02:18:30 CEST 2023


On Thu, 3 Aug 2023 at 07:36, Michal Simek <michal.simek at amd.com> wrote:
>
> ofnode_read_bootscript_flash() reads bootscript address from
> /options/u-boot DT node. bootscr-flash-offset and bootscr-flash-size
> properties are read and values are filled. When bootscr-flash-size is not
> defined, bootscr-flash-offset property is unusable that's why cleaned.
> Both of these properties should be defined to function properly.
>
> Also add test to cover this new function.
>
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
>
>  arch/sandbox/dts/test.dts |  2 ++
>  drivers/core/ofnode.c     | 34 ++++++++++++++++++++++++++++++++++
>  include/dm/ofnode.h       | 27 +++++++++++++++++++++++++++
>  test/dm/ofnode.c          |  9 +++++++--
>  4 files changed, 70 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list