]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sdp4430: Initialize board id using CONFIG_MACH_TYPE
authorOleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
Tue, 6 Aug 2013 11:03:27 +0000 (14:03 +0300)
committerTom Rini <trini@ti.com>
Wed, 28 Aug 2013 15:44:58 +0000 (11:44 -0400)
Use CONFIG_MACH_TYPE generic macro to set the machine type
number in the common arm code instead of setting it in the
board code.

Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@ti.com>
board/ti/sdp4430/sdp.c
include/configs/omap4_sdp4430.h

index 25daaa9ffb140eadf925ab8981ef7aed1bdb363a..b20ca9ebfd59c3f6bcc7b30c7253424d7d345073 100644 (file)
@@ -28,7 +28,6 @@ int board_init(void)
 {
        gpmc_init();
 
-       gd->bd->bi_arch_number = MACH_TYPE_OMAP_4430SDP;
        gd->bd->bi_boot_params = (0x80000000 + 0x100); /* boot param addr */
 
        return 0;
index 3da78b65750f63c6f4d83e5cfdd3fa84e3b7130a..f40e0b718fc843d2a82a35e64e2829e35f1fbb22 100644 (file)
@@ -17,6 +17,7 @@
  * High Level Configuration Options
  */
 #define CONFIG_4430SDP         1       /* working with SDP */
+#define CONFIG_MACH_TYPE       MACH_TYPE_OMAP_4430SDP
 
 #include <configs/omap4_common.h>