summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-10-28 10:23:02 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-11-03 22:56:20 +0100
commit0e0a5366f1bfa20e7378d7a8431da88f33637d2b (patch)
treec3559b4a93a549d886c980bc63618af48aa48c07
parent4d86dd022e771d7bb5f3a8ba9a8cb6954678bd7f (diff)
downloadblackbird-obmc-uboot-0e0a5366f1bfa20e7378d7a8431da88f33637d2b.tar.gz
blackbird-obmc-uboot-0e0a5366f1bfa20e7378d7a8431da88f33637d2b.zip
MX25: tx25: Fix building due to missing MACH_TYPE
Added MACH_TYPE for the tx25 to the configuration file. The MACH_TYPE is dropped from mach-types.h after last sync with kernel. Signed-off-by: Stefano Babic <sbabic@denx.de>
-rw-r--r--board/karo/tx25/tx25.c1
-rw-r--r--include/configs/tx25.h6
2 files changed, 6 insertions, 1 deletions
diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c
index d3d8ea51fd..2a29943733 100644
--- a/board/karo/tx25/tx25.c
+++ b/board/karo/tx25/tx25.c
@@ -140,7 +140,6 @@ int board_init()
mx25_uart1_init_pins();
#endif
/* board id for linux */
- gd->bd->bi_arch_number = MACH_TYPE_TX25;
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
return 0;
}
diff --git a/include/configs/tx25.h b/include/configs/tx25.h
index 8cb57ffc1a..f77c546687 100644
--- a/include/configs/tx25.h
+++ b/include/configs/tx25.h
@@ -34,6 +34,12 @@
/* NAND BOOT is the only boot method */
#define CONFIG_NAND_U_BOOT
+#ifndef MACH_TYPE_TX25
+#define MACH_TYPE_TX25 2177
+#endif
+
+#define CONFIG_MACH_TYPE MACH_TYPE_TX25
+
#ifdef CONFIG_NAND_SPL
/* Start copying real U-boot from the second page */
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x800
OpenPOWER on IntegriCloud