]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/toradex/common/tdx-common.c
toradex: allow custom fdt board setup in board file
[people/ms/u-boot.git] / board / toradex / common / tdx-common.c
index d4180551b9ca9c52a803ad65d7ba93d0eba947d3..2c6fc409c109c023b5f9afd0eb66160ddaa361ab 100644 (file)
@@ -120,8 +120,8 @@ int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
 }
 #endif
 
-#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
-int ft_board_setup(void *blob, bd_t *bd)
+#if defined(CONFIG_OF_LIBFDT)
+int ft_common_board_setup(void *blob, bd_t *bd)
 {
        if (tdx_serial) {
                fdt_setprop(blob, 0, "serial-number", tdx_serial_str,
@@ -158,11 +158,9 @@ u32 get_board_serial(void)
 }
 #endif /* CONFIG_SERIAL_TAG */
 
-#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
-int ft_board_setup(void *blob, bd_t *bd)
+int ft_common_board_setup(void *blob, bd_t *bd)
 {
        return 0;
 }
-#endif
 
 #endif /* CONFIG_TDX_CFG_BLOCK */