mingming lee | b9bf3cb | 2019-12-31 11:29:26 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2019 MediaTek Inc. |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <dm.h> |
Simon Glass | f7ae49f | 2020-05-10 11:40:05 -0600 | [diff] [blame] | 8 | #include <log.h> |
mingming lee | b9bf3cb | 2019-12-31 11:29:26 +0800 | [diff] [blame] | 9 | #include <wdt.h> |
Simon Glass | 401d1c4 | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 10 | #include <asm/global_data.h> |
mingming lee | b9bf3cb | 2019-12-31 11:29:26 +0800 | [diff] [blame] | 11 | |
| 12 | DECLARE_GLOBAL_DATA_PTR; |
| 13 | |
| 14 | int board_init(void) |
| 15 | { |
| 16 | /* address of boot parameters */ |
| 17 | gd->bd->bi_boot_params = gd->ram_base + 0x100; |
| 18 | |
| 19 | debug("gd->fdt_blob is %p\n", gd->fdt_blob); |
| 20 | return 0; |
| 21 | } |