]> git.sur5r.net Git - u-boot/blobdiff - board/toradex/apalis_t30/apalis_t30.c
Merge git://git.denx.de/u-boot-mpc85xx
[u-boot] / board / toradex / apalis_t30 / apalis_t30.c
index 3f56971a13b15416549bdfbdd8d380f61d77476d..827eefd4630f8b1f215c2d3d7c4fc1cfdead994d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  (C) Copyright 2014
+ *  (C) Copyright 2014-2016
  *  Marcel Ziswiler <marcel@ziswiler.com>
  *
  * SPDX-License-Identifier:    GPL-2.0+
 #include <asm/io.h>
 #include <dm.h>
 #include <i2c.h>
+#include "../common/tdx-common.h"
 
 #include "pinmux-config-apalis_t30.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define PMU_I2C_ADDRESS                0x2D
 #define MAX_I2C_RETRY          3
 
@@ -29,6 +32,21 @@ int arch_misc_init(void)
        return 0;
 }
 
+int checkboard(void)
+{
+       printf("Model: Toradex Apalis T30 %dGB\n",
+              (gd->ram_size == 0x40000000) ? 1 : 2);
+
+       return 0;
+}
+
+#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
+int ft_board_setup(void *blob, bd_t *bd)
+{
+       return ft_common_board_setup(blob, bd);
+}
+#endif
+
 /*
  * Routine: pinmux_init
  * Description: Do individual peripheral pinmux configs