Commit 00c200f137b60a04b137e0c7f9097f87ea2ee755

Authored by Vitaly Andrianov
Committed by Tom Rini
1 parent df4dbb5df6

fdt: call ft_board_setup_ex() at the end of image_setup_libfdt()

The keystone2 SOC requires to fix all 32 bit aliased addresses
to their 36 physical format. This has to happen after all fdt
nodes are added or modified.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Tom Rini <trini@ti.com>

Showing 2 changed files with 12 additions and 0 deletions Side-by-side Diff

... ... @@ -487,6 +487,11 @@
487 487 if (!ft_verify_fdt(blob))
488 488 return -1;
489 489  
  490 +#ifdef CONFIG_SOC_K2HK
  491 + if (IMAGE_OF_BOARD_SETUP)
  492 + ft_board_setup_ex(blob, gd->bd);
  493 +#endif
  494 +
490 495 return 0;
491 496 }
include/fdt_support.h
... ... @@ -63,6 +63,13 @@
63 63 #endif
64 64  
65 65 void ft_board_setup(void *blob, bd_t *bd);
  66 +/*
  67 + * The keystone2 SOC requires all 32 bit aliased addresses to be converted
  68 + * to their 36 physical format. This has to happen after all fdt nodes
  69 + * are added or modified by the image_setup_libfdt(). The ft_board_setup_ex()
  70 + * called at the end of the image_setup_libfdt() is to do that convertion.
  71 + */
  72 +void ft_board_setup_ex(void *blob, bd_t *bd);
66 73 void ft_cpu_setup(void *blob, bd_t *bd);
67 74 void ft_pci_setup(void *blob, bd_t *bd);
68 75