diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-11-16 17:49:23 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-28 15:10:33 -0500 |
commit | b891d01038abcc8b25f12e1b91ff889b06eb07a2 (patch) | |
tree | f9573f7328fe0980fe607b974b537fd2303ae09f /board/toradex/apalis_t30/apalis_t30.c | |
parent | a2777ecb9d11882dba696035defa35c70dd26733 (diff) | |
download | u-boot-imx-b891d01038abcc8b25f12e1b91ff889b06eb07a2.zip u-boot-imx-b891d01038abcc8b25f12e1b91ff889b06eb07a2.tar.gz u-boot-imx-b891d01038abcc8b25f12e1b91ff889b06eb07a2.tar.bz2 |
apalis/colibri_imx7/pxa270/t20/t30/vf: integrate config block handling
With our common code in place actually make use of it across all our
modules.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'board/toradex/apalis_t30/apalis_t30.c')
-rw-r--r-- | board/toradex/apalis_t30/apalis_t30.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c index 3f56971..3d83491 100644 --- a/board/toradex/apalis_t30/apalis_t30.c +++ b/board/toradex/apalis_t30/apalis_t30.c @@ -1,5 +1,5 @@ /* - * (C) Copyright 2014 + * (C) Copyright 2014-2016 * Marcel Ziswiler <marcel@ziswiler.com> * * SPDX-License-Identifier: GPL-2.0+ @@ -17,6 +17,8 @@ #include "pinmux-config-apalis_t30.h" +DECLARE_GLOBAL_DATA_PTR; + #define PMU_I2C_ADDRESS 0x2D #define MAX_I2C_RETRY 3 @@ -29,6 +31,14 @@ 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; +} + /* * Routine: pinmux_init * Description: Do individual peripheral pinmux configs |