]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data: Remove jump table in SPL
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:19:24 +0000 (10:19 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:06:08 +0000 (14:06 -0600)
SPL builds don't use the jump table since they cannot run apps. Drop
it, moving it together with boardf.

Signed-off-by: Simon Glass <sjg@chromium.org>
board/freescale/ls2080ardb/eth_ls2080rdb.c
common/console.c
include/asm-generic/global_data.h

index 44d9782d729f5000a1a758c0ee09c82808991a90..7fc4fecf7742b96a407a5325828b8e16e1e4064d 100644 (file)
@@ -12,7 +12,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_eth_init(struct bd_info *bis)
 {
 
-#ifdef CONFIG_PHY_AQUANTIA
+#if defined(CONFIG_PHY_AQUANTIA) && !defined(CONFIG_SPL_BUILD)
        /*
         * Export functions to be used by AQ firmware
         * upload application
index 30ddefef6b1cb3bab5e812419830cf76c8b27d3c..f39821385bbaebbaa00e367067404ace3f1169e8 100644 (file)
@@ -189,6 +189,7 @@ static int console_setfile(int file, struct stdio_dev * dev)
                /* Assign the new device (leaving the existing one started) */
                stdio_devices[file] = dev;
 
+#ifndef CONFIG_SPL_BUILD
                /*
                 * Update monitor functions
                 * (to use the console stuff by other applications)
@@ -206,7 +207,7 @@ static int console_setfile(int file, struct stdio_dev * dev)
                        break;
                }
                break;
-
+#endif
        default:                /* Invalid file ID */
                error = -1;
        }
index 58dbfd6fa14c0470124bcd0f08738e9fd0c0393c..6445bd477d49b53085ad1bbab642693a00d6bdee 100644 (file)
@@ -51,6 +51,11 @@ struct global_data {
         * @fdt_blob: U-Boot's own device tree, NULL if none
         */
        const void *fdt_blob;
+       /**
+        * @cur_serial_dev: current serial device
+        */
+       struct udevice *cur_serial_dev;
+#ifndef CONFIG_SPL_BUILD
        /**
         * @jt: jump table
         *
@@ -58,11 +63,6 @@ struct global_data {
         * the jump table is passed to standalone applications.
         */
        struct jt_funcs *jt;
-       /**
-        * @cur_serial_dev: current serial device
-        */
-       struct udevice *cur_serial_dev;
-#ifndef CONFIG_SPL_BUILD
        /**
         * @boardf: information only used before relocation
         */