]> git.sur5r.net Git - u-boot/commitdiff
blackfin: Fix up board_type global data
authorSimon Glass <sjg@chromium.org>
Tue, 5 Mar 2013 14:39:59 +0000 (14:39 +0000)
committerTom Rini <trini@ti.com>
Fri, 15 Mar 2013 20:14:01 +0000 (16:14 -0400)
This should be in arch_global_data but was dropped in the change-over.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/blackfin/include/asm/global_data.h
arch/blackfin/lib/board.c

index c2c4d4d41dfd7d699e5f1a3c7e8789ef6c30bec8..44245b4a1b2fb4c83697a2b2819171421ca95071 100644 (file)
@@ -32,6 +32,7 @@
 
 /* Architecture-specific global data */
 struct arch_global_data {
+       unsigned long board_type;
 };
 
 #include <asm-generic/global_data.h>
index 288dc829d4d64567f10ee3e23948ec3d5727a401..75b6c463d87ba0348af947a5a1466a51c94aae4b 100644 (file)
@@ -77,7 +77,7 @@ static void display_global_data(void)
        bd = gd->bd;
        printf(" gd: %p\n", gd);
        printf(" |-flags: %lx\n", gd->flags);
-       printf(" |-board_type: %lx\n", gd->board_type);
+       printf(" |-board_type: %lx\n", gd->arch.board_type);
        printf(" |-baudrate: %u\n", gd->baudrate);
        printf(" |-have_console: %lx\n", gd->have_console);
        printf(" |-ram_size: %lx\n", gd->ram_size);