diff mbox series

[01/12] fdt_support: include dm/ofnode.h

Message ID 20230608171614.1.I21f10cd5db605f5c0fbdfd04328958518fa508aa@changeid
State Accepted
Commit 0e7cc08320f7dd3dce33c14cb506525f378b5f8e
Delegated to: Patrice Chotard
Headers show
Series stm32mp1: use U-Boot device tree to configure MTD partitions | expand

Commit Message

Patrick DELAUNAY June 8, 2023, 3:16 p.m. UTC
This patch is a preliminary patch to use ofnode function
is fdt_support to read the U-Boot device tree with livetree
compatible functions.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---

 common/fdt_support.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Patrice CHOTARD June 13, 2023, 6:26 a.m. UTC | #1
On 6/8/23 17:16, Patrick Delaunay wrote:
> This patch is a preliminary patch to use ofnode function
> is fdt_support to read the U-Boot device tree with livetree
> compatible functions.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
> 
>  common/fdt_support.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/fdt_support.c b/common/fdt_support.c
> index 2053fe3bad83..ffc59fd8b36a 100644
> --- a/common/fdt_support.c
> +++ b/common/fdt_support.c
> @@ -13,6 +13,7 @@
>  #include <mapmem.h>
>  #include <net.h>
>  #include <stdio_dev.h>
> +#include <dm/ofnode.h>
>  #include <linux/ctype.h>
>  #include <linux/types.h>
>  #include <asm/global_data.h>
> @@ -1065,7 +1066,6 @@ void fdt_del_node_and_alias(void *blob, const char *alias)
>  
>  /* Max address size we deal with */
>  #define OF_MAX_ADDR_CELLS	4
> -#define OF_BAD_ADDR	FDT_ADDR_T_NONE
>  #define OF_CHECK_COUNTS(na, ns)	((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
>  			(ns) > 0)
>  
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>

Thanks
Patrice
Simon Glass June 13, 2023, 2:58 p.m. UTC | #2
Hi Patrick,

On Thu, 8 Jun 2023 at 16:16, Patrick Delaunay
<patrick.delaunay@foss.st.com> wrote:
>
> This patch is a preliminary patch to use ofnode function
> is fdt_support to read the U-Boot device tree with livetree
> compatible functions.

When will the real patch come?

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

Regards,
Simon


>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
>  common/fdt_support.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/fdt_support.c b/common/fdt_support.c
> index 2053fe3bad83..ffc59fd8b36a 100644
> --- a/common/fdt_support.c
> +++ b/common/fdt_support.c
> @@ -13,6 +13,7 @@
>  #include <mapmem.h>
>  #include <net.h>
>  #include <stdio_dev.h>
> +#include <dm/ofnode.h>
>  #include <linux/ctype.h>
>  #include <linux/types.h>
>  #include <asm/global_data.h>
> @@ -1065,7 +1066,6 @@ void fdt_del_node_and_alias(void *blob, const char *alias)
>
>  /* Max address size we deal with */
>  #define OF_MAX_ADDR_CELLS      4
> -#define OF_BAD_ADDR    FDT_ADDR_T_NONE
>  #define OF_CHECK_COUNTS(na, ns)        ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
>                         (ns) > 0)
>
> --
> 2.25.1
>
diff mbox series

Patch

diff --git a/common/fdt_support.c b/common/fdt_support.c
index 2053fe3bad83..ffc59fd8b36a 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -13,6 +13,7 @@ 
 #include <mapmem.h>
 #include <net.h>
 #include <stdio_dev.h>
+#include <dm/ofnode.h>
 #include <linux/ctype.h>
 #include <linux/types.h>
 #include <asm/global_data.h>
@@ -1065,7 +1066,6 @@  void fdt_del_node_and_alias(void *blob, const char *alias)
 
 /* Max address size we deal with */
 #define OF_MAX_ADDR_CELLS	4
-#define OF_BAD_ADDR	FDT_ADDR_T_NONE
 #define OF_CHECK_COUNTS(na, ns)	((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
 			(ns) > 0)