Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Eric Nelson | 4c64479 | 2017-12-11 13:52:11 -0200 | [diff] [blame] | 2 | /* |
| 3 | * mx6memcal board support - provides a minimal, UART-only |
| 4 | * U-Boot that's capable of running a memory test. |
| 5 | * |
| 6 | * Copyright (C) 2016 Nelson Integration, LLC |
| 7 | * Author: Eric Nelson <eric@nelint.com> |
Eric Nelson | 4c64479 | 2017-12-11 13:52:11 -0200 | [diff] [blame] | 8 | */ |
| 9 | |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 10 | #include <init.h> |
Eric Nelson | 4c64479 | 2017-12-11 13:52:11 -0200 | [diff] [blame] | 11 | #include <asm/arch/sys_proto.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 12 | #include <asm/global_data.h> |
Eric Nelson | 4c64479 | 2017-12-11 13:52:11 -0200 | [diff] [blame] | 13 | |
| 14 | DECLARE_GLOBAL_DATA_PTR; |
| 15 | |
| 16 | int board_init(void) |
| 17 | { |
| 18 | return 0; |
| 19 | } |
| 20 | |
| 21 | int checkboard(void) |
| 22 | { |
| 23 | puts("Board: mx6memcal\n"); |
| 24 | return 0; |
| 25 | } |
| 26 | |
| 27 | int dram_init(void) |
| 28 | { |
| 29 | gd->ram_size = imx_ddr_size(); |
| 30 | return 0; |
| 31 | } |